Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: footer secondary menu and inline section header #371

Merged
merged 4 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion content/trees/navigation/footer_secondary.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
{ }
tree:
-
id: f6af3e76-06b6-4d6a-83e0-edd74ce50626
entry: 394b339a-d2d5-49d9-ab30-23134fa92adc
-
id: 40e19266-487b-4150-9077-e5073305c19e
entry: 59043f38-c8ef-44b7-8fb3-6cea456e60b1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
class="top-32 col-span-full self-start sm:sticky sm:col-span-6 sm:col-start-1 sm:row-span-2 sm:row-start-1">
@if ($headline)
<div class="grid-cols gap mb-20 grid">
<x-section-header class="col-span-full" :overline="$overline">
<x-section-header :$overline alignment="inline">
{{ $headline }}
</x-section-header>
</div>
Expand Down
9 changes: 0 additions & 9 deletions resources/views/components/layout/footer.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,6 @@ class="text-c2">{{ $child['title'] }}</a>
class="text-c2">{{ $item['title'] }}</a>
</li>
@endforeach
<li class="flex flex-col gap-12">
<a href="/">Kontakt</a>
</li>
<li class="flex flex-col gap-12">
<a href="/">Datenschutz</a>
</li>
<li class="flex flex-col gap-12">
<a href="/">Impressum</a>
</li>
</ul>
<ul class="text-c2 flex items-center gap-12">
@foreach (Statamic::tag('nav:footer_tertiary') as $item)
Expand Down
18 changes: 17 additions & 1 deletion resources/views/components/section-header.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</p>
@endif
</header>
@else
@elseif ($alignment === 'center')
<header {{ $attributes->merge(['class' => 'col-span-full grid grid-cols text-center']) }}>
@if ($overline)
<p class="text-h6 col-span-full sm:col-span-8 sm:col-start-3">
Expand All @@ -38,4 +38,20 @@ class="text-c1 col-span-full mt-12 md:col-span-10 md:col-start-2 lg:col-span-8 l
</p>
@endif
</header>
@else
<header {{ $attributes->merge(['class' => 'col-span-full grid grid-cols']) }}>
@if ($overline)
<p class="text-h6 col-span-full">
{{ $overline }}
</p>
@endif
<h2 class="text-h1 text-highlight col-span-full text-balance">
{!! nl2br(e($headline ?? $slot)) !!}
</h2>
@if ($intro_text)
<p class="text-c1 col-span-full mt-12">
{!! nl2br(e($intro_text)) !!}
</p>
@endif
</header>
@endif
Loading