From 8187c80e3d55aa4ffc6a659a270064a9e6f32012 Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 4 Mar 2026 06:34:47 +0000 Subject: [PATCH 1/2] Update src/app/layout.tsx --- src/app/layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index c158244..ada2e4e 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1386,4 +1386,4 @@ export default function RootLayout({ ); -} \ No newline at end of file +} -- 2.49.1 From 80f65884c491a4cdbae4b246fccf10b5e941cd5d Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 4 Mar 2026 06:34:48 +0000 Subject: [PATCH 2/2] Update src/app/page.tsx --- src/app/page.tsx | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index ba76a06..4f53f31 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -10,6 +10,22 @@ import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis' import { Sparkles, Briefcase, Zap, Mail } from 'lucide-react'; export default function LandingPage() { + const handleButtonClick = (href: string) => { + if (href.startsWith('#')) { + // Internal anchor link + const element = document.querySelector(href); + if (element) { + element.scrollIntoView({ behavior: 'smooth' }); + } + } else if (href.startsWith('mailto:') || href.startsWith('tel:')) { + // Email or phone link + window.location.href = href; + } else if (href.startsWith('http')) { + // External link + window.open(href, '_blank'); + } + }; + return ( handleButtonClick('#portfolio') }, + { text: "Get Started", onClick: () => handleButtonClick('#contact') } ]} buttonAnimation="slide-up" carouselItems={[ @@ -141,8 +157,8 @@ export default function LandingPage() { title="Ready to Elevate Your Online Presence?" description="Let's collaborate to create a website that not only looks stunning but also drives results. I'm excited to bring your vision to life." buttons={[ - { text: "Contact Me", href: "mailto:friischristian35@gmail.com" }, - { text: "Call: +49 176 61169654", href: "tel:+49176611696541" } + { text: "Contact Me", onClick: () => handleButtonClick('mailto:friischristian35@gmail.com') }, + { text: "Call: +49 176 61169654", onClick: () => handleButtonClick('tel:+49176611696541') } ]} buttonAnimation="slide-up" background={{ variant: "animated-grid" }} @@ -156,14 +172,14 @@ export default function LandingPage() { columns={[ { items: [ - { label: "Work", href: "#portfolio" }, - { label: "Services", href: "#services" } + { label: "Work", onClick: () => handleButtonClick('#portfolio') }, + { label: "Services", onClick: () => handleButtonClick('#services') } ] }, { items: [ - { label: "Email", href: "mailto:friischristian35@gmail.com" }, - { label: "Phone", href: "tel:+49176611696541" }, + { label: "Email", onClick: () => handleButtonClick('mailto:friischristian35@gmail.com') }, + { label: "Phone", onClick: () => handleButtonClick('tel:+49176611696541') }, { label: "LinkedIn", href: "#" } ] }, @@ -179,4 +195,4 @@ export default function LandingPage() { ); -} \ No newline at end of file +} -- 2.49.1