Füge großes Symbol neben dem Absatz und Links in der Merkmalszeile hinzu
Nach der ersten Sichtung auf luf-test: - Einstellung "Größe des Symbols" (settings.symbol_size = large) bei Überschrift und Handlungsaufruf: das Symbol steht groß links neben Überschrift, Text und Schaltfläche, bei höchstens 24 rem Slotbreite darüber. Vorgabe bleibt das kleine Symbol vor der Überschrift. Ohne gewähltes Symbol hat die Größe keine Wirkung. - Merkmalszeile: je Merkmal optional Linkziel (SafeUrl) und Linktext (Vorgabe "Mehr erfahren", ohne Linkziel verworfen). Die Einstellung "Darstellung der Links" wählt für das Widget kleiner Textlink (Vorgabe) oder Pille. Der zugängliche Name des Links nennt das Merkmal. - Auf dunklen Flächen steht auch das große Symbol auf einer weißen Scheibe. - Doku: Die Tabelle in cms-widget-registry.md war durch meinen früheren Absatz zerrissen (Zeile "Höhe" stand außerhalb) und ist wieder in Ordnung. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ad581cb545
commit
3c7a71532f
14 files changed
+270
-12
No files matched your search
@@ -1,9 +1,16 @@
|
||||
@php
|
||||
$symbol = \App\Domain\Cms\Widgets\Support\HeadingAccent::symbol($settings);
|
||||
$large = \App\Domain\Cms\Widgets\Support\HeadingAccent::isLarge($settings);
|
||||
$inline = $large ? [] : $settings;
|
||||
@endphp
|
||||
<div class="cta">
|
||||
<h2><x-brand.heading-symbol :settings="$settings" />{{ $data['heading'] ?? '' }}</h2>
|
||||
@if ($large)<div class="lf-lead"><x-brand.symbol :name="$symbol" class="lf-lead__symbol" /><div class="lf-lead__body">@endif
|
||||
<h2><x-brand.heading-symbol :settings="$inline" />{{ $data['heading'] ?? '' }}</h2>
|
||||
@if (filled($data['text'] ?? null))
|
||||
<p>{{ $data['text'] }}</p>
|
||||
@endif
|
||||
@if (\App\Domain\Cms\Widgets\Support\SafeUrl::isSafe($data['url'] ?? null))
|
||||
<a class="button" href="{{ $data['url'] }}">{{ $data['label'] ?? '' }}</a>
|
||||
@endif
|
||||
@if ($large)</div></div>@endif
|
||||
</div>
|
||||
@@ -1,6 +1,8 @@
|
||||
{{--
|
||||
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.
|
||||
Merkmalszeile: zwei bis vier Merkmale mit Symbol, Kurztitel, Satz und optionalem Link. 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. Der Link erscheint als kleiner Textlink oder als Pille (Einstellung link_style); sein zugänglicher Name nennt
|
||||
das Merkmal, damit mehrere „Mehr erfahren“ unterscheidbar bleiben.
|
||||
--}}
|
||||
@if ($items !== [])
|
||||
<ul class="lf-features lf-features--{{ count($items) }}">
|
||||
@@ -13,6 +15,9 @@
|
||||
@if (filled($item['text']))
|
||||
<p class="lf-features__text">{{ $item['text'] }}</p>
|
||||
@endif
|
||||
@if ($item['url'] !== null)
|
||||
<p class="lf-features__more"><a class="lf-features__link lf-features__link--{{ $linkStyle }}" href="{{ $item['url'] }}" aria-label="{{ $item['linkLabel'] }}: {{ $item['title'] }}">{{ $item['linkLabel'] }}</a></p>
|
||||
@endif
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
@@ -1,9 +1,16 @@
|
||||
@php
|
||||
$symbol = \App\Domain\Cms\Widgets\Support\HeadingAccent::symbol($settings);
|
||||
$large = \App\Domain\Cms\Widgets\Support\HeadingAccent::isLarge($settings);
|
||||
$inline = $large ? [] : $settings;
|
||||
@endphp
|
||||
@if ($large)<div class="lf-lead"><x-brand.symbol :name="$symbol" class="lf-lead__symbol" /><div class="lf-lead__body">@endif
|
||||
@if (! empty($first))
|
||||
<h1><x-brand.heading-symbol :settings="$settings" />{{ $data['heading'] ?? '' }}</h1>
|
||||
<h1><x-brand.heading-symbol :settings="$inline" />{{ $data['heading'] ?? '' }}</h1>
|
||||
@else
|
||||
<h2><x-brand.heading-symbol :settings="$settings" />{{ $data['heading'] ?? '' }}</h2>
|
||||
<h2><x-brand.heading-symbol :settings="$inline" />{{ $data['heading'] ?? '' }}</h2>
|
||||
@endif
|
||||
<x-brand.heading-brush :settings="$settings" />
|
||||
@if (filled($data['intro'] ?? null))
|
||||
<p class="lede">{{ $data['intro'] }}</p>
|
||||
@endif
|
||||
@if ($large)</div></div>@endif
|
||||
Reference in new issue
Block a user