diff --git a/src/app/page.tsx b/src/app/page.tsx index 132a1d0..adfa2ff 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -14,9 +14,11 @@ import { Download, Github, Globe, MessageSquare, Rocket, Shield, Smartphone, Twi export default function LandingPage() { const scrollToSection = (id: string) => { - const element = document.getElementById(id.replace(/^#/, "")); + const element = document.getElementById(id); if (element) { element.scrollIntoView({ behavior: "smooth" }); + } else { + console.warn(`Element with id "${id}" not found.`); } }; @@ -68,7 +70,7 @@ export default function LandingPage() { ]} buttons={[ { - text: "Get Started", onClick: () => scrollToSection("contact")}, + text: "Get Started", onClick: () => scrollToSection("get-started")}, { text: "See Demo", onClick: () => scrollToSection("features")}, ]} @@ -170,7 +172,7 @@ export default function LandingPage() { { src: "http://img.b2bpic.net/free-photo/public-speaker-reading-from-clipboard-files-studio-background_482257-82734.jpg", alt: "young developer portrait"}, { - src: "http://img.b2bpic.net/free-photo/modern-woman-with-tablet_23-2148415935.jpg", alt: "female software architect"}, + src: "http://img.b2bpic.net/modern-woman-with-tablet_23-2148415935.jpg", alt: "female software architect"}, { src: "http://img.b2bpic.net/free-photo/man-enjoys-city-skyscrapers-night_482257-91205.jpg", alt: "tech entrepreneur portrait"}, { @@ -204,7 +206,7 @@ export default function LandingPage() { /> -