32 lines
1.8 KiB
PHP
32 lines
1.8 KiB
PHP
<header class="relative z-20">
|
||
<div class="mx-auto flex max-w-7xl items-center justify-between gap-6 px-4 py-5 sm:px-8">
|
||
<a href="{{ route('home') }}" class="flex items-center gap-3 leading-tight" aria-label="{{ $theme->site->name }} – Startseite">
|
||
@include('theme::partials.brand', ['name' => 'mark', 'class' => 'h-11 w-auto shrink-0 sm:h-12'])
|
||
<span class="flex flex-col">
|
||
<span class="font-display text-[1.875rem] font-semibold tracking-wide">{{ $theme->site->name }}</span>
|
||
</span>
|
||
</a>
|
||
|
||
<nav aria-label="Hauptnavigation" class="hidden lg:block">
|
||
<ul class="flex gap-8 text-[15px] font-medium">
|
||
@foreach ($theme->menu('main') as $item)
|
||
<li><a href="{{ $item->url() }}" @class(['hover:text-accent', 'text-accent' => url()->current() === $item->url()]) @if (url()->current() === $item->url()) aria-current="page" @endif>{{ $item->label() }}</a></li>
|
||
@endforeach
|
||
</ul>
|
||
</nav>
|
||
|
||
<div class="flex items-center gap-3">
|
||
<a href="{{ route('booking.create') }}" class="btn-primary hidden sm:inline-flex">Verfügbarkeit prüfen</a>
|
||
|
||
<details class="relative lg:hidden">
|
||
<summary class="flex min-h-11 cursor-pointer list-none items-center rounded-full border border-line px-4 font-medium" aria-label="Menü">Menü</summary>
|
||
<ul class="absolute right-0 mt-2 w-56 rounded-lg border border-line bg-surface p-2 shadow-lg">
|
||
@foreach ($theme->menu('main') as $item)
|
||
<li><a href="{{ $item->url() }}" class="block rounded px-3 py-2.5 hover:bg-accent/10">{{ $item->label() }}</a></li>
|
||
@endforeach
|
||
</ul>
|
||
</details>
|
||
</div>
|
||
</div>
|
||
</header>
|