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