- Logo (satz4) traced to SVG masters (styles/satz4/svg: full logo, picture mark, wordmark) with a palette sampled from the original; WebP renditions for the website; favicon/apple touch icon = simplified corner bay - House details as theme elements: arched dormer (crest of the cartouche), hero arch with window surround and keystone, terrace braces as corner brackets (search box, cartouche), balcony railing on the dark band - Colours from the logo (navy, roof terracotta as accent, wave blues, sun) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
1.7 KiB
PHP
32 lines
1.7 KiB
PHP
{{--
|
|
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 !!}
|