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,146 @@
|
||||
@import 'tailwindcss';
|
||||
|
||||
/* Self-hosted fonts (no request to Google – GDPR). */
|
||||
@import '@fontsource/cormorant-garamond/500.css';
|
||||
@import '@fontsource/cormorant-garamond/500-italic.css';
|
||||
@import '@fontsource/cormorant-garamond/600.css';
|
||||
@import '@fontsource/figtree/400.css';
|
||||
@import '@fontsource/figtree/500.css';
|
||||
@import '@fontsource/figtree/600.css';
|
||||
|
||||
@source './views';
|
||||
@source '../../views/livewire';
|
||||
|
||||
/*
|
||||
* Colour tokens come from theme.json and can be changed per site and per appearance; the layout prints them
|
||||
* as CSS variables. Tailwind classes such as bg-accent or text-muted refer to these variables.
|
||||
*/
|
||||
@theme inline {
|
||||
--color-ground: var(--ground);
|
||||
--color-surface: var(--surface);
|
||||
--color-ink: var(--ink);
|
||||
--color-muted: var(--muted);
|
||||
--color-line: var(--line);
|
||||
--color-accent: var(--accent);
|
||||
--color-accent-ink: var(--accent-ink);
|
||||
--color-band: var(--band);
|
||||
--color-band-ink: var(--band-ink);
|
||||
--color-band-muted: var(--band-muted);
|
||||
--color-banner: var(--banner);
|
||||
--color-banner-ink: var(--banner-ink);
|
||||
|
||||
--font-display: 'Cormorant Garamond', Georgia, serif;
|
||||
--font-sans: 'Figtree', ui-sans-serif, system-ui, sans-serif;
|
||||
}
|
||||
|
||||
@layer base {
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body {
|
||||
background: var(--ground);
|
||||
color: var(--ink);
|
||||
transition: background-color 0.4s, color 0.4s;
|
||||
}
|
||||
|
||||
input:not([type='checkbox']):not([type='radio']),
|
||||
select,
|
||||
textarea {
|
||||
border-width: 1px;
|
||||
border-color: var(--line);
|
||||
padding: 0.6rem 0.8rem;
|
||||
background-color: var(--surface);
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
input[type='checkbox'] {
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
accent-color: var(--accent);
|
||||
}
|
||||
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
@layer components {
|
||||
.eyebrow {
|
||||
@apply mb-3 text-xs font-semibold tracking-[0.24em] text-accent uppercase;
|
||||
}
|
||||
|
||||
.heading-display {
|
||||
@apply font-display text-4xl leading-[1.08] font-medium sm:text-[2.875rem];
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
@apply inline-flex min-h-11 items-center justify-center rounded-full bg-ink px-6 py-3 text-[15px] font-semibold text-ground transition hover:opacity-90;
|
||||
}
|
||||
|
||||
.btn-accent {
|
||||
@apply inline-flex min-h-11 items-center justify-center rounded-full bg-accent px-6 py-3 text-[15px] font-semibold text-accent-ink transition hover:opacity-90;
|
||||
}
|
||||
|
||||
.prose-theme {
|
||||
@apply text-muted;
|
||||
}
|
||||
|
||||
.prose-theme p {
|
||||
@apply mb-4;
|
||||
}
|
||||
|
||||
.prose-theme ul,
|
||||
.prose-theme ol {
|
||||
@apply mb-4 ml-5 list-outside;
|
||||
}
|
||||
|
||||
.prose-theme ul {
|
||||
@apply list-disc;
|
||||
}
|
||||
|
||||
.prose-theme ol {
|
||||
@apply list-decimal;
|
||||
}
|
||||
|
||||
.prose-theme a {
|
||||
@apply text-accent underline;
|
||||
}
|
||||
|
||||
.prose-theme h2,
|
||||
.prose-theme h3 {
|
||||
@apply mt-6 mb-2 font-display text-2xl text-ink;
|
||||
}
|
||||
}
|
||||
|
||||
/* Gentle reveal while scrolling – only where supported and only without "reduce motion". */
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
@supports (animation-timeline: view()) {
|
||||
.reveal {
|
||||
animation: reveal linear both;
|
||||
animation-timeline: view();
|
||||
animation-range: entry 0% entry 35%;
|
||||
}
|
||||
|
||||
@keyframes reveal {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(24px);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html {
|
||||
scroll-behavior: auto;
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
transition-duration: 0.01ms !important;
|
||||
animation-duration: 0.01ms !important;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
* Theme "Ostsee-Licht": small progressive enhancements. Everything works without JavaScript.
|
||||
*/
|
||||
|
||||
// Lightbox for galleries: links with data-lightbox open the large image in a <dialog>.
|
||||
document.addEventListener('click', (event) => {
|
||||
const link = event.target.closest('a[data-lightbox]');
|
||||
if (!link) {
|
||||
return;
|
||||
}
|
||||
|
||||
const dialog = document.getElementById('lightbox');
|
||||
if (!dialog || typeof dialog.showModal !== 'function') {
|
||||
return;
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
const image = dialog.querySelector('img');
|
||||
image.src = link.href;
|
||||
image.alt = link.dataset.alt ?? '';
|
||||
dialog.querySelector('[data-caption]').textContent = link.dataset.alt ?? '';
|
||||
dialog.showModal();
|
||||
});
|
||||
|
||||
document.addEventListener('click', (event) => {
|
||||
const dialog = event.target.closest('dialog#lightbox');
|
||||
if (dialog && (event.target === dialog || event.target.closest('[data-close]'))) {
|
||||
dialog.close();
|
||||
}
|
||||
});
|
||||
|
||||
// Availability search in the hero: forwards the dates to the booking page.
|
||||
document.addEventListener('submit', (event) => {
|
||||
const form = event.target.closest('form[data-availability-search]');
|
||||
if (!form) {
|
||||
return;
|
||||
}
|
||||
|
||||
const arrival = form.querySelector('[name=anreise]').value;
|
||||
const departure = form.querySelector('[name=abreise]').value;
|
||||
if (!arrival || !departure) {
|
||||
event.preventDefault();
|
||||
form.querySelector('[name=anreise]').focus();
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"key": "ostsee-licht",
|
||||
"name": "Ostsee-Licht",
|
||||
"version": "0.1.0",
|
||||
"parent": null,
|
||||
"description": "Basis-Theme: hell und elegant, Serifen-Überschriften, große Fotos – angelehnt an die bisherige Webseite. Enthält Vorlagen für alle Bausteine.",
|
||||
"assets": {
|
||||
"css": "resources/themes/ostsee-licht/theme.css",
|
||||
"js": "resources/themes/ostsee-licht/theme.js"
|
||||
},
|
||||
"tokens": {
|
||||
"ground": { "label": "Hintergrund", "default": "#F6F2EA" },
|
||||
"surface": { "label": "Flächen (Karten, Formulare)", "default": "#FFFFFF" },
|
||||
"ink": { "label": "Text", "default": "#1D2A33" },
|
||||
"muted": { "label": "Text, gedämpft", "default": "#4E5C66" },
|
||||
"line": { "label": "Linien", "default": "#E2DACB" },
|
||||
"accent": { "label": "Akzent (Buttons, Hervorhebungen)", "default": "#2C5F7C" },
|
||||
"accent-ink": { "label": "Text auf Akzent", "default": "#FFFFFF" },
|
||||
"band": { "label": "Dunkles Band (z. B. Lage)", "default": "#1D2A33" },
|
||||
"band-ink": { "label": "Text auf dunklem Band", "default": "#F6F2EA" },
|
||||
"band-muted": { "label": "Text auf dunklem Band, gedämpft", "default": "#C9D2D8" },
|
||||
"banner": { "label": "Hinweis-Banner", "default": "#2C5F7C" },
|
||||
"banner-ink": { "label": "Text im Banner", "default": "#FFFFFF" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
@php
|
||||
/** @var \App\Themes\Theme $theme */
|
||||
$theme = app(\App\Themes\Theme::class);
|
||||
$pageTitle = isset($title) && $title ? $title.' · '.$theme->site->name : $theme->site->name;
|
||||
@endphp
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ $theme->site->locale ?? 'de' }}" data-appearance="{{ $theme->appearanceKey() }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ $pageTitle }}</title>
|
||||
@isset($description)
|
||||
<meta name="description" content="{{ $description }}">
|
||||
<meta property="og:description" content="{{ $description }}">
|
||||
@endisset
|
||||
<meta property="og:title" content="{{ $pageTitle }}">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="{{ url()->current() }}">
|
||||
@isset($ogImage)
|
||||
<meta property="og:image" content="{{ $ogImage }}">
|
||||
@endisset
|
||||
<link rel="canonical" href="{{ url()->current() }}">
|
||||
@if ($theme->isPreview)
|
||||
<meta name="robots" content="noindex">
|
||||
@endif
|
||||
@vite($theme->assets())
|
||||
<style>{!! $theme->cssVariables() !!}</style>
|
||||
@livewireStyles
|
||||
@stack('head')
|
||||
</head>
|
||||
<body class="min-h-screen font-sans text-[17px] leading-relaxed antialiased">
|
||||
<a href="#inhalt" class="sr-only focus:not-sr-only focus:fixed focus:top-4 focus:left-4 focus:z-50 focus:rounded focus:bg-surface focus:px-4 focus:py-2">Zum Inhalt springen</a>
|
||||
|
||||
@if ($theme->isPreview)
|
||||
<div class="bg-ink py-2 text-center text-sm text-ground">Vorschau des Erscheinungsbilds „{{ $theme->appearance?->name }}“</div>
|
||||
@endif
|
||||
|
||||
@include('theme::partials.banner')
|
||||
@include('theme::partials.header')
|
||||
|
||||
<main id="inhalt">
|
||||
@yield('content')
|
||||
</main>
|
||||
|
||||
@include('theme::partials.footer')
|
||||
@include('theme::partials.mobile-booking-bar')
|
||||
|
||||
<dialog id="lightbox" class="m-auto max-h-[92vh] max-w-[92vw] bg-transparent p-0 backdrop:bg-black/80" aria-label="Bild vergrößert">
|
||||
<figure class="relative">
|
||||
<img src="" alt="" class="max-h-[85vh] max-w-[92vw] object-contain">
|
||||
<figcaption data-caption class="mt-2 text-center text-sm text-white"></figcaption>
|
||||
<button type="button" data-close class="absolute top-2 right-2 rounded-full bg-black/60 px-3 py-1 text-white" aria-label="Schließen">✕</button>
|
||||
</figure>
|
||||
</dialog>
|
||||
|
||||
@livewireScripts
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,18 @@
|
||||
@extends('theme::layouts.app')
|
||||
|
||||
@if ($structuredData)
|
||||
@push('head')
|
||||
<script type="application/ld+json">{!! json_encode($structuredData, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_HEX_TAG) !!}</script>
|
||||
@endpush
|
||||
@endif
|
||||
|
||||
@section('content')
|
||||
@forelse ($sections as $section)
|
||||
{!! $section->render() !!}
|
||||
@empty
|
||||
<div class="mx-auto max-w-3xl px-4 py-24 text-center sm:px-8">
|
||||
<h1 class="heading-display">{{ $page->title }}</h1>
|
||||
<p class="mt-4 text-muted">Diese Seite hat noch keine Inhalte.</p>
|
||||
</div>
|
||||
@endforelse
|
||||
@endsection
|
||||
@@ -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
|
||||
@@ -0,0 +1,17 @@
|
||||
@if ($groups->isNotEmpty())
|
||||
<section class="mx-auto max-w-7xl px-4 py-16 sm:px-8" aria-labelledby="{{ $sectionId }}-title">
|
||||
<h2 id="{{ $sectionId }}-title" class="heading-display mb-10">{{ $heading }}</h2>
|
||||
<div class="grid gap-10 sm:grid-cols-2 lg:grid-cols-3">
|
||||
@foreach ($groups as $area => $amenities)
|
||||
<div class="reveal">
|
||||
<h3 class="mb-3 border-b border-line pb-2 text-sm font-semibold tracking-[0.18em] text-accent uppercase">{{ $area }}</h3>
|
||||
<ul class="space-y-1.5 text-muted">
|
||||
@foreach ($amenities as $amenity)
|
||||
<li class="flex gap-2"><span aria-hidden="true" class="text-accent">·</span>{{ $amenity->name }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</section>
|
||||
@endif
|
||||
@@ -0,0 +1,11 @@
|
||||
<section class="mx-auto max-w-7xl px-4 py-12 sm:px-8" aria-labelledby="{{ $sectionId }}-title">
|
||||
@if ($heading)<h1 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h1>@endif
|
||||
@if ($text)<p class="mt-3 max-w-2xl text-muted">{{ $text }}</p>@endif
|
||||
<div class="mt-8">
|
||||
@if ($property)
|
||||
<livewire:booking-request :property="$property" />
|
||||
@else
|
||||
<p class="text-muted">Derzeit ist keine Wohnung buchbar.</p>
|
||||
@endif
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,22 @@
|
||||
<section class="mx-auto max-w-4xl px-4 py-16 sm:px-8" aria-labelledby="{{ $sectionId }}-title">
|
||||
<h1 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h1>
|
||||
@if ($text)<p class="mt-4 text-muted">{{ $text }}</p>@endif
|
||||
<div class="mt-10 grid gap-8 sm:grid-cols-2">
|
||||
<div class="rounded bg-surface p-7">
|
||||
<h2 class="eyebrow">Gastgeberin</h2>
|
||||
<p class="font-semibold">{{ $owner['name'] }}</p>
|
||||
<p class="text-muted">{{ $owner['street'] }}<br>{{ $owner['city'] }}</p>
|
||||
<p class="mt-4">
|
||||
<a href="tel:{{ preg_replace('/[^0-9+]/', '', (string) $owner['phone']) }}" class="block font-semibold hover:text-accent">{{ $owner['phone'] }}</a>
|
||||
<a href="mailto:{{ $owner['email'] }}" class="block font-semibold hover:text-accent">{{ $owner['email'] }}</a>
|
||||
</p>
|
||||
</div>
|
||||
@if ($address)
|
||||
<div class="rounded bg-surface p-7">
|
||||
<h2 class="eyebrow">Ferienwohnung</h2>
|
||||
<p class="text-muted">{{ $address }}</p>
|
||||
<a href="{{ route('booking.create') }}" class="btn-accent mt-6">Freie Termine & Preise</a>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,10 @@
|
||||
<section class="relative" aria-labelledby="{{ $sectionId }}-title">
|
||||
@include('theme::partials.image', ['photo' => $photo, 'class' => 'h-[28rem] w-full object-cover sm:h-[32rem]'])
|
||||
<div class="absolute inset-0 flex items-center justify-center p-4">
|
||||
<div class="max-w-xl bg-ground/95 px-8 py-10 text-center sm:px-14 sm:py-12">
|
||||
<h2 id="{{ $sectionId }}-title" class="font-display text-4xl leading-tight font-medium">{{ $title }}</h2>
|
||||
@if ($text)<p class="mt-3 mb-7 text-muted">{{ $text }}</p>@endif
|
||||
<a href="{{ $buttonUrl }}" class="btn-primary">{{ $buttonLabel }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,17 @@
|
||||
<section class="mx-auto max-w-7xl px-4 pt-16 pb-6 sm:px-8 sm:pt-20" @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
|
||||
<ul class="reveal grid grid-cols-2 gap-6 border-y border-line lg:grid-cols-4">
|
||||
@if ($property?->size_sqm)
|
||||
<li class="py-7"><span class="block font-display text-[2.5rem] leading-none">{{ $property->size_sqm }} m²</span><span class="text-sm text-muted">Wohnfläche</span></li>
|
||||
@endif
|
||||
@if ($property)
|
||||
<li class="py-7"><span class="block font-display text-[2.5rem] leading-none">1–{{ $property->max_guests }}</span><span class="text-sm text-muted">Gäste</span></li>
|
||||
@endif
|
||||
@if ($fromPrice)
|
||||
<li class="py-7"><span class="block font-display text-[2.5rem] leading-none">ab {{ \App\Support\Money::format((int) $fromPrice) }}</span><span class="text-sm text-muted">pro Nacht</span></li>
|
||||
@endif
|
||||
@if ($highlights->isNotEmpty())
|
||||
<li class="py-7"><span class="block font-display text-[2.5rem] leading-none">inklusive</span><span class="text-sm text-muted">{{ $highlights->take(3)->implode(', ') }}</span></li>
|
||||
@endif
|
||||
</ul>
|
||||
</section>
|
||||
@@ -0,0 +1,24 @@
|
||||
@if ($faqs->isNotEmpty())
|
||||
<section class="mx-auto max-w-4xl px-4 py-16 sm:px-8" aria-labelledby="{{ $sectionId }}-title">
|
||||
<h2 id="{{ $sectionId }}-title" class="heading-display mb-8">{{ $heading }}</h2>
|
||||
<div class="divide-y divide-line border-y border-line">
|
||||
@foreach ($faqs as $faq)
|
||||
<details class="group py-5">
|
||||
<summary class="flex cursor-pointer list-none items-center justify-between gap-6 text-lg font-semibold">
|
||||
{{ $faq->question }}
|
||||
<span aria-hidden="true" class="text-2xl text-accent transition group-open:rotate-45">+</span>
|
||||
</summary>
|
||||
<div class="prose-theme mt-3">{{ $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,18 @@
|
||||
@if ($photos->isNotEmpty())
|
||||
<section class="mx-auto max-w-7xl px-4 py-16 sm:px-8" @if ($heading) aria-labelledby="{{ $sectionId }}-title" @else aria-label="Bildergalerie" @endif>
|
||||
@if ($heading)<h2 id="{{ $sectionId }}-title" class="heading-display mb-8">{{ $heading }}</h2>@endif
|
||||
<ul class="grid grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4">
|
||||
@foreach ($photos as $index => $photo)
|
||||
<li @class(['reveal', 'col-span-2 row-span-2' => $index === 0])>
|
||||
<a href="{{ $photo->url('lg') }}" data-lightbox data-alt="{{ $photo->alt_text }}" class="group block overflow-hidden rounded-sm">
|
||||
@include('theme::partials.image', [
|
||||
'photo' => $photo,
|
||||
'sizes' => $index === 0 ? '(min-width: 1024px) 50vw, 100vw' : '(min-width: 1024px) 25vw, 50vw',
|
||||
'class' => ($index === 0 ? 'h-full min-h-64 ' : 'h-40 sm:h-56 ').'w-full object-cover transition duration-500 group-hover:scale-[1.03]',
|
||||
])
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</section>
|
||||
@endif
|
||||
@@ -0,0 +1,32 @@
|
||||
<section class="mx-auto max-w-[86rem] px-4" aria-labelledby="{{ $sectionId }}-title">
|
||||
<div class="relative overflow-hidden rounded">
|
||||
@include('theme::partials.image', ['photo' => $photo, 'class' => 'h-[30rem] w-full object-cover sm:h-[40rem]', 'eager' => true])
|
||||
<div class="bg-ground p-7 sm:absolute sm:bottom-12 sm:left-12 sm:max-w-xl sm:p-11 sm:pb-9">
|
||||
@if ($eyebrow)<p class="eyebrow">{{ $eyebrow }}</p>@endif
|
||||
<h1 id="{{ $sectionId }}-title" class="font-display text-[2.5rem] leading-[1.02] font-medium sm:text-[3.5rem]">{!! preg_replace('/\*(.+?)\*/u', '<em>$1</em>', e($title)) !!}</h1>
|
||||
@if ($text)<p class="mt-4 text-muted">{{ $text }}</p>@endif
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@if ($showSearch)
|
||||
<section class="relative mx-auto mt-4 max-w-5xl px-4 sm:-mt-11 sm:px-6" aria-label="Verfügbarkeit prüfen">
|
||||
<form action="{{ route('booking.create') }}" method="get" data-availability-search
|
||||
class="grid grid-cols-1 items-end gap-4 rounded bg-surface p-5 shadow-[0_18px_40px_rgba(0,0,0,0.10)] sm:grid-cols-2 lg:grid-cols-4">
|
||||
<label class="flex flex-col gap-1.5 text-[13px] font-semibold text-muted">Anreise
|
||||
<input type="date" name="anreise" min="{{ today()->toDateString() }}" class="rounded text-base font-medium" required>
|
||||
</label>
|
||||
<label class="flex flex-col gap-1.5 text-[13px] font-semibold text-muted">Abreise
|
||||
<input type="date" name="abreise" min="{{ today()->addDay()->toDateString() }}" class="rounded text-base font-medium" required>
|
||||
</label>
|
||||
<label class="flex flex-col gap-1.5 text-[13px] font-semibold text-muted">Personen
|
||||
<select name="personen" class="rounded text-base font-medium">
|
||||
@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="min-h-12 rounded bg-accent px-5 font-semibold text-accent-ink hover:opacity-90">Preis berechnen</button>
|
||||
</form>
|
||||
</section>
|
||||
@endif
|
||||
@@ -0,0 +1,13 @@
|
||||
<section class="mx-auto flex max-w-7xl flex-wrap items-center gap-14 px-4 py-20 sm:px-8" aria-labelledby="{{ $sectionId }}-title">
|
||||
@if ($photo)
|
||||
<div class="w-full max-w-sm flex-[0_1_22rem]">
|
||||
@include('theme::partials.image', ['photo' => $photo, 'sizes' => '22rem', 'class' => 'aspect-[4/5] w-full rounded object-cover'])
|
||||
</div>
|
||||
@endif
|
||||
<div class="min-w-0 flex-[1_1_28rem]">
|
||||
@if ($heading)<p class="eyebrow" id="{{ $sectionId }}-title">{{ $heading }}</p>@endif
|
||||
@if ($quote)<blockquote class="font-display text-3xl leading-snug sm:text-[2.375rem]">„{{ $quote }}“</blockquote>@endif
|
||||
<p class="mt-5 font-semibold">{{ $name }}</p>
|
||||
@if ($text)<div class="prose-theme mt-2">{{ $text }}</div>@endif
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,24 @@
|
||||
<section class="bg-band text-band-ink" aria-labelledby="{{ $sectionId }}-title">
|
||||
<div class="mx-auto flex max-w-7xl flex-wrap items-center gap-14 px-4 py-20 sm:px-8 sm:py-24">
|
||||
<div class="min-w-0 flex-[1_1_22rem]">
|
||||
@if ($eyebrow)<p class="mb-3 text-xs font-semibold tracking-[0.24em] text-band-muted uppercase">{{ $eyebrow }}</p>@endif
|
||||
<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>
|
||||
@if ($text)<div class="mt-6 text-band-muted [&_a]:underline [&_p]:mb-4">{{ $text }}</div>@endif
|
||||
@if ($address)
|
||||
<p class="mt-6 text-band-muted">{{ $address }}<br>
|
||||
<a href="{{ $mapUrl }}" class="font-semibold text-band-ink underline" rel="noopener" target="_blank">Auf der Karte ansehen</a>
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
@if ($photos->isNotEmpty())
|
||||
<div class="grid min-w-0 flex-[1_1_36rem] grid-cols-2 gap-4 sm:grid-cols-3">
|
||||
@foreach ($photos->take(3) as $photo)
|
||||
<figure class="reveal">
|
||||
@include('theme::partials.image', ['photo' => $photo, 'sizes' => '(min-width: 1024px) 18vw, 45vw', 'class' => 'h-48 w-full rounded-sm object-cover sm:h-64'])
|
||||
<figcaption class="mt-2 text-sm text-band-muted">{{ $photo->caption ?: $photo->alt_text }}</figcaption>
|
||||
</figure>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,17 @@
|
||||
@if ($offers->isNotEmpty())
|
||||
<section class="mx-auto max-w-7xl px-4 py-16 sm:px-8" aria-labelledby="{{ $sectionId }}-title">
|
||||
<h2 id="{{ $sectionId }}-title" class="heading-display mb-8">{{ $heading }}</h2>
|
||||
<ul class="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
|
||||
@foreach ($offers as $offer)
|
||||
<li @class(['reveal rounded bg-surface p-7', 'ring-2 ring-accent' => $offer->id === $featuredId])>
|
||||
<p class="font-display text-2xl">{{ $offer->name }}</p>
|
||||
@if ($offer->public_description)<p class="mt-2 text-muted">{{ $offer->public_description }}</p>@endif
|
||||
@if ($offer->stay_from || $offer->stay_until)
|
||||
<p class="mt-3 text-sm text-muted">Reisezeitraum {{ $offer->stay_from?->format('d.m.Y') ?? 'ab sofort' }} – {{ $offer->stay_until?->format('d.m.Y') ?? 'offen' }}</p>
|
||||
@endif
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<p class="mt-4 text-sm text-muted">Angebote werden bei der Preisberechnung automatisch berücksichtigt.</p>
|
||||
</section>
|
||||
@endif
|
||||
@@ -0,0 +1,35 @@
|
||||
<section class="mx-auto flex max-w-7xl flex-wrap items-start gap-14 px-4 py-20 sm:px-8" aria-labelledby="{{ $sectionId }}-title">
|
||||
<div class="min-w-0 flex-[1_1_22rem]">
|
||||
@if ($eyebrow)<p class="eyebrow">{{ $eyebrow }}</p>@endif
|
||||
<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>
|
||||
@if ($text)<p class="mt-6 text-muted">{{ $text }}</p>@endif
|
||||
@if ($property)
|
||||
<p class="mt-4 text-sm text-muted">
|
||||
Endreinigung & Service {{ \App\Support\Money::format($property->cleaning_fee) }} einmalig
|
||||
@if ($property->extra_guest_fee_per_night) · ab der {{ $property->included_guests + 1 }}. Person {{ \App\Support\Money::format($property->extra_guest_fee_per_night) }} pro Nacht @endif
|
||||
· Kurtaxe vor Ort.
|
||||
</p>
|
||||
@if ($extras->isNotEmpty())
|
||||
<p class="mt-2 text-sm text-muted">Auf Wunsch: {{ $extras->map(fn ($extra) => $extra->name.' '.\App\Support\Money::format($extra->price))->implode(' · ') }}</p>
|
||||
@endif
|
||||
@endif
|
||||
<a href="{{ route('booking.create') }}" class="btn-primary mt-8">Freie Termine & Gesamtpreis</a>
|
||||
</div>
|
||||
<div class="min-w-0 flex-[1_1_34rem]">
|
||||
<table class="w-full text-left">
|
||||
<caption class="sr-only">Preise pro Nacht nach Saison</caption>
|
||||
<thead class="text-xs tracking-wider text-muted uppercase">
|
||||
<tr><th scope="col" class="pb-2 font-medium">Saison</th><th scope="col" class="pb-2 font-medium">Zeitraum</th><th scope="col" class="pb-2 text-right font-medium">pro Nacht</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($seasons as $season)
|
||||
<tr @class(['border-t border-line', 'bg-accent/10' => $featuredSeason && str_contains(mb_strtolower($featuredSeason), mb_strtolower($season->name))])>
|
||||
<th scope="row" class="py-3 pr-4 font-semibold">{{ $season->name }}<span class="block text-xs font-normal text-muted">ab {{ $season->min_nights }} Nächten</span></th>
|
||||
<td class="py-3 pr-4 text-muted">{{ $season->starts_on->format('d.m.') }} – {{ $season->ends_on->format('d.m.Y') }}</td>
|
||||
<td class="py-3 text-right font-display text-2xl">{{ \App\Support\Money::format($season->nightly_rate) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,31 @@
|
||||
@if ($reviews->isNotEmpty())
|
||||
<section class="mx-auto max-w-7xl px-4 py-16 sm:px-8" aria-labelledby="{{ $sectionId }}-title">
|
||||
<div class="flex flex-wrap items-end justify-between gap-6">
|
||||
<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>
|
||||
<p class="text-muted"><span class="font-display text-4xl text-ink">{{ number_format($average, 1, ',', '') }}</span> von 5 · {{ $count }} {{ $count === 1 ? 'Bewertung' : 'Bewertungen' }}</p>
|
||||
</div>
|
||||
@if ($categories->isNotEmpty())
|
||||
<dl class="mt-6 flex flex-wrap gap-x-8 gap-y-2 text-sm text-muted">
|
||||
@foreach ($categories as $category)
|
||||
<div><dt class="inline">{{ $category['label'] }}</dt> <dd class="inline font-semibold text-ink">{{ number_format($category['average'], 1, ',', '') }}</dd></div>
|
||||
@endforeach
|
||||
</dl>
|
||||
@endif
|
||||
<ul class="mt-10 grid gap-5 sm:grid-cols-2 lg:grid-cols-3">
|
||||
@foreach ($reviews as $review)
|
||||
<li class="reveal">
|
||||
<figure class="h-full rounded bg-surface p-7">
|
||||
<p class="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-2 text-muted">„{{ $review->body }}“</blockquote>@endif
|
||||
<figcaption class="mt-4 text-sm 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-3 text-sm text-muted"><span class="font-semibold text-ink">Antwort der Gastgeber:</span> {{ $review->response }}</p>
|
||||
@endif
|
||||
</figure>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<p class="mt-6 text-xs 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" @if ($heading) aria-labelledby="{{ $sectionId }}-title" @endif>
|
||||
@if ($heading)<h1 id="{{ $sectionId }}-title" class="heading-display mb-8">{{ $heading }}</h1>@endif
|
||||
@if ($text)
|
||||
<div class="prose-theme">{{ $text }}</div>
|
||||
@else
|
||||
<p class="text-muted">Dieser Text wird gerade überarbeitet.</p>
|
||||
@endif
|
||||
</section>
|
||||
@@ -0,0 +1,21 @@
|
||||
<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-20" aria-labelledby="{{ $sectionId }}-title">
|
||||
<div @class(['min-w-0 flex-[1_1_26rem]', '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-4 inline-block border-b border-current 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_32rem] grid-cols-2 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' => $index === 0 && $photos->count() > 1 ? 'col-span-2 h-72 w-full rounded-sm object-cover sm:h-[26rem]' : ($photos->count() === 1 ? 'col-span-2 h-80 w-full rounded-sm object-cover sm:h-[28rem]' : 'h-44 w-full rounded-sm object-cover sm:h-56'),
|
||||
])
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
</section>
|
||||
Reference in new issue
Block a user