Stabilisiere den Website-Rahmen und veredele die zentralen Widgets.
Designiteration 1 auf Grundlage des Brand-UI-Kits (vorläufige Werte): - Kopfzeile mit konstanter Box und zwei Zuständen (großzügig, kompakt beim Scrollen) ohne Layoutsprung; Navigation bricht nie um, sondern verkürzt erst den Kontozugang und schaltet dann in den Menümodus. Scrollbalken-Reserve, gemeinsames Breitenmodell (Lesebereich, Standard, Breit, Vollbreite), Wortmarke und Inhalt fluchten. - Fokusfalle im Mobilmenü schließt auch den Weg von der Menü-Schaltfläche in den Inhalt. - Fußbereich mit Grundzeile für rechtliche Links und grünem Bogen. - Markenakzente (Unterstreichung, Strahlen, Bogen) als Komponenten. - Hero: Varianten Markenbühne (randlos) und Editorial, zweite Schaltfläche, Bildausschnitt. Bild und Text: Bildformat und Ausschnitt. Karten: hervorgehobene erste Karte, ganze Karte klickbar. Programmkarten mit Markentafel. Alles additiv, ohne neue Version. Testanpassungen: Die Website-Wortmarke trägt jetzt brand-lockup, die erste Hero-Schaltfläche button-brand (beabsichtigte Gestaltung). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3a5e5290f1
commit
33aaf64024
31 files changed
+1646
-357
No files matched your search
@@ -1,26 +1,36 @@
|
||||
{{--
|
||||
Redaktionelle Karten. Varianten: standard (Raster), compact (Liste), featured (erste Karte hervorgehoben).
|
||||
Die ganze Karte ist über den Titellink klickbar (gestreckter Link); Bilder sind dekorativ.
|
||||
--}}
|
||||
@php
|
||||
$variant = in_array($variant, ['standard', 'compact', 'featured'], true) ? $variant : 'standard';
|
||||
@endphp
|
||||
@if ($items !== [])
|
||||
<ul class="cards cards-{{ $variant === 'compact' ? 'compact' : 'grid' }}">
|
||||
<ul class="cards cards-{{ $variant === 'standard' ? 'grid' : $variant }}">
|
||||
@foreach ($items as $item)
|
||||
<li class="card @if ($item['imageUrl']) card-with-image @endif">
|
||||
@if ($item['url'])
|
||||
<a href="{{ $item['url'] }}">
|
||||
@if ($item['imageUrl'])
|
||||
<img class="card-image" src="{{ $item['imageUrl'] }}" alt="" loading="lazy">
|
||||
<li @class([
|
||||
'card',
|
||||
'card-with-image' => $item['imageUrl'],
|
||||
'card-linked' => $item['url'],
|
||||
'card-lead' => $variant === 'featured' && $loop->first,
|
||||
])>
|
||||
@if ($item['imageUrl'])
|
||||
<div class="card-media">
|
||||
<img class="card-image" src="{{ $item['imageUrl'] }}" alt="" loading="lazy" decoding="async">
|
||||
</div>
|
||||
@endif
|
||||
<div class="card-body">
|
||||
<h3 class="card-title">
|
||||
@if ($item['url'])
|
||||
<a href="{{ $item['url'] }}">{{ $item['title'] }}</a>
|
||||
@else
|
||||
{{ $item['title'] }}
|
||||
@endif
|
||||
<h3>{{ $item['title'] }}</h3>
|
||||
@if (filled($item['text']))
|
||||
<p>{{ $item['text'] }}</p>
|
||||
@endif
|
||||
</a>
|
||||
@else
|
||||
@if ($item['imageUrl'])
|
||||
<img class="card-image" src="{{ $item['imageUrl'] }}" alt="" loading="lazy">
|
||||
@endif
|
||||
<h3>{{ $item['title'] }}</h3>
|
||||
</h3>
|
||||
@if (filled($item['text']))
|
||||
<p>{{ $item['text'] }}</p>
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
{{--
|
||||
Programm- und Modulkarten. Titel, Kurzbeschreibung, Art und Ziel kommen zur Laufzeit aus den maßgeblichen
|
||||
Fachdaten (PublicCatalogReader); nichts davon wird im CMS gespeichert. Statt Bildern trägt eine Markentafel die Art.
|
||||
Darstellung nach Slotbreite: schmal gestapelt, breit mit Tafel neben dem Text (siehe widgets.css).
|
||||
--}}
|
||||
@if ($entries !== [] || $context->preview)
|
||||
<div class="catalog-cards catalog-cards-{{ $variant === 'compact' ? 'compact' : 'standard' }}">
|
||||
<div class="catalog-cards catalog-cards-{{ $variant === 'compact' ? 'compact' : 'standard' }}" data-count="{{ count($entries) }}">
|
||||
@if (filled($data['heading'] ?? null))
|
||||
<h2>{{ $data['heading'] }}</h2>
|
||||
@endif
|
||||
@@ -11,9 +16,12 @@
|
||||
@else
|
||||
<ul class="catalog-list">
|
||||
@foreach ($entries as $entry)
|
||||
<li class="catalog-card @unless ($entry->public) catalog-card-internal @endunless">
|
||||
<li @class(['catalog-card', 'catalog-card-linked' => $entry->url, 'catalog-card-internal' => ! $entry->public])>
|
||||
@if ($variant !== 'compact')
|
||||
<div class="catalog-card-visual" aria-hidden="true"><span>{{ $entry->kindLabel }}</span></div>
|
||||
<div class="catalog-card-visual" aria-hidden="true">
|
||||
<span>{{ $entry->kindLabel }}</span>
|
||||
<x-brand.rays class="catalog-card-rays" />
|
||||
</div>
|
||||
@endif
|
||||
<div class="catalog-card-body">
|
||||
<p class="catalog-card-kind">{{ $entry->kindLabel }}</p>
|
||||
|
||||
@@ -1,18 +1,52 @@
|
||||
<div class="hero hero-{{ $variant === 'highlight' ? 'highlight' : 'standard' }} @if ($imageUrl) hero-with-image @endif">
|
||||
<div class="hero-copy">
|
||||
@if (! empty($first))
|
||||
<h1>{{ $data['heading'] ?? '' }}</h1>
|
||||
@else
|
||||
<h2>{{ $data['heading'] ?? '' }}</h2>
|
||||
@endif
|
||||
@if (filled($data['text'] ?? null))
|
||||
<p class="lede">{{ $data['text'] }}</p>
|
||||
@endif
|
||||
@if ($action)
|
||||
<a class="button" href="{{ $action['url'] }}">{{ $action['label'] }}</a>
|
||||
@endif
|
||||
{{--
|
||||
Einstieg (Hero). Varianten:
|
||||
- standard: Text neben dem Bild (ältere Instanzen unverändert gültig)
|
||||
- highlight: dunkle Markenfläche
|
||||
- stage: Markenbühne, Bild über die volle Breite, Text auf heller Tafel (randlos, wenn allein im Abschnitt)
|
||||
- editorial: textbetonter Einstieg, Bild optional als breites Band darunter
|
||||
Das Bild des ersten Widgets wird sofort geladen (größtes Element), alle anderen verzögert.
|
||||
--}}
|
||||
@php
|
||||
$variant = in_array($variant, ['standard', 'highlight', 'stage', 'editorial'], true) ? $variant : 'standard';
|
||||
$headingTag = ! empty($first) ? 'h1' : 'h2';
|
||||
$loading = ! empty($first) ? 'loading="eager" fetchpriority="high"' : 'loading="lazy"';
|
||||
@endphp
|
||||
<div @class([
|
||||
'hero',
|
||||
'hero-'.$variant,
|
||||
'hero-with-image' => $imageUrl,
|
||||
'hero-text-left' => $variant === 'stage' && $textSide === 'left',
|
||||
]) style="--hero-focus: {{ $focus }}">
|
||||
@if ($imageUrl && $variant === 'stage')
|
||||
<div class="hero-media">
|
||||
<img class="hero-image" src="{{ $imageUrl }}" alt="{{ $data['alt'] ?? '' }}" {!! $loading !!} decoding="async">
|
||||
</div>
|
||||
@endif
|
||||
<div class="hero-frame">
|
||||
<div class="hero-copy">
|
||||
@if ($variant === 'stage' || $variant === 'highlight')
|
||||
<x-brand.rays class="hero-rays" />
|
||||
@endif
|
||||
<{{ $headingTag }}>{{ $data['heading'] ?? '' }}</{{ $headingTag }}>
|
||||
<x-brand.underline class="hero-mark" />
|
||||
@if (filled($data['text'] ?? null))
|
||||
<p class="lede">{{ $data['text'] }}</p>
|
||||
@endif
|
||||
@if ($actions !== [])
|
||||
<div class="hero-actions">
|
||||
@foreach ($actions as $index => $item)
|
||||
<a @class(['button', 'button-brand' => $index === 0, 'button-secondary' => $index > 0]) href="{{ $item['url'] }}">{{ $item['label'] }}</a>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@if ($imageUrl)
|
||||
<img class="hero-image" src="{{ $imageUrl }}" alt="{{ $data['alt'] ?? '' }}">
|
||||
@if ($imageUrl && $variant !== 'stage')
|
||||
<figure class="hero-figure">
|
||||
<img class="hero-image" src="{{ $imageUrl }}" alt="{{ $data['alt'] ?? '' }}" {!! $loading !!} decoding="async">
|
||||
@if ($variant === 'standard')
|
||||
<x-brand.rays class="hero-rays" />
|
||||
@endif
|
||||
</figure>
|
||||
@endif
|
||||
</div>
|
||||
@@ -1,6 +1,9 @@
|
||||
<div class="image-text image-text-{{ $variant === 'image_right' ? 'right' : 'left' }} @unless ($imageUrl) image-text-no-image @endunless">
|
||||
{{-- Bild und Text. Varianten: image_left, image_right. Einstellungen: Bildformat und Bildausschnitt. --}}
|
||||
<div class="image-text image-text-{{ $variant === 'image_right' ? 'right' : 'left' }} @unless ($imageUrl) image-text-no-image @endunless image-format-{{ $format }}" style="--image-focus: {{ $focus }}">
|
||||
@if ($imageUrl)
|
||||
<img src="{{ $imageUrl }}" alt="{{ $data['alt'] ?? '' }}" loading="lazy">
|
||||
<figure class="image-text-figure">
|
||||
<img src="{{ $imageUrl }}" alt="{{ $data['alt'] ?? '' }}" @if (! empty($first)) loading="eager" fetchpriority="high" @else loading="lazy" @endif decoding="async">
|
||||
</figure>
|
||||
@endif
|
||||
<div class="image-text-copy">
|
||||
@if (filled($data['title'] ?? null))
|
||||
@@ -9,6 +12,7 @@
|
||||
@else
|
||||
<h2>{{ $data['title'] }}</h2>
|
||||
@endif
|
||||
<x-brand.underline class="image-text-mark" />
|
||||
@endif
|
||||
<div class="prose">{!! $body !!}</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user