Füge Markensymbole und Material-Tags des Brand-Kits hinzu
CI Feature / test (push) Successful in 3m52s
CI Feature / test (push) Successful in 3m52s
Stufe 1 und 2 des Vorschlags in KIT_ERGAENZUNG_v2.1_kleingrafiken.md. - 16 Symbole inline (x-brand.symbol): Titel, ID und feste Größe werden beim Einbetten entfernt, aria-hidden, unbekannte Namen sind ein Fehler - Material-Tags als HTML/CSS (x-brand.tag) mit Zeichen und echtem Text, neue Tokens --lf-tag-*, Kontraste gemessen - MaterialTag ordnet nach Ausgabeklasse und Kennung der redaktionellen Art zu, nicht nach Beschriftung; unklare Fälle bleiben Text - Eingebaut in die öffentliche Premium-Karte für Medien - brand-rays/-underline und der Mitgliederbereich bleiben unverändert (siehe Dokument, Abschnitt 1a) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1d1f0ebb1f
commit
0022fd50cb
39 files changed
+489
-2
No files matched your search
@@ -0,0 +1,7 @@
|
||||
{{--
|
||||
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()) !!}
|
||||
@@ -0,0 +1,13 @@
|
||||
{{--
|
||||
Material-Tag (Brand-Kit 16, Gruppe D) als HTML/CSS-Pille: Zeichen plus echter Text.
|
||||
kind: ein Wert von App\Domain\Catalog\MaterialTag. Ohne Inhalt steht die Standardbeschriftung; mit Inhalt der übergebene
|
||||
Text, zum Beispiel die redaktionelle Art „Unterrichtsfilm“ (Zeichen und Farbe folgen dem Schlüssel, nicht dem Text).
|
||||
--}}
|
||||
@props(['kind'])
|
||||
@php
|
||||
$tag = $kind instanceof \App\Domain\Catalog\MaterialTag ? $kind : \App\Domain\Catalog\MaterialTag::from($kind);
|
||||
@endphp
|
||||
<span {{ $attributes->class(['brand-tag', 'brand-tag--'.$tag->value]) }}>
|
||||
{!! \App\Support\Brand\Symbols::glyph($tag->glyph(), 'class="brand-tag__glyph"') !!}
|
||||
<span class="brand-tag__text">@if ($slot->isEmpty()){{ $tag->label() }}@else{{ $slot }}@endif</span>
|
||||
</span>
|
||||
@@ -82,7 +82,11 @@
|
||||
@endif
|
||||
<div class="lf-pc__body">
|
||||
@if (empty($bare) && $show['kind'] && $subject->kind !== '')
|
||||
<p class="lf-pc__kind">{{ $subject->kind }}</p>
|
||||
@if ($subject->tag !== null)
|
||||
<p class="lf-pc__kind lf-pc__kind--tag"><x-brand.tag :kind="$subject->tag">{{ $subject->kind }}</x-brand.tag></p>
|
||||
@else
|
||||
<p class="lf-pc__kind">{{ $subject->kind }}</p>
|
||||
@endif
|
||||
@endif
|
||||
<{{ $headingTag }} @class(['lf-pc__title', 'visually-hidden' => ! empty($bare)])>{{ $subject->title }}</{{ $headingTag }}>
|
||||
@if (empty($bare) && $show['summary'] && filled($subject->summary))
|
||||
|
||||
Reference in new issue
Block a user