Theme-System mit Basis-Theme Ostsee-Licht, Bausteinen und saisonalen Erscheinungsbildern
- Sites (Domain, Theme, Farben; mehrfähig für weitere Vermieter), Seiten aus Bausteinen mit Menüs, Erscheinungsbilder mit jährlichem Zeitplan, Priorität und signierter Vorschau - Theme-Kern (app/Themes): Manifest, Registry, Vererbung (Child-Themes), Token-Farben als CSS-Variablen, Bausteinkatalog als Registry (config/themes.php) - 15 Bausteine: Titelbereich mit Suche, Eckdaten, Text mit Bildern, Galerie, Ausstattung, Lage, Preise, Angebote, Kalender & Anfrage, Bewertungen, Gastgeber, FAQ, Abschluss, Kontakt, Fließtext - Theme Ostsee-Licht: Layout, Kopf/Fuß, Banner, mobile Buchungsleiste, Lightbox, selbst gehostete Schriften, Reduced Motion - Seiten Start, Wohnung, Kühlungsborn, Preise & Buchung, Kontakt, Impressum, Datenschutz; Sitemap, robots.txt, JSON-LD - Admin: Seiten-Baukasten, Erscheinungsbilder, Websites - Dokumentation docs/THEMES.md inkl. Übergabe für die Design-Sitzung Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f2c48013ad
commit
66e82d61f5
119 files changed
+4066
-481
No files matched your search
@@ -0,0 +1,11 @@
|
||||
@php($bannerText = $theme->text('banner.text', \App\Models\Notice::query()->visible()->latest()->value('text')))
|
||||
@if ($bannerText)
|
||||
<div class="bg-banner text-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-[15px] font-medium sm:px-8">
|
||||
<span>{{ $bannerText }}</span>
|
||||
@if ($theme->text('banner.link_label'))
|
||||
<a href="{{ $theme->text('banner.link_url', route('booking.create')) }}" class="font-semibold underline">{{ $theme->text('banner.link_label') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@@ -0,0 +1,19 @@
|
||||
<footer class="mt-8 border-t border-line">
|
||||
<div class="mx-auto flex max-w-7xl flex-wrap justify-between gap-x-16 gap-y-6 px-4 py-14 text-sm text-muted sm:px-8">
|
||||
<div>
|
||||
<span class="font-display text-2xl text-ink">{{ $theme->site->name }}</span><br>
|
||||
{{ $theme->property()?->address }}
|
||||
</div>
|
||||
<div>
|
||||
{{ config('fewo.owner.name') }} · <a href="tel:{{ preg_replace('/[^0-9+]/', '', (string) config('fewo.owner.phone')) }}" class="hover:text-accent">{{ config('fewo.owner.phone') }}</a><br>
|
||||
<a href="mailto:{{ config('fewo.owner.email') }}" class="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="hover:text-accent">{{ $item->label() }}</a></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</footer>
|
||||
@@ -0,0 +1,29 @@
|
||||
<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 flex-col leading-tight">
|
||||
<span class="font-display text-[1.875rem] font-semibold tracking-wide">{{ str($theme->site->name)->afterLast(' ') }}</span>
|
||||
<span class="text-[11px] tracking-[0.24em] text-muted uppercase">Ferienwohnung · Kühlungsborn</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>
|
||||
@@ -0,0 +1,14 @@
|
||||
{{--
|
||||
Responsive photo. Variables: $photo (App\Models\Photo|null), $class, $sizes (default 100vw), $eager (bool).
|
||||
--}}
|
||||
@if ($photo && $photo->url('md'))
|
||||
<img src="{{ $photo->url('md') }}"
|
||||
srcset="{{ $photo->srcset() }}"
|
||||
sizes="{{ $sizes ?? '100vw' }}"
|
||||
alt="{{ $photo->alt_text }}"
|
||||
@if ($eager ?? false) fetchpriority="high" @else loading="lazy" @endif
|
||||
decoding="async"
|
||||
class="{{ $class ?? '' }}">
|
||||
@else
|
||||
<div class="{{ $class ?? '' }} flex items-center justify-center bg-line/60 text-sm text-muted" role="img" aria-label="Bild folgt">Bild folgt</div>
|
||||
@endif
|
||||
@@ -0,0 +1,6 @@
|
||||
@unless (request()->routeIs('booking.create'))
|
||||
<div class="fixed inset-x-0 bottom-0 z-30 border-t border-line bg-surface/95 p-3 backdrop-blur sm:hidden">
|
||||
<a href="{{ route('booking.create') }}" class="btn-accent w-full">Freie Termine & Preise</a>
|
||||
</div>
|
||||
<div class="h-20 sm:hidden" aria-hidden="true"></div>
|
||||
@endunless
|
||||
Reference in new issue
Block a user