-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refs #119 Added missing
collection
page
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
@extends('layout') | ||
@section('title', 'Чистый код') | ||
@section('description', 'Код должен быть понятен всем членам команды и легко читаем для разработчиков, которые могут внести изменения в него') | ||
@section('content') | ||
|
||
<x-header align="align-items-end"> | ||
<x-slot name="sup">Декларативный стиль</x-slot> | ||
<x-slot name="title">Высокий уровень через коллекцию</x-slot> | ||
<x-slot name="description"> | ||
Опирайтесь на высокие абстракции вместо применения низкоуровневых конструкций. | ||
</x-slot> | ||
<x-slot name="content"> | ||
<img src="/img/gusli.svg" class="img-fluid d-block mx-auto"> | ||
</x-slot> | ||
</x-header> | ||
|
||
|
||
@php | ||
$sections = collect([ | ||
'basics', | ||
'foreach', | ||
'thinking-in-steps', | ||
'dont-primitives', | ||
]) | ||
->map(fn ($file) => \Illuminate\Support\Str::of($file)->start('collection/')) | ||
->map(fn ($file) => new \App\Library($file)); | ||
@endphp | ||
|
||
@include('particles.library-section', ['sections' => $sections]) | ||
@endsection |