diff --git a/docs/ZUSAMMENARBEIT.md b/docs/ZUSAMMENARBEIT.md index 91c9878..1dcb9da 100644 --- a/docs/ZUSAMMENARBEIT.md +++ b/docs/ZUSAMMENARBEIT.md @@ -56,7 +56,12 @@ ## 5. Wünsche der Design-Session an die Anwendung | Datum | Wunsch | Status | |---|---|---| -| | | | +| 23.10.2026 | **Theme-Optionen** in `theme.json › options` (Auswahl/Schalter, z. B. Titelbild Bogen/Rechteck, Bewegung an/aus), im Admin unter Websites und je Erscheinungsbild überschreibbar (DESIGN-KONZEPT §7 Nr. 1) | offen | +| 23.10.2026 | **Darstellungsvarianten je Baustein** (`theme.json › variants`), Feld „Darstellung“ im Seiten-Baukasten (DESIGN-KONZEPT §7 Nr. 2) | offen | +| 23.10.2026 | **Baustein „Tipps der Gastgeberin“**: Orte mit Kategorie (Strand, Seebrücke, Bahn, Rad, Wald …), Weg/Gehzeit, Text, Foto, Karten-Link; saisonal filterbar. Seebad zeigt je Kategorie eine Vignette der Bildwelt (DESIGN-KONZEPT §7 Nr. 4) | offen | +| 23.10.2026 | **Baustein „Gut zu wissen“**: strukturierte Angaben (Zugang/Stufen, Dusche, Rollstuhl, Haustiere, An-/Abreisezeiten, Parken) an der Wohnung; Seebad stellt ihn in der Kartusche dar (DESIGN-KONZEPT §7 Nr. 5) | offen | +| 23.10.2026 | **Bildwelt-System** (MANDANTEN-ANFORDERUNGEN A18–A20): Seebad nutzt schon Plätze über `partials/motif` (`mark`, `divider`, `closing`, `crest`, `gulls`, `vignette.*`) | offen | +| 23.10.2026 | Hilfetext „*Wort* wird hervorgehoben“ im Titelbereich ist theme-abhängig (Seebad hebt nicht hervor) – Hinweis neutral formulieren | offen | ## 6. Änderungsprotokoll Vorlagen-Vertrag diff --git a/package-lock.json b/package-lock.json index a4a137a..31083f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,9 +1,13 @@ { - "name": "fewo-stommer", + "name": "fewo-stommer.de", "lockfileVersion": 3, "requires": true, "packages": { "": { + "dependencies": { + "@fontsource/atkinson-hyperlegible-next": "^5.3.0", + "@fontsource/newsreader": "^5.3.0" + }, "devDependencies": { "@fontsource/cormorant-garamond": "^5.3.0", "@fontsource/figtree": "^5.3.0", @@ -44,6 +48,15 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/@fontsource/atkinson-hyperlegible-next": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@fontsource/atkinson-hyperlegible-next/-/atkinson-hyperlegible-next-5.3.0.tgz", + "integrity": "sha512-8p1tHVoPDo6oYwSO3sMw5snGwFwSf3TmeSF9Gcj792GXdsg6oqvhoItbj6Hj/XZIk0Xs+Cwu6pkLBAl3Q5HrwA==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, "node_modules/@fontsource/cormorant-garamond": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/@fontsource/cormorant-garamond/-/cormorant-garamond-5.3.0.tgz", @@ -64,6 +77,15 @@ "url": "https://github.com/sponsors/ayuhito" } }, + "node_modules/@fontsource/newsreader": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@fontsource/newsreader/-/newsreader-5.3.0.tgz", + "integrity": "sha512-AFR6ZKY89GNL+9qBI2P2+66NhD5bhOj/v6fsLnFYLM4E0JnMB1yKb+Ro8cA64i1hwAWoBfTq5CHJGWH1toLDkw==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.13", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", @@ -259,9 +281,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -279,9 +298,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -299,9 +315,6 @@ "ppc64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -319,9 +332,6 @@ "s390x" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -339,9 +349,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -359,9 +366,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -562,9 +566,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -582,9 +583,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -602,9 +600,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -622,9 +617,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1377,9 +1369,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -1401,9 +1390,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -1425,9 +1411,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -1449,9 +1432,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -1585,6 +1565,7 @@ "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -1621,16 +1602,6 @@ "node": "^10 || ^12 || >=14" } }, - "node_modules/react": { - "version": "19.3.1", - "resolved": "https://registry.npmjs.org/react/-/react-19.3.1.tgz", - "integrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==", - "license": "MIT", - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/react-reconciler": { "version": "0.33.0", "resolved": "https://registry.npmjs.org/react-reconciler/-/react-reconciler-0.33.0.tgz", @@ -1937,6 +1908,7 @@ "integrity": "sha512-z1YpjieJ9g0ebTmQpLBv/oq9E3F9EIlOe+7LahW8SrE3LTiG3udBRUXQOlYXP9b+IC2q2phHeVxj9xGlw34OEQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "lightningcss": "^1.33.0", "picomatch": "^4.0.7", @@ -2176,9 +2148,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -2200,9 +2169,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -2224,9 +2190,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -2248,9 +2211,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [ diff --git a/package.json b/package.json index 0a239af..011b373 100644 --- a/package.json +++ b/package.json @@ -17,5 +17,9 @@ }, "optionalDependencies": { "@laravel/multiplex": "^0.4.1" + }, + "dependencies": { + "@fontsource/atkinson-hyperlegible-next": "^5.3.0", + "@fontsource/newsreader": "^5.3.0" } } diff --git a/resources/themes/seebad/README.md b/resources/themes/seebad/README.md new file mode 100644 index 0000000..b5ddf5b --- /dev/null +++ b/resources/themes/seebad/README.md @@ -0,0 +1,43 @@ +# Theme „Seebad“ (`seebad`) + +Child-Theme von `ostsee-licht`, Richtung A aus [docs/DESIGN-KONZEPT.md](../../../docs/DESIGN-KONZEPT.md): ruhiges Magazin für Paare, große und gut lesbare Schrift, Titelbild mit Bogen, Bildwelt „Ostsee“. Vorlagen, die hier fehlen, kommen vom Eltern-Theme. + +- Anleitung und Vorlagen-Vertrag: `docs/THEME-ERSTELLUNG.md`, `docs/THEMES.md` §5 +- Prüfen: `php artisan themes:check seebad` +- Ansehen ohne Umschalten: `php artisan themes:preview seebad` oder Admin › System › Websites › Theme „Seebad“ › „Vorschau“ + +## Gestaltung + +| | | +|---|---| +| Schriften | Newsreader (Überschriften, Zitate), Atkinson Hyperlegible Next (Text, Bedienung) – selbst gehostet über `@fontsource` | +| Farben | Kreideweiß `#F7F8F6`, Tintenblau `#1F2B38`, Backstein `#9A3B2E`, Abendblau `#23384A` (Tokens in `theme.json`) | +| Grundgröße | 18 px, ab 1024 px 19 px; Schaltflächen und Felder mindestens 48 px hoch | +| Bogen | nur das Titelbild (`.arch`) – bewusst sparsam | +| Kartusche | Doppelrahmen mit Muschel (`.cartouche`) für den Abschluss-Aufruf | +| Bewegung | Wellenbänder treiben langsam (`.motif-drift`), Möwen gleiten (`.motif-glide`); aus bei „Bewegung reduzieren“ | +| Hervorhebung | `*Wort*` im Titel wird bewusst **nicht** kursiv gesetzt (ruhigere Überschrift) | + +## Bildwelt + +Grafiken liegen in `motifs/` (Quelle: `styles/satz3/svg/`) und werden nur über Plätze eingebunden: +`@include('theme::partials.motif', ['slot' => 'divider', 'class' => '…'])`. Plätze: `mark`, `divider`, `closing`, `crest`, `gulls`, `vignette.beach|pier|train|bike|forest`. Die Zuordnung Platz → Datei steht nur in `partials/motif.blade.php`, damit ein späteres Bildwelt-System (MANDANTEN-ANFORDERUNGEN A18/A19) sie ersetzen kann. Farben über `--brand-navy` (= Textfarbe), `--brand-paper` (= Flächen), `--brand-teal`, `--brand-wave`, `--brand-sun`, `--brand-reed`, `--brand-brick`. + +## Eigene Vorlagen + +| Datei | Zweck | +|---|---| +| `layouts/app` | Grundgerüst (größere Grundschrift, Lightbox mit großer Schließen-Fläche) | +| `partials/header` | Bildmarke Villa, Menü, Telefon (ab 1536 px), „Verfügbarkeit prüfen“; Handy-Menü als dunkle Tafel mit großen Links, Anruf-Taste und Seebrücken-Band | +| `partials/footer` | Seebrücken-Band, Bildmarke, Kontakt, Rechtliches | +| `partials/banner` | Hinweis-Banner mit Möwen | +| `partials/mobile-booking-bar` | „Verfügbarkeit prüfen“ und Anruf-Taste | +| `partials/motif` | Bildwelt-Grafiken inline nach Platz | +| `sections/hero` | Titelbild mit Bogen, Titel, Suche im Kasten, hervorgehobenes Angebot; darunter Wellenband mit Sonne | +| `sections/facts` | Eckdaten in großer Serifenschrift, ohne Symbole | +| `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 | + +Übrige Bausteine (Galerie, Ausstattung, Preise, Angebote, Buchung, Bewertungen, FAQ, Kontakt, Fließtext) kommen noch vom Eltern-Theme und übernehmen Schriften, Farben und Basis-Klassen. diff --git a/resources/themes/seebad/motifs/band-seebruecke.svg b/resources/themes/seebad/motifs/band-seebruecke.svg new file mode 100644 index 0000000..8877ba9 --- /dev/null +++ b/resources/themes/seebad/motifs/band-seebruecke.svg @@ -0,0 +1,20 @@ + diff --git a/resources/themes/seebad/motifs/band-sonne.svg b/resources/themes/seebad/motifs/band-sonne.svg new file mode 100644 index 0000000..0d404ba --- /dev/null +++ b/resources/themes/seebad/motifs/band-sonne.svg @@ -0,0 +1,21 @@ + diff --git a/resources/themes/seebad/motifs/moewen.svg b/resources/themes/seebad/motifs/moewen.svg new file mode 100644 index 0000000..36df78a --- /dev/null +++ b/resources/themes/seebad/motifs/moewen.svg @@ -0,0 +1,3 @@ + diff --git a/resources/themes/seebad/motifs/muschel.svg b/resources/themes/seebad/motifs/muschel.svg new file mode 100644 index 0000000..ad061a1 --- /dev/null +++ b/resources/themes/seebad/motifs/muschel.svg @@ -0,0 +1,6 @@ + diff --git a/resources/themes/seebad/motifs/vignette-molli.svg b/resources/themes/seebad/motifs/vignette-molli.svg new file mode 100644 index 0000000..620d432 --- /dev/null +++ b/resources/themes/seebad/motifs/vignette-molli.svg @@ -0,0 +1,27 @@ + + Bäderbahn Molli + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/themes/seebad/motifs/vignette-rad.svg b/resources/themes/seebad/motifs/vignette-rad.svg new file mode 100644 index 0000000..549122a --- /dev/null +++ b/resources/themes/seebad/motifs/vignette-rad.svg @@ -0,0 +1,21 @@ + + Mit dem Rad an der Küste + + + + + + + + + + + + + + + + + + + diff --git a/resources/themes/seebad/motifs/vignette-seebruecke.svg b/resources/themes/seebad/motifs/vignette-seebruecke.svg new file mode 100644 index 0000000..bb47307 --- /dev/null +++ b/resources/themes/seebad/motifs/vignette-seebruecke.svg @@ -0,0 +1,22 @@ + + Seebrücke + + + + + + + + + + + + + + + + + + + + diff --git a/resources/themes/seebad/motifs/vignette-strand.svg b/resources/themes/seebad/motifs/vignette-strand.svg new file mode 100644 index 0000000..bf25fca --- /dev/null +++ b/resources/themes/seebad/motifs/vignette-strand.svg @@ -0,0 +1,15 @@ + + Strand mit Sonne + + + + + + + + + + + + + diff --git a/resources/themes/seebad/motifs/vignette-wald.svg b/resources/themes/seebad/motifs/vignette-wald.svg new file mode 100644 index 0000000..5618f3c --- /dev/null +++ b/resources/themes/seebad/motifs/vignette-wald.svg @@ -0,0 +1,24 @@ + + Küstenwald + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/themes/seebad/motifs/villa.svg b/resources/themes/seebad/motifs/villa.svg new file mode 100644 index 0000000..01f7ee5 --- /dev/null +++ b/resources/themes/seebad/motifs/villa.svg @@ -0,0 +1,45 @@ + + Villa an der Ostsee + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/themes/seebad/theme.css b/resources/themes/seebad/theme.css new file mode 100644 index 0000000..72793d5 --- /dev/null +++ b/resources/themes/seebad/theme.css @@ -0,0 +1,125 @@ +/* + * Theme „Seebad“ – Child von „ostsee-licht“ (Anleitung: docs/THEME-ERSTELLUNG.md, Konzept: docs/DESIGN-KONZEPT.md, Richtung A). + * theme-base.css des Eltern-Themes bringt Token-Mapping, Formular-Grundstile und Basis-Klassen; hier stehen nur Abweichungen. + */ +@import 'tailwindcss'; +@import '../ostsee-licht/theme-base.css'; + +/* Selbst gehostete Schriften: Newsreader (Überschriften, Zitate), Atkinson Hyperlegible Next (Text, Bedienung). */ +@import '@fontsource/newsreader/400.css'; +@import '@fontsource/newsreader/400-italic.css'; +@import '@fontsource/newsreader/500.css'; +@import '@fontsource/atkinson-hyperlegible-next/400.css'; +@import '@fontsource/atkinson-hyperlegible-next/600.css'; + +/* Vorlagen, deren Klassen gebaut werden: geerbte, Buchungsformulare, eigene. */ +@source '../ostsee-licht/views'; +@source '../../views/livewire'; +@source './views'; + +@theme inline { + --font-display: 'Newsreader', Georgia, serif; + --font-sans: 'Atkinson Hyperlegible Next', ui-sans-serif, system-ui, sans-serif; +} + +/* + * Bildwelt „Ostsee“ (motifs/*.svg, inline über partials/motif): Navy folgt der Textfarbe, damit die Grafiken in + * dunklen Erscheinungsbildern sichtbar bleiben; die Fassade folgt den Flächen. + */ +:root { + --brand-navy: var(--ink); + --brand-paper: var(--surface); + --brand-reed: #c9a15e; + --brand-brick: #a63a2b; +} + +@layer base { + body { + font-size: 1.125rem; + line-height: 1.65; + } + + @media (min-width: 64rem) { + body { + font-size: 1.1875rem; + } + } + + input:not([type='checkbox']):not([type='radio']), + select, + textarea { + min-height: 3rem; + border-color: var(--muted); + border-radius: 0.375rem; + } +} + +@layer components { + /* Kleine Überschrift in normaler Schreibweise statt gesperrter Großbuchstaben (besser lesbar). */ + .eyebrow { + @apply mb-3 text-base font-semibold tracking-normal text-accent normal-case; + } + + .heading-display { + @apply font-display text-[2.375rem] leading-[1.1] font-normal tracking-[-0.01em] sm:text-5xl; + } + + .btn-primary { + @apply inline-flex min-h-12 items-center justify-center rounded-md bg-ink px-6 py-3 text-base font-semibold text-ground transition hover:opacity-90; + } + + .btn-accent { + @apply inline-flex min-h-12 items-center justify-center rounded-md bg-accent px-6 py-3 text-base font-semibold text-accent-ink transition hover:opacity-90; + } + + .btn-outline { + @apply inline-flex min-h-12 items-center justify-center rounded-md border-2 border-current px-6 py-3 text-base font-semibold transition hover:bg-ink/5; + } + + .prose-theme { + @apply max-w-[68ch]; + } + + /* Titelbild mit Bogen (Fensterbogen der Bäderarchitektur) – bewusst nur hier eingesetzt. */ + .arch { + border-radius: 50% 50% 0.25rem 0.25rem / 7.5rem 7.5rem 0.25rem 0.25rem; + } + + @media (min-width: 64rem) { + .arch { + border-radius: 50% 50% 0.25rem 0.25rem / 11rem 11rem 0.25rem 0.25rem; + } + } + + /* Kartusche: Doppelrahmen mit Muschel als Kopf. */ + .cartouche { + @apply relative border-2 border-ink bg-surface outline outline-1 -outline-offset-[10px] outline-[var(--brand-reed)]; + } +} + +/* Ruhige Bewegung der Bildwelt – nur ohne „Bewegung reduzieren“. */ +@media (prefers-reduced-motion: no-preference) { + .motif-drift { + animation: motif-drift 16s ease-in-out infinite alternate; + } + + .motif-glide { + animation: motif-glide 22s ease-in-out infinite; + } + + @keyframes motif-drift { + from { + transform: translateX(-1.5rem); + } + + to { + transform: translateX(1.5rem); + } + } + + @keyframes motif-glide { + 50% { + transform: translate(2.5rem, -0.6rem); + } + } +} diff --git a/resources/themes/seebad/theme.js b/resources/themes/seebad/theme.js new file mode 100644 index 0000000..fea52a3 --- /dev/null +++ b/resources/themes/seebad/theme.js @@ -0,0 +1,5 @@ +/** + * Theme „Seebad“: übernimmt Lightbox, Verfügbarkeitssuche und rollierende Angebote vom Eltern-Theme. + * Eigene Verbesserungen darunter – alles muss auch ohne JavaScript funktionieren. + */ +import '../ostsee-licht/theme.js'; diff --git a/resources/themes/seebad/theme.json b/resources/themes/seebad/theme.json new file mode 100644 index 0000000..e4ea04c --- /dev/null +++ b/resources/themes/seebad/theme.json @@ -0,0 +1,61 @@ +{ + "key": "seebad", + "name": "Seebad", + "version": "0.1.0", + "parent": "ostsee-licht", + "description": "Ruhiges Magazin für Paare: große, gut lesbare Schrift, Titelbild mit Bogen, Bildwelt Ostsee (Villa, Seebrücke, Molli)", + "assets": { + "css": "resources/themes/seebad/theme.css", + "js": "resources/themes/seebad/theme.js" + }, + "tokens": { + "ground": { + "label": "Hintergrund", + "default": "#F7F8F6" + }, + "surface": { + "label": "Flächen (Karten, Formulare)", + "default": "#FFFFFF" + }, + "ink": { + "label": "Text", + "default": "#1F2B38" + }, + "muted": { + "label": "Text, gedämpft", + "default": "#4F5B66" + }, + "line": { + "label": "Linien", + "default": "#D9DDDF" + }, + "accent": { + "label": "Akzent (Buttons, Hervorhebungen)", + "default": "#9A3B2E" + }, + "accent-ink": { + "label": "Text auf Akzent", + "default": "#FFFFFF" + }, + "band": { + "label": "Dunkles Band (Zitat, Menü auf dem Handy)", + "default": "#23384A" + }, + "band-ink": { + "label": "Text auf dunklem Band", + "default": "#F7F8F6" + }, + "band-muted": { + "label": "Text auf dunklem Band, gedämpft", + "default": "#BCC8D2" + }, + "banner": { + "label": "Hinweis-Banner", + "default": "#23384A" + }, + "banner-ink": { + "label": "Text im Banner", + "default": "#F7F8F6" + } + } +} diff --git a/resources/themes/seebad/views/layouts/app.blade.php b/resources/themes/seebad/views/layouts/app.blade.php new file mode 100644 index 0000000..aa0faa5 --- /dev/null +++ b/resources/themes/seebad/views/layouts/app.blade.php @@ -0,0 +1,60 @@ +@php + /** @var \App\Themes\Theme $theme */ + $theme = app(\App\Themes\Theme::class); + $pageTitle = isset($title) && $title ? $title.' · '.$theme->site->name : $theme->site->name; +@endphp + + + + + + {{ $pageTitle }} + @isset($description) + + + @endisset + + + + @isset($ogImage) + + @endisset + + + + @if ($theme->isPreview || ! app()->isProduction()) + + @endif + @vite($theme->assets()) + + @livewireStyles + @stack('head') + + + Zum Inhalt springen + + @if ($theme->isPreview) +
Vorschau · Theme „{{ $theme->manifest()->name }}“ · Erscheinungsbild „{{ $theme->appearance?->name ?? 'Standard' }}“
+ @endif + + @include('theme::partials.banner') + @include('theme::partials.header') + +
+ @yield('content') +
+ + @include('theme::partials.footer') + @include('theme::partials.mobile-booking-bar') + + +
+ +
+ +
+
+ + @livewireScripts + + diff --git a/resources/themes/seebad/views/partials/banner.blade.php b/resources/themes/seebad/views/partials/banner.blade.php new file mode 100644 index 0000000..0fef749 --- /dev/null +++ b/resources/themes/seebad/views/partials/banner.blade.php @@ -0,0 +1,12 @@ +@php($bannerText = $theme->text('banner.text', \App\Models\Notice::query()->visible()->latest()->value('text'))) +@if ($bannerText) +
+
+ @include('theme::partials.motif', ['slot' => 'gulls', 'class' => 'hidden h-5 w-auto opacity-80 sm:block']) + {{ $bannerText }} + @if ($theme->text('banner.link_label')) + {{ $theme->text('banner.link_label') }} + @endif +
+
+@endif diff --git a/resources/themes/seebad/views/partials/footer.blade.php b/resources/themes/seebad/views/partials/footer.blade.php new file mode 100644 index 0000000..f1ea96e --- /dev/null +++ b/resources/themes/seebad/views/partials/footer.blade.php @@ -0,0 +1,27 @@ +@php($phone = (string) config('fewo.owner.phone')) + + diff --git a/resources/themes/seebad/views/partials/header.blade.php b/resources/themes/seebad/views/partials/header.blade.php new file mode 100644 index 0000000..0d79949 --- /dev/null +++ b/resources/themes/seebad/views/partials/header.blade.php @@ -0,0 +1,51 @@ +@php($phone = (string) config('fewo.owner.phone')) +
+
+ + @include('theme::partials.motif', ['slot' => 'mark', 'class' => 'h-11 w-auto shrink-0 lg:h-14']) + {{ $theme->site->name }} + + + + +
+ @if ($phone) + + @endif + + +
+ + +
+ + + +
+
+
+
+
diff --git a/resources/themes/seebad/views/partials/mobile-booking-bar.blade.php b/resources/themes/seebad/views/partials/mobile-booking-bar.blade.php new file mode 100644 index 0000000..450162a --- /dev/null +++ b/resources/themes/seebad/views/partials/mobile-booking-bar.blade.php @@ -0,0 +1,12 @@ +@unless (request()->routeIs('booking.create')) + @php($phone = (string) config('fewo.owner.phone')) +
+ Verfügbarkeit prüfen + @if ($phone) + + + @endif +
+ +@endunless diff --git a/resources/themes/seebad/views/partials/motif.blade.php b/resources/themes/seebad/views/partials/motif.blade.php new file mode 100644 index 0000000..110c28f --- /dev/null +++ b/resources/themes/seebad/views/partials/motif.blade.php @@ -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>/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 !!} diff --git a/resources/themes/seebad/views/sections/cta.blade.php b/resources/themes/seebad/views/sections/cta.blade.php new file mode 100644 index 0000000..777d95d --- /dev/null +++ b/resources/themes/seebad/views/sections/cta.blade.php @@ -0,0 +1,15 @@ +<section class="mx-auto flex max-w-7xl flex-wrap items-center gap-x-14 gap-y-12 px-4 py-16 sm:px-8 sm:py-24" aria-labelledby="{{ $sectionId }}-title"> + @if ($photo) + <div class="min-w-0 flex-[1_1_24rem]"> + @include('theme::partials.image', ['photo' => $photo, 'sizes' => '(min-width: 1024px) 45vw, 100vw', 'class' => 'h-72 w-full rounded object-cover sm:h-[26rem]']) + </div> + @endif + <div @class(['cartouche min-w-0 flex-[1_1_24rem] px-6 pt-14 pb-10 text-center sm:px-12', 'mx-auto max-w-3xl' => ! $photo])> + <span class="absolute -top-6 left-1/2 -translate-x-1/2 bg-ground px-2" aria-hidden="true"> + @include('theme::partials.motif', ['slot' => 'crest', 'class' => 'h-12 w-auto']) + </span> + <h2 id="{{ $sectionId }}-title" class="font-display text-[2rem] leading-tight sm:text-[2.5rem]">{{ $title }}</h2> + @if ($text)<p class="mx-auto mt-4 max-w-[40ch] text-muted">{{ $text }}</p>@endif + <a href="{{ $buttonUrl }}" class="btn-accent mt-8">{{ $buttonLabel }}</a> + </div> +</section> diff --git a/resources/themes/seebad/views/sections/facts.blade.php b/resources/themes/seebad/views/sections/facts.blade.php new file mode 100644 index 0000000..fade4c2 --- /dev/null +++ b/resources/themes/seebad/views/sections/facts.blade.php @@ -0,0 +1,17 @@ +<section class="mx-auto max-w-7xl px-4 pt-10 pb-8 sm:px-8 sm:pt-12" @if ($heading) aria-labelledby="{{ $sectionId }}-title" @else aria-label="Eckdaten" @endif> + @if ($heading)<h2 id="{{ $sectionId }}-title" class="heading-display mb-8">{{ $heading }}</h2>@endif + <dl class="grid grid-cols-2 gap-x-6 gap-y-8 lg:grid-cols-4"> + @if ($property?->size_sqm) + <div class="flex flex-col-reverse"><dt class="text-muted">Wohnfläche</dt><dd class="font-display text-[2rem] leading-tight sm:text-[2.5rem]">{{ $property->size_sqm }} m²</dd></div> + @endif + @if ($property) + <div class="flex flex-col-reverse"><dt class="text-muted">Gäste</dt><dd class="font-display text-[2rem] leading-tight sm:text-[2.5rem]">1 bis {{ $property->max_guests }}</dd></div> + @endif + @if ($fromPrice) + <div class="flex flex-col-reverse"><dt class="text-muted">pro Nacht</dt><dd class="font-display text-[2rem] leading-tight sm:text-[2.5rem]">ab {{ \App\Support\Money::format((int) $fromPrice) }}</dd></div> + @endif + @if ($highlights->isNotEmpty()) + <div class="col-span-2 flex flex-col-reverse lg:col-span-1"><dt class="text-muted">{{ $highlights->skip(1)->take(2)->implode(', ') }}</dt><dd class="font-display text-[1.625rem] leading-tight sm:text-[2rem]">{{ $highlights->first() }}</dd></div> + @endif + </dl> +</section> diff --git a/resources/themes/seebad/views/sections/hero.blade.php b/resources/themes/seebad/views/sections/hero.blade.php new file mode 100644 index 0000000..932e4b8 --- /dev/null +++ b/resources/themes/seebad/views/sections/hero.blade.php @@ -0,0 +1,47 @@ +<section class="mx-auto flex max-w-7xl flex-wrap items-stretch gap-x-12 gap-y-7 px-4 pt-2 pb-6 sm:px-8" aria-labelledby="{{ $sectionId }}-title"> + <div class="min-w-0 flex-[999_1_34rem]"> + @include('theme::partials.image', ['photo' => $photo, 'sizes' => '(min-width: 1024px) 60vw, 100vw', 'class' => 'arch h-[21rem] w-full object-cover sm:h-[30rem] lg:h-[38rem]', 'eager' => true]) + </div> + + <div class="flex min-w-0 flex-[1_1_24rem] flex-col justify-center gap-6"> + @if ($eyebrow)<p class="eyebrow mb-0">{{ $eyebrow }}</p>@endif + <h1 id="{{ $sectionId }}-title" class="font-display text-[2.5rem] leading-[1.06] font-normal tracking-[-0.01em] sm:text-[3.25rem] lg:text-[3.75rem]">{{ str_replace('*', '', $title) }}</h1> + @if ($text)<p class="max-w-[36ch] text-lg text-muted sm:text-xl">{{ $text }}</p>@endif + + @if ($featuredOffer ?? null) + <a href="{{ $featuredOffer->bookingUrl() }}" class="flex items-center gap-4 rounded-md border border-accent bg-surface p-4 hover:bg-accent/5"> + <span class="rounded bg-accent px-2.5 py-1 font-semibold whitespace-nowrap text-accent-ink">{{ $featuredOffer->advantage }}</span> + <span> + <strong class="block">{{ $featuredOffer->title }}</strong> + @if ($featuredOffer->arrival) + <span class="text-muted">{{ $featuredOffer->arrival->format('d.m.') }} bis {{ $featuredOffer->departure->format('d.m.') }}</span> + @endif + </span> + </a> + @endif + + @if ($showSearch) + <form action="{{ route('booking.create') }}" method="get" data-availability-search aria-label="Verfügbarkeit prüfen" + class="grid grid-cols-2 items-end gap-3.5 rounded-md border border-line bg-surface p-4 sm:p-6"> + <label class="flex min-w-0 flex-col gap-1.5 text-base font-semibold">Anreise + <input type="date" name="anreise" min="{{ today()->toDateString() }}" class="w-full min-w-0 font-normal" required> + </label> + <label class="flex min-w-0 flex-col gap-1.5 text-base font-semibold">Abreise + <input type="date" name="abreise" min="{{ today()->addDay()->toDateString() }}" class="w-full min-w-0 font-normal" required> + </label> + <label class="col-span-2 flex min-w-0 flex-col gap-1.5 text-base font-semibold sm:col-span-1">Personen + <select name="personen" class="w-full font-normal"> + @for ($count = 1; $count <= ($property?->max_guests ?? 3); $count++) + <option value="{{ $count }}" @selected($count === 2)>{{ $count }} {{ $count === 1 ? 'Person' : 'Personen' }}</option> + @endfor + </select> + </label> + <button type="submit" class="btn-accent col-span-2 w-full sm:col-span-1">Preis anzeigen</button> + </form> + @endif + </div> +</section> + +<div class="overflow-hidden" aria-hidden="true"> + @include('theme::partials.motif', ['slot' => 'divider', 'class' => 'motif-drift -ml-[40%] block h-auto w-[180%] max-w-none sm:mx-auto sm:w-full sm:max-w-7xl']) +</div> diff --git a/resources/themes/seebad/views/sections/host.blade.php b/resources/themes/seebad/views/sections/host.blade.php new file mode 100644 index 0000000..c213fbc --- /dev/null +++ b/resources/themes/seebad/views/sections/host.blade.php @@ -0,0 +1,16 @@ +<section class="relative overflow-hidden bg-band text-band-ink [--brand-navy:var(--band-ink)]" aria-labelledby="{{ $sectionId }}-title"> + @include('theme::partials.motif', ['slot' => 'gulls', 'class' => 'motif-glide absolute top-10 right-[8%] h-10 w-auto opacity-50 sm:h-12']) + <div class="mx-auto flex max-w-6xl flex-wrap items-center gap-12 px-5 py-16 sm:px-8 sm:py-24"> + @if ($photo) + <div class="w-full max-w-xs flex-[0_1_18rem]"> + @include('theme::partials.image', ['photo' => $photo, 'sizes' => '18rem', 'class' => 'aspect-[4/5] w-full rounded object-cover']) + </div> + @endif + <figure class="min-w-0 flex-[1_1_28rem]"> + @if ($heading)<p class="mb-4 font-semibold text-band-muted" id="{{ $sectionId }}-title">{{ $heading }}</p>@endif + @if ($quote)<blockquote class="font-display text-[1.75rem] leading-[1.3] italic sm:text-[2.5rem]">„{{ $quote }}“</blockquote>@endif + <figcaption class="mt-6 text-band-muted">{{ $name }}</figcaption> + @if ($text)<div class="mt-4 max-w-[60ch] text-band-muted [&_a]:underline [&_p]:mb-3">{{ $text }}</div>@endif + </figure> + </div> +</section> diff --git a/resources/themes/seebad/views/sections/location.blade.php b/resources/themes/seebad/views/sections/location.blade.php new file mode 100644 index 0000000..a1c619c --- /dev/null +++ b/resources/themes/seebad/views/sections/location.blade.php @@ -0,0 +1,32 @@ +<section class="border-y border-line bg-surface" aria-labelledby="{{ $sectionId }}-title"> + <div class="mx-auto max-w-7xl px-4 py-16 sm:px-8 sm:py-24"> + <div class="flex flex-wrap items-end justify-between gap-x-16 gap-y-6"> + <div class="min-w-0 flex-[1_1_26rem]"> + @if ($eyebrow)<p class="eyebrow">{{ $eyebrow }}</p>@endif + <h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2> + </div> + <div class="min-w-0 flex-[1_1_24rem]"> + @if ($text)<div class="prose-theme [&_p]:mb-3">{{ $text }}</div>@endif + @if ($address) + <p class="mt-3 flex items-start gap-3"> + <x-heroicon-o-map-pin class="mt-1 size-6 shrink-0 text-accent" aria-hidden="true" /> + <span>{{ $address }}<br> + <a href="{{ $mapUrl }}" class="font-semibold underline underline-offset-4 hover:text-accent" rel="noopener" target="_blank">Auf der Karte ansehen</a></span> + </p> + @endif + </div> + </div> + @if ($photos->isNotEmpty()) + <ul class="mt-12 grid grid-cols-1 gap-x-8 gap-y-10 sm:grid-cols-3"> + @foreach ($photos->take(3) as $photo) + <li class="reveal"> + <figure> + @include('theme::partials.image', ['photo' => $photo, 'sizes' => '(min-width: 640px) 30vw, 100vw', 'class' => 'h-60 w-full rounded object-cover sm:h-72']) + <figcaption class="mt-3 font-display text-[1.5rem] leading-snug">{{ $photo->caption ?: $photo->alt_text }}</figcaption> + </figure> + </li> + @endforeach + </ul> + @endif + </div> +</section> diff --git a/resources/themes/seebad/views/sections/text_image.blade.php b/resources/themes/seebad/views/sections/text_image.blade.php new file mode 100644 index 0000000..ad38d84 --- /dev/null +++ b/resources/themes/seebad/views/sections/text_image.blade.php @@ -0,0 +1,25 @@ +<section class="mx-auto flex max-w-7xl flex-wrap items-center gap-x-16 gap-y-10 px-4 py-16 sm:px-8 sm:py-24" aria-labelledby="{{ $sectionId }}-title"> + <div @class(['min-w-0 flex-[1_1_24rem]', 'order-2' => $imagePosition === 'left'])> + @if ($eyebrow)<p class="eyebrow">{{ $eyebrow }}</p>@endif + <h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2> + @if ($text)<div class="prose-theme mt-6">{{ $text }}</div>@endif + @if ($linkLabel && $linkUrl) + <a href="{{ $linkUrl }}" class="mt-2 inline-block border-b-2 border-accent pb-0.5 font-semibold hover:text-accent">{{ $linkLabel }}</a> + @endif + </div> + @if ($photos->isNotEmpty()) + <div @class(['reveal grid min-w-0 flex-[1_1_30rem] grid-cols-5 gap-4', 'order-1' => $imagePosition === 'left'])> + @foreach ($photos as $index => $photo) + @include('theme::partials.image', [ + 'photo' => $photo, + 'sizes' => $index === 0 ? '(min-width: 1024px) 40vw, 100vw' : '(min-width: 1024px) 20vw, 50vw', + 'class' => match (true) { + $photos->count() === 1 => 'col-span-5 h-80 w-full rounded object-cover sm:h-[30rem]', + $index === 0 => 'col-span-3 row-span-2 h-80 w-full rounded object-cover sm:h-[30rem]', + default => 'col-span-2 h-[9.6rem] w-full rounded object-cover sm:h-[14.5rem]', + }, + ]) + @endforeach + </div> + @endif +</section>