From 762b03c291ed86389d881dd76f529eb3e40131fe Mon Sep 17 00:00:00 2001 From: Nico Haider Date: Tue, 21 Apr 2026 21:12:32 +0200 Subject: [PATCH] feat(home): mail and phone links and aria labels --- app/[locale]/page.tsx | 28 ++++++++++++++++++---------- messages/de.json | 11 ++++++++++- messages/en.json | 14 ++++++++++++++ 3 files changed, 42 insertions(+), 11 deletions(-) diff --git a/app/[locale]/page.tsx b/app/[locale]/page.tsx index bd01cdc..adef3ba 100644 --- a/app/[locale]/page.tsx +++ b/app/[locale]/page.tsx @@ -31,16 +31,24 @@ export default function Home() { filter: "drop-shadow(10px 0 25px rgb(from color-mix(in oklch, var(--foreground) 9%, transparent) r g b / .05))", }} className="mask-[linear-gradient(to_bottom,#000_80%,#0000)]" + loading="eager" />
-
- -
@@ -49,8 +57,8 @@ export default function Home() { href="https://www.linkedin.com/in/nico-haider-164444316" target="_blank" rel="noopener noreferrer" - aria-label="LinkedIn" > + {t("landingPage.social.linkedin")} @@ -59,8 +67,8 @@ export default function Home() { href="https://www.instagram.com/nico.hdr8/" target="_blank" rel="noopener noreferrer" - aria-label="Instagram" > + {t("landingPage.social.instagram")} @@ -69,8 +77,8 @@ export default function Home() { href="https://www.facebook.com/nico.haider.33/" target="_blank" rel="noopener noreferrer" - aria-label="Facebook" > + {t("landingPage.social.facebook")} diff --git a/messages/de.json b/messages/de.json index 7404256..0bc0ee9 100644 --- a/messages/de.json +++ b/messages/de.json @@ -16,6 +16,15 @@ "landingPage": { "title": "Hi, ich bin Nico Haider.", "subtitle": "Softwareentwickler für Webseiten, Web-Apps, Mobile-Apps, Desktop-Apps und vieles mehr.", - "location": "Dobersberg, Niederösterreich" + "location": "Dobersberg, Niederösterreich", + "contact": { + "email": "E-Mail senden", + "phone": "Telefonnummer anrufen" + }, + "social": { + "linkedin": "LinkedIn-Profil öffnen", + "instagram": "Instagram-Profil öffnen", + "facebook": "Facebook-Profil öffnen" + } } } diff --git a/messages/en.json b/messages/en.json index 864ed66..5c007e1 100644 --- a/messages/en.json +++ b/messages/en.json @@ -12,5 +12,19 @@ "light": "Light", "dark": "Dark", "system": "System" + }, + "landingPage": { + "title": "Hi, I'm Nico Haider.", + "subtitle": "Software developer for websites, web apps, mobile apps, desktop apps, and more.", + "location": "Dobersberg, Lower Austria", + "contact": { + "email": "Send email", + "phone": "Call phone number" + }, + "social": { + "linkedin": "Open LinkedIn profile", + "instagram": "Open Instagram profile", + "facebook": "Open Facebook profile" + } } }