generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
49ead0b
commit 62d92d3
Showing
4 changed files
with
75 additions
and
1 deletion.
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
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,16 @@ | ||
@props([ | ||
'fluid' => false, | ||
]) | ||
|
||
<div {{ $attributes | ||
->cssClass([ | ||
'layer' => 'container', | ||
'width' => 'w-full max-w-4xl xl:max-w-5xl', | ||
]) | ||
->classMerge([ | ||
'layer', | ||
'width' => ! $fluid, | ||
]); | ||
}}> | ||
{{ $slot }} | ||
</div> |
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,18 @@ | ||
@props([ | ||
'vertical' => false, | ||
]) | ||
|
||
<div {{ $attributes | ||
->cssClass([ | ||
'layer' => 'flex items-center', | ||
'horizontal' => 'flex-row flex-wrap sm:flex-nowrap', | ||
'vertical' => 'flex-col', | ||
]) | ||
->classMerge([ | ||
'layer', | ||
'horizontal' => ! $vertical, | ||
'vertical' => $vertical, | ||
]) | ||
}}> | ||
{{ $slot }} | ||
</div> |
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,32 @@ | ||
@props([ | ||
'start' => null, | ||
'end' => null, | ||
]) | ||
|
||
<nav {{ $attributes | ||
->cssClass([ | ||
'base' => 'flex flex-nowrap items-stretch justify-between leading-none', | ||
'start' => 'inline-flex w-2/4 items-center justify-start', | ||
'center' => 'inline-flex shrink-0 items-center', | ||
'end' => 'inline-flex w-2/4 items-center justify-end', | ||
]) | ||
->classMerge(['base', 'padding']) | ||
}}> | ||
@if ($start) | ||
<div {{ $attributes->classFor('start') }}> | ||
{{ $start }} | ||
</div> | ||
@endif | ||
|
||
@if ($slot->hasActualContent()) | ||
<div class="{{ $attributes->classFor('center') }}"> | ||
{{ $slot }} | ||
</div> | ||
@endif | ||
|
||
@if ($end) | ||
<div class="{{ $attributes->classFor('end') }}"> | ||
{{ $end }} | ||
</div> | ||
@endif | ||
</nav> |