From 6930d3ab0f91c8b0a7e0f73ad425802318aac21e Mon Sep 17 00:00:00 2001 From: Lars Date: Fri, 23 Oct 2026 10:01:58 +0200 Subject: [PATCH] Theme Seebad 0.3.0: own gallery, offers, reviews, FAQ, contact, booking and rich text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - All 15 sections now in Seebad style: offers and contact framed with terrace-brace brackets, reviews with large average and serif quotes, FAQ with large toggles, gallery with captions on focus - Booking page offers the phone number ("Lieber persönlich?") Co-Authored-By: Claude Opus 5.5 --- resources/themes/seebad/README.md | 11 ++- resources/themes/seebad/theme.json | 2 +- .../seebad/views/sections/booking.blade.php | 18 +++++ .../seebad/views/sections/contact.blade.php | 27 +++++++ .../seebad/views/sections/faq.blade.php | 24 ++++++ .../seebad/views/sections/gallery.blade.php | 22 ++++++ .../seebad/views/sections/offers.blade.php | 76 +++++++++++++++++++ .../seebad/views/sections/reviews.blade.php | 34 +++++++++ .../seebad/views/sections/rich_text.blade.php | 8 ++ 9 files changed, 219 insertions(+), 3 deletions(-) create mode 100644 resources/themes/seebad/views/sections/booking.blade.php create mode 100644 resources/themes/seebad/views/sections/contact.blade.php create mode 100644 resources/themes/seebad/views/sections/faq.blade.php create mode 100644 resources/themes/seebad/views/sections/gallery.blade.php create mode 100644 resources/themes/seebad/views/sections/offers.blade.php create mode 100644 resources/themes/seebad/views/sections/reviews.blade.php create mode 100644 resources/themes/seebad/views/sections/rich_text.blade.php diff --git a/resources/themes/seebad/README.md b/resources/themes/seebad/README.md index 536e505..8921934 100644 --- a/resources/themes/seebad/README.md +++ b/resources/themes/seebad/README.md @@ -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. diff --git a/resources/themes/seebad/theme.json b/resources/themes/seebad/theme.json index 44d474f..ba2606d 100644 --- a/resources/themes/seebad/theme.json +++ b/resources/themes/seebad/theme.json @@ -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": { diff --git a/resources/themes/seebad/views/sections/booking.blade.php b/resources/themes/seebad/views/sections/booking.blade.php new file mode 100644 index 0000000..b9bf584 --- /dev/null +++ b/resources/themes/seebad/views/sections/booking.blade.php @@ -0,0 +1,18 @@ +
+ @if ($heading)

{{ $heading }}

@endif + @if ($text)

{{ $text }}

@endif + @php($phone = (string) config('fewo.owner.phone')) + @if ($phone) +

+ Lieber persönlich? + +

+ @endif +
+ @if ($property) + + @else +

Derzeit ist keine Wohnung buchbar.

+ @endif +
+
diff --git a/resources/themes/seebad/views/sections/contact.blade.php b/resources/themes/seebad/views/sections/contact.blade.php new file mode 100644 index 0000000..dc8ae58 --- /dev/null +++ b/resources/themes/seebad/views/sections/contact.blade.php @@ -0,0 +1,27 @@ +
+

{{ $heading }}

+ @if ($text)

{{ $text }}

@endif +
+
+ + +

Gastgeberin

+

{{ $owner['name'] }}

+

{{ $owner['street'] }}
{{ $owner['city'] }}

+

+ + +

+
+ @if ($address) +
+ + +

Ferienwohnung

+

{{ $theme->site->name }}

+

{{ $address }}

+ Freie Termine und Preise +
+ @endif +
+
diff --git a/resources/themes/seebad/views/sections/faq.blade.php b/resources/themes/seebad/views/sections/faq.blade.php new file mode 100644 index 0000000..0090580 --- /dev/null +++ b/resources/themes/seebad/views/sections/faq.blade.php @@ -0,0 +1,24 @@ +@if ($faqs->isNotEmpty()) +
+

{{ $heading }}

+
+ @foreach ($faqs as $faq) +
+ + {{ $faq->question }} + + +
{{ $answers[$faq->id] }}
+
+ @endforeach +
+
+ + @push('head') + + @endpush +@endif diff --git a/resources/themes/seebad/views/sections/gallery.blade.php b/resources/themes/seebad/views/sections/gallery.blade.php new file mode 100644 index 0000000..4292fde --- /dev/null +++ b/resources/themes/seebad/views/sections/gallery.blade.php @@ -0,0 +1,22 @@ +@if ($photos->isNotEmpty()) +
+
+ @if ($heading)

