diff --git a/frontend/src/components/PageHero.astro b/frontend/src/components/PageHero.astro index ede880c..fec3ff5 100644 --- a/frontend/src/components/PageHero.astro +++ b/frontend/src/components/PageHero.astro @@ -1,6 +1,7 @@ --- interface Props { label: string; + /** Ein Zeilenumbruch ("\n") setzt eine feste Zeile, z. B. bei zwei Sätzen. */ title: string; lede?: string; /** Optional photo used as a full-bleed backdrop instead of the textured @@ -11,6 +12,9 @@ interface Props { const { label, title, lede, image, imageAlt = "" } = Astro.props; const dark = Boolean(image); +// Mit festen Zeilen bestimmt der Text die Breite, nicht die 16ch-Grenze — +// sonst bricht jede Zeile noch einmal mittendrin um. +const titleLines = title.split("\n"); ---