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:
parent
159c761633
commit
a187605aba
2 changed files with 6 additions and 7 deletions
|
|
@ -17,7 +17,7 @@ export default function Home() {
|
||||||
<FocusSection />
|
<FocusSection />
|
||||||
<PhilosophySection />
|
<PhilosophySection />
|
||||||
</main>
|
</main>
|
||||||
<Footer />
|
<Footer email={process.env.OWNER_EMAIL} />
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,12 +16,11 @@ const legalLinks = [
|
||||||
{ label: 'Datenschutz', href: '/datenschutz' },
|
{ label: 'Datenschutz', href: '/datenschutz' },
|
||||||
]
|
]
|
||||||
|
|
||||||
const socialLinks = [
|
export function Footer({ email }: { email?: string }) {
|
||||||
{ label: 'Forgejo', href: 'https://kitux.de/forgejo/dschlueter/jamulix-homepage', icon: Github },
|
const socialLinks = [
|
||||||
{ label: 'E-Mail', href: 'mailto:[Emailadresse]', icon: Mail },
|
{ label: 'Forgejo', href: 'https://kitux.de/forgejo/dschlueter/jamulix-homepage', icon: Github },
|
||||||
]
|
{ label: 'E-Mail', href: `mailto:${email ?? '[Emailadresse]'}`, icon: Mail },
|
||||||
|
]
|
||||||
export function Footer() {
|
|
||||||
const currentYear = new Date().getFullYear()
|
const currentYear = new Date().getFullYear()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue