Füge Symbol vor Überschriften, Pinselstrich und Merkmalszeile ins CMS ein
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>
This commit is contained in:
LarsandClaude Sonnet 5.5 committed 2026-11-23 19:11:43 +01:00
1 parent bb08b9b3fa
commit cf8189623c
23 files changed
+541 -15

No files matched your search

+73
View File
@@ -57,3 +57,76 @@ .brand-tag--paket {
--brand-tag-bg: var(--lf-tag-package-bg);
--brand-tag-ink: var(--lf-tag-package-ink);
}
/*
* Gestaltung im Text (CMS): Symbol vor der Überschrift, Pinselstrich, Merkmalszeile.
* Die Symbole haben feste Markenfarben mit viel Navy; auf dunklen Flächen stehen sie deshalb auf einer weißen Scheibe,
* sonst verschwänden die Linien.
*/
.lf-heading-symbol {
display: inline-block;
inline-size: 1.2em;
block-size: 1.2em;
margin-inline-end: 0.35em;
vertical-align: -0.2em;
overflow: visible;
}
.lf-heading-brush {
display: block;
inline-size: 7rem;
max-inline-size: 60%;
block-size: auto;
margin-block: 0.2rem var(--space-2);
}
.scope-dark .lf-heading-symbol,
.scope-accent .lf-heading-symbol,
.lf-bt--navy .lf-heading-symbol,
.lf-hero--editorial-solid .lf-heading-symbol,
.scope-dark .lf-features__symbol,
.scope-accent .lf-features__symbol {
box-sizing: content-box;
padding: 0.14em;
border-radius: 50%;
background: var(--lf-white);
}
.lf-features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
gap: var(--space-5) var(--space-4);
margin: 0;
padding: 0;
list-style: none;
}
.lf-features__item {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: var(--space-2);
min-inline-size: 0;
}
.lf-features__symbol {
inline-size: 3.5rem;
block-size: 3.5rem;
flex: none;
overflow: visible;
}
.lf-features__title {
margin: 0;
color: var(--color-heading);
font-size: var(--text-h3);
font-weight: 700;
line-height: 1.25;
overflow-wrap: anywhere;
}
.lf-features__text {
margin: 0;
max-inline-size: var(--measure);
overflow-wrap: anywhere;
}
@@ -0,0 +1,2 @@
@props(['settings' => []])
@if (\App\Domain\Cms\Widgets\Support\HeadingAccent::hasBrush(is_array($settings) ? $settings : []))<x-brand.symbol name="gelbe-unterstreichung" class="lf-heading-brush" />@endif
@@ -0,0 +1 @@
@props(['settings' => []])@php($symbol = \App\Domain\Cms\Widgets\Support\HeadingAccent::symbol(is_array($settings) ? $settings : []))@if ($symbol !== null)<x-brand.symbol :name="$symbol" class="lf-heading-symbol" />@endif
@@ -1,7 +1 @@
{{--
Markensymbol aus dem Kit (resources/svg/brand/symbole), inline und rein dekorativ (aria-hidden).
Die Größe wird per Klasse oder Style gesetzt (Standard: 1.5em). Beispiel: <x-brand.symbol name="filmklappe" />.
Ein unbekannter Name wirft einen Fehler.
--}}
@props(['name'])
{!! \App\Support\Brand\Symbols::symbol($name, $attributes->class(['brand-symbol'])->toHtml()) !!}
@props(['name']){!! \App\Support\Brand\Symbols::symbol($name, $attributes->class(['brand-symbol'])->toHtml()) !!}
@@ -1,5 +1,5 @@
<div class="cta">
<h2>{{ $data['heading'] ?? '' }}</h2>
<h2><x-brand.heading-symbol :settings="$settings" />{{ $data['heading'] ?? '' }}</h2>
@if (filled($data['text'] ?? null))
<p>{{ $data['text'] }}</p>
@endif
@@ -0,0 +1,19 @@
{{--
Merkmalszeile: zwei bis vier Merkmale mit Symbol, Kurztitel und Satz. Die Spaltenzahl folgt der Anzahl der Einträge
und der tatsächlichen Breite (Raster mit Mindestbreite). Die Symbole sind Zierde; der Kurztitel trägt die Aussage.
--}}
@if ($items !== [])
<ul class="lf-features lf-features--{{ count($items) }}">
@foreach ($items as $item)
<li class="lf-features__item">
@if ($item['symbol'] !== null)
<x-brand.symbol :name="$item['symbol']" class="lf-features__symbol" />
@endif
<p class="lf-features__title">{{ $item['title'] }}</p>
@if (filled($item['text']))
<p class="lf-features__text">{{ $item['text'] }}</p>
@endif
</li>
@endforeach
</ul>
@endif
+3 -2
View File
@@ -1,8 +1,9 @@
@if (! empty($first))
<h1>{{ $data['heading'] ?? '' }}</h1>
<h1><x-brand.heading-symbol :settings="$settings" />{{ $data['heading'] ?? '' }}</h1>
@else
<h2>{{ $data['heading'] ?? '' }}</h2>
<h2><x-brand.heading-symbol :settings="$settings" />{{ $data['heading'] ?? '' }}</h2>
@endif
<x-brand.heading-brush :settings="$settings" />
@if (filled($data['intro'] ?? null))
<p class="lede">{{ $data['intro'] }}</p>
@endif
+1 -1
View File
@@ -38,7 +38,7 @@
@if (filled($data['eyebrow'] ?? null))
<p class="lf-hero__eyebrow">{{ $data['eyebrow'] }}</p>
@endif
<{{ $tag }} class="lf-hero__title">{{ $data['heading'] ?? '' }}</{{ $tag }}>
<{{ $tag }} class="lf-hero__title"><x-brand.heading-symbol :settings="$settings" />{{ $data['heading'] ?? '' }}</{{ $tag }}>
@if ($accent !== 'none')
<span class="lf-hero__title-accent" aria-hidden="true"></span>
@endif
+1 -1
View File
@@ -22,7 +22,7 @@
<p class="lf-bt__eyebrow">{{ $data['eyebrow'] }}</p>
@endif
@if (filled($data['title'] ?? null))
<{{ $tag }} class="lf-bt__headline">{{ $data['title'] }}</{{ $tag }}>
<{{ $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>