Füge Symbol vor Überschriften, Pinselstrich und Merkmalszeile ins CMS ein
CI Feature / test (push) Successful in 2m40s
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:
1 parent
bb08b9b3fa
commit
cf8189623c
23 files changed
+541
-15
No files matched your search
@@ -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()) !!}
|
||||
Reference in new issue
Block a user