Booking path 1 (offer + guest acceptance), 2FA for all, privacy hardening, brand graphics in theme
- Offer workflow: "Angebot senden" in the admin (dates, guests, promo code, manual price adjustment, validity from the property's hold time, message, guest data for the contract) with live price; contract draft PDF; signed, versioned offer page for the guest to accept (acceptance record without IP) or decline; expiry job, landlord notifications, editable offer texts, wording on the website. - 2FA is mandatory for every admin account. - Privacy: complete anonymisation (notes, attribution, review names, offer messages), shorter periods for unbinding requests, portal mail excerpts and attribution (configurable proposals), iCal summary not stored, known e-mail no longer overwrites guest data, security headers, bearer tokens for automations, metadata stripped from photo originals, review link throttled. - Daily database backup (backup:database) and scripts/backup-pull.sh for the NAS. - Theme: brand mark in header/footer, favicon/touch icon, wave divider, icons, illustration as image placeholder; navy follows the text colour for dark appearances. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
82698f8eda
commit
4f69b426a4
77 files changed
+1658
-108
No files matched your search
@@ -30,6 +30,15 @@ @theme inline {
|
||||
--font-sans: 'Figtree', ui-sans-serif, system-ui, sans-serif;
|
||||
}
|
||||
|
||||
/* Brand graphics (public/brand, inlined via partials/brand): navy follows the text colour, so the logo stays
|
||||
visible in dark appearances; teal, light wave and sun keep the brand colours unless a theme overrides them. */
|
||||
:root {
|
||||
--brand-navy: var(--ink);
|
||||
--brand-teal: #0286a2;
|
||||
--brand-wave: #6dbfc2;
|
||||
--brand-sun: #f2c27a;
|
||||
}
|
||||
|
||||
@layer base {
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
<meta property="og:image" content="{{ $ogImage }}">
|
||||
@endisset
|
||||
<link rel="canonical" href="{{ url()->current() }}">
|
||||
<link rel="icon" href="{{ asset('brand/favicon.svg') }}" type="image/svg+xml">
|
||||
<link rel="apple-touch-icon" href="{{ asset('brand/apple-touch-icon.png') }}">
|
||||
@if ($theme->isPreview || ! app()->isProduction())
|
||||
<meta name="robots" content="noindex">
|
||||
@endif
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
{{--
|
||||
Inline brand graphic from public/brand/<name>.svg (mark, logo, wave-divider, icon-apartment, icon-sea,
|
||||
icon-terrace, icon-location). Inline, so the colours follow the CSS variables --brand-navy/-teal/-wave/-sun
|
||||
(theme-base.css maps navy to the text colour, so it stays visible in dark appearances).
|
||||
Variables: $name, $class (optional), $label (optional; without it the graphic is decorative).
|
||||
--}}
|
||||
@php
|
||||
static $brandSvgs = [];
|
||||
$brandSvgs[$name] ??= is_file(public_path("brand/{$name}.svg")) ? file_get_contents(public_path("brand/{$name}.svg")) : '';
|
||||
$brandUid = 'b'.\Illuminate\Support\Str::lower(\Illuminate\Support\Str::random(6));
|
||||
$brandSvg = preg_replace(['/\s(role|aria-label)="[^"]*"/', '/<title>.*?<\/title>/s'], '', $brandSvgs[$name]);
|
||||
$brandSvg = preg_replace(['/id="([^"]+)"/', '/url\(#([^)]+)\)/'], ['id="$1-'.$brandUid.'"', 'url(#$1-'.$brandUid.')'], $brandSvg);
|
||||
$brandAttributes = 'class="'.e($class ?? '').'" '.(isset($label) ? 'role="img" aria-label="'.e($label).'"' : 'aria-hidden="true" focusable="false"');
|
||||
$brandSvg = preg_replace('/<svg\s/', '<svg '.$brandAttributes.' ', $brandSvg, 1);
|
||||
@endphp
|
||||
{!! $brandSvg !!}
|
||||
@@ -1,7 +1,10 @@
|
||||
<footer class="mt-8 border-t border-line">
|
||||
<div class="mt-16 px-4" aria-hidden="true">
|
||||
@include('theme::partials.brand', ['name' => 'wave-divider', 'class' => 'mx-auto block h-auto w-full max-w-4xl'])
|
||||
</div>
|
||||
<footer class="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>
|
||||
<span class="flex items-center gap-2 font-display text-2xl text-ink">@include('theme::partials.brand', ['name' => 'mark', 'class' => 'h-7 w-auto']){{ $theme->site->name }}</span>
|
||||
{{ $theme->property()?->address }}
|
||||
</div>
|
||||
<div>
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
<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 href="{{ route('home') }}" class="flex items-center gap-3 leading-tight" aria-label="{{ $theme->site->name }} – Startseite">
|
||||
@include('theme::partials.brand', ['name' => 'mark', 'class' => 'h-11 w-auto shrink-0 sm:h-12'])
|
||||
<span class="flex flex-col">
|
||||
<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>
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<nav aria-label="Hauptnavigation" class="hidden lg:block">
|
||||
|
||||
@@ -10,5 +10,7 @@
|
||||
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>
|
||||
<div class="{{ $class ?? '' }} flex items-center justify-center bg-surface" role="img" aria-label="Bild folgt">
|
||||
<img src="{{ asset('brand/coastal-illustration-1200.webp') }}" alt="" loading="lazy" decoding="async" class="h-full max-h-full w-full object-contain p-6 opacity-90">
|
||||
</div>
|
||||
@endif
|
||||
@@ -2,16 +2,16 @@
|
||||
@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>
|
||||
<li class="py-7">@include('theme::partials.brand', ['name' => 'icon-apartment', 'class' => 'mb-3 size-12'])<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>
|
||||
<li class="py-7">@include('theme::partials.brand', ['name' => 'icon-terrace', 'class' => 'mb-3 size-12'])<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>
|
||||
<li class="py-7">@include('theme::partials.brand', ['name' => 'icon-sea', 'class' => 'mb-3 size-12'])<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>
|
||||
<li class="py-7">@include('theme::partials.brand', ['name' => 'icon-location', 'class' => 'mb-3 size-12'])<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>
|
||||
@@ -5,8 +5,10 @@
|
||||
<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 class="mt-6 flex items-start gap-3 text-band-muted [--brand-navy:var(--band-ink)]">
|
||||
@include('theme::partials.brand', ['name' => 'icon-location', 'class' => 'size-10 shrink-0'])
|
||||
<span>{{ $address }}<br>
|
||||
<a href="{{ $mapUrl }}" class="font-semibold text-band-ink underline" rel="noopener" target="_blank">Auf der Karte ansehen</a></span>
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user