Show contact email in footer, hide missing-address marker in production
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
50a68841ce
commit
911361d926
3 files changed
+13
-4
No files matched your search
@@ -15,6 +15,8 @@ interface Props {
|
|||||||
organizations?: FooterOrganization[];
|
organizations?: FooterOrganization[];
|
||||||
/** Show the "Impressum & Datenschutz" link (only once its details are complete). */
|
/** Show the "Impressum & Datenschutz" link (only once its details are complete). */
|
||||||
showImpressumLink?: boolean;
|
showImpressumLink?: boolean;
|
||||||
|
/** General contact address shown in the footer. */
|
||||||
|
contactEmail?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const BRAND = 'Freilichttheater Ziefen 2028 – Wyti Wäg mit Breitestei';
|
const BRAND = 'Freilichttheater Ziefen 2028 – Wyti Wäg mit Breitestei';
|
||||||
@@ -24,6 +26,7 @@ const {
|
|||||||
description = "Freilichttheater Ziefen 2028 – Wyti Wäg mit Breitestei. Uraufführung im Juni 2028 rund um Jonas Breitenstein (1828–1877).",
|
description = "Freilichttheater Ziefen 2028 – Wyti Wäg mit Breitestei. Uraufführung im Juni 2028 rund um Jonas Breitenstein (1828–1877).",
|
||||||
organizations = [],
|
organizations = [],
|
||||||
showImpressumLink = false,
|
showImpressumLink = false,
|
||||||
|
contactEmail,
|
||||||
} = Astro.props;
|
} = Astro.props;
|
||||||
|
|
||||||
const site = Astro.site ?? Astro.url;
|
const site = Astro.site ?? Astro.url;
|
||||||
@@ -75,6 +78,12 @@ const footerOrgs = organizations.filter((org) => org?.name);
|
|||||||
<nav aria-label="Kontakt">
|
<nav aria-label="Kontakt">
|
||||||
<p class="m-0">
|
<p class="m-0">
|
||||||
<span class="font-semibold text-white mr-1">Kontakt:</span>
|
<span class="font-semibold text-white mr-1">Kontakt:</span>
|
||||||
|
{contactEmail?.trim() && (
|
||||||
|
<Fragment>
|
||||||
|
<a href={`mailto:${contactEmail.trim()}`} class="underline underline-offset-4 hover:text-accent">{contactEmail.trim()}</a>
|
||||||
|
<span class="mx-2 opacity-50" aria-hidden="true">·</span>
|
||||||
|
</Fragment>
|
||||||
|
)}
|
||||||
<a href="/#mitwirkung" class="underline underline-offset-4 hover:text-accent">Mitwirken & Regie</a>
|
<a href="/#mitwirkung" class="underline underline-offset-4 hover:text-accent">Mitwirken & Regie</a>
|
||||||
<span class="mx-2 opacity-50" aria-hidden="true">·</span>
|
<span class="mx-2 opacity-50" aria-hidden="true">·</span>
|
||||||
<a href="/#presse" class="underline underline-offset-4 hover:text-accent">Presse</a>
|
<a href="/#presse" class="underline underline-offset-4 hover:text-accent">Presse</a>
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ const updated = imp.updated
|
|||||||
description="Impressum und Datenschutzerklärung der Website des Freilichttheaters Ziefen 2028."
|
description="Impressum und Datenschutzerklärung der Website des Freilichttheaters Ziefen 2028."
|
||||||
organizations={content.team?.organizations || []}
|
organizations={content.team?.organizations || []}
|
||||||
showImpressumLink={complete}
|
showImpressumLink={complete}
|
||||||
|
contactEmail={imp.email}
|
||||||
>
|
>
|
||||||
<header class="bg-[#2b2b56] py-4 px-4 shadow-[0_2px_5px_rgba(0,0,0,0.1)]">
|
<header class="bg-[#2b2b56] py-4 px-4 shadow-[0_2px_5px_rgba(0,0,0,0.1)]">
|
||||||
<div class="max-w-[42rem] mx-auto flex items-center justify-between gap-4">
|
<div class="max-w-[42rem] mx-auto flex items-center justify-between gap-4">
|
||||||
@@ -57,10 +58,9 @@ const updated = imp.updated
|
|||||||
<h3>Verantwortlich für den Inhalt</h3>
|
<h3>Verantwortlich für den Inhalt</h3>
|
||||||
<p>
|
<p>
|
||||||
{imp.publisher ? <strong>{imp.publisher}</strong> : <mark>[fehlt: Herausgeberin]</mark>}
|
{imp.publisher ? <strong>{imp.publisher}</strong> : <mark>[fehlt: Herausgeberin]</mark>}
|
||||||
<br />
|
|
||||||
{imp.address
|
{imp.address
|
||||||
? imp.address.split('\n').map((line: string, i: number) => <Fragment>{i > 0 && <br />}{line}</Fragment>)
|
? imp.address.split('\n').map((line: string) => <Fragment><br />{line}</Fragment>)
|
||||||
: <mark>[fehlt: Postadresse]</mark>}
|
: import.meta.env.DEV && <Fragment><br /><mark>[fehlt: Postadresse (optional)]</mark></Fragment>}
|
||||||
</p>
|
</p>
|
||||||
{imp.representative && <p>Vertreten durch: {imp.representative}</p>}
|
{imp.representative && <p>Vertreten durch: {imp.representative}</p>}
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ const variant = (id: string): 'light' | 'dark' =>
|
|||||||
visible.findIndex((s) => s.id === id) % 2 === 0 ? 'light' : 'dark';
|
visible.findIndex((s) => s.id === id) % 2 === 0 ? 'light' : 'dark';
|
||||||
---
|
---
|
||||||
|
|
||||||
<BaseLayout organizations={content.team?.organizations || []} showImpressumLink={isImpressumComplete(content.impressum)}>
|
<BaseLayout organizations={content.team?.organizations || []} showImpressumLink={isImpressumComplete(content.impressum)} contactEmail={content.impressum?.email}>
|
||||||
<AnchorNav items={navItems} />
|
<AnchorNav items={navItems} />
|
||||||
|
|
||||||
<Hero content={content} />
|
<Hero content={content} />
|
||||||
|
|||||||
Reference in new issue
Block a user