Theme Seebad: first version of design direction A

- New child theme "seebad": Newsreader + Atkinson Hyperlegible Next (self-hosted), larger base size,
  tokens chalk white / ink blue / brick / evening blue
- Picture world "Ostsee" as inline SVG slots (partials/motif): villa mark, wave bands, shell, gulls, vignettes
- Own layout, header (mobile menu as dark panel with call button), footer, banner, mobile booking bar
- Sections: hero with arch photo and search box, facts, text_image, location, host, cta in cartouche
- Wishes to the application recorded in ZUSAMMENARBEIT.md §5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 5.5 committed 2026-10-23 08:22:23 +02:00
1 parent e276cd0548
commit a9ad4dbf0b
29 files changed
+817 -66

No files matched your search

@@ -0,0 +1,12 @@
@php($bannerText = $theme->text('banner.text', \App\Models\Notice::query()->visible()->latest()->value('text')))
@if ($bannerText)
<div class="bg-banner text-banner-ink [--brand-navy:var(--banner-ink)]" role="status">
<div class="mx-auto flex max-w-7xl flex-wrap items-center justify-center gap-x-5 gap-y-1 px-4 py-2.5 text-center text-base sm:px-8">
@include('theme::partials.motif', ['slot' => 'gulls', 'class' => 'hidden h-5 w-auto opacity-80 sm:block'])
<span>{{ $bannerText }}</span>
@if ($theme->text('banner.link_label'))
<a href="{{ $theme->text('banner.link_url', route('booking.create')) }}" class="font-semibold underline underline-offset-4">{{ $theme->text('banner.link_label') }}</a>
@endif
</div>
</div>
@endif
@@ -0,0 +1,27 @@
@php($phone = (string) config('fewo.owner.phone'))
<div class="mt-20 overflow-hidden" aria-hidden="true">
@include('theme::partials.motif', ['slot' => 'closing', 'class' => 'motif-drift -ml-[50%] block h-auto w-[200%] max-w-none sm:mx-auto sm:w-full sm:max-w-6xl'])
</div>
<footer class="border-t border-line">
<div class="mx-auto flex max-w-7xl flex-wrap items-start justify-between gap-x-16 gap-y-8 px-4 py-14 sm:px-8">
<div class="flex items-center gap-4">
@include('theme::partials.motif', ['slot' => 'mark', 'class' => 'h-14 w-auto shrink-0'])
<div>
<p class="font-display text-2xl">{{ $theme->site->name }}</p>
@if ($theme->property()?->address)<p class="text-muted">{{ $theme->property()->address }}</p>@endif
</div>
</div>
<div>
<p>{{ config('fewo.owner.name') }}</p>
@if ($phone)<a href="tel:{{ preg_replace('/[^0-9+]/', '', $phone) }}" class="block hover:text-accent">{{ $phone }}</a>@endif
<a href="mailto:{{ config('fewo.owner.email') }}" class="block hover:text-accent">{{ config('fewo.owner.email') }}</a>
</div>
<nav aria-label="Rechtliches">
<ul class="flex flex-wrap gap-6">
@foreach ($theme->menu('footer') as $item)
<li><a href="{{ $item->url() }}" class="underline-offset-4 hover:underline">{{ $item->label() }}</a></li>
@endforeach
</ul>
</nav>
</div>
</footer>
@@ -0,0 +1,51 @@
@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" 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] xl:whitespace-nowrap">{{ $theme->site->name }}</span>
</a>
<nav aria-label="Hauptnavigation" class="hidden lg: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 lg: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>
@@ -0,0 +1,12 @@
@unless (request()->routeIs('booking.create'))
@php($phone = (string) config('fewo.owner.phone'))
<div class="fixed inset-x-0 bottom-0 z-30 flex gap-3 border-t border-line bg-surface/95 p-3 backdrop-blur sm:hidden">
<a href="{{ route('booking.create') }}" class="btn-accent flex-1">Verfügbarkeit prüfen</a>
@if ($phone)
<a href="tel:{{ preg_replace('/[^0-9+]/', '', $phone) }}" class="flex size-12 shrink-0 items-center justify-center rounded-md border-2 border-ink" aria-label="Anrufen: {{ $phone }}">
<x-heroicon-o-phone class="size-6" aria-hidden="true" />
</a>
@endif
</div>
<div class="h-20 sm:hidden" aria-hidden="true"></div>
@endunless
@@ -0,0 +1,30 @@
{{--
Inline graphic of the theme's picture world ("Bildwelt", docs/DESIGN-KONZEPT.md §7, MANDANTEN-ANFORDERUNGEN A18/A19).
Templates ask for a slot, never for a file, so a later picture-world system can replace the mapping below.
Variables: $slot (mark, divider, closing, crest, gulls, vignette.beach|pier|train|bike|forest), $class (optional),
$label (optional; without it the graphic is decorative).
--}}
@php
$motifFiles = [
'mark' => 'villa',
'divider' => 'band-sonne',
'closing' => 'band-seebruecke',
'crest' => 'muschel',
'gulls' => 'moewen',
'vignette.beach' => 'vignette-strand',
'vignette.pier' => 'vignette-seebruecke',
'vignette.train' => 'vignette-molli',
'vignette.bike' => 'vignette-rad',
'vignette.forest' => 'vignette-wald',
];
static $motifSvgs = [];
$motifFile = $motifFiles[$slot] ?? null;
$motifPath = $motifFile ? resource_path("themes/seebad/motifs/{$motifFile}.svg") : null;
$motifSvgs[$slot] ??= $motifPath && is_file($motifPath) ? file_get_contents($motifPath) : '';
$motifUid = 'm'.\Illuminate\Support\Str::lower(\Illuminate\Support\Str::random(6));
$motifSvg = preg_replace(['/\s(role|aria-label|aria-hidden)="[^"]*"/', '/<title>.*?<\/title>/s'], '', $motifSvgs[$slot]);
$motifSvg = preg_replace(['/id="([^"]+)"/', '/url\(#([^)]+)\)/'], ['id="$1-'.$motifUid.'"', 'url(#$1-'.$motifUid.')'], $motifSvg);
$motifAttributes = 'class="'.e($class ?? '').'" '.(isset($label) ? 'role="img" aria-label="'.e($label).'"' : 'aria-hidden="true" focusable="false"');
$motifSvg = preg_replace('/<svg\s/', '<svg '.$motifAttributes.' ', $motifSvg, 1);
@endphp
{!! $motifSvg !!}