CI Feature / test (push) Successful in 2m40s
Die Kleingrafiken des Brand-Kits sind jetzt im Redaktionsinhalt wählbar, nicht nur an Medienkarten: - Einstellung "Symbol vor der Überschrift" (settings.symbol) an Überschrift, Einstieg, Bild und Text und Handlungsaufruf. Feste Auswahl von 14 Symbolen (HeadingAccent::SYMBOLS), ein unbekannter Name wird beim Speichern abgewiesen. - Einstellung "Pinselstrich" (settings.accent = brush) am Widget Überschrift. - Neues Widget "Merkmalszeile" (features): zwei bis vier Merkmale mit Symbol, Kurztitel und Satz; die Anzahl bestimmt die Spalten. - Auf dunklen Flächen stehen die Symbole auf einer weißen Scheibe, weil sie feste Markenfarben mit viel Navy haben. - brand/symbol erzeugt keine Zeilenumbrüche mehr um das SVG, damit es im Fließtext und in Überschriften keine zusätzliche Lücke gibt. Der Test der Widget-Reihenfolge kennt das neue Widget bewusst (features nach cards). Stufe 3b (Symbole mitten im Fließtext) bleibt zurückgestellt. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
49 lines
2.4 KiB
PHP
49 lines
2.4 KiB
PHP
{{--
|
||
Premium-Bild-und-Text (Brand-UI-Kit v1.6, Komponente lf-bild-text), angepasst an die Widget-Hülle der Registry.
|
||
Darstellung nach tatsächlicher Containerbreite: unter 540 px gestapelt, 540–899 px flacher Bildstreifen,
|
||
ab 900 px zweispaltig mit Bild links oder rechts (Variante). Die Höhe ändert Bildproportion und Abstände,
|
||
nie die zulässige Textmenge. Der Text ist bereits bereinigter formatierter Text (RichText::sanitize).
|
||
--}}
|
||
@php
|
||
$side = $variant === 'image_left' ? 'left' : 'right';
|
||
$heightClass = in_array($height, ['compact', 'normal', 'spacious'], true) ? $height : 'normal';
|
||
$tag = \App\Domain\Cms\Widgets\Support\PremiumFields::headingTag($settings, ! empty($first));
|
||
@endphp
|
||
<div class="lf-bt-host">
|
||
<div @class([
|
||
'lf-bt',
|
||
'lf-bt--'.$surface,
|
||
'lf-bt--image-'.$side,
|
||
'lf-bt--height-'.$heightClass,
|
||
'lf-bt--without-image' => ! $imageUrl,
|
||
]) style="--bt-focus-x: {{ $focus['x'] }}%; --bt-focus-y: {{ $focus['y'] }}%">
|
||
<div class="lf-bt__copy">
|
||
@if (filled($data['eyebrow'] ?? null))
|
||
<p class="lf-bt__eyebrow">{{ $data['eyebrow'] }}</p>
|
||
@endif
|
||
@if (filled($data['title'] ?? null))
|
||
<{{ $tag }} class="lf-bt__headline"><x-brand.heading-symbol :settings="$settings" />{{ $data['title'] }}</{{ $tag }}>
|
||
<span class="lf-bt__accent" aria-hidden="true"></span>
|
||
@endif
|
||
<div class="lf-bt__body">{!! $body !!}</div>
|
||
@if ($actions !== [])
|
||
<div class="lf-bt__actions">
|
||
@foreach ($actions as $index => $item)
|
||
@if ($index === 0)
|
||
<a class="lf-bt__button" href="{{ $item['url'] }}">{{ $item['label'] }} <span aria-hidden="true">→</span></a>
|
||
@else
|
||
<a class="lf-bt__button lf-bt__button--secondary" href="{{ $item['url'] }}">{{ $item['label'] }}</a>
|
||
@endif
|
||
@endforeach
|
||
</div>
|
||
@endif
|
||
</div>
|
||
@if ($imageUrl)
|
||
<div class="lf-bt__media">
|
||
<img class="lf-bt__image" src="{{ $imageUrl }}" alt="{{ $imageAlt ?? '' }}" @if (! empty($first)) loading="eager" fetchpriority="high" @else loading="lazy" @endif decoding="async">
|
||
</div>
|
||
@endif
|
||
</div>
|
||
</div>
|
||
@include('widgets.partials.image-notice')
|