From 90dab6fbe89138e66151cc0a6c1222d3f855048a Mon Sep 17 00:00:00 2001 From: bender Date: Fri, 24 Apr 2026 10:47:15 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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 -- 2.49.1