diff --git a/src/app/page.tsx b/src/app/page.tsx index c0e225d..132a1d0 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -13,6 +13,13 @@ import TestimonialCardFifteen from '@/components/sections/testimonial/Testimonia import { Download, Github, Globe, MessageSquare, Rocket, Shield, Smartphone, Twitter, Zap } from "lucide-react"; export default function LandingPage() { + const scrollToSection = (id: string) => { + const element = document.getElementById(id.replace(/^#/, "")); + if (element) { + element.scrollIntoView({ behavior: "smooth" }); + } + }; + return ( scrollToSection("contact")}, { - text: "See Demo", href: "#"}, + text: "See Demo", onClick: () => scrollToSection("features")}, ]} marqueeItems={[ { @@ -223,4 +230,4 @@ export default function LandingPage() { ); -} +} \ No newline at end of file