From efb95472a80da3e2948165ef78fda421b1d66b47 Mon Sep 17 00:00:00 2001 From: bender Date: Sun, 19 Apr 2026 05:12:13 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index f7d63bb..b405c6f 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -14,6 +14,13 @@ import SplitAbout from '@/components/sections/about/SplitAbout'; import TestimonialCardTwo from '@/components/sections/testimonial/TestimonialCardTwo'; export default function LandingPage() { + const scrollToSection = (id: string) => { + const element = document.querySelector(id); + if (element) { + element.scrollIntoView({ behavior: 'smooth' }); + } + }; + return ( scrollToSection("#pricing") }} /> @@ -46,7 +53,7 @@ export default function LandingPage() { background={{ variant: "plain" }} title="Master Your Finances" description="The ultimate monthly tracker to help you stay within budget and save more effortlessly with secure local storage and interactive data visualization." - buttons={[{ text: "Get Started", href: "#dashboard" }]} + buttons={[{ text: "Get Started", onClick: () => scrollToSection("#pricing") }]} imageSrc="http://img.b2bpic.net/free-photo/empty-home-office-with-tablet-laptop-shows-infographics-accounting-data_482257-91198.jpg" mediaAnimation="slide-up" avatars={[