Mache jede Seite in der Liste auffindbar, binde die freigegebene Wortmarke ein und erlaube Abstand oben.
- Seitenliste: zuletzt bearbeitete Seiten zuerst, „Zuletzt bearbeitet“ in deutscher Zeit (jede Revision und Veröffentlichung aktualisiert die Seite), Pfad und Datum sortierbar, 25/50/100 je Seite. Bisher stand eine neue Seite ohne Suche auf einer späteren Listenseite. - Kopfzeile und Fußbereich zeigen die freigegebene Lara-&-Felix- Wortmarke (Kompaktfassung aus Brand-UI-Kit 08) als zugeschnittene WebP-Ableitung mit festen Maßen; Ausgangszustand ≈ 80 px, kompakt 60 px, Smartphone 48 px. Mitgliederbereich unverändert. - Abschnittsgestaltung „Abstand oben“ (wie Abstand / gering / kein): Der erste Abschnitt kann direkt unter der Kopfzeile beginnen; der Abstand unten und alle anderen Abschnitte bleiben unverändert. Tests: Erwartung an die Wortmarke bewusst angepasst (brand-logo statt brand-lockup); neue Tests für Liste, Bearbeitungsdatum und Abstand oben. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
87a7ffc45f
commit
89fd95b243
18 files changed
+196
-41
No files matched your search
@@ -11,7 +11,7 @@
|
||||
* Abschnitts- und Slotmodell einer Seite: Seite → Abschnitte → Slots → Widget-Instanzen.
|
||||
*
|
||||
* Gespeicherte Hülle eines Abschnitts (Version 1):
|
||||
* {id, v, layout, style: {background, image, focus, overlay, width, spacing, divider}, slots: [Widget-Hülle|null, …]}
|
||||
* {id, v, layout, style: {background, image, focus, overlay, width, spacing, spacing_top, divider}, slots: [Widget-Hülle|null, …]}
|
||||
*
|
||||
* Jeder Slot enthält höchstens ein Widget aus dem zentralen Widget-Register. Abschnitte sind nicht verschachtelbar.
|
||||
* Revisionen ohne Abschnitte (Bestand vor dieser Fassung) werden beim Lesen als einspaltige Abschnitte gelesen.
|
||||
|
||||
@@ -82,6 +82,7 @@ private function renderSection(array $section, array $cells, int $index): string
|
||||
'section-bg-'.($hasImage ? 'image' : ($style['background'] === 'image' ? 'default' : $style['background'])),
|
||||
'section-width-'.$style['width'],
|
||||
'section-space-'.$style['spacing'],
|
||||
...($style['spacing_top'] !== 'same' ? ['section-space-top-'.$style['spacing_top']] : []),
|
||||
'section-layout-'.str_replace('_', '-', $section['layout']),
|
||||
];
|
||||
|
||||
|
||||
@@ -32,6 +32,18 @@ final class SectionStyle
|
||||
'large' => 'Großzügig',
|
||||
];
|
||||
|
||||
/**
|
||||
* Abweichender Abstand oben, zum Beispiel damit ein Einstieg direkt unter der Kopfzeile beginnt.
|
||||
* Ergänzt „Abstand oben und unten“, ersetzt ihn nicht; der Abstand unten bleibt unverändert.
|
||||
*
|
||||
* @var array<string, string>
|
||||
*/
|
||||
public const SPACINGS_TOP = [
|
||||
'same' => 'Wie „Abstand oben und unten“',
|
||||
'small' => 'Gering',
|
||||
'none' => 'Kein Abstand',
|
||||
];
|
||||
|
||||
/** @var array<string, string> */
|
||||
public const DIVIDERS = [
|
||||
'none' => 'Kein Trenner',
|
||||
@@ -80,6 +92,7 @@ final class SectionStyle
|
||||
'overlay' => 'light',
|
||||
'width' => 'standard',
|
||||
'spacing' => 'normal',
|
||||
'spacing_top' => 'same',
|
||||
'divider' => 'none',
|
||||
];
|
||||
|
||||
@@ -96,6 +109,7 @@ public static function enums(): array
|
||||
'overlay' => self::OVERLAYS,
|
||||
'width' => self::WIDTHS,
|
||||
'spacing' => self::SPACINGS,
|
||||
'spacing_top' => self::SPACINGS_TOP,
|
||||
'divider' => self::DIVIDERS,
|
||||
];
|
||||
}
|
||||
@@ -104,7 +118,7 @@ public static function enums(): array
|
||||
* Lesepfad: gespeicherte Werte; Unbekanntes fällt auf die Vorgabe zurück, damit alte oder fremde Daten
|
||||
* nie eine Seite brechen.
|
||||
*
|
||||
* @return array{background: string, image: ?string, focus: string, overlay: string, width: string, spacing: string, divider: string}
|
||||
* @return array{background: string, image: ?string, focus: string, overlay: string, width: string, spacing: string, spacing_top: string, divider: string}
|
||||
*/
|
||||
public static function fromStored(mixed $style): array
|
||||
{
|
||||
@@ -141,6 +155,10 @@ public static function summary(array $style): string
|
||||
$parts[] = 'Abstand '.mb_strtolower(self::SPACINGS[$style['spacing']]);
|
||||
}
|
||||
|
||||
if ($style['spacing_top'] !== 'same') {
|
||||
$parts[] = 'oben '.mb_strtolower(self::SPACINGS_TOP[$style['spacing_top']]);
|
||||
}
|
||||
|
||||
if ($style['divider'] !== 'none') {
|
||||
$parts[] = 'Trenner: '.self::DIVIDERS[$style['divider']];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user