Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
759b3e1c02 | ||
|
|
57b2131632 |
No files matched your search
@@ -63,6 +63,6 @@ ## Entwicklung
|
||||
## Verwaltungsoberfläche
|
||||
|
||||
- Maßgeblich sind `docs/ux/verwaltung/14-verwaltungsstandard.md` (Design und Interaktion) und `15-umbauauftrag.md` (Auftrag, Nachweise). Keine neue allgemeine Designabstimmung verlangen. Einstieg für alle Agenten: `AGENTS.md`, `.cursor/rules/verwaltung-ux.mdc`.
|
||||
- Gemeinsame Bausteine wiederverwenden statt neue Masken bauen: `resources/views/filament/verwaltung/` (`kopf`, `redaktion`, `texte`, `praesentation`, `einordnung`, `picker`, `bestaetigung`, `abgang`, `aufbau`, `bestand`) mit dem Trait `App\Filament\Support\ManagesEditorialSurface`. Listen nutzen `verwaltung/bestand` mit `ShowsBestand` (bzw. `ListsCompositions`, `ListsCatalog`) und den Eintrag `<x-vw.eintrag>`, den auch der Picker verwendet; Katalogobjekte die Seite `catalog/objekt`. CMS: Seitenkopf `cms/seite-kopf` (Register, Kontexte „Abschnitt gestalten“ und „Konfigurieren“); Seiten und Menüs in der Webpräsenz (`App\Filament\Pages\Webpraesenz`, Menüs als Arbeitsstand mit einer Speicherhandlung). Der Picker liegt im Trait `ChoosesMedia` (Redaktion über `ManagesEditorialSurface`, CMS-Bilder über `ChoosesWebsiteImages`); keine eigenen Auswahllisten für Medien bauen. Redaktionelle Auswahlwerte (Materialart, Einordnung) nur über `App\Domain\Catalog\EditorialVocabulary` anbieten und prüfen (aktiv, zulässiger Kontext, vorhandene Zuordnungen erhalten); gepflegt werden sie unter „Redaktionelle Stammdaten“. Fachliche Säulen gibt es nur in der Säulenverwaltung (`pillars`); Zuordnung über `PillarService::assign`, nie über eine Dimension. Ersetzt eine Seite die Filament-Tabelle, muss sie den Dialogbereich ausgeben (in `bestand` enthalten), sonst öffnen „… anlegen“-Dialoge nicht. Gestaltungswerte nur in `verwaltung/styles.blade.php` (Tokens `--vw-…`, dokumentiert in `docs/ux/verwaltung/tokens.md`).
|
||||
- Gemeinsame Bausteine wiederverwenden statt neue Masken bauen: `resources/views/filament/verwaltung/` (`kopf`, `redaktion`, `texte`, `praesentation`, `einordnung`, `picker`, `bestaetigung`, `abgang`, `aufbau`, `bestand`) mit dem Trait `App\Filament\Support\ManagesEditorialSurface`. Listen nutzen `verwaltung/bestand` mit `ShowsBestand` (bzw. `ListsCompositions`, `ListsCatalog`) und den Eintrag `<x-vw.eintrag>`, den auch der Picker verwendet; Katalogobjekte die Seite `catalog/objekt`. CMS: Seitenkopf `cms/seite-kopf` (Register, Kontexte „Abschnitt gestalten“ und „Konfigurieren“); Seiten und Menüs in der Webpräsenz (`App\Filament\Pages\Webpraesenz`, Menüs als Arbeitsstand mit einer Speicherhandlung). Der Picker liegt im Trait `ChoosesMedia` (Redaktion über `ManagesEditorialSurface`, CMS-Bilder über `ChoosesWebsiteImages`); keine eigenen Auswahllisten für Medien bauen. Redaktionelle Auswahlwerte (Materialart, Einordnung) nur über `App\Domain\Catalog\EditorialVocabulary` anbieten und prüfen (aktiv, zulässiger Kontext, vorhandene Zuordnungen erhalten); gepflegt werden sie unter „Redaktionelle Stammdaten“. Ersetzt eine Seite die Filament-Tabelle, muss sie den Dialogbereich ausgeben (in `bestand` enthalten), sonst öffnen „… anlegen“-Dialoge nicht. Gestaltungswerte nur in `verwaltung/styles.blade.php` (Tokens `--vw-…`, dokumentiert in `docs/ux/verwaltung/tokens.md`).
|
||||
- Die Redaktion ist ein Arbeitsstand: nur „Redaktion speichern“ schreibt Texte, Einordnung, Präsentationsmedien und Abweichungen. Kein verdecktes Mitspeichern aus anderen Dialogen, offene Eingaben bleiben beim Wechsel erhalten.
|
||||
- Jede UI-Änderung in der echten Anwendung prüfen (luf-test, breite und schmale Fenster, Tastatur) und mit Screenshots in `docs/ux/verwaltung/abnahme/` belegen. Stand der Abnahme: `abnahme/teil-a.md`, `abnahme/teil-b.md`, `abnahme/teil-c.md`, `abnahme/stammdaten.md`.
|
||||
@@ -1,25 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Domain\Catalog\LegacyPillarAdoption;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class AdoptLegacyPillars extends Command
|
||||
{
|
||||
protected $signature = 'luf:saeulen-uebernehmen {--dry-run : Nur berichten, nichts schreiben}';
|
||||
|
||||
protected $description = 'Übernimmt die alte Dimension „Fachliche Säule“ in die zentrale Säulenverwaltung und berichtet ungeklärte Fälle';
|
||||
|
||||
public function handle(): int
|
||||
{
|
||||
$dryRun = (bool) $this->option('dry-run');
|
||||
$report = (new LegacyPillarAdoption)->run($dryRun);
|
||||
|
||||
foreach (LegacyPillarAdoption::lines($report, $dryRun) as $line) {
|
||||
$this->line($line);
|
||||
}
|
||||
|
||||
return $report['unresolved'] === [] ? self::SUCCESS : self::FAILURE;
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
|
||||
class Composition extends Model
|
||||
@@ -45,13 +44,4 @@ public function versions(): HasMany
|
||||
{
|
||||
return $this->hasMany(CompositionVersion::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Direkt zugeordnete fachliche Säulen (zentrale Säulenverwaltung). Die Säulen der enthaltenen Medien sind davon
|
||||
* getrennt und werden zur Laufzeit abgeleitet (CatalogReading::memberPillars).
|
||||
*/
|
||||
public function pillars(): BelongsToMany
|
||||
{
|
||||
return $this->belongsToMany(Pillar::class)->orderBy('pillars.sort_order')->orderBy('pillars.name');
|
||||
}
|
||||
}
|
||||
@@ -20,15 +20,20 @@ public function values(): HasMany
|
||||
}
|
||||
|
||||
/**
|
||||
* Fachliche Säulen werden für alle Objektarten über die zentrale Säulenverwaltung gewählt (`pillars`), nie über
|
||||
* eine Dimension. Die alte Dimension „Fachliche Säule“ bleibt nur als Verlauf in der Datenbank und wird nirgends
|
||||
* mehr angeboten, geändert oder gefiltert.
|
||||
* Inhaltselemente pflegen Themen über die Säulen, nicht noch einmal über die Dimension.
|
||||
* Module, Programme und Lizenzartikel haben keine Säulenauswahl und behalten die Dimension.
|
||||
*
|
||||
* @return Collection<int, self>
|
||||
*/
|
||||
public static function forSubject(Model $subject): Collection
|
||||
{
|
||||
return static::query()->with('values')->where('slug', '!=', self::PILLAR_SLUG)->orderBy('label')->get();
|
||||
$query = static::query()->with('values')->orderBy('label');
|
||||
|
||||
if ($subject instanceof ContentElement) {
|
||||
$query->where('slug', '!=', self::PILLAR_SLUG);
|
||||
}
|
||||
|
||||
return $query->get();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
class EditorialDimensionValue extends Model
|
||||
{
|
||||
protected $fillable = ['editorial_dimension_id', 'pillar_id', 'slug', 'label', 'sort_order', 'is_active'];
|
||||
protected $fillable = ['editorial_dimension_id', 'slug', 'label', 'sort_order', 'is_active'];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
|
||||
@@ -181,13 +181,13 @@ public function dimensionGroups(Model $subject, array $assignedIds): array
|
||||
* @param list<int> $selectedIds
|
||||
* @return list<array{label: string, values: list<array{id: int, label: string}>}>
|
||||
*/
|
||||
public function dimensionFilterGroups(array $selectedIds = []): array
|
||||
public function dimensionFilterGroups(array $selectedIds = [], bool $withPillars = true): array
|
||||
{
|
||||
$used = DB::table('identity_dimension_values')->distinct()->pluck('editorial_dimension_value_id')->map(fn ($id): int => (int) $id)->all();
|
||||
$groups = [];
|
||||
|
||||
foreach (EditorialDimension::query()->with('values')->orderBy('label')->get() as $dimension) {
|
||||
if ($dimension->slug === EditorialDimension::PILLAR_SLUG) {
|
||||
if (! $withPillars && $dimension->slug === EditorialDimension::PILLAR_SLUG) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -217,7 +217,7 @@ public function dimensionFilterGroups(array $selectedIds = []): array
|
||||
*/
|
||||
public function memberFilterDimensions(array $selectedIds = []): Collection
|
||||
{
|
||||
$dimensions = EditorialDimension::query()->with('values')->where('slug', '!=', EditorialDimension::PILLAR_SLUG)->orderBy('label')->get();
|
||||
$dimensions = EditorialDimension::query()->with('values')->orderBy('label')->get();
|
||||
|
||||
foreach ($dimensions as $dimension) {
|
||||
$dimension->setRelation('values', $dimension->values
|
||||
|
||||
@@ -1,270 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\Catalog;
|
||||
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
/**
|
||||
* Übernimmt die frühere Kopie „Fachliche Säule“ (Dimension `saeule`) in die zentrale Säulenverwaltung (Tabelle
|
||||
* `pillars`). Verlustfrei, wiederholbar und ohne Raten:
|
||||
*
|
||||
* - **Zuordnung Wert → Säule** nur über die gespeicherte Kennung `pfeiler-{Säulenkennung}`, die die Migration
|
||||
* vom 16.11.2026 beim Spiegeln geschrieben hat, und nur, wenn die Säule existiert und nicht jünger als der Wert ist
|
||||
* (sonst kann die Kennung nicht aus ihr entstanden sein). Eine abweichende Bezeichnung ist nach einem Umbenennen
|
||||
* erwartet und wird nur berichtet. Die Verknüpfung steht in `editorial_dimension_values.pillar_id`.
|
||||
* - **Übernommen** werden nur direkte Zuordnungen von Modulen, Programmen und Lizenzartikeln in `composition_pillar`
|
||||
* und `license_article_pillar` (insert-or-ignore, daher beliebig oft ausführbar).
|
||||
* - **Nicht übernommen, sondern gemeldet:** Werte ohne belastbare Kennung, Zuordnungen zu fehlenden Objekten,
|
||||
* abgeleitete Zuordnungen und unbekannte Objektarten. Abgeleitete Säulen eines Programms oder Moduls entstehen zur
|
||||
* Laufzeit aus den enthaltenen Medien und werden nie als direkte Zuordnung gespeichert.
|
||||
* - **Medien:** Die gespiegelten Zeilen sind eine veraltete Kopie; maßgeblich ist `content_element_pillar`. Sie werden
|
||||
* nicht zurückgemischt, nur gezählt.
|
||||
* - Alte Zeilen werden weder geändert noch gelöscht.
|
||||
*
|
||||
* Nur die Datenbankfassade, damit spätere Änderungen an Modellen die Migration nicht berühren.
|
||||
*/
|
||||
final class LegacyPillarAdoption
|
||||
{
|
||||
/** @var array<string, array{table: string, column: string, subjects: string}> */
|
||||
private const TARGETS = [
|
||||
'composition' => ['table' => 'composition_pillar', 'column' => 'composition_id', 'subjects' => 'compositions'],
|
||||
'license_article' => ['table' => 'license_article_pillar', 'column' => 'license_article_id', 'subjects' => 'license_articles'],
|
||||
];
|
||||
|
||||
/**
|
||||
* @return array{
|
||||
* mapping: list<array<string, mixed>>,
|
||||
* unresolved: list<array<string, mixed>>,
|
||||
* copied: array<string, int>,
|
||||
* already: array<string, int>,
|
||||
* before: array<string, int>,
|
||||
* after: array<string, int>,
|
||||
* mirror: array<string, int>
|
||||
* }
|
||||
*/
|
||||
public function run(bool $dryRun = false): array
|
||||
{
|
||||
$report = [
|
||||
'mapping' => [],
|
||||
'unresolved' => [],
|
||||
'copied' => ['composition' => 0, 'license_article' => 0],
|
||||
'already' => ['composition' => 0, 'license_article' => 0],
|
||||
'before' => $this->counts(),
|
||||
'after' => [],
|
||||
'mirror' => ['element_rows' => 0, 'missing_in_pivot' => 0, 'only_in_pivot' => 0],
|
||||
];
|
||||
|
||||
$dimension = DB::table('editorial_dimensions')->where('slug', 'saeule')->first();
|
||||
|
||||
if ($dimension === null) {
|
||||
$report['after'] = $report['before'];
|
||||
|
||||
return $report;
|
||||
}
|
||||
|
||||
$resolved = [];
|
||||
|
||||
foreach (DB::table('editorial_dimension_values')->where('editorial_dimension_id', $dimension->id)->orderBy('id')->get() as $value) {
|
||||
$pillar = $this->pillarFor($value);
|
||||
|
||||
if (is_string($pillar)) {
|
||||
$report['unresolved'][] = ['art' => 'Wert', 'wert_id' => (int) $value->id, 'wert' => $value->label, 'kennung' => $value->slug, 'grund' => $pillar];
|
||||
$report['mapping'][] = ['wert_id' => (int) $value->id, 'wert' => $value->label, 'saeule_id' => null, 'status' => 'offen'];
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
$resolved[(int) $value->id] = (int) $pillar->id;
|
||||
$status = $value->pillar_id === null ? 'zugeordnet' : 'bereits zugeordnet';
|
||||
$hint = $value->label !== $pillar->name ? 'über Kennung zugeordnet, Bezeichnung weicht ab („'.$pillar->name.'“)' : null;
|
||||
$report['mapping'][] = ['wert_id' => (int) $value->id, 'wert' => $value->label, 'saeule_id' => (int) $pillar->id, 'saeule' => $pillar->name, 'status' => $status, 'hinweis' => $hint];
|
||||
|
||||
if ($value->pillar_id === null && ! $dryRun) {
|
||||
DB::table('editorial_dimension_values')->where('id', $value->id)->update(['pillar_id' => $pillar->id]);
|
||||
}
|
||||
}
|
||||
|
||||
$subjectTypes = $this->subjectTypes();
|
||||
|
||||
foreach (DB::table('identity_dimension_values')
|
||||
->whereIn('editorial_dimension_value_id', DB::table('editorial_dimension_values')->where('editorial_dimension_id', $dimension->id)->select('id'))
|
||||
->orderBy('id')->get() as $row) {
|
||||
$valueId = (int) $row->editorial_dimension_value_id;
|
||||
$label = DB::table('editorial_dimension_values')->where('id', $valueId)->value('label');
|
||||
$target = $subjectTypes[$row->subject_type] ?? null;
|
||||
|
||||
if ($target === 'content_element') {
|
||||
$report['mirror']['element_rows']++;
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
$where = ['art' => 'Zuordnung', 'zuordnung_id' => (int) $row->id, 'wert_id' => $valueId, 'wert' => $label, 'objektart' => $row->subject_type, 'objekt_id' => (int) $row->subject_id, 'herkunft' => $row->origin];
|
||||
|
||||
if ($target === null) {
|
||||
$report['unresolved'][] = $where + ['grund' => 'unbekannte Objektart'];
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($row->origin !== 'direkt') {
|
||||
$report['unresolved'][] = $where + ['grund' => 'abgeleitete Zuordnung (wird nicht als direkte übernommen)'];
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
if (! isset($resolved[$valueId])) {
|
||||
$report['unresolved'][] = $where + ['grund' => 'Wert ohne belastbare Säule'];
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
$config = self::TARGETS[$target];
|
||||
|
||||
if (! DB::table($config['subjects'])->where('id', $row->subject_id)->exists()) {
|
||||
$report['unresolved'][] = $where + ['grund' => 'Objekt nicht mehr vorhanden'];
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
$present = DB::table($config['table'])->where($config['column'], $row->subject_id)->where('pillar_id', $resolved[$valueId])->exists();
|
||||
|
||||
if ($present) {
|
||||
$report['already'][$target]++;
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
if (! $dryRun) {
|
||||
DB::table($config['table'])->insertOrIgnore([$config['column'] => $row->subject_id, 'pillar_id' => $resolved[$valueId]]);
|
||||
}
|
||||
|
||||
$report['copied'][$target]++;
|
||||
}
|
||||
|
||||
$report['mirror'] = array_merge($report['mirror'], $this->mirrorDivergence($dimension->id, $resolved));
|
||||
$report['after'] = $dryRun ? $report['before'] : $this->counts();
|
||||
|
||||
return $report;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $report
|
||||
* @return list<string>
|
||||
*/
|
||||
public static function lines(array $report, bool $dryRun = false): array
|
||||
{
|
||||
$names = ['composition' => 'Module und Programme', 'license_article' => 'Lizenzartikel'];
|
||||
$lines = [$dryRun ? 'Probelauf, es wird nichts geschrieben.' : 'Übernahme abgeschlossen.', ''];
|
||||
|
||||
foreach ($report['mapping'] as $row) {
|
||||
$lines[] = sprintf('Wert %d „%s“ → %s%s', $row['wert_id'], $row['wert'], $row['saeule_id'] === null ? 'keine Säule (offen)' : 'Säule '.$row['saeule_id'].' „'.($row['saeule'] ?? '').'“ ('.$row['status'].')', ! empty($row['hinweis']) ? ' – '.$row['hinweis'] : '');
|
||||
}
|
||||
|
||||
$lines[] = '';
|
||||
|
||||
foreach ($names as $key => $label) {
|
||||
$lines[] = sprintf('%s: %d übernommen, %d bereits vorhanden, Zuordnungen vorher %d, nachher %d', $label, $report['copied'][$key], $report['already'][$key], $report['before'][$key], $report['after'][$key]);
|
||||
}
|
||||
|
||||
$lines[] = sprintf('Medien (nur Information): %d gespiegelte Zeilen, %d nicht mehr in der Medienzuordnung, %d nur dort. Maßgeblich bleibt die Medienzuordnung.', $report['mirror']['element_rows'], $report['mirror']['missing_in_pivot'], $report['mirror']['only_in_pivot']);
|
||||
|
||||
if ($report['unresolved'] === []) {
|
||||
$lines[] = 'Keine ungeklärten Fälle.';
|
||||
} else {
|
||||
$lines[] = '';
|
||||
$lines[] = 'Ungeklärt, bitte entscheiden (nichts wurde geändert):';
|
||||
|
||||
foreach ($report['unresolved'] as $row) {
|
||||
$lines[] = '- '.json_encode($row, JSON_UNESCAPED_UNICODE);
|
||||
}
|
||||
}
|
||||
|
||||
return $lines;
|
||||
}
|
||||
|
||||
/**
|
||||
* Die Säule zu einem alten Wert, oder der Grund, warum es keine belastbare gibt.
|
||||
*/
|
||||
private function pillarFor(object $value): object|string
|
||||
{
|
||||
if (preg_match('/^pfeiler-(\d+)$/', (string) $value->slug, $match) !== 1) {
|
||||
return 'Kennung ist nicht „pfeiler-<Nummer>“, keine belastbare Verknüpfung';
|
||||
}
|
||||
|
||||
$pillar = DB::table('pillars')->where('id', (int) $match[1])->first();
|
||||
|
||||
if ($pillar === null) {
|
||||
return 'Die Säule zur Kennung existiert nicht mehr';
|
||||
}
|
||||
|
||||
if ($value->pillar_id !== null && (int) $value->pillar_id !== (int) $pillar->id) {
|
||||
return 'Gespeicherte Verknüpfung (Säule '.$value->pillar_id.') und Kennung (Säule '.$pillar->id.') widersprechen sich';
|
||||
}
|
||||
|
||||
if ($pillar->created_at !== null && $value->created_at !== null && $pillar->created_at > $value->created_at) {
|
||||
return 'Die Säule ist jünger als der Wert; die Kennung kann nicht aus ihr entstanden sein';
|
||||
}
|
||||
|
||||
return $pillar;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, string> Objektart wie gespeichert => Ziel
|
||||
*/
|
||||
private function subjectTypes(): array
|
||||
{
|
||||
$types = [];
|
||||
|
||||
foreach ([
|
||||
'composition' => [Composition::class],
|
||||
'license_article' => [LicenseArticle::class],
|
||||
'content_element' => [ContentElement::class],
|
||||
] as $target => $classes) {
|
||||
foreach ($classes as $class) {
|
||||
$types[$class] = $target;
|
||||
$types[(new $class)->getMorphClass()] = $target;
|
||||
}
|
||||
}
|
||||
|
||||
return $types;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, int>
|
||||
*/
|
||||
private function counts(): array
|
||||
{
|
||||
return [
|
||||
'composition' => DB::table('composition_pillar')->count(),
|
||||
'license_article' => DB::table('license_article_pillar')->count(),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<int, int> $resolved
|
||||
* @return array{missing_in_pivot: int, only_in_pivot: int}
|
||||
*/
|
||||
private function mirrorDivergence(int $dimensionId, array $resolved): array
|
||||
{
|
||||
$mirrored = [];
|
||||
|
||||
foreach (DB::table('identity_dimension_values')
|
||||
->whereIn('subject_type', array_unique([ContentElement::class, (new ContentElement)->getMorphClass()]))
|
||||
->whereIn('editorial_dimension_value_id', array_keys($resolved) ?: [0])
|
||||
->get() as $row) {
|
||||
$mirrored[$row->subject_id.':'.$resolved[(int) $row->editorial_dimension_value_id]] = true;
|
||||
}
|
||||
|
||||
$pivot = [];
|
||||
|
||||
foreach (DB::table('content_element_pillar')->get() as $row) {
|
||||
$pivot[$row->content_element_id.':'.$row->pillar_id] = true;
|
||||
}
|
||||
|
||||
return [
|
||||
'missing_in_pivot' => count(array_diff_key($mirrored, $pivot)),
|
||||
'only_in_pivot' => count(array_diff_key($pivot, $mirrored)),
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
|
||||
class LicenseArticle extends Model
|
||||
@@ -50,10 +49,4 @@ public function editorialContentKind(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(EditorialContentKind::class);
|
||||
}
|
||||
|
||||
/** Direkt zugeordnete fachliche Säulen (zentrale Säulenverwaltung). */
|
||||
public function pillars(): BelongsToMany
|
||||
{
|
||||
return $this->belongsToMany(Pillar::class)->orderBy('pillars.sort_order')->orderBy('pillars.name');
|
||||
}
|
||||
}
|
||||
@@ -34,16 +34,6 @@ public function pages(): BelongsToMany
|
||||
return $this->belongsToMany(Page::class);
|
||||
}
|
||||
|
||||
public function compositions(): BelongsToMany
|
||||
{
|
||||
return $this->belongsToMany(Composition::class);
|
||||
}
|
||||
|
||||
public function licenseArticles(): BelongsToMany
|
||||
{
|
||||
return $this->belongsToMany(LicenseArticle::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Builder<Pillar> $query
|
||||
* @return Builder<Pillar>
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\Catalog;
|
||||
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
/**
|
||||
* Alte Filteradressen: Vor der Vereinheitlichung war „Fachliche Säule“ ein Wert der redaktionellen Einordnung
|
||||
* (`?einordnung=…`, `?pillar=…`, `dimension[]=…`). Verweist ein solcher Wert über `pillar_id` auf eine zentrale Säule,
|
||||
* gilt der Filter jetzt für diese Säule, statt stillschweigend zu entfallen.
|
||||
*/
|
||||
final class PillarFilterCompat
|
||||
{
|
||||
/**
|
||||
* @return int|null|false Kennung der Säule; null: alter Säulenwert ohne belastbare Verknüpfung; false: kein Säulenwert
|
||||
*/
|
||||
public static function pillarOfLegacyValue(int $valueId): int|false|null
|
||||
{
|
||||
$row = DB::table('editorial_dimension_values')
|
||||
->join('editorial_dimensions', 'editorial_dimensions.id', '=', 'editorial_dimension_values.editorial_dimension_id')
|
||||
->where('editorial_dimension_values.id', $valueId)
|
||||
->where('editorial_dimensions.slug', EditorialDimension::PILLAR_SLUG)
|
||||
->first(['editorial_dimension_values.pillar_id']);
|
||||
|
||||
if ($row === null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $row->pillar_id === null ? null : (int) $row->pillar_id;
|
||||
}
|
||||
}
|
||||
@@ -40,55 +40,19 @@ public function present(Pillar $pillar, string $name, string $slug, ?string $sum
|
||||
|
||||
public function delete(Pillar $pillar): void
|
||||
{
|
||||
$usage = $this->usage($pillar);
|
||||
|
||||
if (array_sum($usage) > 0) {
|
||||
throw new DomainRuleException('Eine Säule mit zugeordneten Objekten wird nicht gelöscht ('.$this->usageText($usage).'). Ordnen Sie sie zuerst anders zu.');
|
||||
if ($pillar->elements()->exists() || $pillar->pages()->exists()) {
|
||||
throw new DomainRuleException('Eine Säule mit zugeordneten Medien oder Seiten wird nicht gelöscht.');
|
||||
}
|
||||
|
||||
$pillar->delete();
|
||||
}
|
||||
|
||||
/**
|
||||
* Zuordnungen je Objektart: Medien, Module und Programme, Lizenzartikel, Seiten.
|
||||
*
|
||||
* @return array{medien: int, zusammenstellungen: int, lizenzartikel: int, seiten: int}
|
||||
* @param list<int> $pillarIds
|
||||
*/
|
||||
public function usage(Pillar $pillar): array
|
||||
public function assign(ContentElement $element, array $pillarIds): void
|
||||
{
|
||||
return [
|
||||
'medien' => $pillar->elements()->count(),
|
||||
'zusammenstellungen' => $pillar->compositions()->count(),
|
||||
'lizenzartikel' => $pillar->licenseArticles()->count(),
|
||||
'seiten' => $pillar->pages()->count(),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array{medien: int, zusammenstellungen: int, lizenzartikel: int, seiten: int} $usage
|
||||
*/
|
||||
public function usageText(array $usage): string
|
||||
{
|
||||
$parts = [];
|
||||
|
||||
foreach (['medien' => ['Medium', 'Medien'], 'zusammenstellungen' => ['Modul oder Programm', 'Module und Programme'], 'lizenzartikel' => ['Lizenzartikel', 'Lizenzartikel'], 'seiten' => ['Seite', 'Seiten']] as $key => [$one, $many]) {
|
||||
if ($usage[$key] > 0) {
|
||||
$parts[] = $usage[$key].' '.($usage[$key] === 1 ? $one : $many);
|
||||
}
|
||||
}
|
||||
|
||||
return $parts === [] ? 'nirgends zugeordnet' : implode(', ', $parts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ordnet einem Medium, Modul, Programm, Lizenzartikel oder einer Seite Säulen zu. Alle Objektarten verwenden
|
||||
* dieselbe zentrale Säule und dieselbe Speicherregel; die Zuordnung ersetzt die bisherige vollständig.
|
||||
*
|
||||
* @param list<int|string> $pillarIds
|
||||
*/
|
||||
public function assign(ContentElement|Composition|LicenseArticle|Page $subject, array $pillarIds): void
|
||||
{
|
||||
$subject->pillars()->sync($this->ids($pillarIds));
|
||||
$element->pillars()->sync($this->ids($pillarIds));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -96,7 +60,7 @@ public function assign(ContentElement|Composition|LicenseArticle|Page $subject,
|
||||
*/
|
||||
public function assignPages(Page $page, array $pillarIds): void
|
||||
{
|
||||
$this->assign($page, $pillarIds);
|
||||
$page->pillars()->sync($this->ids($pillarIds));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
use App\Domain\Cms\Catalog\PublicCatalogReader;
|
||||
use App\Domain\Cms\Widgets\RenderContext;
|
||||
use App\Filament\Resources\ContentElements\ContentElementResource;
|
||||
use App\Filament\Support\AssignsPillars;
|
||||
use App\Filament\Support\EditorialCatalog;
|
||||
use App\Filament\Support\ManagesEditorialSurface;
|
||||
use App\Filament\Support\MediumForm;
|
||||
@@ -44,7 +43,6 @@
|
||||
|
||||
abstract class EditComposition extends EditRecord
|
||||
{
|
||||
use AssignsPillars;
|
||||
use ManagesEditorialSurface;
|
||||
use WithFileUploads;
|
||||
|
||||
@@ -400,15 +398,11 @@ public function redaktionTexteHinweis(): string
|
||||
*/
|
||||
public function einordnungGruppen(): array
|
||||
{
|
||||
$groups = array_map(fn (array $group): array => [
|
||||
return array_map(fn (array $group): array => [
|
||||
'legend' => $group['label'],
|
||||
'model' => 'dimensionIds',
|
||||
'values' => $group['values'],
|
||||
], $this->dimensionGroups());
|
||||
|
||||
$pillars = $this->pillarGroup();
|
||||
|
||||
return $pillars === null ? $groups : [$pillars, ...$groups];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -472,7 +466,7 @@ public function einordnungUnsaved(): bool
|
||||
sort($stored);
|
||||
sort($current);
|
||||
|
||||
return $stored !== $current || $this->pillarsUnsaved($record);
|
||||
return $stored !== $current;
|
||||
}
|
||||
|
||||
public function openText(): void
|
||||
@@ -1660,7 +1654,6 @@ protected function fillRedaktion(): void
|
||||
->pluck('editorial_dimension_value_id')
|
||||
->map(fn (mixed $id): string => (string) (int) $id)
|
||||
->all();
|
||||
$this->loadPillarIds($composition);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1920,7 +1913,6 @@ protected function persistRedaktion(): bool
|
||||
'description' => $this->description,
|
||||
], $this->actor());
|
||||
$this->syncDimensions($record, array_map(intval(...), $this->dimensionIds));
|
||||
$this->persistPillarIds($record);
|
||||
$record->refresh();
|
||||
$this->getRecord()->setRawAttributes($record->getAttributes());
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
namespace App\Filament\Resources\ContentElements\Pages;
|
||||
|
||||
use App\Domain\Catalog\EditorialVocabulary;
|
||||
use App\Domain\Catalog\PillarFilterCompat;
|
||||
use App\Filament\Resources\ContentElements\ContentElementResource;
|
||||
use App\Filament\Support\Bestand;
|
||||
use App\Filament\Support\MediaLibrary;
|
||||
@@ -171,11 +170,6 @@ public function resetFilters(): void
|
||||
*/
|
||||
public function bestand(): array
|
||||
{
|
||||
// Alte Adressen mit einem Säulenwert der Einordnung gelten für die zentrale Säule.
|
||||
if (ctype_digit($this->einordnung) && $this->saeule === '' && is_int($pillar = PillarFilterCompat::pillarOfLegacyValue((int) $this->einordnung))) {
|
||||
[$this->saeule, $this->einordnung] = [(string) $pillar, ''];
|
||||
}
|
||||
|
||||
$optionen = fn (array $liste, string $wert, string $label): array => collect($liste)
|
||||
->mapWithKeys(fn (array $eintrag): array => [(string) $eintrag[$wert] => $eintrag[$label]])
|
||||
->all();
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
use App\Domain\Catalog\LicenseArticle;
|
||||
use App\Filament\Resources\ContentElements\ContentElementResource;
|
||||
use App\Filament\Resources\LicenseArticles\LicenseArticleResource;
|
||||
use App\Filament\Support\AssignsPillars;
|
||||
use App\Filament\Support\CatalogOptions;
|
||||
use App\Filament\Support\EditorialCatalog;
|
||||
use App\Filament\Support\ManagesEditorialSurface;
|
||||
@@ -31,7 +30,6 @@
|
||||
|
||||
class ViewLicenseArticle extends ViewRecord
|
||||
{
|
||||
use AssignsPillars;
|
||||
use ManagesEditorialSurface;
|
||||
use ReportsDomainRules;
|
||||
|
||||
@@ -117,7 +115,6 @@ protected function saveRedaktionTexte(): bool
|
||||
], auth()->user());
|
||||
|
||||
app(IdentityDimension::class)->replaceOffered($article, array_map(intval(...), $this->dimensionIds));
|
||||
$this->persistPillarIds($article);
|
||||
|
||||
$article->refresh();
|
||||
$this->fillLicenseEditorial();
|
||||
@@ -162,7 +159,7 @@ public function einordnungUnsaved(): bool
|
||||
sort($stored);
|
||||
sort($current);
|
||||
|
||||
return $stored !== $current || $this->pillarsUnsaved($article);
|
||||
return $stored !== $current;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -273,15 +270,11 @@ public function einordnungArt(): array
|
||||
*/
|
||||
public function einordnungGruppen(): array
|
||||
{
|
||||
$groups = array_map(fn (array $group): array => [
|
||||
return array_map(fn (array $group): array => [
|
||||
'legend' => $group['label'],
|
||||
'model' => 'dimensionIds',
|
||||
'values' => $group['values'],
|
||||
], $this->licenseDimensionGroups());
|
||||
|
||||
$pillars = $this->pillarGroup();
|
||||
|
||||
return $pillars === null ? $groups : [$pillars, ...$groups];
|
||||
}
|
||||
|
||||
private function sourceTitle(Model $source): string
|
||||
@@ -319,7 +312,6 @@ private function fillLicenseEditorial(): void
|
||||
->where('origin', 'direkt')
|
||||
->pluck('editorial_dimension_value_id')
|
||||
->all();
|
||||
$this->loadPillarIds($article);
|
||||
}
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
|
||||
@@ -22,7 +22,7 @@ class ListPillars extends ListRecords
|
||||
|
||||
public function getSubheading(): string|Htmlable|null
|
||||
{
|
||||
return 'Die fachlichen Säulen des Materials. Eine veröffentlichte Säule ist ein Themenbereich der Website. Medien, Module, Programme, Lizenzartikel und Seiten können mehreren Säulen zugeordnet sein. Hier ist die einzige Pflegestelle der Säulen.';
|
||||
return 'Die fachlichen Säulen des Materials. Eine veröffentlichte Säule ist ein Themenbereich der Website. Ein Medium und eine Seite können mehreren Säulen zugeordnet sein.';
|
||||
}
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
@@ -50,28 +50,11 @@ protected function getHeaderActions(): array
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Zuordnungen aller Objektarten; ohne Zuordnung wie bisher „0 Medien“.
|
||||
*/
|
||||
private function usageLabel(PillarService $service, Pillar $pillar): string
|
||||
{
|
||||
$usage = [
|
||||
'medien' => (int) $pillar->elements_count,
|
||||
'zusammenstellungen' => (int) $pillar->compositions_count,
|
||||
'lizenzartikel' => (int) $pillar->license_articles_count,
|
||||
'seiten' => (int) $pillar->pages_count,
|
||||
];
|
||||
|
||||
return array_sum($usage) === 0 ? '0 Medien' : $service->usageText($usage);
|
||||
}
|
||||
|
||||
protected function catalogRows(): array
|
||||
{
|
||||
$rows = [];
|
||||
|
||||
$service = app(PillarService::class);
|
||||
|
||||
foreach (Pillar::query()->withCount(['elements', 'compositions', 'licenseArticles', 'pages'])->orderBy('sort_order')->orderBy('name')->get() as $pillar) {
|
||||
foreach (Pillar::query()->withCount('elements')->orderBy('sort_order')->orderBy('name')->get() as $pillar) {
|
||||
$public = $pillar->published_at !== null;
|
||||
$url = PillarResource::getUrl('edit', ['record' => $pillar]);
|
||||
$rows[] = [
|
||||
@@ -83,7 +66,7 @@ protected function catalogRows(): array
|
||||
'url' => $url,
|
||||
'chips' => [
|
||||
$public ? ['label' => 'Auf der Website veröffentlicht', 'ton' => 'gut'] : ['label' => 'Intern', 'ton' => 'leise'],
|
||||
['label' => $this->usageLabel($service, $pillar), 'ton' => 'neutral'],
|
||||
['label' => $pillar->elements_count === 1 ? '1 Medium' : $pillar->elements_count.' Medien', 'ton' => 'neutral'],
|
||||
],
|
||||
'zustand' => [$public ? 'oeffentlich' : 'intern'],
|
||||
'aktionen' => [['label' => 'Bearbeiten', 'href' => $url, 'icon' => 'stift']],
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Support;
|
||||
|
||||
use App\Domain\Catalog\Composition;
|
||||
use App\Domain\Catalog\LicenseArticle;
|
||||
use App\Domain\Catalog\Pillar;
|
||||
use App\Domain\Catalog\PillarService;
|
||||
|
||||
/**
|
||||
* Fachliche Säulen im Redaktionsmanager von Modul, Programm und Lizenzartikel (wie bei Medien): Die Auswahl kommt aus
|
||||
* der zentralen Säulenverwaltung, die Zuordnung ersetzt die bisherige vollständig und bleibt beim Speichern anderer
|
||||
* Angaben erhalten, weil der gespeicherte Stand geladen und mitgeschrieben wird.
|
||||
*
|
||||
* Eine Zuordnung veröffentlicht nichts: Ob eine Säule eine Themenseite hat, entscheidet allein die Säulenverwaltung.
|
||||
*/
|
||||
trait AssignsPillars
|
||||
{
|
||||
/** @var list<int|string> */
|
||||
public array $pillarIds = [];
|
||||
|
||||
/**
|
||||
* @return array{legend: string, model: string, values: list<array{id: int, label: string}>}|null
|
||||
*/
|
||||
public function pillarGroup(): ?array
|
||||
{
|
||||
$values = Pillar::query()->orderBy('sort_order')->orderBy('name')->get(['id', 'name'])
|
||||
->map(fn (Pillar $pillar): array => ['id' => (int) $pillar->id, 'label' => (string) $pillar->name])
|
||||
->all();
|
||||
|
||||
return $values === [] ? null : ['legend' => 'Fachliche Säulen', 'model' => 'pillarIds', 'values' => $values];
|
||||
}
|
||||
|
||||
protected function loadPillarIds(Composition|LicenseArticle $subject): void
|
||||
{
|
||||
$this->pillarIds = $subject->pillars()->pluck('pillars.id')->map(fn (mixed $id): string => (string) (int) $id)->all();
|
||||
}
|
||||
|
||||
protected function persistPillarIds(Composition|LicenseArticle $subject): void
|
||||
{
|
||||
app(PillarService::class)->assign($subject, array_map(intval(...), $this->pillarIds));
|
||||
}
|
||||
|
||||
protected function pillarsUnsaved(Composition|LicenseArticle $subject): bool
|
||||
{
|
||||
$stored = $subject->pillars()->pluck('pillars.id')->map(fn (mixed $id): int => (int) $id)->all();
|
||||
$current = array_map(intval(...), $this->pillarIds);
|
||||
sort($stored);
|
||||
sort($current);
|
||||
|
||||
return $stored !== $current;
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,6 @@
|
||||
use App\Domain\Catalog\ContentElement;
|
||||
use App\Domain\Catalog\ContentElementVersion;
|
||||
use App\Domain\Catalog\EditorialVocabulary;
|
||||
use App\Domain\Catalog\Pillar;
|
||||
use App\Domain\Cms\Catalog\PublicMaterialReader;
|
||||
use App\Domain\Cms\Widgets\Support\WebsiteImage;
|
||||
use App\Http\Controllers\ContentPreviewController;
|
||||
@@ -28,9 +27,6 @@ trait ChoosesMedia
|
||||
|
||||
public string $pickerDimension = '';
|
||||
|
||||
/** Filter „Fachliche Säule“ (Kennung der Säule aus der zentralen Säulenverwaltung). */
|
||||
public string $pickerSaeule = '';
|
||||
|
||||
/** Filter „Fachliche Materialart“ (Kennung), gleiche Regel wie Medieneditor und Medienfilter. */
|
||||
public string $pickerMaterialart = '';
|
||||
|
||||
@@ -112,8 +108,6 @@ public function pickerResult(): array
|
||||
$this->pickerKind,
|
||||
$this->pickerDimension,
|
||||
$this->pickerExceptId(),
|
||||
false,
|
||||
ctype_digit($this->pickerSaeule) ? (int) $this->pickerSaeule : 0,
|
||||
));
|
||||
}
|
||||
|
||||
@@ -210,7 +204,6 @@ protected function resetPicker(string $purpose): void
|
||||
$this->pickerOpen = true;
|
||||
$this->pickerQuery = '';
|
||||
$this->pickerDimension = '';
|
||||
$this->pickerSaeule = '';
|
||||
$this->pickerMaterialart = '';
|
||||
$this->pickerInspected = '';
|
||||
$this->pickerSelected = '';
|
||||
@@ -246,17 +239,6 @@ private function filterByMaterialart(array $result): array
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Säulen für den Picker-Filter, in der Reihenfolge der Säulenverwaltung.
|
||||
*
|
||||
* @return array<string, string>
|
||||
*/
|
||||
public function pickerSaeulen(): array
|
||||
{
|
||||
return Pillar::query()->orderBy('sort_order')->orderBy('name')->pluck('name', 'id')
|
||||
->mapWithKeys(fn (string $name, int|string $id): array => [(string) $id => $name])->all();
|
||||
}
|
||||
|
||||
/**
|
||||
* Einordnungsfilter des Pickers: dieselbe Filterregel wie Medien- und Kompositionslisten (verwendete inaktive Werte
|
||||
* bleiben auffindbar, ein gewählter Filter bleibt sichtbar).
|
||||
|
||||
@@ -272,7 +272,7 @@ public function search(string $query, string $scope, int $exceptCompositionId):
|
||||
/**
|
||||
* @return array{items: list<array<string, string|null>>, more: bool}
|
||||
*/
|
||||
public function browse(string $query, string $kind, string $dimension, int $exceptCompositionId, bool $elementsOnly = false, int $pillarId = 0): array
|
||||
public function browse(string $query, string $kind, string $dimension, int $exceptCompositionId, bool $elementsOnly = false): array
|
||||
{
|
||||
$query = trim($query);
|
||||
$like = '%'.str_replace(['%', '_'], ['', ''], $query).'%';
|
||||
@@ -284,8 +284,8 @@ public function browse(string $query, string $kind, string $dimension, int $exce
|
||||
$latestElements = ContentElementVersion::query()
|
||||
->selectRaw('MAX(id)')
|
||||
->whereIn('status', [ContentVersionStatus::Bereit, ContentVersionStatus::Entwurf])
|
||||
->whereHas('element', function ($builder) use ($query, $like, $kind, $dimensionId, $pillarId): void {
|
||||
$this->constrainElement($builder, $query, $like, $kind, $dimensionId, $pillarId);
|
||||
->whereHas('element', function ($builder) use ($query, $like, $kind, $dimensionId): void {
|
||||
$this->constrainElement($builder, $query, $like, $kind, $dimensionId);
|
||||
})
|
||||
->groupBy('content_element_id');
|
||||
$elements = ContentElementVersion::query()
|
||||
@@ -309,7 +309,7 @@ public function browse(string $query, string $kind, string $dimension, int $exce
|
||||
->selectRaw('MAX(id)')
|
||||
->where('status', ContentVersionStatus::Bereit)
|
||||
->where('composition_id', '!=', $exceptCompositionId)
|
||||
->whereHas('composition', function ($builder) use ($query, $like, $kind, $dimensionId, $pillarId): void {
|
||||
->whereHas('composition', function ($builder) use ($query, $like, $kind, $dimensionId): void {
|
||||
if ($kind === 'modul') {
|
||||
$builder->where('kind', CompositionKind::Uebung);
|
||||
}
|
||||
@@ -318,10 +318,6 @@ public function browse(string $query, string $kind, string $dimension, int $exce
|
||||
$builder->whereIn('id', $this->dimensionSubjectIds(Composition::class, $dimensionId));
|
||||
}
|
||||
|
||||
if ($pillarId > 0) {
|
||||
$builder->whereIn('id', $this->pillarSubjectIds(Composition::class, $pillarId));
|
||||
}
|
||||
|
||||
if ($query === '') {
|
||||
return;
|
||||
}
|
||||
@@ -374,10 +370,6 @@ public function browse(string $query, string $kind, string $dimension, int $exce
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($pillarId > 0 && ! in_array($composition->id, $this->pillarSubjectIds(Composition::class, $pillarId), true)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$title = $this->compositionTitle($composition);
|
||||
|
||||
if ($query !== '' && ! str_contains(mb_strtolower($title.' '.(string) ($composition->summary ?? '')), mb_strtolower($query))) {
|
||||
@@ -572,7 +564,7 @@ private function withVisibility(array $rows): array
|
||||
/**
|
||||
* @param Builder<ContentElement> $builder
|
||||
*/
|
||||
private function constrainElement($builder, string $query, string $like, string $kind, int $dimensionId, int $pillarId = 0): void
|
||||
private function constrainElement($builder, string $query, string $like, string $kind, int $dimensionId): void
|
||||
{
|
||||
$outputs = match ($kind) {
|
||||
'film' => ['film'],
|
||||
@@ -591,10 +583,6 @@ private function constrainElement($builder, string $query, string $like, string
|
||||
$builder->whereIn('id', $this->dimensionSubjectIds(ContentElement::class, $dimensionId));
|
||||
}
|
||||
|
||||
if ($pillarId > 0) {
|
||||
$builder->whereIn('id', $this->pillarSubjectIds(ContentElement::class, $pillarId));
|
||||
}
|
||||
|
||||
if ($query === '') {
|
||||
return;
|
||||
}
|
||||
@@ -609,22 +597,6 @@ private function constrainElement($builder, string $query, string $like, string
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Direkt einer Säule zugeordnete Medien oder Module und Programme (zentrale Säulenverwaltung).
|
||||
*
|
||||
* @param class-string<Model> $class
|
||||
* @return list<int>
|
||||
*/
|
||||
private function pillarSubjectIds(string $class, int $pillarId): array
|
||||
{
|
||||
[$table, $column] = $class === Composition::class
|
||||
? ['composition_pillar', 'composition_id']
|
||||
: ['content_element_pillar', 'content_element_id'];
|
||||
|
||||
return DB::table($table)->where('pillar_id', $pillarId)->pluck($column)
|
||||
->map(fn (mixed $id): int => (int) $id)->all();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param class-string<Model> $class
|
||||
* @return list<int>
|
||||
|
||||
@@ -7,12 +7,9 @@
|
||||
use App\Domain\Catalog\ContentVersionStatus;
|
||||
use App\Domain\Catalog\EditorialVocabulary;
|
||||
use App\Domain\Catalog\IdentityDimensionValue;
|
||||
use App\Domain\Catalog\Pillar;
|
||||
use App\Domain\Catalog\PillarFilterCompat;
|
||||
use App\Filament\Resources\ContentElements\ContentElementResource;
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Livewire\Attributes\Url;
|
||||
|
||||
/**
|
||||
@@ -32,10 +29,6 @@ trait ListsCompositions
|
||||
#[Url]
|
||||
public string $pillar = '';
|
||||
|
||||
/** Fachliche Säule (zentrale Säulenverwaltung), direkt zugeordnet. */
|
||||
#[Url(as: 'saeule', except: '')]
|
||||
public string $saeule = '';
|
||||
|
||||
#[Url]
|
||||
public string $visibility = 'alle';
|
||||
|
||||
@@ -46,7 +39,7 @@ protected function fixedKind(): ?CompositionKind
|
||||
|
||||
protected function bestandFilterEigenschaften(): array
|
||||
{
|
||||
return ['query', 'kindFilter', 'pillar', 'saeule', 'visibility'];
|
||||
return ['query', 'kindFilter', 'pillar', 'visibility'];
|
||||
}
|
||||
|
||||
public function resetFilters(): void
|
||||
@@ -54,14 +47,13 @@ public function resetFilters(): void
|
||||
$this->query = '';
|
||||
$this->kindFilter = 'alle';
|
||||
$this->pillar = '';
|
||||
$this->saeule = '';
|
||||
$this->visibility = 'alle';
|
||||
$this->bestandGrenze = Bestand::SCHRITT;
|
||||
}
|
||||
|
||||
public function hasActiveFilters(): bool
|
||||
{
|
||||
return trim($this->query) !== '' || $this->kindFilter !== 'alle' || $this->pillar !== '' || $this->saeule !== '' || $this->visibility !== 'alle';
|
||||
return trim($this->query) !== '' || $this->kindFilter !== 'alle' || $this->pillar !== '' || $this->visibility !== 'alle';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -69,7 +61,6 @@ public function hasActiveFilters(): bool
|
||||
*/
|
||||
public function bestand(): array
|
||||
{
|
||||
$this->normalizeLegacyPillarFilter();
|
||||
$fixed = $this->fixedKind();
|
||||
$einheit = match ($fixed) {
|
||||
CompositionKind::Kurs => ['Programm', 'Programme'],
|
||||
@@ -99,14 +90,9 @@ public function bestand(): array
|
||||
'eigenschaft' => 'visibility', 'label' => 'Stand', 'vorgabe' => 'alle',
|
||||
'optionen' => ['alle' => 'Jeder Stand', 'bibliothek' => 'In der Mitgliederbibliothek', 'verborgen' => 'Nicht in der Mitgliederbibliothek', 'entwurf' => 'Noch ohne Fassung'],
|
||||
]],
|
||||
'weitere' => [
|
||||
...($this->pillarOptions() === [] ? [] : [[
|
||||
'eigenschaft' => 'saeule', 'label' => 'Fachliche Säule', 'vorgabe' => '', 'alle' => 'Alle Säulen', 'optionen' => $this->pillarOptions(),
|
||||
]]),
|
||||
...($gruppen === [] ? [] : [[
|
||||
'eigenschaft' => 'pillar', 'label' => 'Fachliche Einordnung', 'vorgabe' => '', 'alle' => 'Alle Einordnungen', 'gruppen' => $gruppen,
|
||||
]]),
|
||||
],
|
||||
'weitere' => $gruppen === [] ? [] : [[
|
||||
'eigenschaft' => 'pillar', 'label' => 'Fachliche Einordnung', 'vorgabe' => '', 'alle' => 'Alle Einordnungen', 'gruppen' => $gruppen,
|
||||
]],
|
||||
'zeilen' => $this->entries(),
|
||||
'einheit' => $einheit,
|
||||
'leer' => [
|
||||
@@ -138,9 +124,7 @@ public function entries(): array
|
||||
$needle = mb_strtolower(trim($this->query));
|
||||
$catalog = app(EditorialCatalog::class);
|
||||
$offered = $catalog->offeredCompositionIds();
|
||||
$this->normalizeLegacyPillarFilter();
|
||||
$pillarIds = $this->pillar === '' ? null : $this->pillarSubjects((int) $this->pillar);
|
||||
$saeuleIds = ctype_digit($this->saeule) && $this->saeule !== '' ? $this->saeuleSubjects((int) $this->saeule) : null;
|
||||
$fixed = $this->fixedKind();
|
||||
$kinds = $fixed !== null ? [$fixed] : match ($this->kindFilter) {
|
||||
'programm' => [CompositionKind::Kurs],
|
||||
@@ -165,10 +149,6 @@ public function entries(): array
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($saeuleIds !== null && ! in_array($composition->id, $saeuleIds, true)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$stand = $catalog->stand($composition);
|
||||
|
||||
if (! $this->matchesVisibility($stand)) {
|
||||
@@ -269,36 +249,6 @@ private function coverMembers(Composition $composition): array
|
||||
return $members;
|
||||
}
|
||||
|
||||
/**
|
||||
* Alte Adressen mit einem Säulenwert der Einordnung (`?pillar=…`) gelten für die zentrale Säule.
|
||||
*/
|
||||
private function normalizeLegacyPillarFilter(): void
|
||||
{
|
||||
if (ctype_digit($this->pillar) && $this->pillar !== '' && $this->saeule === '' && is_int($pillar = PillarFilterCompat::pillarOfLegacyValue((int) $this->pillar))) {
|
||||
[$this->saeule, $this->pillar] = [(string) $pillar, ''];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, string>
|
||||
*/
|
||||
private function pillarOptions(): array
|
||||
{
|
||||
return Pillar::query()->orderBy('sort_order')->orderBy('name')->pluck('name', 'id')
|
||||
->mapWithKeys(fn (string $name, int|string $id): array => [(string) $id => $name])->all();
|
||||
}
|
||||
|
||||
/**
|
||||
* Direkt zugeordnete Module und Programme einer Säule. Die Säulen der enthaltenen Medien zählen hier nicht.
|
||||
*
|
||||
* @return list<int>
|
||||
*/
|
||||
private function saeuleSubjects(int $pillarId): array
|
||||
{
|
||||
return DB::table('composition_pillar')->where('pillar_id', $pillarId)->pluck('composition_id')
|
||||
->map(fn (mixed $id): int => (int) $id)->all();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return list<int>
|
||||
*/
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
use App\Domain\Catalog\EditorialVocabulary;
|
||||
use App\Domain\Catalog\IdentityDimensionValue;
|
||||
use App\Domain\Catalog\Pillar;
|
||||
use App\Domain\Catalog\PillarFilterCompat;
|
||||
use App\Domain\Catalog\ReleaseContent;
|
||||
use App\Domain\Media\ThumbnailRef;
|
||||
use App\Filament\Resources\ContentElements\ContentElementResource;
|
||||
@@ -133,13 +132,6 @@ public function cards(array $filters, bool $canEdit): array
|
||||
*/
|
||||
private function normalize(array $filters): array
|
||||
{
|
||||
$saeule = ctype_digit($filters['saeule'] ?? '') ? $filters['saeule'] : '';
|
||||
$einordnung = ctype_digit($filters['einordnung'] ?? '') ? $filters['einordnung'] : '';
|
||||
|
||||
if ($einordnung !== '' && $saeule === '' && is_int($pillar = PillarFilterCompat::pillarOfLegacyValue((int) $einordnung))) {
|
||||
[$saeule, $einordnung] = [(string) $pillar, ''];
|
||||
}
|
||||
|
||||
return [
|
||||
'suche' => trim($filters['suche'] ?? ''),
|
||||
'art' => $this->choice($filters['art'] ?? '', ['film', 'text', 'document', 'bild', 'audio']),
|
||||
@@ -147,8 +139,8 @@ private function normalize(array $filters): array
|
||||
'entwurf' => $this->choice($filters['entwurf'] ?? '', ['offen', 'keiner']),
|
||||
'fassung' => $this->choice($filters['fassung'] ?? '', ['mit', 'nur']),
|
||||
'nutzung' => $this->choice($filters['nutzung'] ?? '', ['verwendet', 'unbenutzt']),
|
||||
'saeule' => $saeule,
|
||||
'einordnung' => $einordnung,
|
||||
'saeule' => ctype_digit($filters['saeule'] ?? '') ? $filters['saeule'] : '',
|
||||
'einordnung' => ctype_digit($filters['einordnung'] ?? '') ? $filters['einordnung'] : '',
|
||||
'inhaltsart' => ctype_digit($filters['inhaltsart'] ?? '') ? $filters['inhaltsart'] : '',
|
||||
'verarbeitung' => $this->choice($filters['verarbeitung'] ?? '', ['fehler', 'uebernahme']),
|
||||
'archiv' => $this->choice($filters['archiv'] ?? '', ['aktiv', 'archiviert', 'alle'], 'aktiv'),
|
||||
|
||||
@@ -9,8 +9,6 @@
|
||||
use App\Domain\Catalog\EditorialVocabulary;
|
||||
use App\Domain\Catalog\IdentityDimension;
|
||||
use App\Domain\Catalog\LicenseArticle;
|
||||
use App\Domain\Catalog\Pillar;
|
||||
use App\Domain\Catalog\PillarFilterCompat;
|
||||
use App\Domain\Entitlement\DecideAccess;
|
||||
use App\Domain\Entitlement\Grant;
|
||||
use App\Domain\Entitlement\GrantStatus;
|
||||
@@ -22,10 +20,8 @@
|
||||
use App\Http\CourseOutline;
|
||||
use App\Http\LibraryCatalog;
|
||||
use App\Http\SignedLink;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Response;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Illuminate\View\View;
|
||||
use Symfony\Component\HttpFoundation\StreamedResponse;
|
||||
@@ -39,21 +35,8 @@ public function index(Request $request, ?string $sicht = null): View
|
||||
$query = trim((string) $request->query('q', ''));
|
||||
$nutzung = (string) $request->query('nutzung', '');
|
||||
$dimensionIds = array_values(array_filter(array_map(intval(...), (array) $request->query('dimension', []))));
|
||||
$saeuleIds = array_values(array_filter(array_map(intval(...), (array) $request->query('saeule', []))));
|
||||
$dimensions = app(IdentityDimension::class);
|
||||
|
||||
// Alte Adressen: Säulen waren ein Wert der Einordnung. Mit belastbarer Verknüpfung gilt der Filter der Säule.
|
||||
foreach ($dimensionIds as $index => $valueId) {
|
||||
if (is_int($pillarId = PillarFilterCompat::pillarOfLegacyValue($valueId))) {
|
||||
$saeuleIds[] = $pillarId;
|
||||
unset($dimensionIds[$index]);
|
||||
}
|
||||
}
|
||||
|
||||
$dimensionIds = array_values($dimensionIds);
|
||||
$saeuleIds = array_values(array_unique($saeuleIds));
|
||||
$pillarOptions = $this->visiblePillars($catalog, $saeuleIds);
|
||||
|
||||
foreach (['programs', 'modules'] as $shelf) {
|
||||
if ($query !== '') {
|
||||
$catalog[$shelf] = array_values(array_filter(
|
||||
@@ -67,12 +50,6 @@ public function index(Request $request, ?string $sicht = null): View
|
||||
fn (array $card): bool => $dimensions->matches($card['composition'], $dimensionIds),
|
||||
));
|
||||
}
|
||||
if ($saeuleIds !== []) {
|
||||
$catalog[$shelf] = array_values(array_filter(
|
||||
$catalog[$shelf],
|
||||
fn (array $card): bool => $this->hasPillar($card['composition'], $saeuleIds),
|
||||
));
|
||||
}
|
||||
if (in_array($nutzung, ['nutzbar', 'teilweise', 'nicht enthalten'], true)) {
|
||||
$catalog[$shelf] = array_values(array_filter(
|
||||
$catalog[$shelf],
|
||||
@@ -102,13 +79,6 @@ function (array $card) use ($dimensions, $dimensionIds): bool {
|
||||
));
|
||||
}
|
||||
|
||||
if ($saeuleIds !== []) {
|
||||
$catalog['materials'] = array_values(array_filter(
|
||||
$catalog['materials'],
|
||||
fn (array $card): bool => $this->hasPillar($this->materialSubject($card), $saeuleIds),
|
||||
));
|
||||
}
|
||||
|
||||
if ($nutzung === 'teilweise' || $nutzung === 'nicht enthalten') {
|
||||
$catalog['materials'] = [];
|
||||
}
|
||||
@@ -119,65 +89,11 @@ function (array $card) use ($dimensions, $dimensionIds): bool {
|
||||
'sicht' => $sicht,
|
||||
'nutzung' => $nutzung,
|
||||
'dimensionIds' => $dimensionIds,
|
||||
'saeuleIds' => $saeuleIds,
|
||||
'filterPillars' => $pillarOptions,
|
||||
'filterDimensions' => app(EditorialVocabulary::class)->memberFilterDimensions(array_map(intval(...), $dimensionIds)),
|
||||
'libraryEmpty' => $untouched,
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Subjekt eines Materialkarte: Programm oder Modul, Medium oder der Artikel selbst.
|
||||
*
|
||||
* @param array<string, mixed> $card
|
||||
*/
|
||||
private function materialSubject(array $card): Model
|
||||
{
|
||||
$release = $card['article']->currentRelease;
|
||||
|
||||
return $release?->rootCompositionVersion?->composition
|
||||
?? $release?->rootElementVersion?->element
|
||||
?? $card['article'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Direkte Säulenzuordnung des Objekts selbst; die Säulen enthaltener Medien zählen hier nicht.
|
||||
*
|
||||
* @param list<int> $pillarIds
|
||||
*/
|
||||
private function hasPillar(Model $subject, array $pillarIds): bool
|
||||
{
|
||||
return $subject->pillars()->whereIn('pillars.id', $pillarIds)->exists();
|
||||
}
|
||||
|
||||
/**
|
||||
* Säulen für den Filter: nur solche, die ein sichtbares Objekt der Bibliothek tatsächlich trägt, und eine bereits
|
||||
* gewählte. So erscheinen neue oder interne Säulen ohne Zuordnung nicht in der Bibliothek.
|
||||
*
|
||||
* @param array<string, mixed> $catalog
|
||||
* @param list<int> $selected
|
||||
* @return Collection<int, Pillar>
|
||||
*/
|
||||
private function visiblePillars(array $catalog, array $selected)
|
||||
{
|
||||
$used = [];
|
||||
|
||||
foreach (array_merge($catalog['programs'], $catalog['modules']) as $card) {
|
||||
foreach ($card['composition']->pillars()->pluck('pillars.id') as $id) {
|
||||
$used[(int) $id] = true;
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($catalog['materials'] as $card) {
|
||||
foreach ($this->materialSubject($card)->pillars()->pluck('pillars.id') as $id) {
|
||||
$used[(int) $id] = true;
|
||||
}
|
||||
}
|
||||
|
||||
return Pillar::query()->whereIn('id', array_values(array_unique([...array_keys($used), ...$selected])))
|
||||
->orderBy('sort_order')->orderBy('name')->get();
|
||||
}
|
||||
|
||||
public function programs(Request $request): View
|
||||
{
|
||||
return $this->index($request, 'programme');
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
<?php
|
||||
|
||||
use App\Domain\Catalog\LegacyPillarAdoption;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
/**
|
||||
* Fachliche Säulen vereinheitlichen: Module, Programme und Lizenzartikel verwenden wie Medien und Seiten die zentrale
|
||||
* Säulenverwaltung (`pillars`) statt der Kopie „Fachliche Säule“ in den redaktionellen Dimensionen.
|
||||
*
|
||||
* Nur Ergänzungen: zwei Zuordnungstabellen (die Säule wird beim Löschen nie still entfernt, wie bei Medien und Seiten),
|
||||
* die Verknüpfung `pillar_id` an den alten Dimensionswerten und die einmalige, wiederholbare Übernahme durch
|
||||
* LegacyPillarAdoption. Alte Tabellen und Zeilen bleiben unverändert erhalten.
|
||||
*/
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('composition_pillar', function (Blueprint $table) {
|
||||
$table->foreignId('composition_id')->constrained()->cascadeOnDelete();
|
||||
$table->foreignId('pillar_id')->constrained()->restrictOnDelete();
|
||||
$table->primary(['composition_id', 'pillar_id']);
|
||||
});
|
||||
|
||||
Schema::create('license_article_pillar', function (Blueprint $table) {
|
||||
$table->foreignId('license_article_id')->constrained()->cascadeOnDelete();
|
||||
$table->foreignId('pillar_id')->constrained()->restrictOnDelete();
|
||||
$table->primary(['license_article_id', 'pillar_id']);
|
||||
});
|
||||
|
||||
Schema::table('editorial_dimension_values', function (Blueprint $table) {
|
||||
$table->foreignId('pillar_id')->nullable()->after('editorial_dimension_id')->constrained('pillars')->nullOnDelete();
|
||||
});
|
||||
|
||||
$report = (new LegacyPillarAdoption)->run();
|
||||
|
||||
foreach (LegacyPillarAdoption::lines($report) as $line) {
|
||||
if ($line !== '') {
|
||||
Log::info('Säulenübernahme: '.$line);
|
||||
}
|
||||
}
|
||||
|
||||
if ($report['unresolved'] !== []) {
|
||||
Log::warning('Säulenübernahme: '.count($report['unresolved']).' Fälle ungeklärt; „php artisan luf:saeulen-uebernehmen --dry-run“ listet sie.');
|
||||
}
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('editorial_dimension_values', function (Blueprint $table) {
|
||||
$table->dropConstrainedForeignId('pillar_id');
|
||||
});
|
||||
|
||||
Schema::dropIfExists('license_article_pillar');
|
||||
Schema::dropIfExists('composition_pillar');
|
||||
}
|
||||
};
|
||||
@@ -1,25 +0,0 @@
|
||||
/* Lara & Felix – draft brand tokens; source imagery sampled 2026-11-15.
|
||||
Do not treat these color values or fonts as final without approval. */
|
||||
:root {
|
||||
--lf-navy: #032551;
|
||||
--lf-navy-deep: #01244C;
|
||||
--lf-green: #5B8625;
|
||||
--lf-green-deep: #3B7B09;
|
||||
--lf-yellow: #FCD10A;
|
||||
--lf-cream: #F7F6F2;
|
||||
--lf-white: #FFFFFF;
|
||||
--lf-surface: #F9FAF7;
|
||||
--lf-ink: #15243A;
|
||||
--lf-muted: #5D6A78;
|
||||
--lf-border: #DDE5E3;
|
||||
--lf-focus: #1769AA;
|
||||
--lf-error: #B92F38;
|
||||
--lf-radius-sm: 8px;
|
||||
--lf-radius-md: 14px;
|
||||
--lf-radius-lg: 22px;
|
||||
--lf-radius-pill: 999px;
|
||||
--lf-shadow-card: 0 12px 30px rgb(3 37 81 / .07);
|
||||
--lf-max-container: 1180px;
|
||||
--lf-font-ui: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
|
||||
--lf-font-display: "Nunito", "Trebuchet MS", system-ui, sans-serif;
|
||||
}
|
||||
@@ -1,147 +0,0 @@
|
||||
{
|
||||
"$schema": "https://design-tokens.github.io/community-group/format/",
|
||||
"status": "working draft, needs formal brand approval",
|
||||
"source": "sampled colors from uploaded title/denkpause, with supporting UI tokens chosen for accessibility",
|
||||
"color": {
|
||||
"navy": {
|
||||
"$type": "color",
|
||||
"$value": "#032551"
|
||||
},
|
||||
"navy_deep": {
|
||||
"$type": "color",
|
||||
"$value": "#01244C"
|
||||
},
|
||||
"green": {
|
||||
"$type": "color",
|
||||
"$value": "#5B8625"
|
||||
},
|
||||
"green_deep": {
|
||||
"$type": "color",
|
||||
"$value": "#3B7B09"
|
||||
},
|
||||
"yellow": {
|
||||
"$type": "color",
|
||||
"$value": "#FCD10A"
|
||||
},
|
||||
"cream": {
|
||||
"$type": "color",
|
||||
"$value": "#F7F6F2"
|
||||
},
|
||||
"white": {
|
||||
"$type": "color",
|
||||
"$value": "#FFFFFF"
|
||||
},
|
||||
"surface": {
|
||||
"$type": "color",
|
||||
"$value": "#F9FAF7"
|
||||
},
|
||||
"ink": {
|
||||
"$type": "color",
|
||||
"$value": "#15243A"
|
||||
},
|
||||
"muted": {
|
||||
"$type": "color",
|
||||
"$value": "#5D6A78"
|
||||
},
|
||||
"border": {
|
||||
"$type": "color",
|
||||
"$value": "#DDE5E3"
|
||||
},
|
||||
"focus": {
|
||||
"$type": "color",
|
||||
"$value": "#1769AA"
|
||||
},
|
||||
"error": {
|
||||
"$type": "color",
|
||||
"$value": "#B92F38"
|
||||
}
|
||||
},
|
||||
"radius": {
|
||||
"sm": {
|
||||
"$type": "dimension",
|
||||
"$value": "8px"
|
||||
},
|
||||
"md": {
|
||||
"$type": "dimension",
|
||||
"$value": "14px"
|
||||
},
|
||||
"lg": {
|
||||
"$type": "dimension",
|
||||
"$value": "22px"
|
||||
},
|
||||
"pill": {
|
||||
"$type": "dimension",
|
||||
"$value": "999px"
|
||||
}
|
||||
},
|
||||
"space": {
|
||||
"1": {
|
||||
"$type": "dimension",
|
||||
"$value": "4px"
|
||||
},
|
||||
"2": {
|
||||
"$type": "dimension",
|
||||
"$value": "8px"
|
||||
},
|
||||
"3": {
|
||||
"$type": "dimension",
|
||||
"$value": "12px"
|
||||
},
|
||||
"4": {
|
||||
"$type": "dimension",
|
||||
"$value": "16px"
|
||||
},
|
||||
"5": {
|
||||
"$type": "dimension",
|
||||
"$value": "20px"
|
||||
},
|
||||
"6": {
|
||||
"$type": "dimension",
|
||||
"$value": "24px"
|
||||
},
|
||||
"7": {
|
||||
"$type": "dimension",
|
||||
"$value": "28px"
|
||||
},
|
||||
"8": {
|
||||
"$type": "dimension",
|
||||
"$value": "32px"
|
||||
},
|
||||
"9": {
|
||||
"$type": "dimension",
|
||||
"$value": "36px"
|
||||
},
|
||||
"10": {
|
||||
"$type": "dimension",
|
||||
"$value": "40px"
|
||||
},
|
||||
"11": {
|
||||
"$type": "dimension",
|
||||
"$value": "44px"
|
||||
},
|
||||
"12": {
|
||||
"$type": "dimension",
|
||||
"$value": "48px"
|
||||
},
|
||||
"13": {
|
||||
"$type": "dimension",
|
||||
"$value": "52px"
|
||||
},
|
||||
"14": {
|
||||
"$type": "dimension",
|
||||
"$value": "56px"
|
||||
},
|
||||
"15": {
|
||||
"$type": "dimension",
|
||||
"$value": "60px"
|
||||
},
|
||||
"16": {
|
||||
"$type": "dimension",
|
||||
"$value": "64px"
|
||||
}
|
||||
},
|
||||
"typography": {
|
||||
"display": "Rounded friendly display – select licensed font",
|
||||
"body": "Highly readable sans – select licensed font"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="17" fill="#032551"/><path d="M10 45V17h8v20h12v8z" fill="#fff"/><text x="31" y="42" font-family="system-ui,sans-serif" font-size="19" font-weight="900" fill="white">F</text><path d="M9 53Q28 43 55 49" stroke="#FCD10A" stroke-width="5" fill="none" stroke-linecap="round"/></svg>
|
||||
|
Before Width: | Height: | Size: 370 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><g fill="none" stroke="#032551" stroke-width="5" stroke-linejoin="round" stroke-linecap="round"><path d="M20 53V30c0-9 13-9 13 0V16c0-9 13-9 13 0v11-17c0-9 13-9 13 0v18-14c0-9 13-9 13 0v36l7-10c7-9 20-3 15 7L76 82C67 93 43 94 30 86L9 64C2 56 13 47 20 53z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 329 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 360 258"><path d="M59 68C72 19 132 6 165 35c39-37 103-10 113 30 56-3 78 45 56 86 10 45-42 89-95 75-39 30-94 12-109-11-38 21-100-11-99-56-27-29-20-78 28-91z" fill="#FFFFFF" stroke="#032551" stroke-width="7" stroke-linejoin="round"/><circle cx="48" cy="233" r="14" fill="white" stroke="#032551" stroke-width="6"/><circle cx="17" cy="253" r="6" fill="white" stroke="#032551" stroke-width="4"/></svg>
|
||||
|
Before Width: | Height: | Size: 449 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 85"><g fill="none" stroke="#FCD10A" stroke-linecap="round" stroke-width="11"><path d="M23 52L6 40"/><path d="M48 29L46 9"/><path d="M74 44L89 23"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 214 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 280 28"><path d="M9 18 Q102 1 270 12" fill="none" stroke="#FCD10A" stroke-width="13" stroke-linecap="round"/></svg>
|
||||
|
Before Width: | Height: | Size: 168 B |
@@ -1,13 +0,0 @@
|
||||
# Cursor-Übergabe: Brand & UI Kit
|
||||
|
||||
**Noch nicht umsetzen, bevor der funktionale MVP praktisch überprüft und korrigiert wurde.**
|
||||
|
||||
1. Lies `docs/prinzipien/design-prinzipien.md` und `docs/prinzipien/seo-und-content-prinzipien.md` sowie `CLAUDE.md`.
|
||||
2. Nutze das Brand & UI Kit v1.0 als **Entwurfs- und Vergleichsmaterial**, nicht als unhinterfragte, finale Markenfreigabe.
|
||||
3. Inventarisiere zuerst den tatsächlichen Stand des bestehenden Laravel/Filament-Frontends und der Originalmedien.
|
||||
4. Mache mit den originalen Lara-&-Felix-Assets und einem ruhigen Erwachsenen-UI-Design konkrete Layoutvarianten. Die Denkpause wird gezielt didaktisch eingesetzt.
|
||||
5. Übernehme nur explizit freigegebene Logo-, Typografie- und Farbvarianten. Markenfarben im Kit sind abgeleitete Vorschläge.
|
||||
6. Bewahre die fachlich bestehende CMS-/Katalog-/Lizenzstruktur. Die statischen HTML-Screens sind keine technische Architekturvorgabe.
|
||||
7. Alle öffentlichen Produkt- und SEO-Texte kommen aus dem echten Katalog/CMS; keine Demo-Preise, keine KI-erfundenen Filme, keine erfundenen Wirkungsversprechen.
|
||||
8. Validierung: Screenshots in 390/768/1440 px, Tastatur, Kontrast, Reduced Motion, LCP/CLS, Auth-/Berechtigungsregressionen.
|
||||
9. Kein Produktionsdeployment ohne die in `CLAUDE.md` vorgesehene Freigabe.
|
||||
@@ -1,386 +0,0 @@
|
||||
\# Lara \& Felix – Verbindliche Design- und UX-Anforderungen
|
||||
|
||||
|
||||
|
||||
\## 1. Designqualität ist ein gleichrangiges Projektziel
|
||||
|
||||
|
||||
|
||||
Die Benutzeroberfläche von Lara \& Felix muss gestalterisch, funktional und technisch dem Niveau einer hochwertigen, professionell entwickelten digitalen Plattform entsprechen.
|
||||
|
||||
|
||||
|
||||
\*\*Ein gewöhnliches, erkennbar KI-generiertes Standardtemplate ist ausdrücklich nicht akzeptabel.\*\*
|
||||
|
||||
|
||||
|
||||
Die Plattform muss eine eigenständige visuelle Identität besitzen, die konsistent über Marketing-Webseite, Anmeldung, Mitgliederbereich, Katalog, Bibliothek und Kursplayer umgesetzt wird.
|
||||
|
||||
|
||||
|
||||
Designqualität ist ein verbindliches Abnahmekriterium und darf nicht zugunsten einer schnelleren rein funktionalen Implementierung entfallen.
|
||||
|
||||
|
||||
|
||||
\## 2. Gestalterische Richtung
|
||||
|
||||
|
||||
|
||||
Entwickle ein zeitgemäßes Premium-Design mit folgenden Eigenschaften:
|
||||
|
||||
|
||||
|
||||
\- Eigenständige, wiedererkennbare Markenidentität
|
||||
|
||||
\- Hochwertige Editorial-Typografie mit differenzierter Schriftgrößenhierarchie
|
||||
|
||||
\- Bewusst gestaltete, teilweise asymmetrische Layouts
|
||||
|
||||
\- Großzügige, aber funktional eingesetzte Weißräume
|
||||
|
||||
\- Präzise abgestimmte Farben und Kontraste
|
||||
|
||||
\- Hochwertige Bild- und Videointegration
|
||||
|
||||
\- Professionelle, dezente Mikroanimationen
|
||||
|
||||
\- Ausgefeilte Hover-, Fokus-, Lade- und Übergangszustände
|
||||
|
||||
\- Konsistentes Erscheinungsbild über alle Bereiche
|
||||
|
||||
\- Sehr gute Bedienbarkeit auf Smartphone, Tablet und Desktop
|
||||
|
||||
|
||||
|
||||
Die Bildsprache soll selbstbewusst, freundlich, vertrauenswürdig und authentisch sein.
|
||||
|
||||
|
||||
|
||||
Die Plattform richtet sich an erwachsene Trainer und pädagogische Fachkräfte. Das Design darf modern und emotional sein, soll aber nicht kindlich, verspielt oder sensationsorientiert wirken.
|
||||
|
||||
|
||||
|
||||
Gewaltprävention ist ein ernsthaftes Bildungsthema. Vermeide dramatisierende Darstellungen von Gewalt oder Angst.
|
||||
|
||||
|
||||
|
||||
\## 3. Austauschbares KI-Design ausdrücklich vermeiden
|
||||
|
||||
|
||||
|
||||
Vermeide insbesondere:
|
||||
|
||||
|
||||
|
||||
\- Beliebige Blau-Violett-Verläufe als dominantes Standardmotiv
|
||||
|
||||
\- Austauschbare Hero-Sektionen mit generischen Marketingfloskeln
|
||||
|
||||
\- Endlose Reihen identischer abgerundeter Karten
|
||||
|
||||
\- Beliebige Stockfotos ohne inhaltlichen Bezug
|
||||
|
||||
\- Dekorative Glaseffekte ohne funktionalen Nutzen
|
||||
|
||||
\- Übertriebene Schatten und Leuchteffekte
|
||||
|
||||
\- Belanglose, inflationär eingesetzte Icons
|
||||
|
||||
\- Unnötige Animationen, die die Nutzung verlangsamen
|
||||
|
||||
\- Generische SaaS-Dashboards ohne Bezug zum Lern- und Trainingskontext
|
||||
|
||||
\- Einheitliche Standardlayouts auf jeder Seite
|
||||
|
||||
|
||||
|
||||
Wichtig: Diese Stilmittel sind nicht grundsätzlich verboten. Sie sollen nur eingesetzt werden, wenn sie eine nachvollziehbare gestalterische Funktion erfüllen.
|
||||
|
||||
|
||||
|
||||
\*\*Bevorzuge eine bewusst komponierte und differenzierte Gestaltung gegenüber einer Aneinanderreihung vorgefertigter UI-Komponenten.\*\*
|
||||
|
||||
|
||||
|
||||
\## 4. Professionelles Designsystem
|
||||
|
||||
|
||||
|
||||
Lege früh ein wiederverwendbares Designsystem an.
|
||||
|
||||
|
||||
|
||||
Es soll enthalten:
|
||||
|
||||
|
||||
|
||||
\- Farbpalette mit semantischen Design-Tokens
|
||||
|
||||
\- Typografiesystem
|
||||
|
||||
\- Abstands- und Rastersystem
|
||||
|
||||
\- Responsive Layoutregeln
|
||||
|
||||
\- Schaltflächen und Links
|
||||
|
||||
\- Formulare und Eingabefelder
|
||||
|
||||
\- Navigationselemente
|
||||
|
||||
\- Karten, Listen und Inhaltsvorschauen
|
||||
|
||||
\- Statusanzeigen und Rückmeldungen
|
||||
|
||||
\- Modale Dialoge
|
||||
|
||||
\- Lade-, Leer- und Fehlerzustände
|
||||
|
||||
\- Animationen und Übergänge
|
||||
|
||||
|
||||
|
||||
Dieses Designsystem gilt für die öffentliche Webseite und den Mitgliederbereich.
|
||||
|
||||
|
||||
|
||||
Die interne Filament-Administration darf funktionaler gestaltet sein, soll aber eine saubere und konsistente Bedienung aufweisen.
|
||||
|
||||
|
||||
|
||||
Nutze bestehende Komponentenbibliotheken, wo sie helfen. Die sichtbare Produktoberfläche darf dennoch nicht wie eine unveränderte Komponentenbibliothek aussehen.
|
||||
|
||||
|
||||
|
||||
\## 5. Marketing-Webseite
|
||||
|
||||
|
||||
|
||||
Die öffentliche Startseite soll wie der Auftritt einer eigenständigen, hochwertigen Bildungsmarke wirken.
|
||||
|
||||
|
||||
|
||||
Besondere Aufmerksamkeit verdienen:
|
||||
|
||||
|
||||
|
||||
\- Der erste sichtbare Bildschirmbereich
|
||||
|
||||
\- Die visuelle Einführung in das Konzept
|
||||
|
||||
\- Die Präsentation von Filmen und Materialien
|
||||
|
||||
\- Die Erklärung des didaktischen Ansatzes
|
||||
|
||||
\- Die Darstellung von Zielgruppen
|
||||
|
||||
\- Übersichtliche Handlungsaufrufe
|
||||
|
||||
\- Der Übergang zur Anmeldung beziehungsweise zum Mitgliederbereich
|
||||
|
||||
|
||||
|
||||
Nutze die tatsächlich vorhandenen Lara-\&-Felix-Filme und ihre Bildwelt als Grundlage für die spätere Markenkommunikation, sofern passende freigegebene Assets verfügbar sind.
|
||||
|
||||
|
||||
|
||||
Keine erfundenen Kundenbewertungen, Partnerlogos, Qualifikationen oder Wirkungsversprechen.
|
||||
|
||||
|
||||
|
||||
\## 6. Mitgliederbereich
|
||||
|
||||
|
||||
|
||||
Der Mitgliederbereich muss sich wie ein eigenständiges, hochwertiges digitales Produkt anfühlen.
|
||||
|
||||
|
||||
|
||||
Die Oberfläche soll:
|
||||
|
||||
|
||||
|
||||
\- Eine besonders übersichtliche Bibliothek bieten
|
||||
|
||||
\- Filme, Übungen und Materialien visuell klar unterscheiden
|
||||
|
||||
\- Unterschiedliche Inhaltsarten und Pakete verständlich darstellen
|
||||
|
||||
\- Berechtigungen nachvollziehbar anzeigen
|
||||
|
||||
\- Eine ausgezeichnete Suche und Orientierung ermöglichen
|
||||
|
||||
\- Auch bei umfangreichen Inhaltsbeständen übersichtlich bleiben
|
||||
|
||||
\- Einen besonders sorgfältig gestalteten Kursplayer besitzen
|
||||
|
||||
|
||||
|
||||
Der Mitgliederbereich darf nicht einfach eine umbenannte Filament-Administrationsoberfläche sein.
|
||||
|
||||
|
||||
|
||||
\## 7. Interaktionen und Feinschliff
|
||||
|
||||
|
||||
|
||||
Implementiere durchdachte Mikrointeraktionen und visuelle Rückmeldungen.
|
||||
|
||||
|
||||
|
||||
Dazu gehören beispielsweise:
|
||||
|
||||
|
||||
|
||||
\- Konsistente Hover- und Fokuszustände
|
||||
|
||||
\- Sanfte, gezielte Übergänge
|
||||
|
||||
\- Verständliche Ladezustände
|
||||
|
||||
\- Hochwertige leere Bibliotheksansichten
|
||||
|
||||
\- Klare Erfolgsmeldungen und Fehlermeldungen
|
||||
|
||||
\- Sinnvolle Tastaturinteraktionen
|
||||
|
||||
\- Gute Formularvalidierung
|
||||
|
||||
\- Keine unnötigen Layoutsprünge
|
||||
|
||||
|
||||
|
||||
Animationen müssen bei aktivierter Einstellung `prefers-reduced-motion` entsprechend reduziert werden.
|
||||
|
||||
|
||||
|
||||
\## 8. Zugänglichkeit und Performance
|
||||
|
||||
|
||||
|
||||
Gestalterische Qualität darf nicht auf Kosten der Zugänglichkeit oder Geschwindigkeit entstehen.
|
||||
|
||||
|
||||
|
||||
Richte dich nach WCAG 2.2 AA.
|
||||
|
||||
|
||||
|
||||
Prüfe insbesondere:
|
||||
|
||||
|
||||
|
||||
\- Kontraste
|
||||
|
||||
\- Tastaturbedienbarkeit
|
||||
|
||||
\- Sichtbare Fokuszustände
|
||||
|
||||
\- Semantische Struktur
|
||||
|
||||
\- Verständliche Formulare
|
||||
|
||||
\- Responsives Verhalten
|
||||
|
||||
\- Untertitel und Bedienelemente des Players
|
||||
|
||||
|
||||
|
||||
Orientiere dich bei der Performance an den Core Web Vitals.
|
||||
|
||||
|
||||
|
||||
Optimiere große Bilder und Videos, vermeide unnötiges JavaScript und achte auf stabile Layouts.
|
||||
|
||||
|
||||
|
||||
\## 9. Verbindliche visuelle Qualitätssicherung
|
||||
|
||||
|
||||
|
||||
\*\*Technisch erfolgreiche Tests allein reichen für den Abschluss einer Benutzeroberfläche nicht aus.\*\*
|
||||
|
||||
|
||||
|
||||
Führe nach der Implementierung jedes wesentlichen Bildschirmbereichs eine visuelle Kontrolle durch.
|
||||
|
||||
|
||||
|
||||
Prüfe mindestens:
|
||||
|
||||
|
||||
|
||||
\- Desktop bei etwa 1440 Pixeln Breite
|
||||
|
||||
\- Tablet bei etwa 768 Pixeln Breite
|
||||
|
||||
\- Smartphone bei etwa 390 Pixeln Breite
|
||||
|
||||
|
||||
|
||||
Kontrolliere gerenderte Screenshots beziehungsweise die tatsächliche Browserdarstellung, soweit die Entwicklungsumgebung dies ermöglicht.
|
||||
|
||||
|
||||
|
||||
Achte auf:
|
||||
|
||||
|
||||
|
||||
\- Typografische Qualität
|
||||
|
||||
\- Ausgewogene Layouts
|
||||
|
||||
\- Lesbarkeit
|
||||
|
||||
\- Konsistente Abstände
|
||||
|
||||
\- Bildzuschnitte
|
||||
|
||||
\- Navigationsverhalten
|
||||
|
||||
\- Interaktionszustände
|
||||
|
||||
\- Visuelle Hierarchie
|
||||
|
||||
\- Responsives Verhalten
|
||||
|
||||
|
||||
|
||||
Beseitige erkennbare gestalterische Schwächen eigenständig.
|
||||
|
||||
|
||||
|
||||
Behaupte keine visuelle Prüfung, wenn die Seite nicht tatsächlich gerendert und betrachtet wurde.
|
||||
|
||||
|
||||
|
||||
\## 10. Umsetzung ohne zusätzliche Planungs-Gates
|
||||
|
||||
|
||||
|
||||
Erarbeite vor der Gestaltung ein kompaktes visuelles Konzept und ein Designsystem.
|
||||
|
||||
|
||||
|
||||
Setze dieses anschließend unmittelbar in der Anwendung um.
|
||||
|
||||
|
||||
|
||||
\*\*Kein zusätzlicher Freigabe-Stopp für reine Designkonzepte.\*\*
|
||||
|
||||
|
||||
|
||||
Die erste fachliche Abnahme erfolgt anhand der tatsächlich implementierten Marketing-Webseite und des Mitgliederbereichs.
|
||||
|
||||
|
||||
|
||||
Überarbeite die Oberflächen eigenständig, bis sowohl die funktionalen als auch die gestalterischen Qualitätsziele erfüllt sind.
|
||||
|
||||
|
||||
|
||||
Ein optisch generisches, offensichtlich unfertiges Frontend erfüllt den Entwicklungsauftrag nicht.
|
||||
|
||||
|
||||
|
||||
\*\*Ziel ist eine individuelle, hochwertige, moderne und langfristig erweiterbare digitale Marke – nicht nur eine funktionierende Laravel-Anwendung.\*\*
|
||||
|
||||
@@ -1,85 +0,0 @@
|
||||
# Lara & Felix – Webmarke und globaler Header | Designfreigabe-Vorlage v1.1
|
||||
|
||||
**Datum:** 18.11.2026
|
||||
**Status:** Zur fachlichen/visuellen Freigabe vorgeschlagen; keine automatische Markenfreigabe.
|
||||
**Basis:** Brand & UI Kit v1.0, Originalmotive, `design-prinzipien.md`, bestehendes CMS.
|
||||
|
||||
## A. Gesicherter Bestand
|
||||
|
||||
- Die sechs Bilder unter `01_originale/` sind Quellen/Referenzen und unverändert; ihre Freigabe zur öffentlichen Verwendung ist im Quellenmanifest nicht bestätigt.
|
||||
- Die eigentliche Lara-&-Felix-Wortmarke ist in Titel-/Outro-Motiven enthalten, aber **nicht als isolierte, offiziell freigegebene Logo-Datei** vorhanden.
|
||||
- Die SVG-Datei `favicon-monogram-entwurf.svg` ist ausdrücklich **kein** freigegebenes Logo.
|
||||
- `02_design_tokens/` enthält Arbeitswerte, keine formal freigegebene Markenpalette.
|
||||
- Der visuelle Homepage-Entwurf ist eine Gestaltungsreferenz. Der statische HTML-Prototyp ist keine Produktionsarchitektur.
|
||||
|
||||
## B. Weblogo: vorgeschlagene freizugebende Varianten
|
||||
|
||||
**W1 – Primäre farbige Wortmarke**
|
||||
- Originalwirkung der Lara-&-Felix-Wortmarke mit grüner Zeile „Stark im Alltag“ und gezieltem gelbem Akzent erhalten.
|
||||
- Für helle Headerflächen; als sauberes, separat exportiertes Asset, bevorzugt SVG **nur bei originalgetreuer Freigabe**, alternativ hochauflösendes transparentes PNG/WebP.
|
||||
- Keine Neuschöpfung oder freie KI-Nachzeichnung. Im Originalmotiv enthaltene Hintergründe nicht als Logo-Hintergrund mit ausschneiden.
|
||||
|
||||
**W2 – Kompaktvariante für Sticky-/Mobile-Header**
|
||||
- Gleiche Markenidentität, aber kleinere Mindestabmessungen und geprüfte Lesbarkeit.
|
||||
- Vorzug: identische Wortmarke mit korrekten Proportionen. Nur wenn diese in kleinen Größen unlesbar ist, eine gesondert freizugebende vereinfachte Variante.
|
||||
- Kein neues L&F-Monogramm ohne Freigabe.
|
||||
|
||||
**W3 – Negativ-/Footer-Variante**
|
||||
- Auf Navy kontrastreich, markentreu und aus demselben Original abgeleitet; nicht pauschal invertieren, wenn gelbe/grüne Details dadurch verändert werden.
|
||||
|
||||
### Noch zu entscheiden
|
||||
- Gibt es eine separierte Original-Logodatei aus dem Filmprojekt?
|
||||
- Wird die Trennung der Wortmarke aus dem Titelbild als **originalgetreue Asset-Aufbereitung** freigegeben?
|
||||
- Welche Varianten W1/W2/W3 sind nach Sichtprüfung verbindlich?
|
||||
|
||||
## C. Stabiler Header: funktionale Spezifikation
|
||||
|
||||
1. **Ein globaler Header für alle öffentlichen CMS-Seiten**, keine separaten pro-Seite-Header.
|
||||
2. Header-Inhalt orientiert sich an **demselben horizontalen Markenraster auf jeder Seite**; seine Nutzbreite bleibt unabhängig von Seitentitel, Navigationseintrag und Scrollbar stabil.
|
||||
3. **Desktop initial:** sichtbare originale Wortmarke links; CMS-Navigation als mittlere Funktionszone; Konto-/später Warenkorb-Aktionen rechts. Keine ungeplanten Umbrüche der Navigation.
|
||||
4. **Desktop kompakt/sticky:** geringere definierte Höhe; Wortmarke proportional kleiner; Navigation und Aktionen stabil. Zustandswechsel allein scrollabhängig, ohne Layoutsprung des Inhalts; CSS/JS technisch mit reservierter Headerfläche oder vergleichbarem stabilen Mechanismus.
|
||||
5. **Mobil:** kompakter Top-Header mit Wortmarke, Menü und Mitgliedszugang. Öffentlich keine Bottom-Navigation. Hauptmenü als zugängliches Overlay/Drawer.
|
||||
6. **Kein seitenabhängiges „Wackeln“:** identische Logo-x-Position und definierte Headerhöhe je Zustand; aktive Nav-Markierung belegt keinen zusätzlichen Platz und ändert keine Breite.
|
||||
7. **Barrierefreiheit:** Tastatur-/Fokusbedienung, korrekte aria-Zustände, ausreichende Touchflächen, Kontrast, `prefers-reduced-motion`.
|
||||
8. **Browserabnahme:** Wechsel zwischen Start-, Themen-, kurzer und langer Seite bei 390/768/1440/1920 px und Browserzoom 100 %; kontrollierter Scrolltest, Prüfung auf Layoutverschiebungen.
|
||||
|
||||
## D. Globale Seitenbreiten
|
||||
|
||||
- Hintergründe: **Full Bleed** bis zum Fensterrand möglich.
|
||||
- **Breit** für Hero und Editorial-Bilder: vorläufig maximal etwa 1440 px.
|
||||
- **Standard** für gemischte Inhaltsabschnitte: vorläufig etwa 1200 px.
|
||||
- **Lesebereich** für lange Texte: etwa 720–800 px.
|
||||
- Definierte responsive Seitenränder und gemeinsame zentral gepflegte Tokens, nicht pro Seite CSS-Sonderfälle.
|
||||
- Die CMS-Einstellungen „Schmal“, „Standard“, „Breit“, „Vollbreite“ müssen diese Semantik tatsächlich abbilden; keine fixierten Pixeldimensionen für alle Bildschirmgrößen.
|
||||
- Werte sind **Abnahmevorschläge**; Endwerte anhand echter Seite und vorhandener Marke testen.
|
||||
|
||||
## E. Wiederkehrende Markensignaturen
|
||||
|
||||
- Gelbe Unterstreichungen und kurze Signalstrahlen aus `03_svg_entwuerfe/` als **optionale** grafische Mittel; nicht als dekoratives Dauerrauschen.
|
||||
- Grüner Akzent für Themen/CTA nach Kontrastprüfung.
|
||||
- Denkpause-Hand und Denkblase **nur** im passenden didaktischen Kontext.
|
||||
- Keine neuen Pflanzenmotive oder fremde Markenwelt; Originalfiguren nur nach Freigabe.
|
||||
|
||||
## F. Freigabematrix
|
||||
|
||||
| Gegenstand | Status | Nächster Prüfschritt |
|
||||
|---|---|---|
|
||||
| Wortmarke aus Originalmotiven | Quelle vorhanden, isoliertes Asset fehlt | Originalgetreue Extraktion/Export vorführen |
|
||||
| Mobile Kompaktmarke | Konzeptioneller Vorschlag | Visueller Vergleich bei Zielgrößen |
|
||||
| Footer-Negativmarke | Konzeptioneller Vorschlag | Kontrast-/Originaltreue-Test |
|
||||
| Navy/Grün/Gelb/Creme | Token-Entwürfe | Markenfarben explizit abnehmen |
|
||||
| Nunito/Nunito Sans | Schriftvorschläge | Lesbarkeit, Lizenz, lokale Bereitstellung prüfen |
|
||||
| Header normal/kompakt | Funktional beschlossen, Gestaltung offen | Zwei Zustände mit Originalmarke im Browser prüfen |
|
||||
| Seitenbreiten | Semantisches Konzept beschlossen, Zahlen vorläufig | 390/768/1440/1920 px prüfen |
|
||||
| Gelbe Signaturen | SVG-Entwurf | Dosierung und Einsatzbeispiele freigeben |
|
||||
|
||||
## G. Grenzen zur laufenden CMS-Implementierung
|
||||
|
||||
- Die vorhandene Widget-Registry und das Abschnitts-/Slot-Modell bleiben maßgeblich.
|
||||
- Header und Footer sind **globale Layoutkomponenten**, keine frei kopierten CMS-Widgets.
|
||||
- Die öffentliche Seitennavigation bleibt CMS-gesteuert, die Mitgliederbibliothek behält eine eigene fachliche Navigation.
|
||||
- Diese Spezifikation gibt keine öffentlichen Medien, Firmenangaben, Produkte, Lizenzen oder Kurse frei.
|
||||
|
||||
## H. Empfohlene nächste Designabnahme
|
||||
|
||||
**Erst** zwei bis drei echte Headerzustände mit Original- bzw. nachvollziehbar vorläufiger Wortmarke sichtbar machen (Desktop initial, Desktop sticky, Mobil); dabei Logo-Originaltreue, Breitenraster und Stabilität prüfen. Danach Hero- und Karten-Familien im selben Markensystem ausarbeiten. Keine erneute CMS-Architekturarbeit.
|
||||
@@ -1,3 +0,0 @@
|
||||
# Brand & UI Kit – Ergänzung v1.1
|
||||
|
||||
Diese Ergänzung enthält eine **Freigabevorlage** zu Weblogo und globalem Header. Die Originaldateien des v1.0-Kits sind unverändert übernommen. Das Dokument ist kein Nachweis einer formalen Markenfreigabe.
|
||||
@@ -1,10 +0,0 @@
|
||||
# Freigegebene Logo-Gestaltungsrichtung – Stand 18.11.2026
|
||||
|
||||
Die Freigabe im Chat betrifft die zuletzt dargestellte Wortmarken-Gestaltung. Hier liegen zwei **Rastergrößen** derselben Wortmarke: `standard` für großflächige Darstellung und `kompakt` für kleinere Einbindungen. Schriftgestaltung und Layout bleiben unverändert.
|
||||
|
||||
- `logo_lara_felix_standard.png`: volle Auflösung, Bildfassung der freigegebenen Darstellung.
|
||||
- `logo_lara_felix_kompakt.png`: proportional verkleinerte Variante, keine neu gezeichnete Schrift.
|
||||
|
||||
**Technischer Vorbehalt:** Diese Dateien enthalten den ursprünglich generierten **dunklen Hintergrund**. Sie sind keine freigestellten transparenten Logos oder Vektordateien und dürfen nicht als solche bezeichnet werden. Für einen hellen Website-Header ist die freigestellte Fassung weiterhin herzustellen und gesondert visuell zu prüfen. Die beiden Dateien sind verwertbare Original-Referenzbilder für die Design-Umsetzung, nicht bereits finale transparente Weblogos.
|
||||
|
||||
Die SVG-Strahlen und die gelbe Unterstreichung unter `03_svg_entwuerfe/` bleiben eigenständige Grafikressourcen. Keine nachträgliche Neuzeichnung als Logo.
|
||||
|
Before Width: | Height: | Size: 344 KiB |
|
Before Width: | Height: | Size: 1.2 MiB |
@@ -1,21 +0,0 @@
|
||||
# Lara & Felix – Hero-Widget v1.3 (Design-Arbeitsstand)
|
||||
|
||||
## Direkt ansehen
|
||||
`09_hero_widget/preview/index.html` im Browser öffnen. Diese Vorschau ist interaktiv: Titel, Text, Buttontexte, Variante und Bildfokus ändern sich unmittelbar. Die beiden Buttons führen absichtlich nur zu einem Demo-Anker.
|
||||
|
||||
## Enthalten
|
||||
- `assets/lara-felix-park-original.png`: **unverändert übernommene Kling-Datei**, Figuren nicht neu generiert.
|
||||
- `assets/lara-felix-park-hero.webp`: effiziente 1:1-Konvertierung derselben Aufnahme.
|
||||
- `assets/yellow-rays.svg`, `yellow-underline.svg`: unveränderte Entwurfsassets aus dem Brand-Kit.
|
||||
- `components/lf-hero.css`: isolierte responsive Komponente.
|
||||
- `components/widget-contract.json`: vorgeschlagene CMS-Felder/Varianten.
|
||||
- `preview/index.html`: eigenständige HTML-Demo mit veränderbaren Eingaben.
|
||||
|
||||
## CMS-Integration
|
||||
Die vorhandene zentrale Widget-Registry soll die Felder nach `components/widget-contract.json` abbilden. HTML-Preview ist **kein zweiter Editor** und kein Ersatz der bestehenden Blade-Komponente. Text serverseitig escapen; URL-Schema prüfen; nur öffentlich freigegebene Medien als Bildquelle nutzen. Die vorhandene Laravel-/Filament-Speicherung und Medienberechtigungen beibehalten.
|
||||
|
||||
## Freigabestatus
|
||||
**Vorlage/Designvorschlag**, nicht fachlich bzw. produktiv freigegeben. Das Kling-Motiv wurde vom Nutzer bereitgestellt; eine eigenständige öffentliche Asset-Freigabe ist nicht automatisch vorausgesetzt. Demo-Texte und Links sind Platzhalter. Die Figuren wurden beim Bau dieses Pakets nicht verändert.
|
||||
|
||||
## Responsive Verhalten
|
||||
Ab 850px Bild als große Hintergrundfläche, Texte vor hellem Verlauf links. Auf schmalen Screens Bild oberhalb der Textfläche, mit steuerbarer Objektposition; keine über das Bild gerenderte Überschrift.
|
||||
|
Before Width: | Height: | Size: 221 KiB |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 85"><g fill="none" stroke="#FCD10A" stroke-linecap="round" stroke-width="11"><path d="M23 52L6 40"/><path d="M48 29L46 9"/><path d="M74 44L89 23"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 214 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 280 28"><path d="M9 18 Q102 1 270 12" fill="none" stroke="#FCD10A" stroke-width="13" stroke-linecap="round"/></svg>
|
||||
|
Before Width: | Height: | Size: 168 B |
@@ -1,9 +0,0 @@
|
||||
/* Lara & Felix brand hero v1.3: standalone CSS, scoped to lf-hero. */
|
||||
.lf-hero{--lf-navy:#032551;--lf-green:#3B7B09;--lf-yellow:#FCD10A;--lf-cream:#F7F6F2;isolation:isolate;position:relative;overflow:hidden;border-radius:clamp(1rem,2.5vw,1.75rem);min-height:clamp(430px,43vw,650px);display:grid;align-items:center;background:var(--lf-cream);font-family:Nunito,'Trebuchet MS',system-ui,sans-serif;color:var(--lf-navy)}
|
||||
.lf-hero *{box-sizing:border-box}.lf-hero__photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:68% center;z-index:-2}.lf-hero__photo[data-focus="right"]{object-position:80% center}.lf-hero__photo[data-focus="center-right"]{object-position:68% center}.lf-hero__photo[data-focus="center-left"]{object-position:35% center}.lf-hero__photo[data-focus="center"]{object-position:center}
|
||||
.lf-hero--photo-split::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(250,249,243,.99) 0%,rgba(250,249,243,.97) 25%,rgba(250,249,243,.8) 39%,rgba(250,249,243,.20) 56%,rgba(250,249,243,0) 68%)}
|
||||
.lf-hero--editorial-solid{background:var(--lf-navy);color:white;min-height:350px}.lf-hero--editorial-solid .lf-hero__photo{display:none}.lf-hero--editorial-solid::before{content:'';position:absolute;width:55%;aspect-ratio:1;right:-25%;bottom:-75%;background:var(--lf-green);border-radius:50%;opacity:.75;z-index:-1}
|
||||
.lf-hero__inner{width:min(100%,1440px);margin:auto;padding:clamp(2rem,5vw,5rem);padding-block:clamp(3rem,6vw,5.5rem)}.lf-hero__copy{max-width:min(620px,57%)}.lf-hero__eyebrow{display:inline-block;padding:.35em .75em;border-radius:999px;background:#dff0c0;color:#17370b;font-weight:800;font-size:clamp(.8rem,.95vw,1rem)}.lf-hero__title{margin:.22em 0 .28em;font-size:clamp(2.5rem,4.8vw,5.25rem);line-height:1.05;letter-spacing:-.035em;font-weight:900;text-wrap:balance}.lf-hero__title-accent{width:clamp(110px,19vw,245px);height:7px;background:var(--lf-yellow);border-radius:90% 30% 45% 25%;transform:rotate(-1deg);margin-bottom:1.5rem}.lf-hero__description{max-width:56ch;font-size:clamp(1.05rem,1.45vw,1.35rem);line-height:1.48;margin:0 0 2rem}.lf-hero__actions{display:flex;gap:.8rem;flex-wrap:wrap}.lf-hero__button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.8rem 1.25rem;border-radius:999px;text-decoration:none;font-weight:800;line-height:1.2;transition:transform .15s ease,background .15s ease;box-shadow:none}.lf-hero__button:hover{transform:translateY(-2px)}.lf-hero__button:focus-visible{outline:3px solid #1769aa;outline-offset:3px}.lf-hero__button--primary{background:var(--lf-green);color:#fff}.lf-hero__button--secondary{background:rgba(255,255,255,.92);color:var(--lf-navy);border:2px solid var(--lf-navy)}.lf-hero--editorial-solid .lf-hero__button--secondary{border-color:white}.lf-hero__bottom{position:absolute;inset:auto 0 0;height:17px;background:linear-gradient(105deg,var(--lf-yellow) 0%,var(--lf-yellow) 22%,var(--lf-green) 72%);clip-path:polygon(0 45%,30% 90%,65% 75%,100% 0,100% 100%,0 100%)}
|
||||
@media(max-width:850px){.lf-hero{min-height:unset;display:block}.lf-hero__photo{position:relative;display:block;width:100%;height:clamp(260px,53vw,440px);object-position:72% center}.lf-hero--photo-split::before{display:none}.lf-hero__inner{padding:2rem 1.5rem 2.8rem}.lf-hero__copy{max-width:100%}.lf-hero__title{font-size:clamp(2.15rem,7vw,3.6rem)}.lf-hero__description{font-size:1.05rem}.lf-hero--editorial-solid .lf-hero__copy{max-width:650px}}
|
||||
@media(max-width:420px){.lf-hero__photo{height:300px;object-position:72% center}.lf-hero__actions{display:grid;grid-template-columns:1fr}.lf-hero__button{width:100%}.lf-hero__inner{padding-inline:1.25rem}}
|
||||
@media(prefers-reduced-motion:reduce){.lf-hero__button{transition:none}.lf-hero__button:hover{transform:none}}
|
||||
@@ -1,85 +0,0 @@
|
||||
{
|
||||
"id": "lf-brand-hero",
|
||||
"version": 1,
|
||||
"status": "design candidate; not yet final code approval",
|
||||
"purpose": "CMS-wiederverwendbarer Marken-Hero; Darstellung und Inhalt getrennt",
|
||||
"layout_role": "single widget, full 4/4 slot recommended, minimum container width 320px",
|
||||
"variants": [
|
||||
"photo-split",
|
||||
"editorial-solid"
|
||||
],
|
||||
"fields": {
|
||||
"eyebrow": {
|
||||
"type": "string",
|
||||
"optional": true
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"description": {
|
||||
"type": "text",
|
||||
"optional": true
|
||||
},
|
||||
"image": {
|
||||
"type": "public_media_reference",
|
||||
"optional": true,
|
||||
"note": "Use approved public images, never member-restricted media"
|
||||
},
|
||||
"image_alt": {
|
||||
"type": "string",
|
||||
"optional": true,
|
||||
"note": "Meaningful if content image; alt empty if decorative"
|
||||
},
|
||||
"image_focal_point": {
|
||||
"type": "enum",
|
||||
"values": [
|
||||
"center",
|
||||
"center-right",
|
||||
"right",
|
||||
"center-left"
|
||||
],
|
||||
"default": "center-right"
|
||||
},
|
||||
"variant": {
|
||||
"type": "enum",
|
||||
"values": [
|
||||
"photo-split",
|
||||
"editorial-solid"
|
||||
],
|
||||
"default": "photo-split"
|
||||
},
|
||||
"primary_cta": {
|
||||
"type": "link",
|
||||
"optional": true,
|
||||
"fields": [
|
||||
"label",
|
||||
"url"
|
||||
]
|
||||
},
|
||||
"secondary_cta": {
|
||||
"type": "link",
|
||||
"optional": true,
|
||||
"fields": [
|
||||
"label",
|
||||
"url"
|
||||
]
|
||||
},
|
||||
"accent": {
|
||||
"type": "enum",
|
||||
"values": [
|
||||
"underline",
|
||||
"rays",
|
||||
"none"
|
||||
],
|
||||
"default": "underline"
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
"use public media authorization logic",
|
||||
"escape textual fields by default",
|
||||
"validate destinations and block unsafe URL schemes",
|
||||
"no fake purchasable products or rights"
|
||||
],
|
||||
"integration": "Map fields to existing central Widget Registry; no separate schema or media database"
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<!doctype html><html lang="de"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Lara & Felix – Hero Komponenten-Vorschau</title><link rel="stylesheet" href="../components/lf-hero.css"><style>body{margin:0;background:#eef0ec;color:#032551;font-family:system-ui,sans-serif}.demo{max-width:1600px;margin:auto;padding:24px}.panel{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:20px 0 28px;padding:18px;border-radius:14px;background:white}.panel label{display:grid;gap:5px;font-size:13px;font-weight:600}.panel input,.panel select,.panel textarea{font:inherit;padding:9px;border:1px solid #abbab6;border-radius:7px}.panel textarea{resize:vertical;min-height:60px}.note{font-size:14px;color:#405366;line-height:1.5}.preview{background:white;border-radius:22px;padding:12px}.foot{margin-top:32px}h1{font-size:22px}h2{font-size:18px}</style></head><body><main class="demo"><h1>Lara & Felix – konfigurierbarer Hero (Arbeitsstand)</h1><p class="note">Echtes Kling-Motiv unverändert verwendet. Text, CTA, Hintergrundvariante und Bildfokus sind unabhängig vom Bild editierbar. Dies ist ein statischer Demonstrator, noch keine Laravel-/Filament-Implementierung.</p><div class="panel" id="controls"><label>Variante<select id="variant"><option value="photo-split">Foto + Text</option><option value="editorial-solid">Navy Editorial</option></select></label><label>Überschrift<input id="title" value="Kinder stark im Alltag"></label><label>Einleitung<textarea id="description">Alltagsnahe Filme, Übungen und didaktische Materialien für die Präventionsarbeit mit Kindern.</textarea></label><label>Erster Button<input id="cta1" value="Materialien entdecken"></label><label>Zweiter Button<input id="cta2" value="Für Trainer und Einrichtungen"></label><label>Bildfokus<select id="focal"><option value="center-right">Mitte rechts</option><option value="right">Rechts</option><option value="center">Mitte</option><option value="center-left">Mitte links</option></select></label></div><div class="preview"><section class="lf-hero lf-hero--photo-split" id="hero"><img class="lf-hero__photo" src="../assets/lara-felix-park-hero.webp" alt="Lara und Felix stehen gemeinsam in einem Park" data-focus="center-right"><div class="lf-hero__inner"><div class="lf-hero__copy"><span class="lf-hero__eyebrow">Lara & Felix · Stark im Alltag</span><h2 class="lf-hero__title" id="heroTitle">Kinder stark im Alltag</h2><div class="lf-hero__title-accent" aria-hidden="true"></div><p class="lf-hero__description" id="heroDescription">Alltagsnahe Filme, Übungen und didaktische Materialien für die Präventionsarbeit mit Kindern.</p><div class="lf-hero__actions"><a href="#demo" class="lf-hero__button lf-hero__button--primary" id="button1">Materialien entdecken</a><a href="#demo" class="lf-hero__button lf-hero__button--secondary" id="button2">Für Trainer und Einrichtungen</a></div></div></div><span class="lf-hero__bottom" aria-hidden="true"></span></section></div><p class="note foot" id="demo">Demo-Links sind absichtlich nicht mit realen Zielseiten verbunden. Bildrechte und öffentliche Freigabe im CMS prüfen. Auf Mobilgeräten wird das Foto oberhalb des Textes gezeigt, damit Gesichter nicht durch eine Textüberlagerung verdeckt werden.</p></main><script>const $=x=>document.getElementById(x);const render=()=>{const h=$('hero');h.className='lf-hero lf-hero--'+$('variant').value;$('heroTitle').textContent=$('title').value;$('heroDescription').textContent=$('description').value;$('button1').textContent=$('cta1').value;$('button2').textContent=$('cta2').value;$('button1').hidden=!$('cta1').value.trim();$('button2').hidden=!$('cta2').value.trim();document.querySelector('.lf-hero__photo').dataset.focus=$('focal').value};$('controls').addEventListener('input',render);$('controls').addEventListener('change',render);</script></body></html>
|
||||
@@ -1,11 +0,0 @@
|
||||
# Lara & Felix – Bild & Text (Designentwurf v1.4)
|
||||
|
||||
Öffne `preview/index.html`. Die Vorschau funktioniert lokal ohne Server.
|
||||
|
||||
**Lieferumfang:** HTML-Demo, separates CSS, Original-Kling-Bild als WebP, JSON-Feldvertrag.
|
||||
|
||||
**Varianten:** Bild links/rechts; creme/transparente/Navy-Fläche; responsive Aufteilung anhand Slotbreite.
|
||||
|
||||
**Status:** Gestalterischer Arbeitsstand, noch nicht vom Auftraggeber freigegeben und nicht in Laravel/Filament integriert. Text ist Demonstrationsinhalt, keine abgestimmte Website-Redaktion.
|
||||
|
||||
**Integration:** An bestehende CMS-Widget-Registry anschließen; vorhandene Medienauswahl nutzen. Kein neues Datenmodell. Widget-Klasse, Formularfelder und Blade-View müssen im Repository passend angelegt werden. Originales Foto bleibt als eigenständiges Bild erhalten.
|
||||
|
Before Width: | Height: | Size: 244 KiB |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 280 28"><path d="M9 18 Q102 1 270 12" fill="none" stroke="#FCD10A" stroke-width="13" stroke-linecap="round"/></svg>
|
||||
|
Before Width: | Height: | Size: 168 B |
@@ -1,54 +0,0 @@
|
||||
/* Lara & Felix | Bild-und-Text-Widget | Design-Arbeitsstand v1.4 */
|
||||
:root{
|
||||
--lf-navy:#032551; --lf-green:#3B7B09; --lf-yellow:#FCD10A; --lf-cream:#F7F6F2;
|
||||
--lf-ink:#032551; --lf-muted:#46556B; --lf-radius:24px;
|
||||
--lf-font: "Nunito Sans", "Arial", system-ui, sans-serif;
|
||||
}
|
||||
.lf-bt-host{container-type:inline-size;container-name:lf-bildtext;width:100%;}
|
||||
.lf-bt{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.04fr);gap:clamp(24px,4vw,76px);align-items:center;
|
||||
min-width:0;color:var(--lf-navy);border-radius:28px;padding:clamp(22px,4.4vw,72px);background:var(--lf-cream);
|
||||
font-family:var(--lf-font);isolation:isolate;overflow:hidden;}
|
||||
.lf-bt--clear{background:transparent;}
|
||||
.lf-bt--navy{background:var(--lf-navy);color:#fff;}
|
||||
.lf-bt--navy .lf-bt__text{color:#f3f6fa;}
|
||||
.lf-bt--navy .lf-bt__eyebrow{color:#fdf4b7;}
|
||||
.lf-bt--image-left .lf-bt__media{order:-1;}
|
||||
.lf-bt__copy{min-width:0;max-width:640px;}
|
||||
.lf-bt__eyebrow{display:inline-flex;align-items:center;gap:9px;color:#295b08;font-weight:850;
|
||||
letter-spacing:.095em;font-size:clamp(11px,.95vw,13px);text-transform:uppercase;margin-bottom:20px;}
|
||||
.lf-bt__eyebrow:before{content:"";display:block;width:25px;height:4px;background:var(--lf-yellow);border-radius:99px;}
|
||||
.lf-bt__headline{font-size:clamp(32px,3.2vw,56px);line-height:1.1;letter-spacing:-.035em;font-weight:850;
|
||||
margin:0 0 23px;max-width:660px;}
|
||||
.lf-bt__accent{width:112px;height:7px;background:var(--lf-yellow);border-radius:90% 40% 80% 40%;margin: -8px 0 26px 3px;transform:rotate(-1deg);}
|
||||
.lf-bt__text{font-size:clamp(16px,1.12vw,20px);line-height:1.65;margin:0 0 30px;color:var(--lf-muted);max-width:580px;}
|
||||
.lf-bt__actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
|
||||
.lf-bt__button{display:inline-flex;align-items:center;gap:13px;padding:13px 22px;background:var(--lf-green);color:white;
|
||||
border:2px solid var(--lf-green);font-weight:800;text-decoration:none;border-radius:100px;min-height:50px;font-size:15px;
|
||||
transition:transform .12s ease,background .12s ease;}
|
||||
.lf-bt__button:hover{background:#285a06;transform:translateY(-1px)}
|
||||
.lf-bt__button:focus-visible{outline:3px solid var(--lf-yellow);outline-offset:4px;}
|
||||
.lf-bt__button--secondary{background:transparent;color:inherit;border-color:currentColor;}
|
||||
.lf-bt__button--secondary:hover{background:rgba(255,255,255,.09)}
|
||||
.lf-bt__media{position:relative;min-width:0;align-self:stretch;display:flex;align-items:stretch;}
|
||||
.lf-bt__photo{display:block;width:100%;height:100%;min-height:365px;max-height:650px;object-fit:cover;object-position:var(--lf-object-position,64% center);
|
||||
border-radius:22px;box-shadow:0 20px 42px rgba(3,37,81,.12);position:relative;z-index:1;}
|
||||
.lf-bt__media:before{content:"";position:absolute;inset:auto -13px -13px 28px;height:55%;background:#8ab848;
|
||||
border-radius:25px;z-index:0;transform:rotate(1.8deg);}
|
||||
.lf-bt--navy .lf-bt__media:before{background:var(--lf-yellow);}
|
||||
.lf-bt__media-label{position:absolute;z-index:2;left:20px;bottom:20px;background:#fff;color:var(--lf-navy);
|
||||
padding:9px 14px;border-radius:14px;font-size:13px;font-weight:850;box-shadow:0 8px 24px rgba(3,37,81,.15);}
|
||||
@container lf-bildtext (max-width: 780px){
|
||||
.lf-bt{grid-template-columns:1fr;padding:clamp(20px,4vw,36px);gap:25px;border-radius:19px;}
|
||||
.lf-bt__media,.lf-bt--image-left .lf-bt__media{order:-1;}
|
||||
.lf-bt__photo{min-height:0;aspect-ratio:1.45 / 1;max-height:430px;}
|
||||
.lf-bt__headline{font-size:clamp(28px,5.7cqw,42px);margin-bottom:17px;}
|
||||
.lf-bt__text{font-size:16px;}
|
||||
.lf-bt__media:before{inset:auto -8px -8px 25px;}
|
||||
}
|
||||
@container lf-bildtext (max-width: 450px){
|
||||
.lf-bt__photo{aspect-ratio:1.45 / 1;object-position:right center;}
|
||||
.lf-bt__actions{display:grid;}
|
||||
.lf-bt__button{justify-content:center;width:100%;box-sizing:border-box;}
|
||||
.lf-bt__media-label{font-size:11px;left:10px;bottom:10px;}
|
||||
}
|
||||
@media (prefers-reduced-motion:reduce){.lf-bt__button{transition:none}.lf-bt__button:hover{transform:none}}
|
||||
@@ -1,60 +0,0 @@
|
||||
{
|
||||
"widget_id": "lf-editorial-bild-text",
|
||||
"version": 1,
|
||||
"status": "design-draft, not integrated with Laravel",
|
||||
"layout_scope": "one CMS widget slot, width-responsive through container queries",
|
||||
"fields": {
|
||||
"eyebrow": {
|
||||
"type": "string",
|
||||
"optional": true
|
||||
},
|
||||
"headline": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"body": {
|
||||
"type": "richtext",
|
||||
"required": true
|
||||
},
|
||||
"image_reference": {
|
||||
"type": "public-media-reference",
|
||||
"required": true
|
||||
},
|
||||
"image_alt": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"image_focus": {
|
||||
"type": "focal_point",
|
||||
"optional": true
|
||||
},
|
||||
"primary_cta": {
|
||||
"type": "internal-link+label",
|
||||
"optional": true
|
||||
},
|
||||
"secondary_cta": {
|
||||
"type": "internal-link+label",
|
||||
"optional": true
|
||||
}
|
||||
},
|
||||
"variant_fields": {
|
||||
"image_side": [
|
||||
"left",
|
||||
"right"
|
||||
],
|
||||
"surface": [
|
||||
"cream",
|
||||
"clear",
|
||||
"navy"
|
||||
]
|
||||
},
|
||||
"assets": {
|
||||
"demo_image": "assets/lara-felix-park.webp",
|
||||
"accent": "assets/yellow-underline.svg"
|
||||
},
|
||||
"notes": [
|
||||
"Uses publicly permitted images only in public version; protection must be checked in Laravel",
|
||||
"Front-end markup and CSS are a portable preview, not a Filament widget implementation",
|
||||
"No content copied into separate program/module model"
|
||||
]
|
||||
}
|
||||
|
Before Width: | Height: | Size: 829 KiB |
@@ -1,39 +0,0 @@
|
||||
<!doctype html><html lang="de"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>Lara & Felix – Bild & Text | Komponenten-Vorschau</title>
|
||||
<link rel="stylesheet" href="../components/lf-bild-text.css">
|
||||
<style>
|
||||
body{margin:0;background:#e8e9e6;color:#032551;font:16px/1.5 system-ui,Arial,sans-serif}*,*:before,*:after{box-sizing:border-box}
|
||||
.panel{background:white;padding:18px 24px;display:flex;gap:16px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #d3d8d0;position:sticky;top:0;z-index:6}
|
||||
.panel strong{font-size:17px;margin-right:auto}.panel label{font-size:14px;font-weight:650}.panel select{padding:10px;border-radius:8px;border:1px solid #a5b4a0;background:white}
|
||||
main{max-width:1500px;margin:35px auto;padding:0 22px 50px}.sample{background:white;border-radius:20px;padding:26px;margin-bottom:24px;box-shadow:0 4px 24px rgba(0,0,0,.05)}
|
||||
.sample h2{font-size:18px;margin:0 0 15px}.hint{color:#54657c;font-size:13px;margin:0 0 14px}
|
||||
#dynamic{max-width:1450px;margin:auto}.small-preview{max-width:450px;margin:0 auto}.small-preview .lf-bt__photo{min-height:0}
|
||||
@media(max-width:640px){.panel{position:static}main{margin:14px auto;padding:0 9px}.sample{padding:12px}}
|
||||
</style></head><body>
|
||||
<header class="panel"><strong>Lara & Felix · Bild & Text</strong>
|
||||
<label>Bildposition <select id="side"><option value="right">rechts</option><option value="left">links</option></select></label>
|
||||
<label>Fläche <select id="theme"><option value="cream">Creme</option><option value="clear">Transparent</option><option value="navy">Navy</option></select></label>
|
||||
<label>Slotbreite <select id="width"><option value="wide">Breit</option><option value="narrow">Schmal (460 px)</option></select></label></header>
|
||||
<main><section class="sample"><h2>Variante A · Redaktionelle Bild-Text-Komposition</h2><p class="hint">Ändere oben die Optionen. Bild, Text, Button und Farbfläche sind getrennte Elemente.</p>
|
||||
<div id="dynamic"><div class="lf-bt-host">
|
||||
<article id="widget" class="lf-bt lf-bt--cream lf-bt--image-right" style="--lf-object-position:64% center">
|
||||
<div class="lf-bt__copy"><span class="lf-bt__eyebrow">Lara & Felix · Unser Ansatz</span>
|
||||
<h1 class="lf-bt__headline">Geschichten, die Kinder zum Mitdenken bringen.</h1><div class="lf-bt__accent" aria-hidden="true"></div>
|
||||
<p class="lf-bt__text">Die Filme zeigen Situationen aus dem Alltag. Trainerinnen und Trainer können sie mit Gesprächen, Übungen und weiteren Materialien in ihrer Präventionsarbeit einsetzen.</p>
|
||||
<div class="lf-bt__actions"><a class="lf-bt__button" href="#" onclick="event.preventDefault()">Konzept kennenlernen <span aria-hidden="true">→</span></a>
|
||||
<a class="lf-bt__button lf-bt__button--secondary" href="#" onclick="event.preventDefault()">Materialien ansehen</a></div></div>
|
||||
<div class="lf-bt__media"><img class="lf-bt__photo" src="../assets/lara-felix-park.webp" alt="Lara und Felix stehen gemeinsam im Park" loading="eager" />
|
||||
<span class="lf-bt__media-label">Originales Kling-Motiv</span></div></article></div></div></section>
|
||||
<section class="sample"><h2>Variante B · Markenfläche, Bild links</h2><p class="hint">Zweite Gestaltung mit identischer Komponentenstruktur und anderer Varianteneinstellung.</p>
|
||||
<div class="lf-bt-host"><article class="lf-bt lf-bt--navy lf-bt--image-left" style="--lf-object-position:60% center">
|
||||
<div class="lf-bt__copy"><span class="lf-bt__eyebrow">Für Kursleitende & Einrichtungen</span>
|
||||
<h2 class="lf-bt__headline">Anschaulich. Alltagstauglich. Gemeinsam besprechen.</h2><div class="lf-bt__accent" aria-hidden="true"></div>
|
||||
<p class="lf-bt__text">Eine Filmsequenz kann den Einstieg in ein Gespräch bilden. Die passenden Übungen und Begleitmaterialien werden in den Trainingsmodulen zusammengestellt.</p>
|
||||
<div class="lf-bt__actions"><a class="lf-bt__button" href="#" onclick="event.preventDefault()">Module entdecken <span aria-hidden="true">→</span></a></div></div>
|
||||
<div class="lf-bt__media"><img class="lf-bt__photo" src="../assets/lara-felix-park.webp" alt="Lara und Felix im Park" loading="lazy"/></div></article></div></section>
|
||||
</main><script>
|
||||
const widget=document.getElementById('widget');const slot=document.getElementById('dynamic');
|
||||
const sync=()=>{widget.className=`lf-bt lf-bt--${document.getElementById('theme').value} lf-bt--image-${document.getElementById('side').value}`;
|
||||
slot.style.maxWidth=document.getElementById('width').value==='narrow'?'460px':'1450px';};
|
||||
for(const id of ['theme','side','width'])document.getElementById(id).addEventListener('change',sync);
|
||||
</script></body></html>
|
||||
|
Before Width: | Height: | Size: 378 KiB |
@@ -1,11 +0,0 @@
|
||||
# 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.
|
||||
@@ -1,33 +0,0 @@
|
||||
# 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.
|
||||
@@ -1,113 +0,0 @@
|
||||
/* 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}
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
# 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.
|
||||
@@ -1,14 +0,0 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
# 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/`.
|
||||
@@ -1,24 +0,0 @@
|
||||
{
|
||||
"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."
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
{
|
||||
"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"]
|
||||
}
|
||||
@@ -1,73 +0,0 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
{
|
||||
"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"}
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
<?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" />
|
||||
@@ -1,14 +0,0 @@
|
||||
# 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.
|
||||
@@ -1,58 +0,0 @@
|
||||
{{-- 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>
|
||||
@@ -1,25 +0,0 @@
|
||||
<?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>'));
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 383 KiB |
@@ -1,57 +0,0 @@
|
||||
<!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>
|
||||
@@ -1,59 +0,0 @@
|
||||
<!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>
|
||||
|
Before Width: | Height: | Size: 152 KiB |
|
Before Width: | Height: | Size: 513 KiB |
|
Before Width: | Height: | Size: 392 KiB |
@@ -1,6 +0,0 @@
|
||||
# Versionshistorie
|
||||
|
||||
- **v1.3:** Hero-Markenwelt, Variantenauswahl und Fokuseinstellungen (unverändert im Ordner `09_hero_widget`).
|
||||
- **v1.4:** Bild-&-Text-Gestaltung (unverändert im Ordner `10_bild_text_widget`).
|
||||
- **v1.5:** Blade-Fassung, Höhenparameter, Containerbreiten-Grundregel und Integrationsskizze (unverändert im Ordner `11_bild_text_widget_v1.5`).
|
||||
- **v1.6 (18.11.2026):** Ergänzung nur unter `12_premium_widgets_adaptiv_v1.6/`: Hero-Höhen `compact/normal/large` auf breiten Containern; Bild-&-Text-Kompaktlayout für mittlere Realbreiten (insbesondere zwei Einheiten); browsergerenderte Vorschauen und Text-/CTA-Overflow-Stresstests. Keine Schema-/CMS-Entscheidung und keine geänderten Markenbilder.
|
||||
@@ -1,23 +0,0 @@
|
||||
# Lara & Felix · adaptive Premium-Widgets v1.6
|
||||
|
||||
**Additive Erweiterung:** Vorhandene Ordner 01–11 aus Kit v1.5 bleiben bytegenau erhalten. Neue Dateien liegen nur unter `12_premium_widgets_adaptiv_v1.6/`.
|
||||
|
||||
**Designfortführung:** Hero aus v1.3 und Bild & Text aus v1.4/v1.5; freigegebene Gestaltungsrichtung, keine neue Markenwelt, keine neuen Figuren. Original-Kling-PNG und vorhandene WebP-Ableitung werden unverändert referenziert. Figurenreferenz-Collagen werden nicht veröffentlicht.
|
||||
|
||||
## Was neu ist
|
||||
|
||||
- **Hero:** eine breite Premiumkomposition mit drei wählbaren Mindesthöhen `compact` (400 px), `normal` (512 px) und `large` (640 px). Nur 3–4 Rastereinheiten vorgesehen, empfohlen ab 860 px realer Containerbreite. Bei schmalerem Container ausschließlich Sicherheitsumbruch. Kein Clipping bei längeren Inhalten.
|
||||
- **Bild & Text:** Unterstützt 1–4 Rastereinheiten. Ein Container mit **540–899 px** (typischerweise 2 Einheiten) verwendet automatisch einen flachen Bildstreifen und kompaktere Innenabstände. Ab 900 px wird zweispaltig, darunter mobil gestapelt. Drei vorhandene Höhenvarianten `compact`, `normal`, `spacious` bleiben erhalten.
|
||||
- **Beide:** Text und CTAs sind eigenständige HTML-Elemente, wachsen nach Bedarf, umbrechen statt abgeschnitten zu werden. Keine feste Gesamthöhe, keine `line-clamp`-Texte. Alle Entscheidungen erfolgen über `@container` und reale `inline-size`, nicht anhand des CMS-Spans.
|
||||
|
||||
## Direkt prüfen
|
||||
|
||||
`preview/index.html` → interaktiver Demonstrator mit Widget, Breite, Höhe, Oberfläche und Text-Stresstest. Weitere Browser-Matrizen: `preview/bild-text-matrix.html` und `preview/hero-matrix.html`. Screenshots aus Chromium mit inline eingebundenen **unveränderten** Quellbild-Bytes: `preview/screenshots/`. Technischer QA-Bericht: `docs/qa-browser.json`.
|
||||
|
||||
## Einbau
|
||||
|
||||
`laravel/resources/views/components/lf/{hero,bild-text}.blade.php`, `laravel/resources/css/components/*.css` und `laravel/app/Support/LfBildTextPayload.php`. Die vorhandene zentrale Widget-Registry bleibt unangetastet; Installationsregeln siehe `laravel/examples/registry-adapter.hinweise.md`. Neue CSS-Dateien **ersetzen** die entsprechenden früheren Stylesheets beim Einbau; nicht gleichzeitig laden.
|
||||
|
||||
## Status
|
||||
|
||||
**Design:** Anpassungsentwurf zur UX-Abnahme. **Komponenten:** statisch in Chromium geprüft, nicht im Ziel-Laravel ausgeführt. **CMS-Integration:** offen. **Produktivfreigabe:** nein. Öffentliche Bildverwendung ist unabhängig vom vorhandenen Bildbestand freizugeben.
|
||||
@@ -1,90 +0,0 @@
|
||||
/* Lara & Felix – Bild & Text v1.6; replaces v1.5 CSS at integration, not alongside it.
|
||||
The layout reacts to container WIDTH, not CMS span count. Source artwork unchanged. */
|
||||
.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:64%;--bt-focus-y:43%;
|
||||
display:grid;grid-template-columns:minmax(0,1fr);align-items:start;
|
||||
gap:clamp(.9rem,2.65cqi,2rem);padding:clamp(1rem,2.8cqi,3.25rem);
|
||||
border-radius:clamp(1rem,1.8cqi,1.65rem);
|
||||
min-inline-size:0;max-inline-size:100%;
|
||||
background:var(--bt-cream);color:var(--bt-navy);
|
||||
font:400 1rem/1.6 var(--lf-font-ui,'Nunito Sans','Segoe UI',system-ui,sans-serif);
|
||||
overflow-wrap:break-word;
|
||||
}
|
||||
.lf-bt--clear{background:transparent}.lf-bt--navy{background:var(--bt-navy);color:#fff}
|
||||
.lf-bt__copy{min-inline-size:0;max-inline-size:49rem;align-self:center}
|
||||
.lf-bt__eyebrow{display:flex;align-items:center;gap:.6rem;margin:0 0 .8rem;
|
||||
color:#295B08;font-size:.73rem;line-height:1.45;font-weight:800;letter-spacing:.065em;text-transform:uppercase;overflow-wrap:anywhere}
|
||||
.lf-bt__eyebrow::before{content:'';inline-size:1.35rem;block-size:.25rem;flex:0 0 auto;background:var(--bt-yellow);border-radius:999px}
|
||||
.lf-bt--navy .lf-bt__eyebrow{color:#FFF2B0}
|
||||
.lf-bt__headline{font-size:clamp(1.55rem,4.5cqi,3.35rem);line-height:1.14;letter-spacing:-.03em;
|
||||
font-weight:850;margin:0;overflow-wrap:anywhere;text-wrap:balance}
|
||||
.lf-bt__accent{display:block;inline-size:clamp(4.6rem,12cqi,7rem);block-size:.36rem;
|
||||
margin:clamp(.55rem,1.7cqi,1rem) 0 clamp(.8rem,2.3cqi,1.25rem) .12rem;
|
||||
background:var(--bt-yellow);border-radius:90% 35% 75% 40%;transform:rotate(-1deg)}
|
||||
.lf-bt__body{color:var(--bt-muted);font-size:clamp(.97rem,1.45cqi,1.12rem);line-height:1.62;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 .9em}.lf-bt__body ul,.lf-bt__body ol{padding-inline-start:1.35em;margin:.6em 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:stretch;gap:.65rem;flex-wrap:wrap;
|
||||
margin-block-start:clamp(1rem,2cqi,1.5rem);min-inline-size:0}
|
||||
.lf-bt__button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
|
||||
max-inline-size:100%;min-inline-size:0;min-block-size:2.95rem;padding:.7rem 1rem;
|
||||
background:var(--bt-green);border:2px solid var(--bt-green);color:#fff;
|
||||
border-radius:999px;text-decoration:none;text-align:center;font-size:.89rem;font-weight:800;
|
||||
line-height:1.33;overflow-wrap:anywhere;white-space:normal;transition:background-color .14s ease,transform .14s ease}
|
||||
.lf-bt__button:visited{color:#fff}.lf-bt__button:hover{background:#285A06;transform:translateY(-1px)}
|
||||
.lf-bt__button--secondary{background:transparent;border-color:currentColor;color:inherit}
|
||||
.lf-bt__button--secondary:visited{color:inherit}.lf-bt__button--secondary:hover{background:rgb(3 37 81 / .06)}
|
||||
.lf-bt--navy .lf-bt__button--secondary:hover{background:rgb(255 255 255 / .12)}
|
||||
.lf-bt__button:focus-visible,.lf-bt__body a:focus-visible{outline:3px solid var(--lf-focus,#1769AA);outline-offset:3px}
|
||||
.lf-bt__media{position:relative;display:block;min-inline-size:0;order:-1;isolation:isolate}
|
||||
.lf-bt__media::before{content:'';position:absolute;inset:auto -.42rem -.45rem 1rem;
|
||||
block-size:53%;border-radius:1.1rem;background:#8AB848;transform:rotate(1.5deg);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(.78rem,1.8cqi,1.3rem);box-shadow:0 10px 28px rgb(3 37 81 / .11)}
|
||||
.lf-bt--height-compact .lf-bt__image{aspect-ratio:16/9}
|
||||
.lf-bt--height-spacious .lf-bt__image{aspect-ratio:4/3}
|
||||
.lf-bt--height-compact{gap:clamp(.75rem,2cqi,1.45rem)}
|
||||
.lf-bt--height-spacious{gap:clamp(1.15rem,3.4cqi,2.7rem)}
|
||||
.lf-bt--without-image{grid-template-columns:minmax(0,1fr)}
|
||||
/* Narrow slots: full text and links, no forced block height. */
|
||||
@container lf-bt (max-width: 539.99px){
|
||||
.lf-bt__actions{display:grid;grid-template-columns:minmax(0,1fr)}
|
||||
.lf-bt__button{inline-size:100%}
|
||||
.lf-bt__headline{font-size:clamp(1.42rem,6.8cqi,2.2rem)}
|
||||
.lf-bt__eyebrow{letter-spacing:.03em}
|
||||
}
|
||||
/* Mid-size real container (usually 2 CMS units): compact editorial picture band, not a squeezed 2-col.
|
||||
Only media proportions / spacings change; text is never clamped or hidden. */
|
||||
@container lf-bt (min-width: 540px) and (max-width: 899.99px){
|
||||
.lf-bt{gap:clamp(.8rem,1.6cqi,1.2rem);padding:clamp(1.1rem,2.4cqi,1.65rem)}
|
||||
.lf-bt__media{inline-size:100%}
|
||||
.lf-bt__image{aspect-ratio:2.15/1}
|
||||
.lf-bt--height-compact .lf-bt__image{aspect-ratio:2.5/1}
|
||||
.lf-bt--height-spacious .lf-bt__image{aspect-ratio:1.8/1}
|
||||
.lf-bt__headline{font-size:clamp(1.65rem,3.6cqi,2.28rem)}
|
||||
.lf-bt__body{font-size:1.01rem;line-height:1.59}
|
||||
.lf-bt__actions{margin-block-start:.95rem}
|
||||
.lf-bt__button{flex:1 1 13rem}
|
||||
}
|
||||
/* Wide container: original two-column premium editorial composition. */
|
||||
@container lf-bt (min-width: 900px){
|
||||
.lf-bt{grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
|
||||
align-items:center;gap:clamp(1.8rem,4cqi,4.5rem);padding:clamp(1.8rem,4cqi,4.5rem)}
|
||||
.lf-bt__media{order:0;align-self:stretch}
|
||||
.lf-bt--image-left .lf-bt__media{order:-1}
|
||||
.lf-bt__image{block-size:100%;min-block-size:18rem;max-block-size:none;aspect-ratio:4/3}
|
||||
.lf-bt--height-compact .lf-bt__image{min-block-size:14rem;aspect-ratio:3/2}
|
||||
.lf-bt--height-spacious .lf-bt__image{min-block-size:24rem;aspect-ratio:1/1}
|
||||
.lf-bt--height-compact{padding-block:clamp(1.25rem,2.8cqi,2.6rem)}
|
||||
.lf-bt--height-spacious{padding-block:clamp(2.15rem,4.5cqi,4.75rem)}
|
||||
.lf-bt--without-image{grid-template-columns:minmax(0,1fr)}
|
||||
}
|
||||
@media(prefers-reduced-motion:reduce){.lf-bt__button{transition:none}.lf-bt__button:hover{transform:none}}
|
||||
@@ -1,70 +0,0 @@
|
||||
/* Lara & Felix Hero v1.6 – non-destructive update of v1.3 visuals.
|
||||
CMS assigns 3 or 4 units; this component reads resulting real container width.
|
||||
Height presets are MINIMUM heights, never clipping text or CTAs. */
|
||||
.lf-hero-host{container:lf-hero/inline-size;inline-size:100%;min-inline-size:0;max-inline-size:100%}
|
||||
.lf-hero-host,.lf-hero-host *{box-sizing:border-box}
|
||||
.lf-hero{
|
||||
--lf-hero-navy:var(--lf-navy,#032551);--lf-hero-green:var(--lf-green-deep,#3B7B09);
|
||||
--lf-hero-yellow:var(--lf-yellow,#FCD10A);--lf-hero-cream:var(--lf-cream,#F7F6F2);
|
||||
--lf-hero-focus-x:68%;--lf-hero-focus-y:50%;
|
||||
isolation:isolate;position:relative;display:grid;align-items:center;min-inline-size:0;
|
||||
min-block-size:32rem;max-inline-size:100%;border-radius:clamp(1rem,1.9cqi,1.75rem);
|
||||
background:var(--lf-hero-cream);color:var(--lf-hero-navy);
|
||||
font-family:var(--lf-font-display,'Nunito','Trebuchet MS',system-ui,sans-serif)
|
||||
}
|
||||
.lf-hero--height-compact{min-block-size:25rem}
|
||||
.lf-hero--height-normal{min-block-size:32rem}
|
||||
.lf-hero--height-large{min-block-size:40rem}
|
||||
.lf-hero__photo{position:absolute;inset:0;inline-size:100%;block-size:100%;object-fit:cover;
|
||||
object-position:var(--lf-hero-focus-x) var(--lf-hero-focus-y);z-index:-2;border-radius:inherit}
|
||||
.lf-hero--photo-split::before{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;
|
||||
background:linear-gradient(90deg,rgba(250,249,243,.99) 0%,rgba(250,249,243,.98) 28%,rgba(250,249,243,.85) 41%,rgba(250,249,243,.12) 69%,transparent 80%)}
|
||||
.lf-hero--editorial-solid{background:var(--lf-hero-navy);color:white}
|
||||
.lf-hero--editorial-solid .lf-hero__photo{display:none}
|
||||
.lf-hero--editorial-solid::before{content:'';position:absolute;inset:auto -7% -50% auto;inline-size:40%;aspect-ratio:1;
|
||||
background:var(--lf-hero-green);border-radius:50%;opacity:.8;z-index:-1}
|
||||
.lf-hero__inner{inline-size:100%;max-inline-size:1440px;margin-inline:auto;padding:clamp(1.8rem,4.3cqi,5rem);
|
||||
padding-block:clamp(2.1rem,5cqi,5rem);min-inline-size:0}
|
||||
.lf-hero__copy{max-inline-size:min(660px,58%);min-inline-size:0}
|
||||
.lf-hero--editorial-solid .lf-hero__copy{max-inline-size:760px}
|
||||
.lf-hero__eyebrow{display:inline-block;margin:0;padding:.35em .75em;border-radius:999px;background:#DFF0C0;
|
||||
color:#17370B;font-weight:800;font-size:clamp(.78rem,1.25cqi,.95rem);overflow-wrap:anywhere}
|
||||
.lf-hero__title{margin:.25em 0 .25em;font-size:clamp(2.1rem,5.4cqi,4.9rem);line-height:1.06;
|
||||
letter-spacing:-.035em;font-weight:900;text-wrap:balance;overflow-wrap:anywhere}
|
||||
.lf-hero__title-accent{inline-size:clamp(6rem,15cqi,15rem);block-size:.42rem;margin:0 0 clamp(1.1rem,2cqi,1.5rem);
|
||||
background:var(--lf-hero-yellow);border-radius:90% 30% 45% 25%;transform:rotate(-1deg)}
|
||||
.lf-hero__description{max-inline-size:56ch;margin:0 0 clamp(1.25rem,2.1cqi,2rem);
|
||||
font-family:var(--lf-font-ui,'Nunito Sans','Segoe UI',system-ui,sans-serif);
|
||||
font-size:clamp(1.05rem,1.7cqi,1.3rem);line-height:1.5;overflow-wrap:anywhere}
|
||||
.lf-hero__actions{display:flex;gap:.75rem;flex-wrap:wrap;align-items:stretch;min-inline-size:0}
|
||||
.lf-hero__button{display:inline-flex;align-items:center;justify-content:center;min-inline-size:0;max-inline-size:100%;
|
||||
min-block-size:3rem;padding:.77rem 1.2rem;border:2px solid transparent;border-radius:999px;
|
||||
font:800 .96rem/1.28 var(--lf-font-ui,'Nunito Sans',system-ui,sans-serif);
|
||||
text-decoration:none;text-align:center;white-space:normal;overflow-wrap:anywhere;transition:transform .15s ease,background-color .15s ease}
|
||||
.lf-hero__button:hover{transform:translateY(-1px)}
|
||||
.lf-hero__button:focus-visible{outline:3px solid var(--lf-focus,#1769AA);outline-offset:3px}
|
||||
.lf-hero__button--primary{background:var(--lf-hero-green);color:#fff}
|
||||
.lf-hero__button--primary:visited{color:#fff}.lf-hero__button--primary:hover{background:#285A06}
|
||||
.lf-hero__button--secondary{background:rgba(255,255,255,.95);color:var(--lf-hero-navy);border-color:var(--lf-hero-navy)}
|
||||
.lf-hero__button--secondary:visited{color:var(--lf-hero-navy)}
|
||||
.lf-hero__bottom{position:absolute;inset:auto 0 0;block-size:15px;border-radius:0 0 1.5rem 1.5rem;
|
||||
background:linear-gradient(105deg,var(--lf-hero-yellow) 0%,var(--lf-hero-yellow) 22%,var(--lf-hero-green) 72%);
|
||||
clip-path:polygon(0 45%,30% 90%,65% 75%,100% 0,100% 100%,0 100%);pointer-events:none}
|
||||
/* Safety fallback ONLY when a CSS container turns out physically too narrow;
|
||||
not an additional author-selectable Hero design. */
|
||||
@container lf-hero (max-width: 859.99px){
|
||||
.lf-hero{display:block;min-block-size:0}
|
||||
.lf-hero__photo{position:relative;display:block;block-size:auto;aspect-ratio:16/9;
|
||||
border-radius:inherit;object-position:var(--lf-hero-focus-x) var(--lf-hero-focus-y)}
|
||||
.lf-hero--photo-split::before{display:none}
|
||||
.lf-hero__inner{padding:clamp(1.2rem,3.5cqi,2rem);padding-block-end:2.4rem}
|
||||
.lf-hero__copy{max-inline-size:100%}
|
||||
.lf-hero__title{font-size:clamp(2rem,5.5cqi,3.1rem)}
|
||||
.lf-hero__description{font-size:1.07rem}
|
||||
.lf-hero--editorial-solid .lf-hero__copy{max-inline-size:100%}
|
||||
}
|
||||
@container lf-hero (max-width: 440px){
|
||||
.lf-hero__actions{display:grid;grid-template-columns:minmax(0,1fr)}
|
||||
.lf-hero__button{inline-size:100%}
|
||||
}
|
||||
@media(prefers-reduced-motion:reduce){.lf-hero__button{transition:none}.lf-hero__button:hover{transform:none}}
|
||||
@@ -1,15 +0,0 @@
|
||||
# Prüfbericht – Premium-Widgets v1.6
|
||||
|
||||
**Stand:** 18.11.2026 · **Status:** Komponentenkandidat für UX-Abnahme, nicht produktiv freigegeben
|
||||
|
||||
- Bestand: **77 Dateien** aus dem vollständigen v1.5-Paket bytegenau per SHA-256 verglichen und beibehalten; die neue Implementierung liegt ausschließlich im zusätzlichen v1.6-Ordner.
|
||||
- Bildquellen: unverändertes Original-Kling-PNG und bereits vorhandene WebP-Ableitung; keine KI-Neugenerierung. SHA-256: `asset-integrity.json`.
|
||||
- **Chromium-Rendering:** reale Browser-Renders über `page.set_content()` mit inlined CSS und inlined Bytes der bestehenden WebP-Datei, weil direkte lokale URL-Navigation in der Umgebung blockiert ist. Keine gezeichneten Ersatzscreenshots.
|
||||
- **Breiten:** 18 kombinierte Text-/CTA-Stresstests (Bild & Text 240–1180 px, Hero 740–1180 px) ohne horizontalen Scroll-Überlauf oder abgeschnittene Texte/Schaltflächen. Testdaten: `qa-stress-breiten.json`.
|
||||
- **Designfälle:** 10 visuelle / geometrische Komponententests inklusive Bild & Text bei 320/590/860/1180 px und Hero in kompakt, normal, groß, langem Text. Alle bestanden. Screenshots unter `../preview/screenshots/`.
|
||||
- Interaktive HTML-Demo: Wechsel zwischen Hero und Bild & Text, tatsächlicher Breite, Höhe, Oberfläche und Langtext in Chromium ausgelöst; Vorschau sichtbar. Testdaten: `qa-browser.json`.
|
||||
- Portable Hilfsklasse mit PHP-Syntaxprüfung geprüft; Blade-Dateien statisch betrachtet, **nicht in einem laufenden Laravel-/Filament-Projekt gerendert oder gegen die bestehende Registry getestet**.
|
||||
|
||||
**Weiter offen:** UX-Freigabe für Bildausschnitt/Proportionen; Repositoriumsabgleich mit realem `BlockRegistry`-Interface; öffentliches Medienrecht; echte Editor-/Frontend-Parität und End-to-End-Tests; CMS/Architekturentscheidungen ADR-28 und ADR-30.
|
||||
|
||||
**Referenzbasis:** Vorhandenes Kit v1.3–v1.5, `design-prinzipien.md` §§4–6 und 13, Projektkompass (17.11.2026), `12_Entscheidungsprotokoll_ADR.md` (17.11.2026).
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"previous_files_verified_unchanged": 77,
|
||||
"source_kit": "v1.5 full ZIP",
|
||||
"assets_sha256": {
|
||||
"09_hero_widget/assets/lara-felix-park-original.png": "dbcb393be9904592c2d8b206b66840c69f42f499be78238869123822892a2f54",
|
||||
"09_hero_widget/assets/lara-felix-park-hero.webp": "b6c5d59074cdce51065b35bc78cbd632c5245536728e5d3021c78b46dbd6c115",
|
||||
"10_bild_text_widget/assets/lara-felix-park.webp": "bddb10c456b08005f5cb2d647426c89e29711f66bdcf9b78cea6a0edf0f47c38"
|
||||
}
|
||||
}
|
||||
@@ -1,74 +0,0 @@
|
||||
{
|
||||
"kit_version": "1.6.0",
|
||||
"status": "Design- und Implementierungskandidaten; keine produktive CMS-Freigabe",
|
||||
"shared_section_rules": {
|
||||
"max_logical_units": 4,
|
||||
"max_widgets_per_slot": 1,
|
||||
"layout_basis": "Tatsächliche Containerbreite nach Slotzuweisung, nicht Anzahl Rastereinheiten",
|
||||
"container_query_unit": "inline-size",
|
||||
"auto_height": true,
|
||||
"overflow": "Keine feste Gesamthöhe, kein line-clamp, kein text-overflow:ellipsis. Bildausschnitt darf mit object-fit:cover zugeschnitten werden."
|
||||
},
|
||||
"widgets": {
|
||||
"lf-brand-hero": {
|
||||
"design_source": "09_hero_widget v1.3 – bestehender Marken-Hero, keine neuen Figuren",
|
||||
"supported_spans": [3,4],
|
||||
"recommended_real_min_width_px": 860,
|
||||
"narrow_behavior": "Unter 860 px ausschließlich technischer Sicherheitsumbruch; keine zusätzliche auswählbare schmale Hero-Variante",
|
||||
"layout": "photo-split oder editorial-solid aus dem bisherigen Kit",
|
||||
"height_variants": {
|
||||
"compact": "min-height 400 px bei breitem Container",
|
||||
"normal": "min-height 512 px bei breitem Container",
|
||||
"large": "min-height 640 px bei breitem Container"
|
||||
},
|
||||
"height_note": "Minimum, nie feste Höhe; Inhalt darf jede Variante vertikal vergrößern",
|
||||
"full_section_behavior": "Kann einen breiten Slot füllen; darf nicht andere Slots verdecken oder zusätzliche Slots reservieren",
|
||||
"config": {
|
||||
"variant": ["photo-split", "editorial-solid"],
|
||||
"height": ["compact", "normal", "large"],
|
||||
"heading_level": ["h1", "h2", "h3"],
|
||||
"image_focus": "{x:0..100,y:0..100}",
|
||||
"eyebrow": "Text",
|
||||
"title": "Text, verpflichtend",
|
||||
"description": "Text",
|
||||
"image": "bestehende freigegebene öffentliche Medienreferenz",
|
||||
"image_alt": "Text/Leer nur bei dekorativem Motiv",
|
||||
"primary_cta": "{label,url}, optional",
|
||||
"secondary_cta": "{label,url}, optional"
|
||||
}
|
||||
},
|
||||
"lf-editorial-bild-text": {
|
||||
"design_source": "10_bild_text_widget v1.4 + 11_bild_text_widget_v1.5",
|
||||
"supported_spans": [1,2,3,4],
|
||||
"technical_real_min_width_px": 240,
|
||||
"recommended_real_min_width_px": 280,
|
||||
"breakpoint_policy": {
|
||||
"under_540_px": "vertikal, normales Seitenverhältnis, CTAs untereinander",
|
||||
"540_to_899_px": "kompakter redaktioneller Bildstreifen oberhalb des vollständigen Inhalts; Buttons umbrechen, ohne zu kürzen",
|
||||
"from_900_px": "breites Bild/Text-Zweispaltenlayout, Bild links/rechts"
|
||||
},
|
||||
"height_variants": {
|
||||
"compact": "flacheres Bild, engere Abstände",
|
||||
"normal": "Standardbild und Standardabstand",
|
||||
"spacious": "höherer Bildanteil und großzügigerer Abstand"
|
||||
},
|
||||
"height_note": "Nur Bildproportionen und Innenabstände, niemals feste Kartenhöhe",
|
||||
"full_section_behavior": false,
|
||||
"config": {
|
||||
"surface": ["cream","clear","navy"],
|
||||
"image_side": ["left","right"],
|
||||
"height": ["compact","normal","spacious"],
|
||||
"heading_level": ["h1","h2","h3"],
|
||||
"image_focus": "{x:0..100,y:0..100}",
|
||||
"eyebrow": "Text",
|
||||
"headline": "Text, verpflichtend",
|
||||
"body": "sanitisierter Richtext oder reiner Text",
|
||||
"image": "freigegebene öffentliche Medienreferenz",
|
||||
"image_alt": "Text/Leer nur bei dekorativem Motiv",
|
||||
"primary_cta": "{label,url}, optional",
|
||||
"secondary_cta": "{label,url}, optional"
|
||||
}
|
||||
}
|
||||
},
|
||||
"integration_rule": "Keine Änderungen an der Struktur der bestehenden zentralen Widget-Registry oder an den Seiten-/Katalog-/Medien-Datenmodellen. Adapter erst nach Repository-Sichtung."
|
||||
}
|
||||
@@ -1,422 +0,0 @@
|
||||
[
|
||||
{
|
||||
"hostWidth": 320,
|
||||
"hostHeight": 586.375,
|
||||
"innerWidth": 320,
|
||||
"innerHeight": 586.375,
|
||||
"scrollWidth": 320,
|
||||
"clientWidth": 320,
|
||||
"scrollHeight": 586,
|
||||
"clientHeight": 586,
|
||||
"copyBounds": {
|
||||
"bottom": 2736.765625,
|
||||
"top": 2356.390625,
|
||||
"left": 58,
|
||||
"right": 346
|
||||
},
|
||||
"cardBottom": 2752.765625,
|
||||
"buttons": [
|
||||
{
|
||||
"text": "Konzept kennenlernen",
|
||||
"visible": true,
|
||||
"bounds": {
|
||||
"left": 58,
|
||||
"right": 346,
|
||||
"top": 2632,
|
||||
"bottom": 2679.1875
|
||||
}
|
||||
},
|
||||
{
|
||||
"text": "Themen ansehen",
|
||||
"visible": true,
|
||||
"bounds": {
|
||||
"left": 58,
|
||||
"right": 346,
|
||||
"top": 2689.578125,
|
||||
"bottom": 2736.765625
|
||||
}
|
||||
}
|
||||
],
|
||||
"id": "bt-320",
|
||||
"file": "bild-text-matrix.html",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"hostWidth": 590,
|
||||
"hostHeight": 528.59375,
|
||||
"innerWidth": 590,
|
||||
"innerHeight": 528.59375,
|
||||
"scrollWidth": 590,
|
||||
"clientWidth": 590,
|
||||
"scrollHeight": 529,
|
||||
"clientHeight": 529,
|
||||
"copyBounds": {
|
||||
"bottom": 731.09375,
|
||||
"top": 472.40625,
|
||||
"left": 59.59375,
|
||||
"right": 614.40625
|
||||
},
|
||||
"cardBottom": 748.6875,
|
||||
"buttons": [
|
||||
{
|
||||
"text": "Konzept kennenlernen",
|
||||
"visible": true,
|
||||
"bounds": {
|
||||
"left": 59.59375,
|
||||
"right": 331.796875,
|
||||
"top": 683.90625,
|
||||
"bottom": 731.09375
|
||||
}
|
||||
},
|
||||
{
|
||||
"text": "Themen ansehen",
|
||||
"visible": true,
|
||||
"bounds": {
|
||||
"left": 342.1875,
|
||||
"right": 614.40625,
|
||||
"top": 683.90625,
|
||||
"bottom": 731.09375
|
||||
}
|
||||
}
|
||||
],
|
||||
"id": "bt-590",
|
||||
"file": "bild-text-matrix.html",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"hostWidth": 590,
|
||||
"hostHeight": 601.40625,
|
||||
"innerWidth": 590,
|
||||
"innerHeight": 601.40625,
|
||||
"scrollWidth": 590,
|
||||
"clientWidth": 590,
|
||||
"scrollHeight": 601,
|
||||
"clientHeight": 601,
|
||||
"copyBounds": {
|
||||
"bottom": 1445.5,
|
||||
"top": 1114,
|
||||
"left": 59.59375,
|
||||
"right": 614.40625
|
||||
},
|
||||
"cardBottom": 1463.09375,
|
||||
"buttons": [
|
||||
{
|
||||
"text": "Das Trainingskonzept und alle Materialien kennenlernen",
|
||||
"visible": true,
|
||||
"bounds": {
|
||||
"left": 59.59375,
|
||||
"right": 331.796875,
|
||||
"top": 1381.28125,
|
||||
"bottom": 1445.5
|
||||
}
|
||||
},
|
||||
{
|
||||
"text": "Praxisbeispiele und Themenbereiche ansehen",
|
||||
"visible": true,
|
||||
"bounds": {
|
||||
"left": 342.1875,
|
||||
"right": 614.40625,
|
||||
"top": 1381.28125,
|
||||
"bottom": 1445.5
|
||||
}
|
||||
}
|
||||
],
|
||||
"id": "bt-stress",
|
||||
"file": "bild-text-matrix.html",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"hostWidth": 860,
|
||||
"hostHeight": 654.703125,
|
||||
"innerWidth": 860,
|
||||
"innerHeight": 654.703125,
|
||||
"scrollWidth": 860,
|
||||
"clientWidth": 860,
|
||||
"scrollHeight": 655,
|
||||
"clientHeight": 655,
|
||||
"copyBounds": {
|
||||
"bottom": 3487.84375,
|
||||
"top": 3268.953125,
|
||||
"left": 62.625,
|
||||
"right": 846.625
|
||||
},
|
||||
"cardBottom": 3508.46875,
|
||||
"buttons": [
|
||||
{
|
||||
"text": "Konzept kennenlernen",
|
||||
"visible": true,
|
||||
"bounds": {
|
||||
"left": 62.625,
|
||||
"right": 449.421875,
|
||||
"top": 3440.65625,
|
||||
"bottom": 3487.84375
|
||||
}
|
||||
},
|
||||
{
|
||||
"text": "Themen ansehen",
|
||||
"visible": true,
|
||||
"bounds": {
|
||||
"left": 459.8125,
|
||||
"right": 846.625,
|
||||
"top": 3440.65625,
|
||||
"bottom": 3487.84375
|
||||
}
|
||||
}
|
||||
],
|
||||
"id": "bt-860",
|
||||
"file": "bild-text-matrix.html",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"hostWidth": 1180,
|
||||
"hostHeight": 501.296875,
|
||||
"innerWidth": 1180,
|
||||
"innerHeight": 501.296875,
|
||||
"scrollWidth": 1180,
|
||||
"clientWidth": 1180,
|
||||
"scrollHeight": 501,
|
||||
"clientHeight": 501,
|
||||
"copyBounds": {
|
||||
"bottom": 2018.203125,
|
||||
"top": 1611.28125,
|
||||
"left": 89.1875,
|
||||
"right": 618.78125
|
||||
},
|
||||
"cardBottom": 2065.390625,
|
||||
"buttons": [
|
||||
{
|
||||
"text": "Konzept kennenlernen",
|
||||
"visible": true,
|
||||
"bounds": {
|
||||
"left": 89.1875,
|
||||
"right": 289.578125,
|
||||
"top": 1971.015625,
|
||||
"bottom": 2018.203125
|
||||
}
|
||||
},
|
||||
{
|
||||
"text": "Themen ansehen",
|
||||
"visible": true,
|
||||
"bounds": {
|
||||
"left": 299.96875,
|
||||
"right": 459.546875,
|
||||
"top": 1971.015625,
|
||||
"bottom": 2018.203125
|
||||
}
|
||||
}
|
||||
],
|
||||
"id": "bt-1180",
|
||||
"file": "bild-text-matrix.html",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"hostWidth": 980,
|
||||
"hostHeight": 408.484375,
|
||||
"innerWidth": 980,
|
||||
"innerHeight": 408.484375,
|
||||
"scrollWidth": 980,
|
||||
"clientWidth": 980,
|
||||
"scrollHeight": 408,
|
||||
"clientHeight": 408,
|
||||
"copyBounds": {
|
||||
"bottom": -1128.421875,
|
||||
"top": -1438.90625,
|
||||
"left": 84.125,
|
||||
"right": 603.65625
|
||||
},
|
||||
"cardBottom": -1079.421875,
|
||||
"buttons": [
|
||||
{
|
||||
"text": "Konzept kennenlernen",
|
||||
"visible": true,
|
||||
"bounds": {
|
||||
"left": 84.125,
|
||||
"right": 303.875,
|
||||
"top": -1176.703125,
|
||||
"bottom": -1128.421875
|
||||
}
|
||||
},
|
||||
{
|
||||
"text": "Programme ansehen",
|
||||
"visible": true,
|
||||
"bounds": {
|
||||
"left": 315.875,
|
||||
"right": 520.25,
|
||||
"top": -1176.703125,
|
||||
"bottom": -1128.421875
|
||||
}
|
||||
}
|
||||
],
|
||||
"id": "hero-c",
|
||||
"file": "hero-matrix.html",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"hostWidth": 1180,
|
||||
"hostHeight": 512,
|
||||
"innerWidth": 1180,
|
||||
"innerHeight": 512,
|
||||
"scrollWidth": 1180,
|
||||
"clientWidth": 1180,
|
||||
"scrollHeight": 512,
|
||||
"clientHeight": 512,
|
||||
"copyBounds": {
|
||||
"bottom": -541.09375,
|
||||
"top": -903.765625,
|
||||
"left": 92.734375,
|
||||
"right": 718.28125
|
||||
},
|
||||
"cardBottom": -466.421875,
|
||||
"buttons": [
|
||||
{
|
||||
"text": "Konzept kennenlernen",
|
||||
"visible": true,
|
||||
"bounds": {
|
||||
"left": 92.734375,
|
||||
"right": 312.484375,
|
||||
"top": -589.375,
|
||||
"bottom": -541.09375
|
||||
}
|
||||
},
|
||||
{
|
||||
"text": "Programme ansehen",
|
||||
"visible": true,
|
||||
"bounds": {
|
||||
"left": 324.484375,
|
||||
"right": 528.859375,
|
||||
"top": -589.375,
|
||||
"bottom": -541.09375
|
||||
}
|
||||
}
|
||||
],
|
||||
"id": "hero-n",
|
||||
"file": "hero-matrix.html",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"hostWidth": 1180,
|
||||
"hostHeight": 640,
|
||||
"innerWidth": 1180,
|
||||
"innerHeight": 640,
|
||||
"scrollWidth": 1180,
|
||||
"clientWidth": 1180,
|
||||
"scrollHeight": 640,
|
||||
"clientHeight": 640,
|
||||
"copyBounds": {
|
||||
"bottom": 135.90625,
|
||||
"top": -226.765625,
|
||||
"left": 92.734375,
|
||||
"right": 718.28125
|
||||
},
|
||||
"cardBottom": 274.578125,
|
||||
"buttons": [
|
||||
{
|
||||
"text": "Konzept kennenlernen",
|
||||
"visible": true,
|
||||
"bounds": {
|
||||
"left": 92.734375,
|
||||
"right": 312.484375,
|
||||
"top": 87.625,
|
||||
"bottom": 135.90625
|
||||
}
|
||||
},
|
||||
{
|
||||
"text": "Programme ansehen",
|
||||
"visible": true,
|
||||
"bounds": {
|
||||
"left": 324.484375,
|
||||
"right": 528.859375,
|
||||
"top": 87.625,
|
||||
"bottom": 135.90625
|
||||
}
|
||||
}
|
||||
],
|
||||
"id": "hero-l",
|
||||
"file": "hero-matrix.html",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"hostWidth": 980,
|
||||
"hostHeight": 637.046875,
|
||||
"innerWidth": 980,
|
||||
"innerHeight": 637.046875,
|
||||
"scrollWidth": 980,
|
||||
"clientWidth": 980,
|
||||
"scrollHeight": 637,
|
||||
"clientHeight": 637,
|
||||
"copyBounds": {
|
||||
"bottom": 963.625,
|
||||
"top": 424.578125,
|
||||
"left": 84.125,
|
||||
"right": 603.65625
|
||||
},
|
||||
"cardBottom": 1012.625,
|
||||
"buttons": [
|
||||
{
|
||||
"text": "Das gesamte Trainingskonzept kennenlernen",
|
||||
"visible": true,
|
||||
"bounds": {
|
||||
"left": 84.125,
|
||||
"right": 479.359375,
|
||||
"top": 855.0625,
|
||||
"bottom": 903.34375
|
||||
}
|
||||
},
|
||||
{
|
||||
"text": "Programme und Themenbereiche im Überblick",
|
||||
"visible": true,
|
||||
"bounds": {
|
||||
"left": 84.125,
|
||||
"right": 490,
|
||||
"top": 915.34375,
|
||||
"bottom": 963.625
|
||||
}
|
||||
}
|
||||
],
|
||||
"id": "hero-long",
|
||||
"file": "hero-matrix.html",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"hostWidth": 590,
|
||||
"hostHeight": 528.59375,
|
||||
"innerWidth": 590,
|
||||
"innerHeight": 528.59375,
|
||||
"scrollWidth": 590,
|
||||
"clientWidth": 590,
|
||||
"scrollHeight": 529,
|
||||
"clientHeight": 529,
|
||||
"copyBounds": {
|
||||
"bottom": 784.59375,
|
||||
"top": 525.90625,
|
||||
"left": 462.59375,
|
||||
"right": 1017.40625
|
||||
},
|
||||
"cardBottom": 802.1875,
|
||||
"buttons": [
|
||||
{
|
||||
"text": "Konzept kennenlernen",
|
||||
"visible": true,
|
||||
"bounds": {
|
||||
"left": 462.59375,
|
||||
"right": 734.796875,
|
||||
"top": 737.40625,
|
||||
"bottom": 784.59375
|
||||
}
|
||||
},
|
||||
{
|
||||
"text": "Programme ansehen",
|
||||
"visible": true,
|
||||
"bounds": {
|
||||
"left": 745.1875,
|
||||
"right": 1017.40625,
|
||||
"top": 737.40625,
|
||||
"bottom": 784.59375
|
||||
}
|
||||
}
|
||||
],
|
||||
"id": "bt-live",
|
||||
"file": "index.html",
|
||||
"pass": true
|
||||
}
|
||||
]
|
||||
@@ -1,290 +0,0 @@
|
||||
[
|
||||
{
|
||||
"widget": "bt",
|
||||
"requested_width_px": 240,
|
||||
"status": "pass",
|
||||
"w": 240,
|
||||
"h": 847.765625,
|
||||
"sw": 240,
|
||||
"cw": 240,
|
||||
"sh": 848,
|
||||
"ch": 848,
|
||||
"allLinksInside": true,
|
||||
"textsInside": true,
|
||||
"copyBottom": 1105.359375,
|
||||
"cardBottom": 1121.359375,
|
||||
"gridColumns": "208px"
|
||||
},
|
||||
{
|
||||
"widget": "bt",
|
||||
"requested_width_px": 280,
|
||||
"status": "pass",
|
||||
"w": 280,
|
||||
"h": 790.359375,
|
||||
"sw": 280,
|
||||
"cw": 280,
|
||||
"sh": 790,
|
||||
"ch": 790,
|
||||
"allLinksInside": true,
|
||||
"textsInside": true,
|
||||
"copyBottom": 1047.953125,
|
||||
"cardBottom": 1063.953125,
|
||||
"gridColumns": "248px"
|
||||
},
|
||||
{
|
||||
"widget": "bt",
|
||||
"requested_width_px": 320,
|
||||
"status": "pass",
|
||||
"w": 320,
|
||||
"h": 717.03125,
|
||||
"sw": 320,
|
||||
"cw": 320,
|
||||
"sh": 717,
|
||||
"ch": 717,
|
||||
"allLinksInside": true,
|
||||
"textsInside": true,
|
||||
"copyBottom": 974.625,
|
||||
"cardBottom": 990.625,
|
||||
"gridColumns": "288px"
|
||||
},
|
||||
{
|
||||
"widget": "bt",
|
||||
"requested_width_px": 390,
|
||||
"status": "pass",
|
||||
"w": 390,
|
||||
"h": 734,
|
||||
"sw": 390,
|
||||
"cw": 390,
|
||||
"sh": 734,
|
||||
"ch": 734,
|
||||
"allLinksInside": true,
|
||||
"textsInside": true,
|
||||
"copyBottom": 991.59375,
|
||||
"cardBottom": 1007.59375,
|
||||
"gridColumns": "358px"
|
||||
},
|
||||
{
|
||||
"widget": "bt",
|
||||
"requested_width_px": 539,
|
||||
"status": "pass",
|
||||
"w": 539,
|
||||
"h": 777.328125,
|
||||
"sw": 539,
|
||||
"cw": 539,
|
||||
"sh": 777,
|
||||
"ch": 777,
|
||||
"allLinksInside": true,
|
||||
"textsInside": true,
|
||||
"copyBottom": 1034.921875,
|
||||
"cardBottom": 1050.921875,
|
||||
"gridColumns": "507px"
|
||||
},
|
||||
{
|
||||
"widget": "bt",
|
||||
"requested_width_px": 540,
|
||||
"status": "pass",
|
||||
"w": 540,
|
||||
"h": 658.8125,
|
||||
"sw": 540,
|
||||
"cw": 540,
|
||||
"sh": 659,
|
||||
"ch": 659,
|
||||
"allLinksInside": true,
|
||||
"textsInside": true,
|
||||
"copyBottom": 914.8125,
|
||||
"cardBottom": 932.40625,
|
||||
"gridColumns": "504.812px"
|
||||
},
|
||||
{
|
||||
"widget": "bt",
|
||||
"requested_width_px": 590,
|
||||
"status": "pass",
|
||||
"w": 590,
|
||||
"h": 594.640625,
|
||||
"sw": 590,
|
||||
"cw": 590,
|
||||
"sh": 595,
|
||||
"ch": 595,
|
||||
"allLinksInside": true,
|
||||
"textsInside": true,
|
||||
"copyBottom": 850.640625,
|
||||
"cardBottom": 868.234375,
|
||||
"gridColumns": "554.812px"
|
||||
},
|
||||
{
|
||||
"widget": "bt",
|
||||
"requested_width_px": 700,
|
||||
"status": "pass",
|
||||
"w": 700,
|
||||
"h": 643.046875,
|
||||
"sw": 700,
|
||||
"cw": 700,
|
||||
"sh": 643,
|
||||
"ch": 643,
|
||||
"allLinksInside": true,
|
||||
"textsInside": true,
|
||||
"copyBottom": 899.046875,
|
||||
"cardBottom": 916.640625,
|
||||
"gridColumns": "664.812px"
|
||||
},
|
||||
{
|
||||
"widget": "bt",
|
||||
"requested_width_px": 899,
|
||||
"status": "pass",
|
||||
"w": 899,
|
||||
"h": 712.015625,
|
||||
"sw": 899,
|
||||
"cw": 899,
|
||||
"sh": 712,
|
||||
"ch": 712,
|
||||
"allLinksInside": true,
|
||||
"textsInside": true,
|
||||
"copyBottom": 964.046875,
|
||||
"cardBottom": 985.609375,
|
||||
"gridColumns": "855.875px"
|
||||
},
|
||||
{
|
||||
"widget": "bt",
|
||||
"requested_width_px": 900,
|
||||
"status": "pass",
|
||||
"w": 900,
|
||||
"h": 562.609375,
|
||||
"sw": 900,
|
||||
"cw": 900,
|
||||
"sh": 563,
|
||||
"ch": 563,
|
||||
"allLinksInside": true,
|
||||
"textsInside": true,
|
||||
"copyBottom": 811.015625,
|
||||
"cardBottom": 836.203125,
|
||||
"gridColumns": "403.906px 388.094px"
|
||||
},
|
||||
{
|
||||
"widget": "bt",
|
||||
"requested_width_px": 980,
|
||||
"status": "pass",
|
||||
"w": 980,
|
||||
"h": 737.140625,
|
||||
"sw": 980,
|
||||
"cw": 980,
|
||||
"sh": 737,
|
||||
"ch": 737,
|
||||
"allLinksInside": true,
|
||||
"textsInside": true,
|
||||
"copyBottom": 983.296875,
|
||||
"cardBottom": 1010.734375,
|
||||
"gridColumns": "439.828px 422.609px"
|
||||
},
|
||||
{
|
||||
"widget": "bt",
|
||||
"requested_width_px": 1180,
|
||||
"status": "pass",
|
||||
"w": 1180,
|
||||
"h": 789.65625,
|
||||
"sw": 1180,
|
||||
"cw": 1180,
|
||||
"sh": 790,
|
||||
"ch": 790,
|
||||
"allLinksInside": true,
|
||||
"textsInside": true,
|
||||
"copyBottom": 1030.21875,
|
||||
"cardBottom": 1063.25,
|
||||
"gridColumns": "529.594px 508.828px"
|
||||
},
|
||||
{
|
||||
"widget": "hero",
|
||||
"requested_width_px": 740,
|
||||
"status": "pass",
|
||||
"w": 740,
|
||||
"h": 863.359375,
|
||||
"sw": 740,
|
||||
"cw": 740,
|
||||
"sh": 863,
|
||||
"ch": 863,
|
||||
"allLinksInside": true,
|
||||
"textsInside": true,
|
||||
"copyBottom": 1098.5625,
|
||||
"cardBottom": 1136.953125,
|
||||
"gridColumns": "none"
|
||||
},
|
||||
{
|
||||
"widget": "hero",
|
||||
"requested_width_px": 859,
|
||||
"status": "pass",
|
||||
"w": 859,
|
||||
"h": 958.53125,
|
||||
"sw": 859,
|
||||
"cw": 859,
|
||||
"sh": 959,
|
||||
"ch": 959,
|
||||
"allLinksInside": true,
|
||||
"textsInside": true,
|
||||
"copyBottom": 1193.734375,
|
||||
"cardBottom": 1232.125,
|
||||
"gridColumns": "none"
|
||||
},
|
||||
{
|
||||
"widget": "hero",
|
||||
"requested_width_px": 860,
|
||||
"status": "pass",
|
||||
"w": 860,
|
||||
"h": 959.296875,
|
||||
"sw": 860,
|
||||
"cw": 860,
|
||||
"sh": 959,
|
||||
"ch": 959,
|
||||
"allLinksInside": true,
|
||||
"textsInside": true,
|
||||
"copyBottom": 1194.5,
|
||||
"cardBottom": 1232.890625,
|
||||
"gridColumns": "none"
|
||||
},
|
||||
{
|
||||
"widget": "hero",
|
||||
"requested_width_px": 900,
|
||||
"status": "pass",
|
||||
"w": 900,
|
||||
"h": 642.65625,
|
||||
"sw": 900,
|
||||
"cw": 900,
|
||||
"sh": 643,
|
||||
"ch": 643,
|
||||
"allLinksInside": true,
|
||||
"textsInside": true,
|
||||
"copyBottom": 871.25,
|
||||
"cardBottom": 916.25,
|
||||
"gridColumns": "900px"
|
||||
},
|
||||
{
|
||||
"widget": "hero",
|
||||
"requested_width_px": 980,
|
||||
"status": "pass",
|
||||
"w": 980,
|
||||
"h": 676.359375,
|
||||
"sw": 980,
|
||||
"cw": 980,
|
||||
"sh": 676,
|
||||
"ch": 676,
|
||||
"allLinksInside": true,
|
||||
"textsInside": true,
|
||||
"copyBottom": 900.953125,
|
||||
"cardBottom": 949.953125,
|
||||
"gridColumns": "980px"
|
||||
},
|
||||
{
|
||||
"widget": "hero",
|
||||
"requested_width_px": 1180,
|
||||
"status": "pass",
|
||||
"w": 1180,
|
||||
"h": 743.546875,
|
||||
"sw": 1180,
|
||||
"cw": 1180,
|
||||
"sh": 744,
|
||||
"ch": 744,
|
||||
"allLinksInside": true,
|
||||
"textsInside": true,
|
||||
"copyBottom": 958.140625,
|
||||
"cardBottom": 1017.140625,
|
||||
"gridColumns": "1180px"
|
||||
}
|
||||
]
|
||||
@@ -1,73 +0,0 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"type": "lf-editorial-bild-text",
|
||||
"settings": {"height":"compact","surface":"cream","image_side":"right","heading_level":"h2","image_focus":{"x":64,"y":36}},
|
||||
"data": {"eyebrow":"Unser Ansatz","headline":"Geschichten zum Mitdenken und Mitmachen","body":"Alltagsszenen eröffnen Gespräche über sichere Entscheidungen. Übungen vertiefen das Thema.","image_alt":"Lara und Felix stehen im Park","primary_cta":{"label":"Konzept kennenlernen","url":"/konzept"},"secondary_cta":{"label":"Themen ansehen","url":"/themen"}},
|
||||
"refs": {"image_reference":"REPLACE-WITH-EXISTING-PUBLIC-MEDIA-REFERENCE"}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"type": "lf-brand-hero",
|
||||
"settings": {"variant":"photo-split","height":"compact","heading_level":"h1","image_focus":{"x":68,"y":50}},
|
||||
"data": {"eyebrow":"Lara & Felix · Stark im Alltag","title":"Kinder stark im Alltag","description":"Alltagsnahe Geschichten, praktische Übungen und Materialien für Fachkräfte.","image_alt":"Lara und Felix in einer Parkanlage","primary_cta":{"label":"Konzept kennenlernen","url":"/konzept"},"secondary_cta":{"label":"Programme ansehen","url":"/programme"}},
|
||||
"refs": {"image_reference":"REPLACE-WITH-EXISTING-PUBLIC-MEDIA-REFERENCE"}
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
# Adapter an die zentrale CMS-Widget-Registry (keine zweite Registry)
|
||||
|
||||
Die vorhandene Laravel-/Filament-Registry (im Projektkonzept `BlockRegistry` genannt) bleibt führend. Das ZIP enthält **kein Repository**, deshalb wird keine tatsächliche Signatur und keine direkte Datenmigration behauptet.
|
||||
|
||||
1. Die bestehenden Renderer für `lf-brand-hero` bzw. `lf-editorial-bild-text` gezielt auf die Views `components.lf.hero` und `components.lf.bild-text` mappen, ohne bestehende Kennungen / Seitenrevisionen umzuschreiben.
|
||||
2. Für Hero im bestehenden Variantenschema das **optionale** `settings.height` mit Standard `normal` ergänzen. `variant`, `image_focal_point` und Textfelder aus v1.3 unangetastet lassen; gegebenenfalls Lesenamen adaptieren. Für Bild & Text `height` aus v1.5 weiterführen; vorhandene Daten bleiben gültig.
|
||||
3. Weiterhin **eine** öffentliche Medien-ID an das vorhandene Medien-/Freigabesystem geben. Erst nach Prüfung des öffentlichen Verwendungsrechts als aufgelöste `image`-Ressource an den Renderer übergeben.
|
||||
4. `data.body` (Bild & Text) nur aus dem bestehenden, bereits gereinigten CMS-Richtext als `Illuminate\\Support\\HtmlString` einliefern; sonst sichere Textdarstellung. CTA-URL-Validierung übernimmt die vorhandene Hilfsklasse.
|
||||
5. Die beiden v1.6-CSS-Dateien einmalig per bestehendem Tailwind-4-/Vite-Einstiegspunkt laden. **Nicht parallel zu den alten `lf-hero.css` / `lf-bild-text.v1.5.css` laden** (gleichlautende CSS-Klassen).
|
||||
6. Editor-/Vorschau und öffentliche Website müssen dasselbe Blade-Template verwenden. Keine neue DOM-Kopie oder neue Widget-Tabellen.
|
||||
7. Slots werden weiter vom bestehenden Abschnittsraster zugeteilt (höchstens vier Einheiten, ein Widget je Slot). Unterstützte Einheiten als Validator-/UI-Hinweis aus `docs/layout-profiles.json` lesen; konkrete Registry-Vertragsfassung und Fehlermeldung sind mit dem Architektur-Chat abzustimmen.
|
||||
|
||||
**Dateieinbindung – Beispiel (nach tatsächlicher Projektprüfung):**
|
||||
|
||||
```css
|
||||
@import "./components/lf-hero.v1.6.css";
|
||||
@import "./components/lf-bild-text.v1.6.css";
|
||||
```
|
||||
|
||||
**Blade-View-Schnittstelle – Beispiel:**
|
||||
|
||||
```blade
|
||||
<x-lf.hero :data="$data" :settings="$settings" :image="$approvedPublicMedia" />
|
||||
<x-lf.bild-text :data="$data" :settings="$settings" :image="$approvedPublicMedia" />
|
||||
```
|
||||
|
||||
Nicht beauftragt/entschieden: neues Registry-Schema, Medienreferenzmodell, neue CMS-Abschnitte, globaler Mindestcontainer-Validator, neue Produkte oder Lizenzmodelle (ADR-28/30 weiterhin offen).
|
||||
@@ -1,90 +0,0 @@
|
||||
/* Lara & Felix – Bild & Text v1.6; replaces v1.5 CSS at integration, not alongside it.
|
||||
The layout reacts to container WIDTH, not CMS span count. Source artwork unchanged. */
|
||||
.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:64%;--bt-focus-y:43%;
|
||||
display:grid;grid-template-columns:minmax(0,1fr);align-items:start;
|
||||
gap:clamp(.9rem,2.65cqi,2rem);padding:clamp(1rem,2.8cqi,3.25rem);
|
||||
border-radius:clamp(1rem,1.8cqi,1.65rem);
|
||||
min-inline-size:0;max-inline-size:100%;
|
||||
background:var(--bt-cream);color:var(--bt-navy);
|
||||
font:400 1rem/1.6 var(--lf-font-ui,'Nunito Sans','Segoe UI',system-ui,sans-serif);
|
||||
overflow-wrap:break-word;
|
||||
}
|
||||
.lf-bt--clear{background:transparent}.lf-bt--navy{background:var(--bt-navy);color:#fff}
|
||||
.lf-bt__copy{min-inline-size:0;max-inline-size:49rem;align-self:center}
|
||||
.lf-bt__eyebrow{display:flex;align-items:center;gap:.6rem;margin:0 0 .8rem;
|
||||
color:#295B08;font-size:.73rem;line-height:1.45;font-weight:800;letter-spacing:.065em;text-transform:uppercase;overflow-wrap:anywhere}
|
||||
.lf-bt__eyebrow::before{content:'';inline-size:1.35rem;block-size:.25rem;flex:0 0 auto;background:var(--bt-yellow);border-radius:999px}
|
||||
.lf-bt--navy .lf-bt__eyebrow{color:#FFF2B0}
|
||||
.lf-bt__headline{font-size:clamp(1.55rem,4.5cqi,3.35rem);line-height:1.14;letter-spacing:-.03em;
|
||||
font-weight:850;margin:0;overflow-wrap:anywhere;text-wrap:balance}
|
||||
.lf-bt__accent{display:block;inline-size:clamp(4.6rem,12cqi,7rem);block-size:.36rem;
|
||||
margin:clamp(.55rem,1.7cqi,1rem) 0 clamp(.8rem,2.3cqi,1.25rem) .12rem;
|
||||
background:var(--bt-yellow);border-radius:90% 35% 75% 40%;transform:rotate(-1deg)}
|
||||
.lf-bt__body{color:var(--bt-muted);font-size:clamp(.97rem,1.45cqi,1.12rem);line-height:1.62;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 .9em}.lf-bt__body ul,.lf-bt__body ol{padding-inline-start:1.35em;margin:.6em 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:stretch;gap:.65rem;flex-wrap:wrap;
|
||||
margin-block-start:clamp(1rem,2cqi,1.5rem);min-inline-size:0}
|
||||
.lf-bt__button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
|
||||
max-inline-size:100%;min-inline-size:0;min-block-size:2.95rem;padding:.7rem 1rem;
|
||||
background:var(--bt-green);border:2px solid var(--bt-green);color:#fff;
|
||||
border-radius:999px;text-decoration:none;text-align:center;font-size:.89rem;font-weight:800;
|
||||
line-height:1.33;overflow-wrap:anywhere;white-space:normal;transition:background-color .14s ease,transform .14s ease}
|
||||
.lf-bt__button:visited{color:#fff}.lf-bt__button:hover{background:#285A06;transform:translateY(-1px)}
|
||||
.lf-bt__button--secondary{background:transparent;border-color:currentColor;color:inherit}
|
||||
.lf-bt__button--secondary:visited{color:inherit}.lf-bt__button--secondary:hover{background:rgb(3 37 81 / .06)}
|
||||
.lf-bt--navy .lf-bt__button--secondary:hover{background:rgb(255 255 255 / .12)}
|
||||
.lf-bt__button:focus-visible,.lf-bt__body a:focus-visible{outline:3px solid var(--lf-focus,#1769AA);outline-offset:3px}
|
||||
.lf-bt__media{position:relative;display:block;min-inline-size:0;order:-1;isolation:isolate}
|
||||
.lf-bt__media::before{content:'';position:absolute;inset:auto -.42rem -.45rem 1rem;
|
||||
block-size:53%;border-radius:1.1rem;background:#8AB848;transform:rotate(1.5deg);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(.78rem,1.8cqi,1.3rem);box-shadow:0 10px 28px rgb(3 37 81 / .11)}
|
||||
.lf-bt--height-compact .lf-bt__image{aspect-ratio:16/9}
|
||||
.lf-bt--height-spacious .lf-bt__image{aspect-ratio:4/3}
|
||||
.lf-bt--height-compact{gap:clamp(.75rem,2cqi,1.45rem)}
|
||||
.lf-bt--height-spacious{gap:clamp(1.15rem,3.4cqi,2.7rem)}
|
||||
.lf-bt--without-image{grid-template-columns:minmax(0,1fr)}
|
||||
/* Narrow slots: full text and links, no forced block height. */
|
||||
@container lf-bt (max-width: 539.99px){
|
||||
.lf-bt__actions{display:grid;grid-template-columns:minmax(0,1fr)}
|
||||
.lf-bt__button{inline-size:100%}
|
||||
.lf-bt__headline{font-size:clamp(1.42rem,6.8cqi,2.2rem)}
|
||||
.lf-bt__eyebrow{letter-spacing:.03em}
|
||||
}
|
||||
/* Mid-size real container (usually 2 CMS units): compact editorial picture band, not a squeezed 2-col.
|
||||
Only media proportions / spacings change; text is never clamped or hidden. */
|
||||
@container lf-bt (min-width: 540px) and (max-width: 899.99px){
|
||||
.lf-bt{gap:clamp(.8rem,1.6cqi,1.2rem);padding:clamp(1.1rem,2.4cqi,1.65rem)}
|
||||
.lf-bt__media{inline-size:100%}
|
||||
.lf-bt__image{aspect-ratio:2.15/1}
|
||||
.lf-bt--height-compact .lf-bt__image{aspect-ratio:2.5/1}
|
||||
.lf-bt--height-spacious .lf-bt__image{aspect-ratio:1.8/1}
|
||||
.lf-bt__headline{font-size:clamp(1.65rem,3.6cqi,2.28rem)}
|
||||
.lf-bt__body{font-size:1.01rem;line-height:1.59}
|
||||
.lf-bt__actions{margin-block-start:.95rem}
|
||||
.lf-bt__button{flex:1 1 13rem}
|
||||
}
|
||||
/* Wide container: original two-column premium editorial composition. */
|
||||
@container lf-bt (min-width: 900px){
|
||||
.lf-bt{grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
|
||||
align-items:center;gap:clamp(1.8rem,4cqi,4.5rem);padding:clamp(1.8rem,4cqi,4.5rem)}
|
||||
.lf-bt__media{order:0;align-self:stretch}
|
||||
.lf-bt--image-left .lf-bt__media{order:-1}
|
||||
.lf-bt__image{block-size:100%;min-block-size:18rem;max-block-size:none;aspect-ratio:4/3}
|
||||
.lf-bt--height-compact .lf-bt__image{min-block-size:14rem;aspect-ratio:3/2}
|
||||
.lf-bt--height-spacious .lf-bt__image{min-block-size:24rem;aspect-ratio:1/1}
|
||||
.lf-bt--height-compact{padding-block:clamp(1.25rem,2.8cqi,2.6rem)}
|
||||
.lf-bt--height-spacious{padding-block:clamp(2.15rem,4.5cqi,4.75rem)}
|
||||
.lf-bt--without-image{grid-template-columns:minmax(0,1fr)}
|
||||
}
|
||||
@media(prefers-reduced-motion:reduce){.lf-bt__button{transition:none}.lf-bt__button:hover{transform:none}}
|
||||
@@ -1,70 +0,0 @@
|
||||
/* Lara & Felix Hero v1.6 – non-destructive update of v1.3 visuals.
|
||||
CMS assigns 3 or 4 units; this component reads resulting real container width.
|
||||
Height presets are MINIMUM heights, never clipping text or CTAs. */
|
||||
.lf-hero-host{container:lf-hero/inline-size;inline-size:100%;min-inline-size:0;max-inline-size:100%}
|
||||
.lf-hero-host,.lf-hero-host *{box-sizing:border-box}
|
||||
.lf-hero{
|
||||
--lf-hero-navy:var(--lf-navy,#032551);--lf-hero-green:var(--lf-green-deep,#3B7B09);
|
||||
--lf-hero-yellow:var(--lf-yellow,#FCD10A);--lf-hero-cream:var(--lf-cream,#F7F6F2);
|
||||
--lf-hero-focus-x:68%;--lf-hero-focus-y:50%;
|
||||
isolation:isolate;position:relative;display:grid;align-items:center;min-inline-size:0;
|
||||
min-block-size:32rem;max-inline-size:100%;border-radius:clamp(1rem,1.9cqi,1.75rem);
|
||||
background:var(--lf-hero-cream);color:var(--lf-hero-navy);
|
||||
font-family:var(--lf-font-display,'Nunito','Trebuchet MS',system-ui,sans-serif)
|
||||
}
|
||||
.lf-hero--height-compact{min-block-size:25rem}
|
||||
.lf-hero--height-normal{min-block-size:32rem}
|
||||
.lf-hero--height-large{min-block-size:40rem}
|
||||
.lf-hero__photo{position:absolute;inset:0;inline-size:100%;block-size:100%;object-fit:cover;
|
||||
object-position:var(--lf-hero-focus-x) var(--lf-hero-focus-y);z-index:-2;border-radius:inherit}
|
||||
.lf-hero--photo-split::before{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;
|
||||
background:linear-gradient(90deg,rgba(250,249,243,.99) 0%,rgba(250,249,243,.98) 28%,rgba(250,249,243,.85) 41%,rgba(250,249,243,.12) 69%,transparent 80%)}
|
||||
.lf-hero--editorial-solid{background:var(--lf-hero-navy);color:white}
|
||||
.lf-hero--editorial-solid .lf-hero__photo{display:none}
|
||||
.lf-hero--editorial-solid::before{content:'';position:absolute;inset:auto -7% -50% auto;inline-size:40%;aspect-ratio:1;
|
||||
background:var(--lf-hero-green);border-radius:50%;opacity:.8;z-index:-1}
|
||||
.lf-hero__inner{inline-size:100%;max-inline-size:1440px;margin-inline:auto;padding:clamp(1.8rem,4.3cqi,5rem);
|
||||
padding-block:clamp(2.1rem,5cqi,5rem);min-inline-size:0}
|
||||
.lf-hero__copy{max-inline-size:min(660px,58%);min-inline-size:0}
|
||||
.lf-hero--editorial-solid .lf-hero__copy{max-inline-size:760px}
|
||||
.lf-hero__eyebrow{display:inline-block;margin:0;padding:.35em .75em;border-radius:999px;background:#DFF0C0;
|
||||
color:#17370B;font-weight:800;font-size:clamp(.78rem,1.25cqi,.95rem);overflow-wrap:anywhere}
|
||||
.lf-hero__title{margin:.25em 0 .25em;font-size:clamp(2.1rem,5.4cqi,4.9rem);line-height:1.06;
|
||||
letter-spacing:-.035em;font-weight:900;text-wrap:balance;overflow-wrap:anywhere}
|
||||
.lf-hero__title-accent{inline-size:clamp(6rem,15cqi,15rem);block-size:.42rem;margin:0 0 clamp(1.1rem,2cqi,1.5rem);
|
||||
background:var(--lf-hero-yellow);border-radius:90% 30% 45% 25%;transform:rotate(-1deg)}
|
||||
.lf-hero__description{max-inline-size:56ch;margin:0 0 clamp(1.25rem,2.1cqi,2rem);
|
||||
font-family:var(--lf-font-ui,'Nunito Sans','Segoe UI',system-ui,sans-serif);
|
||||
font-size:clamp(1.05rem,1.7cqi,1.3rem);line-height:1.5;overflow-wrap:anywhere}
|
||||
.lf-hero__actions{display:flex;gap:.75rem;flex-wrap:wrap;align-items:stretch;min-inline-size:0}
|
||||
.lf-hero__button{display:inline-flex;align-items:center;justify-content:center;min-inline-size:0;max-inline-size:100%;
|
||||
min-block-size:3rem;padding:.77rem 1.2rem;border:2px solid transparent;border-radius:999px;
|
||||
font:800 .96rem/1.28 var(--lf-font-ui,'Nunito Sans',system-ui,sans-serif);
|
||||
text-decoration:none;text-align:center;white-space:normal;overflow-wrap:anywhere;transition:transform .15s ease,background-color .15s ease}
|
||||
.lf-hero__button:hover{transform:translateY(-1px)}
|
||||
.lf-hero__button:focus-visible{outline:3px solid var(--lf-focus,#1769AA);outline-offset:3px}
|
||||
.lf-hero__button--primary{background:var(--lf-hero-green);color:#fff}
|
||||
.lf-hero__button--primary:visited{color:#fff}.lf-hero__button--primary:hover{background:#285A06}
|
||||
.lf-hero__button--secondary{background:rgba(255,255,255,.95);color:var(--lf-hero-navy);border-color:var(--lf-hero-navy)}
|
||||
.lf-hero__button--secondary:visited{color:var(--lf-hero-navy)}
|
||||
.lf-hero__bottom{position:absolute;inset:auto 0 0;block-size:15px;border-radius:0 0 1.5rem 1.5rem;
|
||||
background:linear-gradient(105deg,var(--lf-hero-yellow) 0%,var(--lf-hero-yellow) 22%,var(--lf-hero-green) 72%);
|
||||
clip-path:polygon(0 45%,30% 90%,65% 75%,100% 0,100% 100%,0 100%);pointer-events:none}
|
||||
/* Safety fallback ONLY when a CSS container turns out physically too narrow;
|
||||
not an additional author-selectable Hero design. */
|
||||
@container lf-hero (max-width: 859.99px){
|
||||
.lf-hero{display:block;min-block-size:0}
|
||||
.lf-hero__photo{position:relative;display:block;block-size:auto;aspect-ratio:16/9;
|
||||
border-radius:inherit;object-position:var(--lf-hero-focus-x) var(--lf-hero-focus-y)}
|
||||
.lf-hero--photo-split::before{display:none}
|
||||
.lf-hero__inner{padding:clamp(1.2rem,3.5cqi,2rem);padding-block-end:2.4rem}
|
||||
.lf-hero__copy{max-inline-size:100%}
|
||||
.lf-hero__title{font-size:clamp(2rem,5.5cqi,3.1rem)}
|
||||
.lf-hero__description{font-size:1.07rem}
|
||||
.lf-hero--editorial-solid .lf-hero__copy{max-inline-size:100%}
|
||||
}
|
||||
@container lf-hero (max-width: 440px){
|
||||
.lf-hero__actions{display:grid;grid-template-columns:minmax(0,1fr)}
|
||||
.lf-hero__button{inline-size:100%}
|
||||
}
|
||||
@media(prefers-reduced-motion:reduce){.lf-hero__button{transition:none}.lf-hero__button:hover{transform:none}}
|
||||
@@ -1,58 +0,0 @@
|
||||
{{-- 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 }} {{ $src === '' ? 'lf-bt--without-image' : '' }}"
|
||||
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>
|
||||
@@ -1,52 +0,0 @@
|
||||
@props(['data' => [], 'settings' => [], 'image' => []])
|
||||
@php
|
||||
// Component-only contract. Widget registry and media approval stay in existing CMS.
|
||||
$variant = \App\Support\LfBildTextPayload::oneOf($settings['variant'] ?? $data['variant'] ?? null, ['photo-split', 'editorial-solid'], 'photo-split');
|
||||
$height = \App\Support\LfBildTextPayload::oneOf($settings['height'] ?? null, ['compact', 'normal', 'large'], 'normal');
|
||||
$heading = \App\Support\LfBildTextPayload::oneOf($settings['heading_level'] ?? null, ['h1', 'h2', 'h3'], 'h1');
|
||||
$legacyFocus = $settings['image_focal_point'] ?? $data['image_focal_point'] ?? 'center-right';
|
||||
$focusAliases = [
|
||||
'center' => ['x' => 50, 'y' => 50],
|
||||
'center-right' => ['x' => 68, 'y' => 50],
|
||||
'right' => ['x' => 80, 'y' => 50],
|
||||
'center-left' => ['x' => 35, 'y' => 50],
|
||||
];
|
||||
$focus = \App\Support\LfBildTextPayload::focus(
|
||||
$settings['image_focus'] ?? $data['image_focus'] ?? ($focusAliases[$legacyFocus] ?? $focusAliases['center-right'])
|
||||
);
|
||||
$primary = \App\Support\LfBildTextPayload::cta($data['primary_cta'] ?? null);
|
||||
$secondary = \App\Support\LfBildTextPayload::cta($data['secondary_cta'] ?? null);
|
||||
$src = (string)($image['src'] ?? '');
|
||||
$alt = (string)($data['image_alt'] ?? '');
|
||||
$headline = (string)($data['title'] ?? '');
|
||||
$description = (string)($data['description'] ?? '');
|
||||
$eyebrow = (string)($data['eyebrow'] ?? '');
|
||||
@endphp
|
||||
<div {{ $attributes->class(['lf-hero-host']) }}>
|
||||
<section class="lf-hero lf-hero--{{ $variant }} lf-hero--height-{{ $height }}"
|
||||
style="--lf-hero-focus-x:{{ $focus['x'] }}%;--lf-hero-focus-y:{{ $focus['y'] }}%;">
|
||||
@if ($variant === 'photo-split' && $src !== '')
|
||||
<img class="lf-hero__photo" src="{{ $src }}" alt="{{ $alt }}"
|
||||
@if (!empty($image['srcset'])) srcset="{{ (string)$image['srcset'] }}" sizes="{{ (string)($image['sizes'] ?? '100vw') }}" @endif
|
||||
width="{{ max(1,(int)($image['width'] ?? 2048)) }}"
|
||||
height="{{ max(1,(int)($image['height'] ?? 1156)) }}" loading="eager" fetchpriority="high" decoding="async" />
|
||||
@endif
|
||||
<div class="lf-hero__inner">
|
||||
<div class="lf-hero__copy">
|
||||
@if (trim($eyebrow) !== '')<p class="lf-hero__eyebrow">{{ $eyebrow }}</p>@endif
|
||||
@if ($heading === 'h1')<h1 class="lf-hero__title">{{ $headline }}</h1>
|
||||
@elseif ($heading === 'h3')<h3 class="lf-hero__title">{{ $headline }}</h3>
|
||||
@else<h2 class="lf-hero__title">{{ $headline }}</h2>@endif
|
||||
<span class="lf-hero__title-accent" aria-hidden="true"></span>
|
||||
@if (trim($description) !== '')<p class="lf-hero__description">{{ $description }}</p>@endif
|
||||
@if ($primary || $secondary)
|
||||
<div class="lf-hero__actions">
|
||||
@if ($primary)<a class="lf-hero__button lf-hero__button--primary" href="{{ $primary['url'] }}">{{ $primary['label'] }}</a>@endif
|
||||
@if ($secondary)<a class="lf-hero__button lf-hero__button--secondary" href="{{ $secondary['url'] }}">{{ $secondary['label'] }}</a>@endif
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<span class="lf-hero__bottom" aria-hidden="true"></span>
|
||||
</section>
|
||||
</div>
|
||||
@@ -1,10 +0,0 @@
|
||||
<!doctype html><html lang="de"><head><title>Lara & Felix · Bild & Text QA</title><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="robots" content="noindex,nofollow"><link rel="stylesheet" href="../components/lf-hero.v1.6.css"><link rel="stylesheet" href="../components/lf-bild-text.v1.6.css"><style>
|
||||
:root{--lf-navy:#032551;--lf-green-deep:#3B7B09;--lf-yellow:#FCD10A;--lf-cream:#F7F6F2;--lf-muted:#46556B;--lf-font-ui:system-ui,sans-serif;--lf-font-display:system-ui,sans-serif}
|
||||
*,*::before,*::after{box-sizing:border-box}body{margin:0;background:#E9EDEB;color:#032551;font:15px/1.5 system-ui,sans-serif}header,main,footer{max-width:1500px;margin:auto}header{padding:28px 24px 8px}h1{margin:.2em 0;font-size:clamp(23px,3vw,34px)}.sub{margin:0;color:#46556B}.controls{background:white;padding:18px;margin:18px 0;border-radius:16px;display:flex;flex-wrap:wrap;gap:16px;align-items:end}.controls label{display:grid;gap:4px;font-weight:700;font-size:13px}.controls select{min-width:140px;padding:9px;border:1px solid #bac6c8;border-radius:8px;background:white;color:#032551;font:inherit}.frame{background:white;border-radius:18px;padding:15px}.demo-note{color:#4D5B66;font-size:12px;margin:9px 0 0}.stage{padding:0 24px 24px}.frame .lf-bt-host,.frame .lf-hero-host{margin:0 auto;max-width:100%}.section{background:#fff;border-radius:18px;padding:18px;margin:0 0 23px}.section > h2{margin:0 0 12px;font-size:20px}.badge{display:inline-block;background:#E6F0DA;color:#17370B;border-radius:10px;padding:3px 9px;font-size:12px;font-weight:800}.m-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px;align-items:start}.sample{min-width:0}.sample h3{font-size:13px;margin:0 0 7px}.sample .lf-bt-host,.sample .lf-hero-host{width:100%}code{font:12px ui-monospace,monospace}footer{padding:0 24px 32px;color:#52616A;font-size:13px}a:focus-visible,select:focus-visible{outline:3px solid #1769AA;outline-offset:2px}@media(max-width:520px){header{padding:17px 12px 3px}.stage{padding:0 12px 16px}.frame{padding:8px}.controls{padding:10px;gap:10px}.controls label{flex:1 1 140px}.controls select{min-width:0}}
|
||||
</style></head><body><header><h1>Bild & Text · adaptive Layoutmatrix</h1><p class="sub">Gerenderte Originalkomponente in CSS-Containern unterschiedlicher tatsächlicher Breite.</p></header><main class="stage">
|
||||
<section class="section" id="two-units"><h2>Prüffokus: zwei Rastereinheiten – 590 px Container</h2><span class="badge">Vollständige Inhalte, kompakter Bildstreifen, beide CTAs sichtbar</span><div style="margin:12px 0;max-width:590px"><div class="lf-bt-host" style="width:590px" id="bt-590"><article class="lf-bt lf-bt--cream lf-bt--image-right lf-bt--height-compact" style="--bt-focus-x:64%;--bt-focus-y:36%"><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="#konzept">Konzept kennenlernen</a><a class="lf-bt__button lf-bt__button--secondary" href="#themen">Themen ansehen</a></div></div><div class="lf-bt__media"><img class="lf-bt__image" src="../../09_hero_widget/assets/lara-felix-park-hero.webp" alt="Lara und Felix stehen gemeinsam im Park" width="2048" height="1156"></div></article></div></div></section>
|
||||
<section class="section" id="stress"><h2>Stresstest: lange Überschrift, lange Buttons, 590 px</h2><div style="max-width:590px"><div class="lf-bt-host" style="width:590px" id="bt-stress"><article class="lf-bt lf-bt--cream lf-bt--image-right lf-bt--height-compact" style="--bt-focus-x:64%;--bt-focus-y:36%"><div class="lf-bt__copy"><p class="lf-bt__eyebrow">Lara & Felix · Unser Ansatz</p><h2 class="lf-bt__headline">Gemeinsam alltagsnahe Handlungsmöglichkeiten mit Kindern erarbeiten – ohne jemanden zu überfordern</h2><span class="lf-bt__accent" aria-hidden="true"></span><div class="lf-bt__body"><p>In dieser längeren Beschreibung erläutern wir mehrere unterschiedliche pädagogische Einsatzmöglichkeiten. Kein Text wird künstlich gekürzt; die Fläche wächst mit dem Inhalt und alle Links bleiben erreichbar. Auch bei sehr langen Formulierungen muss die Lesbarkeit erhalten bleiben.</p></div><div class="lf-bt__actions"><a class="lf-bt__button" href="#konzept">Das Trainingskonzept und alle Materialien kennenlernen</a><a class="lf-bt__button lf-bt__button--secondary" href="#themen">Praxisbeispiele und Themenbereiche ansehen</a></div></div><div class="lf-bt__media"><img class="lf-bt__image" src="../../09_hero_widget/assets/lara-felix-park-hero.webp" alt="Lara und Felix stehen gemeinsam im Park" width="2048" height="1156"></div></article></div></div></section>
|
||||
<section class="section" id="four-units"><h2>Breit: vier Einheiten – 1180 px</h2><div class="lf-bt-host" style="width:1180px" id="bt-1180"><article class="lf-bt lf-bt--cream lf-bt--image-right lf-bt--height-normal" style="--bt-focus-x:64%;--bt-focus-y:36%"><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="#konzept">Konzept kennenlernen</a><a class="lf-bt__button lf-bt__button--secondary" href="#themen">Themen ansehen</a></div></div><div class="lf-bt__media"><img class="lf-bt__image" src="../../09_hero_widget/assets/lara-felix-park-hero.webp" alt="Lara und Felix stehen gemeinsam im Park" width="2048" height="1156"></div></article></div></section>
|
||||
<section class="section" id="one-unit"><h2>Schmaler Slot: 320 px</h2><div class="lf-bt-host" style="width:320px" id="bt-320"><article class="lf-bt lf-bt--cream lf-bt--image-right lf-bt--height-compact" style="--bt-focus-x:64%;--bt-focus-y:36%"><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="#konzept">Konzept kennenlernen</a><a class="lf-bt__button lf-bt__button--secondary" href="#themen">Themen ansehen</a></div></div><div class="lf-bt__media"><img class="lf-bt__image" src="../../09_hero_widget/assets/lara-felix-park-hero.webp" alt="Lara und Felix stehen gemeinsam im Park" width="2048" height="1156"></div></article></div></section>
|
||||
<section class="section" id="three-units"><h2>Breite 860 px (fällt noch in die kompakte Staffel)</h2><div class="lf-bt-host" style="width:860px" id="bt-860"><article class="lf-bt lf-bt--cream lf-bt--image-right lf-bt--height-normal" style="--bt-focus-x:64%;--bt-focus-y:36%"><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="#konzept">Konzept kennenlernen</a><a class="lf-bt__button lf-bt__button--secondary" href="#themen">Themen ansehen</a></div></div><div class="lf-bt__media"><img class="lf-bt__image" src="../../09_hero_widget/assets/lara-felix-park-hero.webp" alt="Lara und Felix stehen gemeinsam im Park" width="2048" height="1156"></div></article></div></section>
|
||||
</main><footer>Browser-QA · Bilder sind unveränderte Originalableitungen, keine Ersatzfiguren.</footer></body></html>
|
||||
@@ -1,9 +0,0 @@
|
||||
<!doctype html><html lang="de"><head><title>Lara & Felix · Hero QA</title><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="robots" content="noindex,nofollow"><link rel="stylesheet" href="../components/lf-hero.v1.6.css"><link rel="stylesheet" href="../components/lf-bild-text.v1.6.css"><style>
|
||||
:root{--lf-navy:#032551;--lf-green-deep:#3B7B09;--lf-yellow:#FCD10A;--lf-cream:#F7F6F2;--lf-muted:#46556B;--lf-font-ui:system-ui,sans-serif;--lf-font-display:system-ui,sans-serif}
|
||||
*,*::before,*::after{box-sizing:border-box}body{margin:0;background:#E9EDEB;color:#032551;font:15px/1.5 system-ui,sans-serif}header,main,footer{max-width:1500px;margin:auto}header{padding:28px 24px 8px}h1{margin:.2em 0;font-size:clamp(23px,3vw,34px)}.sub{margin:0;color:#46556B}.controls{background:white;padding:18px;margin:18px 0;border-radius:16px;display:flex;flex-wrap:wrap;gap:16px;align-items:end}.controls label{display:grid;gap:4px;font-weight:700;font-size:13px}.controls select{min-width:140px;padding:9px;border:1px solid #bac6c8;border-radius:8px;background:white;color:#032551;font:inherit}.frame{background:white;border-radius:18px;padding:15px}.demo-note{color:#4D5B66;font-size:12px;margin:9px 0 0}.stage{padding:0 24px 24px}.frame .lf-bt-host,.frame .lf-hero-host{margin:0 auto;max-width:100%}.section{background:#fff;border-radius:18px;padding:18px;margin:0 0 23px}.section > h2{margin:0 0 12px;font-size:20px}.badge{display:inline-block;background:#E6F0DA;color:#17370B;border-radius:10px;padding:3px 9px;font-size:12px;font-weight:800}.m-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px;align-items:start}.sample{min-width:0}.sample h3{font-size:13px;margin:0 0 7px}.sample .lf-bt-host,.sample .lf-hero-host{width:100%}code{font:12px ui-monospace,monospace}footer{padding:0 24px 32px;color:#52616A;font-size:13px}a:focus-visible,select:focus-visible{outline:3px solid #1769AA;outline-offset:2px}@media(max-width:520px){header{padding:17px 12px 3px}.stage{padding:0 12px 16px}.frame{padding:8px}.controls{padding:10px;gap:10px}.controls label{flex:1 1 140px}.controls select{min-width:0}}
|
||||
</style></head><body><header><h1>Hero · drei Höhen für breite Raster</h1><p class="sub">Ein Layout, drei Mindesthöhen; vollständige Texte und CTAs.</p></header><main class="stage">
|
||||
<section class="section" id="hero-compact"><h2>Kompakt · 980 px (3 Einheiten)</h2><div class="lf-hero-host" style="width:980px" id="hero-c"><section class="lf-hero lf-hero--photo-split lf-hero--height-compact" style="--lf-hero-focus-x:68%;--lf-hero-focus-y:50%"><img class="lf-hero__photo" src="../../09_hero_widget/assets/lara-felix-park-hero.webp" alt="Lara und Felix in einer grünen Parkanlage" width="2048" height="1156"><div class="lf-hero__inner"><div class="lf-hero__copy"><p class="lf-hero__eyebrow">Lara & Felix · Stark im Alltag</p><h2 class="lf-hero__title">Kinder stark im Alltag</h2><span class="lf-hero__title-accent" aria-hidden="true"></span><p class="lf-hero__description">Alltagsnahe Geschichten, praktische Übungen und zusammenpassende Materialien für Trainerinnen, Trainer und pädagogische Fachkräfte.</p><div class="lf-hero__actions"><a class="lf-hero__button lf-hero__button--primary" href="#konzept">Konzept kennenlernen</a><a class="lf-hero__button lf-hero__button--secondary" href="#programme">Programme ansehen</a></div></div></div><span class="lf-hero__bottom" aria-hidden="true"></span></section></div></section>
|
||||
<section class="section" id="hero-normal"><h2>Normal · 1180 px (4 Einheiten)</h2><div class="lf-hero-host" style="width:1180px" id="hero-n"><section class="lf-hero lf-hero--photo-split lf-hero--height-normal" style="--lf-hero-focus-x:68%;--lf-hero-focus-y:50%"><img class="lf-hero__photo" src="../../09_hero_widget/assets/lara-felix-park-hero.webp" alt="Lara und Felix in einer grünen Parkanlage" width="2048" height="1156"><div class="lf-hero__inner"><div class="lf-hero__copy"><p class="lf-hero__eyebrow">Lara & Felix · Stark im Alltag</p><h2 class="lf-hero__title">Kinder stark im Alltag</h2><span class="lf-hero__title-accent" aria-hidden="true"></span><p class="lf-hero__description">Alltagsnahe Geschichten, praktische Übungen und zusammenpassende Materialien für Trainerinnen, Trainer und pädagogische Fachkräfte.</p><div class="lf-hero__actions"><a class="lf-hero__button lf-hero__button--primary" href="#konzept">Konzept kennenlernen</a><a class="lf-hero__button lf-hero__button--secondary" href="#programme">Programme ansehen</a></div></div></div><span class="lf-hero__bottom" aria-hidden="true"></span></section></div></section>
|
||||
<section class="section" id="hero-large"><h2>Groß · 1180 px (4 Einheiten)</h2><div class="lf-hero-host" style="width:1180px" id="hero-l"><section class="lf-hero lf-hero--photo-split lf-hero--height-large" style="--lf-hero-focus-x:68%;--lf-hero-focus-y:50%"><img class="lf-hero__photo" src="../../09_hero_widget/assets/lara-felix-park-hero.webp" alt="Lara und Felix in einer grünen Parkanlage" width="2048" height="1156"><div class="lf-hero__inner"><div class="lf-hero__copy"><p class="lf-hero__eyebrow">Lara & Felix · Stark im Alltag</p><h2 class="lf-hero__title">Kinder stark im Alltag</h2><span class="lf-hero__title-accent" aria-hidden="true"></span><p class="lf-hero__description">Alltagsnahe Geschichten, praktische Übungen und zusammenpassende Materialien für Trainerinnen, Trainer und pädagogische Fachkräfte.</p><div class="lf-hero__actions"><a class="lf-hero__button lf-hero__button--primary" href="#konzept">Konzept kennenlernen</a><a class="lf-hero__button lf-hero__button--secondary" href="#programme">Programme ansehen</a></div></div></div><span class="lf-hero__bottom" aria-hidden="true"></span></section></div></section>
|
||||
<section class="section" id="hero-stress"><h2>Stresstest · kompakt, lange Texte und Links</h2><div class="lf-hero-host" style="width:980px" id="hero-long"><section class="lf-hero lf-hero--photo-split lf-hero--height-compact" style="--lf-hero-focus-x:68%;--lf-hero-focus-y:50%"><img class="lf-hero__photo" src="../../09_hero_widget/assets/lara-felix-park-hero.webp" alt="Lara und Felix in einer grünen Parkanlage" width="2048" height="1156"><div class="lf-hero__inner"><div class="lf-hero__copy"><p class="lf-hero__eyebrow">Lara & Felix · Stark im Alltag</p><h2 class="lf-hero__title">Selbstbehauptung und Prävention nachhaltig in den Kursalltag integrieren</h2><span class="lf-hero__title-accent" aria-hidden="true"></span><p class="lf-hero__description">Alltagsnahe Geschichten, praktische Übungen und zusammenpassende Materialien für Trainerinnen, Trainer und pädagogische Fachkräfte.</p><div class="lf-hero__actions"><a class="lf-hero__button lf-hero__button--primary" href="#konzept">Das gesamte Trainingskonzept kennenlernen</a><a class="lf-hero__button lf-hero__button--secondary" href="#programme">Programme und Themenbereiche im Überblick</a></div></div></div><span class="lf-hero__bottom" aria-hidden="true"></span></section></div></section>
|
||||
</main><footer>Hero nur für 3/4 Rastereinheiten; schmale Darstellung allein technischer Überlaufschutz.</footer></body></html>
|
||||
@@ -1,15 +0,0 @@
|
||||
<!doctype html><html lang="de"><head><title>Lara & Felix – Premium-Widgets v1.6 (interaktiv)</title><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="robots" content="noindex,nofollow"><link rel="stylesheet" href="../components/lf-hero.v1.6.css"><link rel="stylesheet" href="../components/lf-bild-text.v1.6.css"><style>
|
||||
:root{--lf-navy:#032551;--lf-green-deep:#3B7B09;--lf-yellow:#FCD10A;--lf-cream:#F7F6F2;--lf-muted:#46556B;--lf-font-ui:system-ui,sans-serif;--lf-font-display:system-ui,sans-serif}
|
||||
*,*::before,*::after{box-sizing:border-box}body{margin:0;background:#E9EDEB;color:#032551;font:15px/1.5 system-ui,sans-serif}header,main,footer{max-width:1500px;margin:auto}header{padding:28px 24px 8px}h1{margin:.2em 0;font-size:clamp(23px,3vw,34px)}.sub{margin:0;color:#46556B}.controls{background:white;padding:18px;margin:18px 0;border-radius:16px;display:flex;flex-wrap:wrap;gap:16px;align-items:end}.controls label{display:grid;gap:4px;font-weight:700;font-size:13px}.controls select{min-width:140px;padding:9px;border:1px solid #bac6c8;border-radius:8px;background:white;color:#032551;font:inherit}.frame{background:white;border-radius:18px;padding:15px}.demo-note{color:#4D5B66;font-size:12px;margin:9px 0 0}.stage{padding:0 24px 24px}.frame .lf-bt-host,.frame .lf-hero-host{margin:0 auto;max-width:100%}.section{background:#fff;border-radius:18px;padding:18px;margin:0 0 23px}.section > h2{margin:0 0 12px;font-size:20px}.badge{display:inline-block;background:#E6F0DA;color:#17370B;border-radius:10px;padding:3px 9px;font-size:12px;font-weight:800}.m-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px;align-items:start}.sample{min-width:0}.sample h3{font-size:13px;margin:0 0 7px}.sample .lf-bt-host,.sample .lf-hero-host{width:100%}code{font:12px ui-monospace,monospace}footer{padding:0 24px 32px;color:#52616A;font-size:13px}a:focus-visible,select:focus-visible{outline:3px solid #1769AA;outline-offset:2px}@media(max-width:520px){header{padding:17px 12px 3px}.stage{padding:0 12px 16px}.frame{padding:8px}.controls{padding:10px;gap:10px}.controls label{flex:1 1 140px}.controls select{min-width:0}}
|
||||
</style></head><body><header><h1>Premium-Widgets · adaptive Kompaktvarianten v1.6</h1><p class="sub">Originales Lara-&-Felix-Kling-Motiv, getrennte Texte/Buttons, CSS Container Queries. Keine Website-Screenshots.</p></header><main><div class="stage"><div class="controls"><label>Widget<select id="widget"><option value="bt">Bild & Text</option><option value="hero">Hero (3–4 Einheiten)</option></select></label><label>Tatsächliche Breite<select id="width"><option value="320">320 px · 1 Einheit</option><option value="390">390 px · mobil</option><option value="590" selected>590 px · 2 Einheiten</option><option value="790">790 px · mittlerer Slot</option><option value="930">930 px · breit</option><option value="1180">1180 px · breit</option></select></label><label>Höhe<select id="height"><option value="compact" selected>Kompakt</option><option value="normal">Normal</option><option value="large">Groß / großzügig</option></select></label><label>Oberfläche (Bild & Text)<select id="surface"><option value="cream">Creme</option><option value="clear">Transparent</option><option value="navy">Navy</option></select></label><label>Textprüfung<select id="stress"><option value="no">Normale Länge</option><option value="yes">Lange Überschrift + CTAs</option></select></label></div><div class="frame" id="frame"><div id="bt-wrapper"><div class="lf-bt-host" style="width:590px" id="bt-live"><article class="lf-bt lf-bt--cream lf-bt--image-right lf-bt--height-compact" style="--bt-focus-x:64%;--bt-focus-y:36%"><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="#konzept">Konzept kennenlernen</a><a class="lf-bt__button lf-bt__button--secondary" href="#themen">Themen ansehen</a></div></div><div class="lf-bt__media"><img class="lf-bt__image" src="../../09_hero_widget/assets/lara-felix-park-hero.webp" alt="Lara und Felix stehen gemeinsam im Park" width="2048" height="1156"></div></article></div></div><div id="hero-wrapper" style="display:none"><div class="lf-hero-host" style="width:1000px" id="hero-live"><section class="lf-hero lf-hero--photo-split lf-hero--height-compact" style="--lf-hero-focus-x:68%;--lf-hero-focus-y:50%"><img class="lf-hero__photo" src="../../09_hero_widget/assets/lara-felix-park-hero.webp" alt="Lara und Felix in einer grünen Parkanlage" width="2048" height="1156"><div class="lf-hero__inner"><div class="lf-hero__copy"><p class="lf-hero__eyebrow">Lara & Felix · Stark im Alltag</p><h2 class="lf-hero__title">Kinder stark im Alltag</h2><span class="lf-hero__title-accent" aria-hidden="true"></span><p class="lf-hero__description">Alltagsnahe Geschichten, praktische Übungen und zusammenpassende Materialien für Trainerinnen, Trainer und pädagogische Fachkräfte.</p><div class="lf-hero__actions"><a class="lf-hero__button lf-hero__button--primary" href="#konzept">Konzept kennenlernen</a><a class="lf-hero__button lf-hero__button--secondary" href="#programme">Programme ansehen</a></div></div></div><span class="lf-hero__bottom" aria-hidden="true"></span></section></div></div></div><p class="demo-note">Hero: nur für breite Slotzuweisung (3–4 logische Einheiten); bei unter 860 px greift ausschließlich ein technischer Sicherheitsumbruch, keine weitere Hero-Variante.</p></div></main><footer>Vorschau nutzt relative Originaldateien aus dem unverändert übernommenen Kit. Demo-Links ohne Kauf-/Lizenzaussagen.</footer><script>
|
||||
const bw=document.getElementById('bt-live'),hw=document.getElementById('hero-live');
|
||||
function update(){let widget=document.getElementById('widget').value,width=+document.getElementById('width').value,height=document.getElementById('height').value,surface=document.getElementById('surface').value,stress=document.getElementById('stress').value==='yes';
|
||||
bw.parentElement.style.display=widget==='bt'?'block':'none';hw.parentElement.style.display=widget==='hero'?'block':'none';
|
||||
bw.style.width=width+'px';hw.style.width=width+'px';
|
||||
let bc=bw.querySelector('.lf-bt');bc.className='lf-bt lf-bt--'+surface+' lf-bt--image-right lf-bt--height-'+(height==='large'?'spacious':height);
|
||||
let hc=hw.querySelector('.lf-hero');hc.className='lf-hero lf-hero--photo-split lf-hero--height-'+height;
|
||||
bw.querySelector('.lf-bt__headline').textContent=stress?'Gemeinsam alltagsnahe Handlungsmöglichkeiten mit Kindern erarbeiten – ohne jemanden zu überfordern':'Geschichten, die Kinder zum Mitdenken bringen.';
|
||||
hw.querySelector('.lf-hero__title').textContent=stress?'Selbstbehauptung und Prävention nachhaltig in den Kursalltag integrieren':'Kinder stark im Alltag';
|
||||
for(let c of [bw,hw]){let buttons=c.querySelectorAll('.lf-bt__button,.lf-hero__button');buttons[0].textContent=stress?'Das gesamte Trainingskonzept und die Materialien kennenlernen':'Konzept kennenlernen';buttons[1].textContent=stress?'Alle Programme, Module und Themenbereiche in der Übersicht ansehen':'Programme ansehen';}
|
||||
}
|
||||
document.querySelectorAll('select').forEach(el=>el.addEventListener('change',update));update();</script></body></html>
|
||||
|
Before Width: | Height: | Size: 226 KiB |
|
Before Width: | Height: | Size: 278 KiB |
|
Before Width: | Height: | Size: 258 KiB |
|
Before Width: | Height: | Size: 389 KiB |
|
Before Width: | Height: | Size: 226 KiB |
|
Before Width: | Height: | Size: 141 KiB |
|
Before Width: | Height: | Size: 305 KiB |
|
Before Width: | Height: | Size: 260 KiB |
|
Before Width: | Height: | Size: 595 KiB |