Skip to content

Commit 2bcc613

Browse files
committed
refs #119 Added missing collection page
1 parent 46696a5 commit 2bcc613

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
@extends('layout')
2+
@section('title', 'Чистый код')
3+
@section('description', 'Код должен быть понятен всем членам команды и легко читаем для разработчиков, которые могут внести изменения в него')
4+
@section('content')
5+
6+
<x-header align="align-items-end">
7+
<x-slot name="sup">Декларативный стиль</x-slot>
8+
<x-slot name="title">Высокий уровень через коллекцию</x-slot>
9+
<x-slot name="description">
10+
Опирайтесь на высокие абстракции вместо применения низкоуровневых конструкций.
11+
</x-slot>
12+
<x-slot name="content">
13+
<img src="/img/gusli.svg" class="img-fluid d-block mx-auto">
14+
</x-slot>
15+
</x-header>
16+
17+
18+
@php
19+
$sections = collect([
20+
'basics',
21+
'foreach',
22+
'thinking-in-steps',
23+
'dont-primitives',
24+
])
25+
->map(fn ($file) => \Illuminate\Support\Str::of($file)->start('collection/'))
26+
->map(fn ($file) => new \App\Library($file));
27+
@endphp
28+
29+
@include('particles.library-section', ['sections' => $sections])
30+
@endsection

0 commit comments

Comments
 (0)