- Header: full menu from 1280 px, menu button below; site name never shrinks into the menu - Hero: photo and text side by side from 1024 px - Own amenities (serif area headings, check marks) and prices (extras as list, larger table, mobile layout) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
52 lines
3.6 KiB
PHP
52 lines
3.6 KiB
PHP
@php($phone = (string) config('fewo.owner.phone'))
|
||
<header class="relative z-20">
|
||
<div class="mx-auto flex max-w-7xl items-center justify-between gap-6 px-4 py-4 sm:px-8 lg:py-5">
|
||
<a href="{{ route('home') }}" class="flex min-w-0 items-center gap-3 sm:shrink-0" aria-label="{{ $theme->site->name }} – Startseite">
|
||
@include('theme::partials.motif', ['slot' => 'mark', 'class' => 'h-11 w-auto shrink-0 lg:h-14'])
|
||
<span class="font-display text-[1.375rem] leading-tight font-medium sm:text-[1.75rem] sm:whitespace-nowrap">{{ $theme->site->name }}</span>
|
||
</a>
|
||
|
||
<nav aria-label="Hauptnavigation" class="hidden xl:block">
|
||
<ul class="flex gap-6 text-lg whitespace-nowrap xl:gap-7">
|
||
@foreach ($theme->menu('main') as $item)
|
||
<li><a href="{{ $item->url() }}" @class(['underline-offset-8 hover:underline', 'underline decoration-accent decoration-2' => 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-2 sm:gap-4">
|
||
@if ($phone)
|
||
<a href="tel:{{ preg_replace('/[^0-9+]/', '', $phone) }}" class="hidden items-center gap-2 font-semibold whitespace-nowrap hover:text-accent 2xl:flex">
|
||
<x-heroicon-o-phone class="size-5" aria-hidden="true" />{{ $phone }}
|
||
</a>
|
||
@endif
|
||
<a href="{{ route('booking.create') }}" class="btn-accent hidden whitespace-nowrap sm:inline-flex">Verfügbarkeit prüfen</a>
|
||
|
||
<details class="group xl:hidden">
|
||
<summary class="flex size-12 cursor-pointer list-none items-center justify-center rounded-md border border-line bg-surface [&::-webkit-details-marker]:hidden" aria-label="Menü">
|
||
<x-heroicon-o-bars-3 class="size-6 group-open:hidden" aria-hidden="true" />
|
||
<x-heroicon-o-x-mark class="hidden size-6 group-open:block" aria-hidden="true" />
|
||
</summary>
|
||
<div class="absolute inset-x-0 top-full overflow-hidden bg-band text-band-ink shadow-lg [--brand-navy:var(--band-ink)]">
|
||
<ul class="px-5 pt-2">
|
||
@foreach ($theme->menu('main') as $item)
|
||
<li class="border-b border-band-muted/30 last:border-0"><a href="{{ $item->url() }}" class="block py-3.5 font-display text-[1.75rem]">{{ $item->label() }}</a></li>
|
||
@endforeach
|
||
</ul>
|
||
<div class="flex flex-col gap-3 px-5 py-4">
|
||
<a href="{{ route('booking.create') }}" class="inline-flex min-h-12 items-center justify-center rounded-md bg-band-ink px-6 font-semibold text-band">Verfügbarkeit prüfen</a>
|
||
@if ($phone)
|
||
<a href="tel:{{ preg_replace('/[^0-9+]/', '', $phone) }}" class="inline-flex min-h-12 items-center justify-center gap-2 rounded-md border-2 border-band-ink px-6 font-semibold">
|
||
<x-heroicon-o-phone class="size-5" aria-hidden="true" />Anrufen: {{ $phone }}
|
||
</a>
|
||
@endif
|
||
</div>
|
||
<div class="bg-ground pt-1" aria-hidden="true">
|
||
@include('theme::partials.motif', ['slot' => 'closing', 'class' => 'motif-drift -ml-[45%] block h-auto w-[150%] max-w-none'])
|
||
</div>
|
||
</div>
|
||
</details>
|
||
</div>
|
||
</div>
|
||
</header>
|