Nimm die Brand-UI-Kit-Stände 1.2 bis 1.7 ohne Originalmotive auf.
Design-Tokens, SVG-Entwürfe, Cursor-Übergabe, Branding-Freigabe, freigegebene Logovarianten, Hero-, Bild-und-Text- und Premium-Widgets (v1.6) sowie den Kartenentwurf v1.7 mit Ergänzungsdokumenten; die Architektur- und Analysedokumente verweisen bereits auf diese Ordner. Bewusst nicht aufgenommen: 01_originale/ und die Kopien der Originalmotive in 09_hero_widget/assets und 13_premium_karten_v1.7_entwurf/assets (zusammen etwa 30 MB, Veröffentlichung nicht freigegeben, bleiben sonst dauerhaft in der Historie) sowie das Zip des Kartenentwurfs (Duplikat des Ordners). Die Vorschauen dieser beiden Ordner zeigen deshalb im Repository keine Originalmotive. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
eb6192b067
commit
d5c2b34b9d
130 files changed
+4727
No files matched your search
@@ -0,0 +1,11 @@
|
||||
# Erweiterungsverlauf
|
||||
|
||||
## v1.5.0 — 18.11.2026
|
||||
|
||||
- Additives Unterverzeichnis `11_bild_text_widget_v1.5/`; **kein Überschreiben oder Ersetzen** der v1.0–v1.4-Dateien.
|
||||
- Layoutprofil 1–4 logische Rastereinheiten, Slot-/Mindestbreiten und benannte CSS-Containergrenze.
|
||||
- Höhen `compact`, `normal`, `spacious`, kein Abschneiden längerer Texte.
|
||||
- Bildfokus wird auch mobil nicht mehr durch einen CSS-Wert erzwungen.
|
||||
- Reusable Blade-/CSS-Code, optionale CTA-Links und überprüfbare Konfigurationsbeispiele.
|
||||
- Desktop-/Tablet-/Mobilvorschau mit originaler Kling-Bildwelt aus v1.4.
|
||||
- Kein Repository, kein Deployment und keine formale Freigabe behauptet.
|
||||
@@ -0,0 +1,33 @@
|
||||
# Lara & Felix – Bild & Text v1.5 (Add-on zu v1.4)
|
||||
|
||||
**Status:** Technischer/gestalterischer Implementierungskandidat, **keine Betreiber- oder Produktionsfreigabe**. Die bisherige v1.4 ist unverändert im Archiv enthalten.
|
||||
|
||||
## Sofort ansehen
|
||||
|
||||
- `preview/index.html` — interaktive, lokale Vorschau: 1–4 Rastereinheiten, reale Containerbreite, Bildseite, Fläche, Höhe und Bildfokus.
|
||||
- `preview/matrix.html` — vier nach Containerbreite gestaffelte Muster.
|
||||
- `preview/*.png` — statische Layoutvisualisierungen (1440/768/390 px) aus den unveränderten Bildassets; **keine echten Browser-Screenshots**.
|
||||
|
||||
## Sofort wiederverwenden
|
||||
|
||||
- `components/lf-bild-text.v1.5.css` — isoliertes CSS mit benannten Container-Queries und bestehenden Kit-Tokens, bei Laravel über Vite/Tailwind 4 importieren.
|
||||
- `laravel/resources/views/components/lf/bild-text.blade.php` — echte HTML-Elemente für Text, Bild, Links.
|
||||
- `laravel/app/Support/LfBildTextPayload.php` — URL-/Enum-/Bildfokus-Prüfungen, sicherer Plain-Text-Fallback.
|
||||
- `laravel/examples/block-instance.json` — keine neue Datenbank, nur Beispiel einer CMS-Instanz.
|
||||
- `docs/widget-contract.v2.json` und `docs/layout-profile.json` — konfigurierbare, dokumentierte Eigenschaften.
|
||||
|
||||
**Wichtig:** Die Blade-Ansicht benötigt von der existierenden CMS-Registry das **bereits überprüfte, öffentlich verwendbare** Bild samt URL/Abmessungen. Sie greift nicht selbst auf Medien-/Lizenzdaten zu und ersetzt weder Registry noch Medienpicker. Richtext wird nur als kontrolliert bereinigtes `HtmlString` formatiert gerendert; sonst sicher als einfacher Text. Das ist Absicht: unkontrolliertes HTML darf nicht in den Seitenrenderer gelangen.
|
||||
|
||||
## Varianten / Raster
|
||||
|
||||
1, 2, 3 oder 4 logische Einheiten werden vom vorhandenen Abschnittsraster zugeteilt — die Komponente belegt dabei **immer genau einen Widget-Slot**. Ob sie horizontal oder vertikal rendert, hängt **ausschließlich** davon ab, ob ihr tatsächlicher Container mindestens 840 px breit ist. Bei schmalen Slots wird das Foto oberhalb des Texts angezeigt. **Mindestbreite:** 240 px (empfohlen 280 px). Die CMS-Rasterregeln und Slotzuweisung werden nicht verändert.
|
||||
|
||||
Höhen: `compact`, `normal` (v1.4-Standard), `spacious`. **Keine feste Gesamthöhe**: Text und Buttons werden niemals abgeschnitten. Flächen: `cream`, `clear`, `navy`. Bildposition: `left`/`right` ab 840 px; schmal bleibt Bild oben. Konfigurierbarer Fokus: `x,y` von 0 bis 100 % und über alle Breiten wirksam.
|
||||
|
||||
## Medien / Quellenidentität
|
||||
|
||||
Es werden **keine neuen Kinderfiguren** erzeugt. Für die lokale Demo wird ausschließlich `../10_bild_text_widget/assets/lara-felix-park.webp` (bestehende Ableitung) benutzt; das unveränderte originale PNG verbleibt unter `09_hero_widget/assets/lara-felix-park-original.png`. Siehe `docs/asset-manifest.json` mit Prüfsummen. Die internen Figurenreferenzen unter `01_originale/` bleiben privat und werden nicht in Demos genutzt. **Öffentliche Verwendungsfreigabe ist noch separat zu prüfen.**
|
||||
|
||||
## Integration & Abnahme
|
||||
|
||||
`docs/integration-und-abnahme.md` enthält den Einbauablauf und unverfälschten Status. ADR-28 (Editorentscheidung) und ADR-30 (Widget-Registry-Architektur) sind noch nicht durch dieses Add-on entschieden. Für tatsächliche Repo-Integration muss der real vorhandene BlockRegistry-Code geprüft werden; hier liegt nur das Kit, **kein Laravel-Repository**, vor.
|
||||
@@ -0,0 +1,113 @@
|
||||
/* Lara & Felix · Bild & Text v1.5 — additive Erweiterung von v1.4.
|
||||
Scoped classes, keine fremden globalen Resets oder neuen Markenwerte.
|
||||
Responsivität nach *tatsächlicher Widget-Containerbreite*. */
|
||||
.lf-bt-host {
|
||||
container: lf-bt / inline-size;
|
||||
inline-size:100%; min-inline-size:0; max-inline-size:100%;
|
||||
}
|
||||
.lf-bt-host, .lf-bt-host * { box-sizing:border-box; }
|
||||
.lf-bt {
|
||||
--bt-navy:var(--lf-navy, #032551);
|
||||
--bt-green:var(--lf-green-deep, #3B7B09);
|
||||
--bt-yellow:var(--lf-yellow, #FCD10A);
|
||||
--bt-cream:var(--lf-cream, #F7F6F2);
|
||||
--bt-muted:var(--lf-muted, #46556B);
|
||||
--bt-focus-x:60%; --bt-focus-y:50%;
|
||||
display:grid; grid-template-columns:minmax(0,1fr);
|
||||
gap:clamp(1.05rem,3.3cqi,2.2rem);
|
||||
align-items:center; padding:clamp(1rem,3.6cqi,3.8rem);
|
||||
border-radius:clamp(1rem,1.8cqi,1.65rem);
|
||||
min-inline-size:0; max-inline-size:100%; overflow:hidden;
|
||||
background:var(--bt-cream); color:var(--bt-navy);
|
||||
font-family:var(--lf-font-ui, 'Nunito Sans', 'Segoe UI', system-ui, sans-serif);
|
||||
font-size:1rem; line-height:1.6;
|
||||
}
|
||||
.lf-bt--clear { background:transparent; }
|
||||
.lf-bt--navy { background:var(--bt-navy); color:#fff; }
|
||||
.lf-bt__copy { min-inline-size:0; max-inline-size:43rem; }
|
||||
.lf-bt__eyebrow {
|
||||
display:inline-flex;align-items:center;gap:.65rem;
|
||||
color:#295B08; font-size:clamp(.7rem,1.5cqi,.82rem);
|
||||
font-weight:800; line-height:1.45; letter-spacing:.095em; text-transform:uppercase;
|
||||
margin:0 0 clamp(.65rem,1.9cqi,1.2rem);
|
||||
}
|
||||
.lf-bt__eyebrow::before {
|
||||
content:''; display:block; inline-size:1.45rem; block-size:.25rem;
|
||||
background:var(--bt-yellow);border-radius:999px;flex:0 0 auto;
|
||||
}
|
||||
.lf-bt--navy .lf-bt__eyebrow { color:#FFF2B0; }
|
||||
.lf-bt__headline {
|
||||
font-size:clamp(1.58rem,4.8cqi,3.38rem);
|
||||
line-height:1.13; letter-spacing:-.032em; font-weight:850;
|
||||
margin:0; text-wrap:balance; overflow-wrap:break-word;
|
||||
}
|
||||
.lf-bt__accent {
|
||||
display:block; inline-size:clamp(4.8rem,13cqi,7rem); block-size:.39rem;
|
||||
margin:clamp(.65rem,1.8cqi,1.2rem) 0 clamp(.85rem,2.3cqi,1.45rem) .12rem;
|
||||
background:var(--bt-yellow); border-radius:90% 35% 75% 40%; transform:rotate(-1deg);
|
||||
}
|
||||
.lf-bt__body { color:var(--bt-muted); font-size:clamp(.96rem,1.65cqi,1.12rem);line-height:1.7;overflow-wrap:anywhere; }
|
||||
.lf-bt__body > :first-child {margin-block-start:0}
|
||||
.lf-bt__body > :last-child {margin-block-end:0}
|
||||
.lf-bt__body p {margin:0 0 .85em}
|
||||
.lf-bt__body ul,.lf-bt__body ol {padding-inline-start:1.35em; margin:.5em 0}
|
||||
.lf-bt__body a {color:inherit;text-decoration:underline;text-underline-offset:.15em}
|
||||
.lf-bt--navy .lf-bt__body {color:#F0F4F9}
|
||||
.lf-bt__actions {display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin-block-start:clamp(1.1rem,2.5cqi,1.8rem)}
|
||||
.lf-bt__button {
|
||||
display:inline-flex;align-items:center;justify-content:center;gap:.7rem;
|
||||
padding:.76rem 1.2rem; min-block-size:3rem; border-radius:999px;
|
||||
border:2px solid var(--bt-green);background:var(--bt-green);color:#fff;
|
||||
font-weight:800;font-size:.91rem;line-height:1.25;text-decoration:none;text-align:center;
|
||||
transition:transform .14s ease, background-color .14s ease;
|
||||
}
|
||||
.lf-bt__button:visited {color:#fff}
|
||||
.lf-bt__button:hover {background:#285A06;transform:translateY(-1px)}
|
||||
.lf-bt__button:focus-visible, .lf-bt__body a:focus-visible {outline:3px solid var(--bt-yellow);outline-offset:4px}
|
||||
.lf-bt__button--secondary {color:inherit;background:transparent;border-color:currentColor}
|
||||
.lf-bt__button--secondary:visited {color:inherit}
|
||||
.lf-bt__button--secondary:hover {background:rgba(3,37,81,.05)}
|
||||
.lf-bt--navy .lf-bt__button--secondary:hover {background:rgba(255,255,255,.1)}
|
||||
.lf-bt__media {
|
||||
position:relative; display:flex; min-inline-size:0; align-self:stretch;
|
||||
order:-1; isolation:isolate;
|
||||
}
|
||||
.lf-bt__media::before {
|
||||
content:''; position:absolute;inset:auto -.5rem -.5rem 1.35rem;
|
||||
block-size:55%;border-radius:1.2rem;background:#8AB848;
|
||||
transform:rotate(1.6deg);z-index:-1;
|
||||
}
|
||||
.lf-bt--navy .lf-bt__media::before {background:var(--bt-yellow)}
|
||||
.lf-bt__image {
|
||||
display:block;inline-size:100%;block-size:auto;aspect-ratio:16/10;
|
||||
object-fit:cover;object-position:var(--bt-focus-x) var(--bt-focus-y);
|
||||
border-radius:clamp(.85rem,1.8cqi,1.3rem);
|
||||
box-shadow:0 13px 34px rgb(3 37 81 / .12);
|
||||
}
|
||||
/* Höhe heißt Bildproportion/Innenraum. TEXT BLEIBT VOLLSTÄNDIG. */
|
||||
.lf-bt--height-compact {gap:clamp(.85rem,2.4cqi,1.6rem)}
|
||||
.lf-bt--height-compact .lf-bt__image {aspect-ratio:16/9}
|
||||
.lf-bt--height-compact .lf-bt__actions {margin-block-start:1rem}
|
||||
.lf-bt--height-spacious {gap:clamp(1.35rem,4.4cqi,3rem)}
|
||||
.lf-bt--height-spacious .lf-bt__image {aspect-ratio:4/3}
|
||||
@container lf-bt (min-width: 840px) {
|
||||
.lf-bt {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.9rem,4.2cqi,4.5rem)}
|
||||
.lf-bt__media {order:0;align-self:stretch;min-block-size:0}
|
||||
.lf-bt--image-left .lf-bt__media {order:-1}
|
||||
.lf-bt__image {block-size:100%;min-block-size:19rem;max-block-size:36rem;aspect-ratio:4/3}
|
||||
.lf-bt--height-compact .lf-bt__image {min-block-size:15rem;max-block-size:26rem;aspect-ratio:3/2}
|
||||
.lf-bt--height-spacious .lf-bt__image {min-block-size:24rem;max-block-size:41rem;aspect-ratio:1/1}
|
||||
.lf-bt--height-compact {padding-block:clamp(1.5rem,3cqi,3rem)}
|
||||
.lf-bt--height-spacious {padding-block:clamp(2.2rem,5cqi,5rem)}
|
||||
}
|
||||
@container lf-bt (max-width: 420px) {
|
||||
.lf-bt__actions {display:grid;grid-template-columns:minmax(0,1fr)}
|
||||
.lf-bt__button {inline-size:100%;white-space:normal}
|
||||
.lf-bt__headline {font-size:clamp(1.48rem,7.5cqi,2rem)}
|
||||
.lf-bt__body {font-size:.96rem}
|
||||
.lf-bt__eyebrow {letter-spacing:.045em}
|
||||
}
|
||||
@media (prefers-reduced-motion:reduce) {
|
||||
.lf-bt__button {transition:none}
|
||||
.lf-bt__button:hover {transform:none}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
# Prüfbericht v1.5 · 18.11.2026
|
||||
|
||||
**Prüfbereich:** Additives Komponentenpaket, keine produktive CMS-Instanz.
|
||||
|
||||
| Prüfschritt | Befund |
|
||||
|---|---|
|
||||
| Unversehrtheit des v1.4-Archivs | 56 von 56 ursprünglichen Dateien binär verglichen, unverändert |
|
||||
| Vorhandene Kling-Fotodateien | Original-PNG und vorhandene WebP-Datei unverändert; SHA-256 dokumentiert |
|
||||
| Neue JSON-Dateien | 4 Dateien erfolgreich syntaktisch geparst |
|
||||
| Komponenten-CSS | 39 top-level Regeln mit tinycss2 geparst, keine Parserfehler |
|
||||
| PHP-Helper | PHP 8.4 `php -l` erfolgreich; direkte Fälle für URL-Sicherheit, Fokusgrenzen und HTML-Text-Fallback erfolgreich |
|
||||
| Blade-Template | liegt vor; keine Kompilierung im echten Laravel-Projekt durchgeführt |
|
||||
| Interactive HTML | im Kit enthalten; keine erfolgreiche Browserausführung in dieser Umgebung |
|
||||
| Desktop/Tablet/Smartphone PNG | als **statische Layoutvisualisierung mit unverändertem Foto** erstellt, manuell betrachtet; **keine echten DOM-/Browser-Screenshots** |
|
||||
| Laravel Registry/Filament | nicht geprüft, da reales Repository nicht vorliegt |
|
||||
| Tastatur, WCAG-Audit, Geräte | im echten Browser nach Integration prüfen |
|
||||
| Marken-/öffentliche Bildfreigabe | nicht durch das technische Kit erteilt |
|
||||
|
||||
**Hinweis zur Browserprüfung:** Versuche, die lokale HTML-Vorschau aus Chromium/Playwright zu öffnen, wurden durch eine Administrationssperre (`ERR_BLOCKED_BY_ADMINISTRATOR`) verhindert. Auch ein alternativer Headless-Aufruf lieferte keine Aufnahme. Aus diesem Grund sind weder Viewport-E2E-Nachweise noch Pixelübereinstimmung behauptet.
|
||||
|
||||
**Ergebnis:** prüfbarer **Implementierungskandidat**, keine CMS-/Produktionsfreigabe.
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"status": "all existing files referenced; no character generation; public release unverified",
|
||||
"original": {
|
||||
"path": "09_hero_widget/assets/lara-felix-park-original.png",
|
||||
"sha256": "dbcb393be9904592c2d8b206b66840c69f42f499be78238869123822892a2f54",
|
||||
"unchanged": true
|
||||
},
|
||||
"web_preview_derivative": {
|
||||
"path": "10_bild_text_widget/assets/lara-felix-park.webp",
|
||||
"sha256": "bddb10c456b08005f5cb2d647426c89e29711f66bdcf9b78cea6a0edf0f47c38",
|
||||
"unchanged": true
|
||||
},
|
||||
"internal_characters": "01_originale/*referenz*: not used in public previews"
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
# Integration, Tests und Freigabe – Bild & Text v1.5
|
||||
|
||||
## Geltung: Komponente vs. bestehendes CMS
|
||||
|
||||
- **Aus v1.4 übernommen:** visueller Aufbau, Fotomotiv, Bereichskennzeile, Unterstreichung, CTA, Bild links/rechts, Creme/Transparent/Navy, Bildfokus.
|
||||
- **v1.5 neu:** Höhe compact/normal/spacious, Einheitenprofil 1–4, nachvollziehbare Containergrenze (840 px), sichere Linkbehandlung, Blade-Ansicht und Beispielvertrag. Bildfokus wird auch bei engen Slots respektiert; v1.4 überschrieb ihn unter 450 px.
|
||||
- **Nicht entschieden:** Änderung der zentralen Registry-API, Medienauswahl, neues CMS-Feldschema, dauerhaftes Referenzformat, Seiten-/Abschnittsregeln. ADR-28 und ADR-30 bleiben in der Projektführung zu prüfen.
|
||||
|
||||
## Einbau ohne parallelen Datenbestand
|
||||
|
||||
1. Im bestehenden Laravel-Projekt die CSS-Datei nach `resources/css/components/` kopieren und **einmal** in die bereits verwendete Tailwind-4-/Vite-Datei importieren.
|
||||
2. PHP-Hilfsklasse in `app/Support/` und Blade-Komponente in `resources/views/components/lf/` übernehmen.
|
||||
3. Die **existierende** zentrale Widget-Registry um die Art `lf-editorial-bild-text` erweitern **oder** den bestehenden Bild-Text-Typ gezielt um einen Renderer ergänzen; genaue API nur nach Repo-Sichtung festlegen. `v1.4`-Felder bleiben per Leseadapter erhalten, keine Bestandsrevision überschreiben.
|
||||
4. Bild-ID über bestehenden Medienpicker wählen; **vor öffentlichem Rendern** die ausdrückliche Medienfreigabe prüfen, dann URL/`srcset`/Abmessungen liefern. Keine internen Referenzporträts freigeben.
|
||||
5. CMS-Richtext mit **vorhandenem erlaubtem Sanitizer** bereinigen und als `Illuminate\Support\HtmlString` an die Blade-Ansicht übergeben. Ohne Sanitizer gibt die Komponente lediglich sicheren Text aus. Keine unkontrollierten `<script>`/HTML-Attribute akzeptieren.
|
||||
6. Editor-Vorschau und öffentliche Seite verwenden **dieselbe Blade-Komponente**, keine zweite Darstellungsimplementierung.
|
||||
7. An bestehendes Slotraster anbinden; ein Widget belegt einen Slot, der Abschnitt sorgt für höchstens vier logische Einheiten und seinen mobilen Umbruch.
|
||||
|
||||
## Testmatrix
|
||||
|
||||
| Prüfung | Soll | Lokaler Status |
|
||||
| --- | --- | --- |
|
||||
| Raster-Slots 1–4 | keine Überläufe, Umschaltung nach tatsächlicher Breite | HTML-Vorschau angelegt; Ausführung im Browser hier gesperrt |
|
||||
| Höhe compact/normal/spacious | kein Text-Cropping, unterschiedliche Bildhöhe | CSS und statische Layoutvisualisierung; Browserprüfung offen |
|
||||
| Fokus 0/0, 64/50, 100/100 | Bildobjektposition wird nicht überschrieben | CSS-Code statisch geprüft, Browserinteraktion offen |
|
||||
| Bild links/rechts | zweispaltig ab 840 px, sonst Bild oben | CSS und statische Layoutvisualisierung; Browserprüfung offen |
|
||||
| Fokus/Hover | sichtbare Fokus-Ringe, reduzierte Bewegung | CSS-Code geprüft, Tastatur-E2E offen |
|
||||
| Originalasset | Original-PNG im Kit unverändert | SHA-256 im Manifest |
|
||||
| Medienrechte | nur öffentlich freigegebene Bilder | **nicht geprüft**, Repo erforderlich |
|
||||
| Registry & bestehende Revisionen | kompatibel, keine Datenduplizierung | **nicht geprüft**, Repo erforderlich |
|
||||
| Laravel/Filament-Editor | gleiches Blade in Vorschau und Frontend | **nicht geprüft**, Repo erforderlich |
|
||||
| PHP Unit / Laravel E2E | Dateien im echten Projekt lauffähig | **nicht ausgeführt**, Repository fehlt |
|
||||
|
||||
**Freigabestatus:** `DESIGN: zur UX-Sichtprüfung`; `KOMPONENTE: Implementierungskandidat`; `CMS-INTEGRATION: ausstehend`; `PRODUKTION: nicht freigegeben`.
|
||||
|
||||
## Übergreifend zurück an Architektur-/Steuerungschat
|
||||
|
||||
- Die genaue API/Schemaversion des vorhandenen Widget-Registers (ADR-30) ist **Vorschlag, nicht beschlossen**. Das Kit liefert nur die Komponentenspezifikation und einen read-only v1-Leseadapter.
|
||||
- Ob die vorgeschlagene CMS-Erweiterung den Editor-UX-Vorbehalt ADR-28 erfüllt, bleibt Aufgabe des praktischen Prototyps.
|
||||
- Öffentliche Medienfreigabe und kuratierte Asset-Identität sind mit der zentralen Bildauswahl abzustimmen. Kein Automatismus durch einen vorhandenen Kling-Frame.
|
||||
|
||||
Referenzen: `design-prinzipien.md` §§4, 5, 6, 9, 13; `12_Entscheidungsprotokoll_ADR.md` ADR-28/30/36; `website-cms-marketing-zielarchitektur.md` §5.3–5.5 (Entwurf); v1.4 `10_bild_text_widget/`.
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"component": "lf-editorial-bild-text",
|
||||
"kit_version": "1.5.0",
|
||||
"status": "implementation-candidate: pending visual/CMS sign-off",
|
||||
"slots": {"supported_spans": [1,2,3,4], "max_widgets_per_slot": 1},
|
||||
"width": {
|
||||
"required_min_inline_px": 240,
|
||||
"recommended_min_inline_px": 280,
|
||||
"two_column_min_inline_px": 840,
|
||||
"rule": "Containerbreite nach CMS-Slotberechnung ist maßgeblich; Einheiten steuern keine CSS-Breakpoints. Unter 840 px immer vertikal, ab 840 px zweispaltig."
|
||||
},
|
||||
"height_variants": {
|
||||
"compact": "kürzere Medienansicht, knapperer Innenabstand; Inhalt nicht gekürzt",
|
||||
"normal": "Standardproportion der Medienansicht",
|
||||
"spacious": "größere Medienansicht, mehr Luft; Inhalt nicht gekürzt"
|
||||
},
|
||||
"image_side": ["left","right"],
|
||||
"surface": ["cream","clear","navy"],
|
||||
"full_section": false,
|
||||
"section_handling": "Das Layout des CMS-Abschnitts bestimmt Rasterumbrüche. Die Komponente nutzt genau einen Slot. Keine eigenständige Erzeugung, Reservierung oder Überschreibung weiterer Slots.",
|
||||
"overflow": "auto-height, no fixed card height, no line-clamp or forced text truncation",
|
||||
"content_priority": "Bei Einspaltigkeit Bild vor Text, unabhängig von image_side",
|
||||
"compatibility": "V1-Felder und Varianten werden nicht entfernt; fehlende height-Option ergibt normal."
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"widget_id": "lf-editorial-bild-text",
|
||||
"component_version": "1.5.0",
|
||||
"suggested_schema_version": 2,
|
||||
"status": "component contract for review; registry architecture ADR-30 not hereby approved",
|
||||
"cms_envelope_proposal": {
|
||||
"id": "stable-existing-block-id",
|
||||
"type": "lf-editorial-bild-text",
|
||||
"v": 2,
|
||||
"variant": "editorial",
|
||||
"settings": {"surface":"cream", "image_side":"right", "height":"normal", "heading_level":"h2", "image_focus":{"x":64,"y":50}},
|
||||
"data": {"eyebrow":"", "headline":"", "body":"", "image_alt":"", "primary_cta":null, "secondary_cta":null},
|
||||
"refs": {"image_reference":"existing-public-media-id"}
|
||||
},
|
||||
"supported_slots": [1,2,3,4],
|
||||
"field_contract_v1_compatibility": {
|
||||
"eyebrow":"data.eyebrow",
|
||||
"headline":"data.headline",
|
||||
"body":"data.body (HTML from existing editor must be sanitized before rendering)",
|
||||
"image_reference":"refs.image_reference or legacy data.image_reference; keep same reference identity",
|
||||
"image_alt":"data.image_alt",
|
||||
"image_focus":"settings.image_focus or legacy data.image_focus",
|
||||
"primary_cta":"data.primary_cta",
|
||||
"secondary_cta":"data.secondary_cta",
|
||||
"image_side":"settings.image_side or legacy variant field",
|
||||
"surface":"settings.surface or legacy variant field"
|
||||
},
|
||||
"new_optional_configuration": {"height":["compact","normal","spacious"],"heading_level":["h2","h3","h1"]},
|
||||
"constraints": {
|
||||
"image_reference": "required, resolve only public-use approved media before render",
|
||||
"image_alt": "required descriptive string unless explicitly decorative under existing media policy",
|
||||
"headline": "required, max length is editorial concern",
|
||||
"body": "existing CMS sanitizer; no raw user-controlled HTML",
|
||||
"primary_cta": "optional {label,url}; URLs allowed if root-relative, #anchor, HTTPS",
|
||||
"secondary_cta": "optional {label,url}; URLs allowed if root-relative, #anchor, HTTPS",
|
||||
"image_focus": "x and y percent, [0,100]"
|
||||
},
|
||||
"non_goals": ["no new media storage", "no second CMS", "no product/offer domain duplication", "no runtime user-installable plugins"]
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Support;
|
||||
|
||||
/** Pure helpers, independent of storage or CMS internals. */
|
||||
final class LfBildTextPayload
|
||||
{
|
||||
public static function oneOf(mixed $value, array $choices, string $fallback): string
|
||||
{
|
||||
return is_string($value) && in_array($value, $choices, true) ? $value : $fallback;
|
||||
}
|
||||
|
||||
public static function focus(mixed $raw): array
|
||||
{
|
||||
if (is_array($raw)) {
|
||||
$x = $raw['x'] ?? 64;
|
||||
$y = $raw['y'] ?? 50;
|
||||
} else {
|
||||
$x = 64;
|
||||
$y = 50;
|
||||
}
|
||||
|
||||
return [
|
||||
'x' => is_numeric($x) ? max(0, min(100, (float) $x)) : 64,
|
||||
'y' => is_numeric($y) ? max(0, min(100, (float) $y)) : 50,
|
||||
];
|
||||
}
|
||||
|
||||
/** These links are redactional CTAs, never raw HTML/JavaScript. */
|
||||
public static function safeUrl(mixed $raw): ?string
|
||||
{
|
||||
if (! is_string($raw)) {
|
||||
return null;
|
||||
}
|
||||
$url = trim($raw);
|
||||
if ($url === '' || preg_match('/[\x00-\x1F\x7F\\\\]/u', $url)) {
|
||||
return null;
|
||||
}
|
||||
if (str_starts_with($url, '/') && ! str_starts_with($url, '//')) {
|
||||
return $url;
|
||||
}
|
||||
if (preg_match('/^#[A-Za-z0-9_-]+$/D', $url)) {
|
||||
return $url;
|
||||
}
|
||||
if (str_starts_with(strtolower($url), 'https://') && filter_var($url, FILTER_VALIDATE_URL)) {
|
||||
return $url;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public static function cta(mixed $raw): ?array
|
||||
{
|
||||
if (! is_array($raw)) {
|
||||
return null;
|
||||
}
|
||||
$label = isset($raw['label']) && is_string($raw['label']) ? trim($raw['label']) : '';
|
||||
$url = self::safeUrl($raw['url'] ?? null);
|
||||
|
||||
return $label !== '' && $url ? ['label' => $label, 'url' => $url] : null;
|
||||
}
|
||||
|
||||
/** Safe readable fallback, if the host app has not supplied sanitized HtmlString. */
|
||||
public static function plainTextFromHtml(string $raw): string
|
||||
{
|
||||
$withBreaks = preg_replace('~</(?:p|div|li|h[1-6])\s*>|<br\s*/?>~i', "\n", $raw) ?? $raw;
|
||||
$plain = trim(html_entity_decode(strip_tags($withBreaks), ENT_QUOTES | ENT_HTML5, 'UTF-8'));
|
||||
|
||||
return $plain;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"id":"existing-block-uuid-example",
|
||||
"type":"lf-editorial-bild-text",
|
||||
"v":2,
|
||||
"variant":"editorial",
|
||||
"settings": {"surface":"cream","image_side":"right","height":"normal","heading_level":"h2","image_focus":{"x":64,"y":50}},
|
||||
"data": {
|
||||
"eyebrow":"Lara & Felix · Unser Ansatz",
|
||||
"headline":"Geschichten, die Kinder zum Mitdenken bringen.",
|
||||
"body":"<p>Alltagsszenen eröffnen Gespräche. Praktische Übungen und passende Materialien unterstützen die Durchführung.</p>",
|
||||
"image_alt":"Lara und Felix stehen gemeinsam in einem sonnigen Park",
|
||||
"primary_cta":{"label":"Konzept kennenlernen","url":"/konzept"},
|
||||
"secondary_cta":{"label":"Themen ansehen","url":"/themen"}
|
||||
},
|
||||
"refs":{"image_reference":"public-media-id-only-after-approval"}
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* INTEGRATIONSSKIZZE — kein Ersatz für die vorhandene BlockRegistry.
|
||||
* Existing CMS owns: ID, slot/span, image picker, public media approval and URL resolution.
|
||||
* Names BlockRegistry / MediaResolver here are ONLY illustrative, not statements of the real API.
|
||||
*/
|
||||
$block = $existingCmsBlock; // Existing page revision payload; do not create another model.
|
||||
$data = $block['data'] ?? [];
|
||||
$settings = $block['settings'] ?? [];
|
||||
|
||||
// Compatible read-only mapping from v1.4 field placement to proposed component v2.
|
||||
$settings['surface'] ??= $block['variant_fields']['surface'] ?? $data['surface'] ?? 'cream';
|
||||
$settings['image_side'] ??= $block['variant_fields']['image_side'] ?? $data['image_side'] ?? 'right';
|
||||
$settings['height'] ??= 'normal';
|
||||
$settings['heading_level'] ??= 'h2';
|
||||
$settings['image_focus'] ??= $data['image_focus'] ?? ['x' => 64, 'y' => 50];
|
||||
|
||||
$mediaId = $block['refs']['image_reference'] ?? $data['image_reference'] ?? null;
|
||||
// $media = $existingPublicMediaService->resolveApprovedImage($mediaId);
|
||||
// If not public-use-approved, do not render. Do not substitute a protected film frame.
|
||||
// $safeHtml = $existingCmsSanitizer->toSafeHtmlString($data['body'] ?? '');
|
||||
// return view('components.lf.bild-text', [
|
||||
// 'data' => [...$data, 'body' => $safeHtml],
|
||||
// 'settings' => $settings,
|
||||
// 'image' => ['src' => $media->url, 'srcset' => $media->srcset, 'width' => ..., 'height' => ...],
|
||||
// ]);
|
||||
|
||||
// Blade invocation with an already-resolved image (same template for preview and public):
|
||||
// <x-lf.bild-text :data="$data" :settings="$settings" :image="$publicImage" />
|
||||
@@ -0,0 +1,14 @@
|
||||
# Einbau in bestehendes Tailwind-4-CSS
|
||||
|
||||
Die vorhandene zentrale `resources/css/app.css` bleibt führend. Zusätzlich importieren:
|
||||
|
||||
```css
|
||||
@import "tailwindcss";
|
||||
/* vorhandene Kit-/Projekt-Tokens bleiben unverändert führend */
|
||||
@import "./components/lf-bild-text.v1.5.css";
|
||||
```
|
||||
|
||||
Die CSS-Datei aus `components/lf-bild-text.v1.5.css` nach
|
||||
`resources/css/components/lf-bild-text.v1.5.css` kopieren. Ist `@import "tailwindcss"` bereits vorhanden, **nicht doppeln**.
|
||||
|
||||
Die Komponente nutzt vorhandene `--lf-*`-Tokens, scoped Klassen und native `@container`-Regeln. Es werden keine neuen globalen Tailwind Utilities und keine neue Marke definiert. `@source` ist für diese CSS-Klassen nicht erforderlich. Kein Browser-JavaScript für das reale Widget nötig.
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
{{-- Lara & Felix v1.5. The calling CMS registry resolves a public, permitted image.
|
||||
No media upload, entitlement decision or second content store here. --}}
|
||||
@props(['data' => [], 'settings' => [], 'image' => []])
|
||||
@php
|
||||
$surface = \App\Support\LfBildTextPayload::oneOf($settings['surface'] ?? null, ['cream','clear','navy'], 'cream');
|
||||
$side = \App\Support\LfBildTextPayload::oneOf($settings['image_side'] ?? null, ['left','right'], 'right');
|
||||
$height = \App\Support\LfBildTextPayload::oneOf($settings['height'] ?? null, ['compact','normal','spacious'], 'normal');
|
||||
$heading = \App\Support\LfBildTextPayload::oneOf($settings['heading_level'] ?? null, ['h1','h2','h3'], 'h2');
|
||||
$focus = \App\Support\LfBildTextPayload::focus($settings['image_focus'] ?? $data['image_focus'] ?? null);
|
||||
$mainCta = \App\Support\LfBildTextPayload::cta($data['primary_cta'] ?? null);
|
||||
$otherCta = \App\Support\LfBildTextPayload::cta($data['secondary_cta'] ?? null);
|
||||
$headline = (string) ($data['headline'] ?? '');
|
||||
$eyebrow = (string) ($data['eyebrow'] ?? '');
|
||||
$body = $data['body'] ?? '';
|
||||
$isSanitized = $body instanceof \Illuminate\Support\HtmlString;
|
||||
$src = (string)($image['src'] ?? '');
|
||||
$alt = (string)($data['image_alt'] ?? '');
|
||||
$srcset = (string)($image['srcset'] ?? '');
|
||||
$sizes = (string)($image['sizes'] ?? '(min-width: 1200px) 45vw, 100vw');
|
||||
$imageWidth = max(1, (int)($image['width'] ?? 2048));
|
||||
$imageHeight = max(1, (int)($image['height'] ?? 1156));
|
||||
@endphp
|
||||
<div {{ $attributes->class(['lf-bt-host']) }}>
|
||||
<article class="lf-bt lf-bt--{{ $surface }} lf-bt--image-{{ $side }} lf-bt--height-{{ $height }}"
|
||||
style="--bt-focus-x:{{ $focus['x'] }}%;--bt-focus-y:{{ $focus['y'] }}%;">
|
||||
<div class="lf-bt__copy">
|
||||
@if (trim($eyebrow) !== '')<p class="lf-bt__eyebrow">{{ $eyebrow }}</p>@endif
|
||||
@if ($heading === 'h1')
|
||||
<h1 class="lf-bt__headline">{{ $headline }}</h1>
|
||||
@elseif ($heading === 'h3')
|
||||
<h3 class="lf-bt__headline">{{ $headline }}</h3>
|
||||
@else
|
||||
<h2 class="lf-bt__headline">{{ $headline }}</h2>
|
||||
@endif
|
||||
<span class="lf-bt__accent" aria-hidden="true"></span>
|
||||
<div class="lf-bt__body">
|
||||
@if ($isSanitized)
|
||||
{!! $body !!}
|
||||
@else
|
||||
<p>{!! nl2br(e(\App\Support\LfBildTextPayload::plainTextFromHtml((string)$body))) !!}</p>
|
||||
@endif
|
||||
</div>
|
||||
@if ($mainCta || $otherCta)
|
||||
<div class="lf-bt__actions">
|
||||
@if ($mainCta)<a class="lf-bt__button" href="{{ $mainCta['url'] }}">{{ $mainCta['label'] }} <span aria-hidden="true">→</span></a>@endif
|
||||
@if ($otherCta)<a class="lf-bt__button lf-bt__button--secondary" href="{{ $otherCta['url'] }}">{{ $otherCta['label'] }}</a>@endif
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@if ($src !== '')
|
||||
<div class="lf-bt__media">
|
||||
<img class="lf-bt__image" src="{{ $src }}" alt="{{ $alt }}"
|
||||
@if ($srcset !== '') srcset="{{ $srcset }}" sizes="{{ $sizes }}" @endif
|
||||
width="{{ $imageWidth }}" height="{{ $imageHeight }}" loading="lazy" decoding="async" />
|
||||
</div>
|
||||
@endif
|
||||
</article>
|
||||
</div>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use App\Support\LfBildTextPayload;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
final class LfBildTextPayloadTest extends TestCase
|
||||
{
|
||||
public function test_url_safety(): void
|
||||
{
|
||||
self::assertNull(LfBildTextPayload::safeUrl('javascript:alert(1)'));
|
||||
self::assertNull(LfBildTextPayload::safeUrl('//evil.example'));
|
||||
self::assertNull(LfBildTextPayload::safeUrl('http://example.org'));
|
||||
self::assertSame('/themen', LfBildTextPayload::safeUrl('/themen'));
|
||||
self::assertSame('https://example.org/ok', LfBildTextPayload::safeUrl('https://example.org/ok'));
|
||||
}
|
||||
|
||||
public function test_clamped_focus_and_safe_fallbacks(): void
|
||||
{
|
||||
self::assertSame(['x' => 100.0, 'y' => 0.0], LfBildTextPayload::focus(['x' => 999, 'y' => -9]));
|
||||
self::assertSame('normal', LfBildTextPayload::oneOf('huge', ['compact', 'normal', 'spacious'], 'normal'));
|
||||
self::assertSame('A & B', LfBildTextPayload::plainTextFromHtml('<p>A & B</p>'));
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 383 KiB |
@@ -0,0 +1,57 @@
|
||||
<!doctype html>
|
||||
<html lang="de"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow"><title>Lara & Felix · Bild & Text v1.5 · Vorschau</title>
|
||||
<link rel="stylesheet" href="../components/lf-bild-text.v1.5.css">
|
||||
<style>
|
||||
:root{--lf-navy:#032551;--lf-green-deep:#3B7B09;--lf-yellow:#FCD10A;--lf-cream:#F7F6F2;--lf-muted:#46556B;--lf-font-ui:'Nunito Sans','Segoe UI',system-ui,sans-serif}
|
||||
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#F0F1ED;color:#032551;font:15px/1.55 'Segoe UI',system-ui,sans-serif}
|
||||
.head{background:#fff;border-bottom:1px solid #e0e5e4}.head__inner{max-width:1440px;margin:auto;padding:23px 26px;display:flex;align-items:center;gap:20px;justify-content:space-between;flex-wrap:wrap}
|
||||
.kit-name{display:flex;align-items:center;gap:15px;font-weight:850;font-size:19px;letter-spacing:-.02em}.kit-name__mark{display:inline-flex;inline-size:42px;block-size:42px;align-items:center;justify-content:center;background:#032551;color:#FCD10A;border-radius:12px;font-weight:850}
|
||||
.kit-name small{display:block;color:#56657a;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.chip{border:1px solid #DCE4DC;border-radius:999px;color:#3a5a33;padding:6px 12px;background:#F3F8F0;font-size:12px;font-weight:800}
|
||||
.toolbar{max-width:1440px;margin:auto;padding:16px 26px;display:flex;gap:14px;flex-wrap:wrap;align-items:end}.toolbar label{display:grid;gap:5px;color:#53617a;font-size:12px;font-weight:700}
|
||||
.toolbar select,.toolbar input{font:inherit;color:#032551;background:#fff;border:1px solid #BAC6C9;border-radius:11px;min-height:42px;padding:7px 11px}
|
||||
.toolbar input[type=range]{padding:0 5px;width:105px}.status{margin-inline-start:auto;color:#2f5c24;font-weight:800;font-size:12px;align-self:center}
|
||||
.main{max-width:1440px;margin:0 auto;padding:8px 26px 65px}.panel{background:white;border-radius:23px;box-shadow:0 8px 32px rgb(3 37 81/.045);padding:30px;overflow:hidden}
|
||||
.panel-head{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-block-end:20px}.panel-head h1{font-size:clamp(22px,2.2vw,30px);margin:0 0 6px;letter-spacing:-.035em;line-height:1.2}.panel-head p{margin:0;color:#53617a;font-size:14px}.overline{color:#386524;font-size:11px;letter-spacing:.1em;font-weight:850;text-transform:uppercase;margin:0 0 4px}.width-pill{background:#F3F7F2;color:#285D25;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:800;white-space:nowrap}
|
||||
.frame{width:100%;max-width:var(--frame-width,1320px);margin:auto;transition:max-width .16s ease;container:preview-stage/inline-size}.fake-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:16px;min-width:0}.widget-cell{min-width:0;grid-column:span var(--slot-span,4)}
|
||||
@container preview-stage (max-width:850px){.fake-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.widget-cell{grid-column:span 2}}
|
||||
@container preview-stage (max-width:530px){.fake-grid{grid-template-columns:1fr}.widget-cell{grid-column:1/-1}}
|
||||
.demo-footer{margin:20px auto 0;max-width:var(--frame-width,1320px);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center;font-size:12px;color:#65717c}
|
||||
.demo-footer strong{color:#143658}.demo-footer a{color:#215b37}.disclaimer{background:#F7F6F2;border-left:3px solid #FCD10A;padding:9px 13px;border-radius:0 9px 9px 0}
|
||||
@media(max-width:700px){.head__inner{padding:14px 15px}.kit-name{font-size:16px;gap:10px}.kit-name__mark{inline-size:35px;block-size:35px}.toolbar{padding:12px 12px;gap:10px}.toolbar label{flex:1 1 130px}.toolbar select{width:100%}.toolbar label:has(input){flex:1 1 120px}.status{margin-inline-start:0;width:100%}.main{padding:7px 8px 45px}.panel{padding:13px;border-radius:15px}.panel-head{display:block;margin-block-end:16px}.width-pill{display:inline-block;margin-block-start:7px}.demo-footer{display:block}.demo-footer>*{margin-bottom:9px}}
|
||||
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.frame{transition:none}}
|
||||
</style>
|
||||
</head><body>
|
||||
<header class="head"><div class="head__inner"><div class="kit-name"><span class="kit-name__mark">L&F</span><div>Lara & Felix <small>Brand & UI Kit · Baustein v1.5</small></div></div><span class="chip">Implementierungskandidat · Freigabe offen</span></div></header>
|
||||
<div class="toolbar" role="group" aria-label="Komponenten-Vorschau anpassen">
|
||||
<label>Rastereinheiten <select id="span"><option value="1">1 Einheit</option><option value="2">2 Einheiten</option><option value="3">3 Einheiten</option><option selected value="4">4 Einheiten</option></select></label>
|
||||
<label>Ansichtsbreite <select id="width"><option value="390">390 px</option><option value="768">768 px</option><option value="1024">1024 px</option><option value="1320" selected>1320 px</option></select></label>
|
||||
<label>Höhe <select id="height"><option value="compact">Kompakt</option><option selected value="normal">Normal</option><option value="spacious">Großzügig</option></select></label>
|
||||
<label>Bildseite <select id="side"><option value="right" selected>Rechts</option><option value="left">Links</option></select></label>
|
||||
<label>Fläche <select id="surface"><option value="cream" selected>Creme</option><option value="clear">Transparent</option><option value="navy">Navy</option></select></label>
|
||||
<label>Bildfokus X <input aria-label="Bildfokus horizontal" type="range" min="0" max="100" value="64" id="focus"></label>
|
||||
<span class="status" id="current" aria-live="polite">Vier Rastereinheiten · zweispaltig</span>
|
||||
</div>
|
||||
<main class="main"><section class="panel"><div class="panel-head"><div><p class="overline">Wiederverwendbares Editorial-Widget</p><h1>Bild & Text – Raster- und Höhenvarianten</h1><p>Ein identischer Baustein in schmalen und breiten CMS-Slots, ohne neue Figurenbilder.</p></div><span class="width-pill">Containerbasierter Umbruch · 840 px</span></div>
|
||||
<div class="frame" id="frame" style="--frame-width:1320px;--slot-span:4"><div class="fake-grid"><div class="widget-cell" id="cell"><div class="lf-bt-host"><article id="widget" class="lf-bt lf-bt--cream lf-bt--image-right lf-bt--height-normal" style="--bt-focus-x:64%;--bt-focus-y:50%;">
|
||||
<div class="lf-bt__copy">
|
||||
<p class="lf-bt__eyebrow">Lara & Felix · Unser Ansatz</p>
|
||||
<h2 class="lf-bt__headline">Geschichten, die Kinder zum Mitdenken bringen.</h2><span class="lf-bt__accent" aria-hidden="true"></span>
|
||||
<div class="lf-bt__body"><p>Alltagsszenen eröffnen Gespräche über persönliche Grenzen und sichere Entscheidungen. Trainerinnen und Trainer vertiefen die Themen mit passenden Übungen und Begleitmaterialien.</p></div>
|
||||
<div class="lf-bt__actions"><a class="lf-bt__button" href="#demo-konzept">Konzept kennenlernen <span aria-hidden="true">→</span></a><a class="lf-bt__button lf-bt__button--secondary" href="#demo-themen">Themen ansehen</a></div></div>
|
||||
<div class="lf-bt__media"><img class="lf-bt__image" src="../../10_bild_text_widget/assets/lara-felix-park.webp" width="2048" height="1156" loading="eager" alt="Lara und Felix stehen zusammen in einem sonnigen Park"></div>
|
||||
</article></div></div></div></div><div class="demo-footer"><span class="disclaimer"><strong>Nur lokale Komponenten-Demo:</strong> Beispieltexte und Demo-Anker; keine veröffentlichte Angebotsseite.</span><span>1 Widget belegt genau 1 CMS-Slot · Darstellung wird nach Containerbreite umgebrochen</span></div>
|
||||
<div id="demo-konzept" style="height:1px" aria-hidden="true"></div><div id="demo-themen" style="height:1px" aria-hidden="true"></div>
|
||||
</section></main>
|
||||
<script>
|
||||
const s=id=>document.getElementById(id);const frame=s('frame'),widget=s('widget'),cell=s('cell');
|
||||
function sync(){
|
||||
const span=Number(s('span').value), width=Number(s('width').value),height=s('height').value,side=s('side').value,surface=s('surface').value,focus=Number(s('focus').value);
|
||||
frame.style.setProperty('--frame-width',width+'px');frame.style.setProperty('--slot-span',span);const frameActual=frame.getBoundingClientRect().width;const columns=frameActual<=530?1:(frameActual<=850?2:4);cell.style.gridColumn='span '+Math.min(span,columns);
|
||||
widget.className='lf-bt lf-bt--'+surface+' lf-bt--image-'+side+' lf-bt--height-'+height;
|
||||
widget.style.setProperty('--bt-focus-x',focus+'%');widget.style.setProperty('--bt-focus-y','50%');
|
||||
requestAnimationFrame(()=>{const actual=Math.round(cell.getBoundingClientRect().width);s('current').textContent=actual+' px tatsächliche Widgetbreite · '+(actual>=840?'zweispaltig':'gestapelt');});
|
||||
}
|
||||
for(const id of ['span','width','height','side','surface','focus'])s(id).addEventListener('input',sync);
|
||||
window.addEventListener('resize',sync);sync();
|
||||
</script></body></html>
|
||||
@@ -0,0 +1,59 @@
|
||||
<!doctype html>
|
||||
<html lang="de"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow"><title>Lara & Felix · Bild & Text v1.5 · Vorschau</title>
|
||||
<link rel="stylesheet" href="../components/lf-bild-text.v1.5.css">
|
||||
<style>
|
||||
:root{--lf-navy:#032551;--lf-green-deep:#3B7B09;--lf-yellow:#FCD10A;--lf-cream:#F7F6F2;--lf-muted:#46556B;--lf-font-ui:'Nunito Sans','Segoe UI',system-ui,sans-serif}
|
||||
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#F0F1ED;color:#032551;font:15px/1.55 'Segoe UI',system-ui,sans-serif}
|
||||
.head{background:#fff;border-bottom:1px solid #e0e5e4}.head__inner{max-width:1440px;margin:auto;padding:23px 26px;display:flex;align-items:center;gap:20px;justify-content:space-between;flex-wrap:wrap}
|
||||
.kit-name{display:flex;align-items:center;gap:15px;font-weight:850;font-size:19px;letter-spacing:-.02em}.kit-name__mark{display:inline-flex;inline-size:42px;block-size:42px;align-items:center;justify-content:center;background:#032551;color:#FCD10A;border-radius:12px;font-weight:850}
|
||||
.kit-name small{display:block;color:#56657a;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.chip{border:1px solid #DCE4DC;border-radius:999px;color:#3a5a33;padding:6px 12px;background:#F3F8F0;font-size:12px;font-weight:800}
|
||||
.toolbar{max-width:1440px;margin:auto;padding:16px 26px;display:flex;gap:14px;flex-wrap:wrap;align-items:end}.toolbar label{display:grid;gap:5px;color:#53617a;font-size:12px;font-weight:700}
|
||||
.toolbar select,.toolbar input{font:inherit;color:#032551;background:#fff;border:1px solid #BAC6C9;border-radius:11px;min-height:42px;padding:7px 11px}
|
||||
.toolbar input[type=range]{padding:0 5px;width:105px}.status{margin-inline-start:auto;color:#2f5c24;font-weight:800;font-size:12px;align-self:center}
|
||||
.main{max-width:1440px;margin:0 auto;padding:8px 26px 65px}.panel{background:white;border-radius:23px;box-shadow:0 8px 32px rgb(3 37 81/.045);padding:30px;overflow:hidden}
|
||||
.panel-head{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-block-end:20px}.panel-head h1{font-size:clamp(22px,2.2vw,30px);margin:0 0 6px;letter-spacing:-.035em;line-height:1.2}.panel-head p{margin:0;color:#53617a;font-size:14px}.overline{color:#386524;font-size:11px;letter-spacing:.1em;font-weight:850;text-transform:uppercase;margin:0 0 4px}.width-pill{background:#F3F7F2;color:#285D25;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:800;white-space:nowrap}
|
||||
.frame{width:100%;max-width:var(--frame-width,1320px);margin:auto;transition:max-width .16s ease;container:preview-stage/inline-size}.fake-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:16px;min-width:0}.widget-cell{min-width:0;grid-column:span var(--slot-span,4)}
|
||||
@container preview-stage (max-width:850px){.fake-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.widget-cell{grid-column:span min(var(--slot-span,4),2)}}
|
||||
@container preview-stage (max-width:530px){.fake-grid{grid-template-columns:1fr}.widget-cell{grid-column:1/-1}}
|
||||
.demo-footer{margin:20px auto 0;max-width:var(--frame-width,1320px);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center;font-size:12px;color:#65717c}
|
||||
.demo-footer strong{color:#143658}.demo-footer a{color:#215b37}.disclaimer{background:#F7F6F2;border-left:3px solid #FCD10A;padding:9px 13px;border-radius:0 9px 9px 0}
|
||||
@media(max-width:700px){.head__inner{padding:14px 15px}.kit-name{font-size:16px;gap:10px}.kit-name__mark{inline-size:35px;block-size:35px}.toolbar{padding:12px 12px;gap:10px}.toolbar label{flex:1 1 130px}.toolbar select{width:100%}.toolbar label:has(input){flex:1 1 120px}.status{margin-inline-start:0;width:100%}.main{padding:7px 8px 45px}.panel{padding:13px;border-radius:15px}.panel-head{display:block;margin-block-end:16px}.width-pill{display:inline-block;margin-block-start:7px}.demo-footer{display:block}.demo-footer>*{margin-bottom:9px}}
|
||||
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.frame{transition:none}}
|
||||
</style>
|
||||
</head><body>
|
||||
<style>
|
||||
.matrix-main{max-width:1440px;padding:26px 24px 50px;margin:auto}.matrix-main h1{margin:0;font-size:30px;letter-spacing:-.03em}.matrix-main>p{color:#53617a;margin:5px 0 28px}.matrix-row{padding:24px;border-radius:20px;background:#fff;margin-bottom:24px}.matrix-row__head{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-bottom:17px;color:#65717c;font-size:13px}.matrix-row__head b{margin-left:auto;color:#123d35}.unit{font-size:14px;font-weight:850;color:#032551}.matrix-card{margin:0 auto;max-width:100%}
|
||||
@media(max-width:700px){.matrix-main{padding:16px 8px}.matrix-row{padding:12px}.matrix-main h1{font-size:24px}}
|
||||
</style>
|
||||
<header class="head"><div class="head__inner"><div class="kit-name"><span class="kit-name__mark">L&F</span><div>Lara & Felix <small>v1.5 · visuelle Vergleichsübersicht</small></div></div><span class="chip">4 Rasterprofile · 3 Höhen</span></div></header>
|
||||
<main class="matrix-main"><h1>Ein Widget. Vier Containerbreiten.</h1><p>Die Rastereinheiten sind Empfehlungen; die Darstellung folgt der tatsächlich verfügbaren Slotbreite.</p>
|
||||
<section class="matrix-row"><div class="matrix-row__head"><span class="unit">1 Rastereinheit</span><span>Kleine Randspalte · Bild oben</span><b>270px</b></div><div class="matrix-card" style="width:min(100%,270px)"><div class="lf-bt-host"><article class="lf-bt lf-bt--cream lf-bt--image-right lf-bt--height-compact" style="--bt-focus-x:64%;--bt-focus-y:50%;">
|
||||
<div class="lf-bt__copy">
|
||||
<p class="lf-bt__eyebrow">Lara & Felix · Unser Ansatz</p>
|
||||
<h2 class="lf-bt__headline">Geschichten, die Kinder zum Mitdenken bringen.</h2><span class="lf-bt__accent" aria-hidden="true"></span>
|
||||
<div class="lf-bt__body"><p>Alltagsszenen regen zum Nachdenken an. Praktische Übungen und Materialien unterstützen Trainerinnen und Trainer in der gemeinsamen Arbeit mit Kindern.</p></div>
|
||||
<div class="lf-bt__actions"><a class="lf-bt__button" href="#demo-konzept">Konzept kennenlernen <span aria-hidden="true">→</span></a><a class="lf-bt__button lf-bt__button--secondary" href="#demo-themen">Themen ansehen</a></div></div>
|
||||
<div class="lf-bt__media"><img class="lf-bt__image" src="../../10_bild_text_widget/assets/lara-felix-park.webp" width="2048" height="1156" loading="eager" alt="Lara und Felix stehen zusammen in einem sonnigen Park"></div>
|
||||
</article></div></div></section><section class="matrix-row"><div class="matrix-row__head"><span class="unit">2 Rastereinheiten</span><span>Mittlerer Inhalt · Bild oben</span><b>590px</b></div><div class="matrix-card" style="width:min(100%,590px)"><div class="lf-bt-host"><article class="lf-bt lf-bt--clear lf-bt--image-right lf-bt--height-normal" style="--bt-focus-x:64%;--bt-focus-y:50%;">
|
||||
<div class="lf-bt__copy">
|
||||
<p class="lf-bt__eyebrow">Lara & Felix · Unser Ansatz</p>
|
||||
<h2 class="lf-bt__headline">Geschichten, die Kinder zum Mitdenken bringen.</h2><span class="lf-bt__accent" aria-hidden="true"></span>
|
||||
<div class="lf-bt__body"><p>Alltagsszenen regen zum Nachdenken an. Praktische Übungen und Materialien unterstützen Trainerinnen und Trainer in der gemeinsamen Arbeit mit Kindern.</p></div>
|
||||
<div class="lf-bt__actions"><a class="lf-bt__button" href="#demo-konzept">Konzept kennenlernen <span aria-hidden="true">→</span></a><a class="lf-bt__button lf-bt__button--secondary" href="#demo-themen">Themen ansehen</a></div></div>
|
||||
<div class="lf-bt__media"><img class="lf-bt__image" src="../../10_bild_text_widget/assets/lara-felix-park.webp" width="2048" height="1156" loading="eager" alt="Lara und Felix stehen zusammen in einem sonnigen Park"></div>
|
||||
</article></div></div></section><section class="matrix-row"><div class="matrix-row__head"><span class="unit">3 Rastereinheiten</span><span>Großer Inhalt · zweispaltig</span><b>890px</b></div><div class="matrix-card" style="width:min(100%,890px)"><div class="lf-bt-host"><article class="lf-bt lf-bt--cream lf-bt--image-left lf-bt--height-normal" style="--bt-focus-x:64%;--bt-focus-y:50%;">
|
||||
<div class="lf-bt__copy">
|
||||
<p class="lf-bt__eyebrow">Lara & Felix · Unser Ansatz</p>
|
||||
<h2 class="lf-bt__headline">Geschichten, die Kinder zum Mitdenken bringen.</h2><span class="lf-bt__accent" aria-hidden="true"></span>
|
||||
<div class="lf-bt__body"><p>Alltagsszenen regen zum Nachdenken an. Praktische Übungen und Materialien unterstützen Trainerinnen und Trainer in der gemeinsamen Arbeit mit Kindern.</p></div>
|
||||
<div class="lf-bt__actions"><a class="lf-bt__button" href="#demo-konzept">Konzept kennenlernen <span aria-hidden="true">→</span></a><a class="lf-bt__button lf-bt__button--secondary" href="#demo-themen">Themen ansehen</a></div></div>
|
||||
<div class="lf-bt__media"><img class="lf-bt__image" src="../../10_bild_text_widget/assets/lara-felix-park.webp" width="2048" height="1156" loading="eager" alt="Lara und Felix stehen zusammen in einem sonnigen Park"></div>
|
||||
</article></div></div></section><section class="matrix-row"><div class="matrix-row__head"><span class="unit">4 Rastereinheiten</span><span>Abschnittsbreite · zweispaltig</span><b>1240px</b></div><div class="matrix-card" style="width:min(100%,1240px)"><div class="lf-bt-host"><article class="lf-bt lf-bt--navy lf-bt--image-right lf-bt--height-spacious" style="--bt-focus-x:64%;--bt-focus-y:50%;">
|
||||
<div class="lf-bt__copy">
|
||||
<p class="lf-bt__eyebrow">Lara & Felix · Unser Ansatz</p>
|
||||
<h2 class="lf-bt__headline">Geschichten, die Kinder zum Mitdenken bringen.</h2><span class="lf-bt__accent" aria-hidden="true"></span>
|
||||
<div class="lf-bt__body"><p>Alltagsszenen regen zum Nachdenken an. Praktische Übungen und Materialien unterstützen Trainerinnen und Trainer in der gemeinsamen Arbeit mit Kindern.</p></div>
|
||||
<div class="lf-bt__actions"><a class="lf-bt__button" href="#demo-konzept">Konzept kennenlernen <span aria-hidden="true">→</span></a><a class="lf-bt__button lf-bt__button--secondary" href="#demo-themen">Themen ansehen</a></div></div>
|
||||
<div class="lf-bt__media"><img class="lf-bt__image" src="../../10_bild_text_widget/assets/lara-felix-park.webp" width="2048" height="1156" loading="eager" alt="Lara und Felix stehen zusammen in einem sonnigen Park"></div>
|
||||
</article></div></div></section></main></body></html>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 152 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 513 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 392 KiB |
Reference in new issue
Block a user