{{ $heading }}

@endif +

{{ $photos->count() }} {{ $photos->count() === 1 ? 'Foto' : 'Fotos' }}, zum Vergrößern antippen

+
+ +
+@endif diff --git a/resources/themes/seebad/views/sections/offers.blade.php b/resources/themes/seebad/views/sections/offers.blade.php new file mode 100644 index 0000000..311dc7b --- /dev/null +++ b/resources/themes/seebad/views/sections/offers.blade.php @@ -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) +
+
+

{{ $heading }}

+ @if ($rotating) +
+ + +
+ @endif +
+ +
    $layout === 'grid', + 'grid gap-8' => $layout === 'list', + 'relative' => $rotating, + ]) @if ($rotating) data-rotator-track aria-live="polite" @endif> + @foreach ($offers as $advertised) +
  • $wide, + ]) @if ($rotating) data-rotator-slide @if (! $loop->first) hidden @endif aria-label="Angebot {{ $loop->iteration }} von {{ $offers->count() }}" @endif> + + +
    +

    {{ $advertised->advantage }}

    +

    {{ $advertised->title }}

    + @if ($advertised->arrival) +

    + {{ $advertised->arrival->locale('de')->isoFormat('dd, DD.MM.') }} bis {{ $advertised->departure->locale('de')->isoFormat('dd, DD.MM.YYYY') }} + ({{ $advertised->nights() }} {{ $advertised->nights() === 1 ? 'Nacht' : 'Nächte' }}) +

    + @endif + @if ($advertised->description)

    {{ $advertised->description }}

    @endif + @if ($advertised->conditions) +
      + @foreach ($advertised->conditions as $condition) +
    • + @endforeach +
    + @endif +
    +
    $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) +

    + {{ \App\Support\Money::format($advertised->quote->total()) }} + @if ($advertised->regularTotal() > $advertised->quote->total()) + statt {{ \App\Support\Money::format($advertised->regularTotal()) }} + @endif +

    +

    für {{ $advertised->quote->guests }} {{ $advertised->quote->guests === 1 ? 'Person' : 'Personen' }}, inkl. Endreinigung

    + @endif + + {{ $advertised->arrival ? 'Diesen Termin anfragen' : 'Preis berechnen' }} + +
    +
  • + @endforeach +
+ + @if ($rotating) +
+ @foreach ($offers as $advertised) + + @endforeach +
+ @endif +

Angebote werden bei der Preisberechnung automatisch berücksichtigt – Sie erhalten immer das für Sie günstigste.

+
+@endif diff --git a/resources/themes/seebad/views/sections/reviews.blade.php b/resources/themes/seebad/views/sections/reviews.blade.php new file mode 100644 index 0000000..746e3c7 --- /dev/null +++ b/resources/themes/seebad/views/sections/reviews.blade.php @@ -0,0 +1,34 @@ +@if ($reviews->isNotEmpty()) +
+
+

{{ $heading }}

+

+ {{ number_format($average, 1, ',', '') }} + von 5
{{ $count }} {{ $count === 1 ? 'Bewertung' : 'Bewertungen' }}
+

+
+ @if ($categories->isNotEmpty()) +
+ @foreach ($categories as $category) +
{{ $category['label'] }}
{{ number_format($category['average'], 1, ',', '') }}
+ @endforeach +
+ @endif +
    + @foreach ($reviews as $review) +
  • +
    +

    {{ str_repeat('★', $review->rating) }}{{ str_repeat('★', 5 - $review->rating) }}

    + @if ($review->title)

    {{ $review->title }}

    @endif + @if ($review->body)
    „{{ $review->body }}“
    @endif +
    {{ $review->display_name }}@if ($review->stayed_on), {{ $review->stayed_on->translatedFormat('F Y') }}@endif
    + @if ($review->response) +

    Antwort der Gastgeberin: {{ $review->response }}

    + @endif +
    +
  • + @endforeach +
+

Bewertungen über unsere Webseite können nur Gäste mit einer Buchung bei uns abgeben. Übernommene Bewertungen anderer Portale sind mit ihrer Quelle gekennzeichnet.

+
+@endif diff --git a/resources/themes/seebad/views/sections/rich_text.blade.php b/resources/themes/seebad/views/sections/rich_text.blade.php new file mode 100644 index 0000000..c3292e6 --- /dev/null +++ b/resources/themes/seebad/views/sections/rich_text.blade.php @@ -0,0 +1,8 @@ +
+ @if ($heading)

{{ $heading }}

@endif + @if ($text) +
{{ $text }}
+ @else +

Dieser Text wird gerade überarbeitet.

+ @endif +