Config: E-Mail im Footer aus .env.local (OWNER_EMAIL)

Footer erhält email-Prop von page.tsx (Server Component),
die process.env.OWNER_EMAIL zur Build-Zeit liest.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Dieter Schlüter 2026-04-25 22:21:46 +02:00
commit a187605aba
2 changed files with 6 additions and 7 deletions

View file

@ -17,7 +17,7 @@ export default function Home() {
<FocusSection /> <FocusSection />
<PhilosophySection /> <PhilosophySection />
</main> </main>
<Footer /> <Footer email={process.env.OWNER_EMAIL} />
</> </>
) )
} }

View file

@ -16,12 +16,11 @@ const legalLinks = [
{ label: 'Datenschutz', href: '/datenschutz' }, { label: 'Datenschutz', href: '/datenschutz' },
] ]
export function Footer({ email }: { email?: string }) {
const socialLinks = [ const socialLinks = [
{ label: 'Forgejo', href: 'https://kitux.de/forgejo/dschlueter/jamulix-homepage', icon: Github }, { label: 'Forgejo', href: 'https://kitux.de/forgejo/dschlueter/jamulix-homepage', icon: Github },
{ label: 'E-Mail', href: 'mailto:[Emailadresse]', icon: Mail }, { label: 'E-Mail', href: `mailto:${email ?? '[Emailadresse]'}`, icon: Mail },
] ]
export function Footer() {
const currentYear = new Date().getFullYear() const currentYear = new Date().getFullYear()
return ( return (