Mandantenabschluss: Marken, Vertragsdateien und Archive trennen
Deploy FeWo mit PipelineManager / deploy (push) Successful in 2m23s
Deploy FeWo mit PipelineManager / deploy (push) Successful in 2m23s
This commit is contained in:
1 parent
86374b1659
commit
06df80e4db
45 files changed
+592
-99
No files matched your search
@@ -20,8 +20,9 @@
|
||||
<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 ($favicon = $theme->brand('favicon'))
|
||||
<link rel="icon" href="{{ $favicon }}">
|
||||
@endif
|
||||
@if ($theme->isPreview || ! app()->isProduction())
|
||||
<meta name="robots" content="noindex">
|
||||
@endif
|
||||
|
||||
@@ -1,16 +1,8 @@
|
||||
{{--
|
||||
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 !!}
|
||||
{{-- Identity comes from the website, decoration from picture-world slots. --}}
|
||||
@if (in_array($name, ['mark', 'logo'], true))
|
||||
@if ($logo = $theme->brand('logo'))
|
||||
<img src="{{ $logo }}" alt="{{ $label ?? '' }}" class="{{ $class ?? '' }}" decoding="async">
|
||||
@endif
|
||||
@else
|
||||
{!! $theme->motif($name === 'wave-divider' ? 'divider' : $name, $class ?? null, $label ?? null) !!}
|
||||
@endif
|
||||
@@ -3,8 +3,7 @@
|
||||
<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 class="font-display text-[1.875rem] font-semibold tracking-wide">{{ $theme->site->name }}</span>
|
||||
</span>
|
||||
</a>
|
||||
|
||||
|
||||
@@ -11,6 +11,6 @@
|
||||
class="{{ $class ?? '' }}">
|
||||
@else
|
||||
<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">
|
||||
{!! $theme->motif('placeholder', 'h-full max-h-full w-full p-6 opacity-90') !!}
|
||||
</div>
|
||||
@endif
|
||||
@@ -22,8 +22,8 @@ ## Gestaltung
|
||||
|
||||
## 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: `divider`, `closing`, `crest` (Rundbogengaube), `railing` (Balkongeländer), `bracket` (Kopfband), `gulls`, `vignette.beach|pier|train|bike|forest`. Die Bildmarke des Logos kommt als Bild über `partials/logo` (Illustration – als Inline-SVG zu groß). 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`.
|
||||
Die Website waehlt ihre Bildwelt; eine Wohnung kann sie ueberschreiben. `partials/motif` delegiert an `$theme->motif()`. Dekoration kommt ausschliesslich aus `resources/image-worlds/<key>/`. Logo und Favicon kommen aus der Website-Marke. Die bisherigen Dateien in `img/` und `motifs/` bleiben Quellen; die Vorlagen verwenden sie nicht mehr direkt.
|
||||
|
||||
|
||||
## Eigene Vorlagen
|
||||
|
||||
|
||||
@@ -20,8 +20,9 @@
|
||||
<meta property="og:image" content="{{ $ogImage }}">
|
||||
@endisset
|
||||
<link rel="canonical" href="{{ url()->current() }}">
|
||||
<link rel="icon" href="{{ Vite::asset('resources/themes/seebad/img/favicon.svg') }}" type="image/svg+xml">
|
||||
<link rel="apple-touch-icon" href="{{ Vite::asset('resources/themes/seebad/img/apple-touch-icon.png') }}">
|
||||
@if ($favicon = $theme->brand('favicon'))
|
||||
<link rel="icon" href="{{ $favicon }}">
|
||||
@endif
|
||||
@if ($theme->isPreview || ! app()->isProduction())
|
||||
<meta name="robots" content="noindex">
|
||||
@endif
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
{{--
|
||||
Picture mark of the logo (styles/satz4: traced master SVG, WebP renditions for the web).
|
||||
Variables: $class, $sizes (default: 10rem), $label (optional; without it the mark is decorative next to the name).
|
||||
--}}
|
||||
<img src="{{ Vite::asset('resources/themes/seebad/img/logo-bildmarke-360.webp') }}"
|
||||
srcset="{{ Vite::asset('resources/themes/seebad/img/logo-bildmarke-360.webp') }} 360w, {{ Vite::asset('resources/themes/seebad/img/logo-bildmarke-720.webp') }} 720w, {{ Vite::asset('resources/themes/seebad/img/logo-bildmarke-1440.webp') }} 1440w"
|
||||
sizes="{{ $sizes ?? '10rem' }}" width="360" height="154" alt="{{ $label ?? '' }}" decoding="async" class="{{ $class ?? '' }}">
|
||||
{{-- A website without a logo never inherits another landlord's identity. --}}
|
||||
@if ($logo = $theme->brand('logo'))
|
||||
<img src="{{ $logo }}" alt="{{ $label ?? '' }}" decoding="async" class="{{ $class ?? '' }}">
|
||||
@endif
|
||||
@@ -1,31 +1,2 @@
|
||||
{{--
|
||||
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 (divider, closing, crest, railing, bracket, gulls, vignette.beach|pier|train|bike|forest), $class (optional),
|
||||
$label (optional; without it the graphic is decorative).
|
||||
--}}
|
||||
@php
|
||||
$motifFiles = [
|
||||
'divider' => 'band-sonne',
|
||||
'closing' => 'band-seebruecke',
|
||||
'crest' => 'gaube',
|
||||
'railing' => 'gelaender',
|
||||
'bracket' => 'kopfband',
|
||||
'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>.*?<\/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 !!}
|
||||
{{-- Decoration follows the website, overridden by the current apartment. --}}
|
||||
{!! $theme->motif($slot, $class ?? null, $label ?? null) !!}
|
||||
Reference in new issue
Block a user