Merge branch 'theme/seebad' (Seebad 0.3.0: all sections)
Deploy / test (push) Failing after 2s
Deploy / deploy (push) Skipped

This commit is contained in:
Lars committed 2026-10-23 10:02:11 +02:00
commit 3621f7e924
9 files changed
+219 -3

No files matched your search

+9 -2
View File
@@ -41,10 +41,17 @@ ## Eigene Vorlagen
| `sections/text_image` | Magazin-Raster (großes Bild + zwei kleine) |
| `sections/location` | Lage auf weißer Fläche, Fotos mit Bildunterschrift in Serifenschrift |
| `sections/host` | Zitat der Gastgeberin auf dunklem Band, gleitende Möwen; Porträt optional |
| `sections/cta` | Abschluss in der Kartusche mit Muschel, Foto optional daneben |
| `sections/cta` | Abschluss in der Kartusche mit Rundbogengaube und Kopfbändern, Foto optional daneben |
| `sections/amenities` | Ausstattung mit Bereichs-Überschriften in Serifenschrift und Häkchen |
| `sections/prices` | Nebenkosten als Liste, Saisontabelle mit großer Schrift; auf dem Handy Zeitraum unter der Saison |
| `sections/gallery` | Raster mit großem Titelfoto, Bildbeschreibung beim Antippen/Fokus, Lightbox |
| `sections/offers` | Angebote als Rahmen mit Kopfband-Konsolen; Vorteil, Termin, Bedingungen mit Häkchen, Preis groß; alle drei Darstellungen |
| `sections/reviews` | Durchschnitt groß, Kategorien, Zitate in Serifen-Kursiv; Echtheitshinweis (§ 5b UWG) in normaler Textgröße |
| `sections/faq` | Fragen in Serifenschrift, große Plus-Schaltfläche |
| `sections/contact` | zwei Kartuschen mit Kopfbändern |
| `sections/booking` | zusätzlich „Lieber persönlich?“ mit Telefonnummer |
| `sections/rich_text` | Fließtext mit Zwischenüberschriften (Impressum, Datenschutz) |
Menü: ausgeschrieben ab 1280 px, darunter Menü-Taste (sonst überdeckt der Name das Menü).
Übrige Bausteine (Galerie, Angebote, Buchung, Bewertungen, FAQ, Kontakt, Fließtext) kommen noch vom Eltern-Theme und übernehmen Schriften, Farben und Basis-Klassen.
Damit hat Seebad alle 15 Bausteine selbst. Vom Eltern-Theme kommen nur noch `page` und `partials/image`; die Buchungs- und Bewertungsformulare sind für alle Themes gemeinsam.
+1 -1
View File
@@ -1,7 +1,7 @@
{
"key": "seebad",
"name": "Seebad",
"version": "0.2.0",
"version": "0.3.0",
"parent": "ostsee-licht",
"description": "Ruhiges Magazin für Paare: Logo und Bäderstil-Details des Hauses (Rundbogengaube, Balkongeländer, Kopfbänder), große gut lesbare Schrift",
"assets": {
@@ -0,0 +1,18 @@
<section class="mx-auto max-w-7xl px-4 py-12 sm:px-8 sm:py-16" aria-labelledby="{{ $sectionId }}-title">
@if ($heading)<h1 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h1>@endif
@if ($text)<p class="mt-4 max-w-[62ch] text-muted">{{ $text }}</p>@endif
@php($phone = (string) config('fewo.owner.phone'))
@if ($phone)
<p class="mt-4 flex flex-wrap items-center gap-x-3 gap-y-1">
<span class="text-muted">Lieber persönlich?</span>
<a href="tel:{{ preg_replace('/[^0-9+]/', '', $phone) }}" class="inline-flex items-center gap-2 font-semibold underline underline-offset-4 hover:text-accent"><x-heroicon-o-phone class="size-5" aria-hidden="true" />{{ $phone }}</a>
</p>
@endif
<div class="mt-10">
@if ($property)
<livewire:booking-request :property="$property" />
@else
<p class="text-muted">Derzeit ist keine Wohnung buchbar.</p>
@endif
</div>
</section>
@@ -0,0 +1,27 @@
<section class="mx-auto max-w-5xl px-4 py-16 sm:px-8 sm:py-20" aria-labelledby="{{ $sectionId }}-title">
<h1 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h1>
@if ($text)<p class="mt-4 max-w-[60ch] text-muted">{{ $text }}</p>@endif
<div class="mt-14 grid gap-12 sm:grid-cols-2 sm:gap-8">
<div class="cartouche px-7 pt-12 pb-8">
<span class="absolute -top-0.5 -left-0.5" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-10'])</span>
<span class="absolute -top-0.5 -right-0.5 -scale-x-100" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-10'])</span>
<h2 class="eyebrow">Gastgeberin</h2>
<p class="font-display text-[1.75rem] leading-tight">{{ $owner['name'] }}</p>
<p class="mt-1 text-muted">{{ $owner['street'] }}<br>{{ $owner['city'] }}</p>
<p class="mt-6 space-y-2">
<a href="tel:{{ preg_replace('/[^0-9+]/', '', (string) $owner['phone']) }}" class="flex items-center gap-3 font-semibold hover:text-accent"><x-heroicon-o-phone class="size-5 text-accent" aria-hidden="true" />{{ $owner['phone'] }}</a>
<a href="mailto:{{ $owner['email'] }}" class="flex items-center gap-3 font-semibold hover:text-accent"><x-heroicon-o-envelope class="size-5 text-accent" aria-hidden="true" />{{ $owner['email'] }}</a>
</p>
</div>
@if ($address)
<div class="cartouche px-7 pt-12 pb-8">
<span class="absolute -top-0.5 -left-0.5" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-10'])</span>
<span class="absolute -top-0.5 -right-0.5 -scale-x-100" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-10'])</span>
<h2 class="eyebrow">Ferienwohnung</h2>
<p class="font-display text-[1.75rem] leading-tight">{{ $theme->site->name }}</p>
<p class="mt-1 text-muted">{{ $address }}</p>
<a href="{{ route('booking.create') }}" class="btn-accent mt-6">Freie Termine und Preise</a>
</div>
@endif
</div>
</section>
@@ -0,0 +1,24 @@
@if ($faqs->isNotEmpty())
<section class="mx-auto max-w-4xl px-4 py-16 sm:px-8 sm:py-20" aria-labelledby="{{ $sectionId }}-title">
<h2 id="{{ $sectionId }}-title" class="heading-display mb-8">{{ $heading }}</h2>
<div class="divide-y divide-line border-y-2 border-ink">
@foreach ($faqs as $faq)
<details class="group">
<summary class="flex min-h-16 cursor-pointer list-none items-center justify-between gap-6 py-4 font-display text-[1.375rem] leading-snug [&::-webkit-details-marker]:hidden">
{{ $faq->question }}
<span aria-hidden="true" class="flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-accent text-accent transition group-open:rotate-45"><x-heroicon-o-plus class="size-5" /></span>
</summary>
<div class="prose-theme pb-6">{{ $answers[$faq->id] }}</div>
</details>
@endforeach
</div>
</section>
@push('head')
<script type="application/ld+json">{!! json_encode([
'@context' => 'https://schema.org',
'@type' => 'FAQPage',
'mainEntity' => $faqs->map(fn ($faq) => ['@type' => 'Question', 'name' => $faq->question, 'acceptedAnswer' => ['@type' => 'Answer', 'text' => strip_tags($faq->answer)]])->values(),
], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_HEX_TAG) !!}</script>
@endpush
@endif
@@ -0,0 +1,22 @@
@if ($photos->isNotEmpty())
<section class="mx-auto max-w-7xl px-4 py-16 sm:px-8 sm:py-20" @if ($heading) aria-labelledby="{{ $sectionId }}-title" @else aria-label="Bildergalerie" @endif>
<div class="mb-8 flex flex-wrap items-end justify-between gap-x-8 gap-y-2">
@if ($heading)<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>@endif
<p class="text-muted">{{ $photos->count() }} {{ $photos->count() === 1 ? 'Foto' : 'Fotos' }}, zum Vergrößern antippen</p>
</div>
<ul class="grid auto-rows-[9.5rem] grid-cols-2 gap-3 sm:auto-rows-[12rem] sm:gap-4 lg:grid-cols-4">
@foreach ($photos as $index => $photo)
<li @class(['reveal', 'col-span-2 row-span-2' => $index === 0, 'lg:row-span-2' => $index === 5])>
<a href="{{ $photo->url('lg') }}" data-lightbox data-alt="{{ $photo->alt_text }}" class="group relative block h-full overflow-hidden rounded">
@include('theme::partials.image', [
'photo' => $photo,
'sizes' => $index === 0 ? '(min-width: 1024px) 50vw, 100vw' : '(min-width: 1024px) 25vw, 50vw',
'class' => 'h-full w-full object-cover transition duration-500 group-hover:scale-[1.03]',
])
<span class="pointer-events-none absolute inset-x-0 bottom-0 bg-black/55 px-3 py-2 text-[0.9375rem] leading-snug text-white opacity-0 transition group-hover:opacity-100 group-focus-visible:opacity-100">{{ $photo->alt_text }}</span>
</a>
</li>
@endforeach
</ul>
</section>
@endif
@@ -0,0 +1,76 @@
{{-- Contract: $heading, $display (grid|list|rotating), $offers (Collection of App\Pricing\AdvertisedOffer) --}}
@if ($offers->isNotEmpty())
@php($layout = $display === 'rotating' && $offers->count() === 1 ? 'grid' : $display)
@php($rotating = $layout === 'rotating')
@php($wide = $layout === 'list' || $rotating)
<section class="mx-auto max-w-7xl px-4 py-16 sm:px-8 sm:py-20" aria-labelledby="{{ $sectionId }}-title"
@if ($rotating) data-rotator aria-roledescription="Karussell" @endif>
<div class="mb-10 flex items-end justify-between gap-4">
<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>
@if ($rotating)
<div class="flex gap-2">
<button type="button" data-rotator-prev class="flex size-12 items-center justify-center rounded-md border-2 border-ink hover:bg-ink/5" aria-label="Vorheriges Angebot"><x-heroicon-o-chevron-left class="size-5" aria-hidden="true" /></button>
<button type="button" data-rotator-next class="flex size-12 items-center justify-center rounded-md border-2 border-ink hover:bg-ink/5" aria-label="Nächstes Angebot"><x-heroicon-o-chevron-right class="size-5" aria-hidden="true" /></button>
</div>
@endif
</div>
<ul @class([
'grid gap-8 sm:grid-cols-2 lg:grid-cols-3' => $layout === 'grid',
'grid gap-8' => $layout === 'list',
'relative' => $rotating,
]) @if ($rotating) data-rotator-track aria-live="polite" @endif>
@foreach ($offers as $advertised)
<li data-offer="{{ $advertised->key() }}" @class([
'reveal relative flex flex-col border-2 border-ink bg-surface px-6 pt-9 pb-7 sm:px-8',
'sm:flex-row sm:items-center sm:gap-10' => $wide,
]) @if ($rotating) data-rotator-slide @if (! $loop->first) hidden @endif aria-label="Angebot {{ $loop->iteration }} von {{ $offers->count() }}" @endif>
<span class="absolute -top-0.5 -left-0.5" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-9'])</span>
<span class="absolute -top-0.5 -right-0.5 -scale-x-100" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-9'])</span>
<div class="flex-1">
<p class="inline-block bg-accent px-3 py-1 font-semibold text-accent-ink">{{ $advertised->advantage }}</p>
<p class="mt-4 font-display text-[1.875rem] leading-tight">{{ $advertised->title }}</p>
@if ($advertised->arrival)
<p class="mt-2 font-semibold">
{{ $advertised->arrival->locale('de')->isoFormat('dd, DD.MM.') }} bis {{ $advertised->departure->locale('de')->isoFormat('dd, DD.MM.YYYY') }}
<span class="font-normal text-muted">({{ $advertised->nights() }} {{ $advertised->nights() === 1 ? 'Nacht' : 'Nächte' }})</span>
</p>
@endif
@if ($advertised->description)<p class="mt-3 text-muted">{{ $advertised->description }}</p>@endif
@if ($advertised->conditions)
<ul class="mt-4 space-y-1 text-muted">
@foreach ($advertised->conditions as $condition)
<li class="flex gap-2"><x-heroicon-o-check class="mt-1 size-5 shrink-0 text-accent" aria-hidden="true" />{{ $condition }}</li>
@endforeach
</ul>
@endif
</div>
<div @class(['mt-6', 'border-t border-line pt-5' => $advertised->quote, 'sm:mt-0 sm:min-w-56 sm:border-t-0 sm:pt-0 sm:text-right' => $wide, 'sm:border-l sm:pl-10' => $wide && $advertised->quote])>
@if ($advertised->quote)
<p>
<span class="font-display text-[2rem] leading-none">{{ \App\Support\Money::format($advertised->quote->total()) }}</span>
@if ($advertised->regularTotal() > $advertised->quote->total())
<span class="block text-muted">statt <s>{{ \App\Support\Money::format($advertised->regularTotal()) }}</s></span>
@endif
</p>
<p class="text-muted">für {{ $advertised->quote->guests }} {{ $advertised->quote->guests === 1 ? 'Person' : 'Personen' }}, inkl. Endreinigung</p>
@endif
<a href="{{ $advertised->bookingUrl() }}" class="btn-accent mt-4">
{{ $advertised->arrival ? 'Diesen Termin anfragen' : 'Preis berechnen' }}
</a>
</div>
</li>
@endforeach
</ul>
@if ($rotating)
<div class="mt-6 flex justify-center gap-1" role="tablist" aria-label="Angebote">
@foreach ($offers as $advertised)
<button type="button" data-rotator-dot="{{ $loop->index }}" role="tab" aria-label="Angebot {{ $loop->iteration }}"
aria-selected="{{ $loop->first ? 'true' : 'false' }}" class="group flex size-11 items-center justify-center"><span class="size-3 rounded-full bg-line group-aria-selected:bg-accent"></span></button>
@endforeach
</div>
@endif
<p class="mt-6 text-muted">Angebote werden bei der Preisberechnung automatisch berücksichtigt – Sie erhalten immer das für Sie günstigste.</p>
</section>
@endif
@@ -0,0 +1,34 @@
@if ($reviews->isNotEmpty())
<section class="mx-auto max-w-7xl px-4 py-16 sm:px-8 sm:py-20" aria-labelledby="{{ $sectionId }}-title">
<div class="flex flex-wrap items-end justify-between gap-x-10 gap-y-6">
<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>
<p class="flex items-center gap-4">
<span class="font-display text-[3.5rem] leading-none">{{ number_format($average, 1, ',', '') }}</span>
<span class="text-muted">von 5<br>{{ $count }} {{ $count === 1 ? 'Bewertung' : 'Bewertungen' }}</span>
</p>
</div>
@if ($categories->isNotEmpty())
<dl class="mt-8 grid grid-cols-2 gap-x-8 gap-y-3 border-y border-line py-5 sm:grid-cols-3 lg:grid-cols-6">
@foreach ($categories as $category)
<div class="flex flex-col-reverse"><dt class="text-muted">{{ $category['label'] }}</dt><dd class="font-display text-[1.75rem] leading-tight">{{ number_format($category['average'], 1, ',', '') }}</dd></div>
@endforeach
</dl>
@endif
<ul class="mt-10 grid gap-x-10 gap-y-12 sm:grid-cols-2 lg:grid-cols-3">
@foreach ($reviews as $review)
<li class="reveal">
<figure class="h-full border-t-2 border-ink pt-6">
<p class="text-xl tracking-widest text-accent" aria-label="{{ $review->rating }} von 5 Sternen">{{ str_repeat('★', $review->rating) }}<span class="text-line">{{ str_repeat('★', 5 - $review->rating) }}</span></p>
@if ($review->title)<p class="mt-3 font-semibold">{{ $review->title }}</p>@endif
@if ($review->body)<blockquote class="mt-3 font-display text-[1.375rem] leading-snug italic">„{{ $review->body }}“</blockquote>@endif
<figcaption class="mt-5 font-semibold">{{ $review->display_name }}@if ($review->stayed_on)<span class="font-normal text-muted">, {{ $review->stayed_on->translatedFormat('F Y') }}</span>@endif</figcaption>
@if ($review->response)
<p class="mt-4 border-l-2 border-accent pl-4 text-muted"><span class="font-semibold text-ink">Antwort der Gastgeberin:</span> {{ $review->response }}</p>
@endif
</figure>
</li>
@endforeach
</ul>
<p class="mt-10 text-muted">Bewertungen über unsere Webseite können nur Gäste mit einer Buchung bei uns abgeben. Übernommene Bewertungen anderer Portale sind mit ihrer Quelle gekennzeichnet.</p>
</section>
@endif
@@ -0,0 +1,8 @@
<section class="mx-auto max-w-3xl px-4 py-16 sm:px-8 sm:py-20" @if ($heading) aria-labelledby="{{ $sectionId }}-title" @endif>
@if ($heading)<h1 id="{{ $sectionId }}-title" class="heading-display mb-10">{{ $heading }}</h1>@endif
@if ($text)
<div class="prose-theme [&_h2]:mt-10 [&_h2]:text-[1.75rem] [&_h3]:mt-8 [&_li]:mb-1">{{ $text }}</div>
@else
<p class="text-muted">Dieser Text wird gerade überarbeitet.</p>
@endif
</section>