From 785fc3c6ca1f4be6a02aff0126e0a1c64e750426 Mon Sep 17 00:00:00 2001 From: development Date: Thu, 8 Jan 2026 15:30:08 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 46 ++++++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 3172c9e..93831b9 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -14,13 +14,6 @@ import FooterBase from '@/components/sections/footer/FooterBase'; import { Zap, CheckCircle, Sparkles, Award, Crown } from "lucide-react"; export default function LandingPage() { - const scrollToSection = (sectionId: string) => { - const element = document.getElementById(sectionId); - if (element) { - element.scrollIntoView({ behavior: 'smooth' }); - } - }; - return ( @@ -51,10 +53,10 @@ export default function LandingPage() { tagIcon={Zap} buttons={[ { - text: "Shop Now and Power Your Day", href: "#products" + text: "Shop Now and Power Your Day", href: "products" }, { - text: "Learn More", href: "#about" + text: "Learn More", href: "about" } ]} imageSrc="https://img.b2bpic.net/free-photo/traditional-italian-dessert-tiramisu-glasses-top-view_114579-9837.jpg" @@ -94,7 +96,7 @@ export default function LandingPage() { animationType="slide-up" buttons={[ { - text: "Learn More", onClick: () => scrollToSection('products') + text: "Learn More", href: "products" } ]} features={[ @@ -152,10 +154,10 @@ export default function LandingPage() { id: "starter", badge: "Starter", badgeIcon: Sparkles, price: "$14.99", subtitle: "Perfect for first-time energy seekers", buttons: [ { - text: "Get Started", href: "#products" + text: "Get Started", href: "products" }, { - text: "Learn More", href: "#features" + text: "Learn More", href: "features" } ], features: [ @@ -166,10 +168,10 @@ export default function LandingPage() { id: "pro", badge: "🏆 MOST POPULAR", badgeIcon: Crown, price: "$27.99", subtitle: "Ideal for daily energy consumers", buttons: [ { - text: "Save 7%", href: "#products" + text: "Save 7%", href: "products" }, { - text: "Learn More", href: "#features" + text: "Learn More", href: "features" } ], features: [ @@ -180,10 +182,10 @@ export default function LandingPage() { id: "ultimate", badge: "Ultimate", badgeIcon: Zap, price: "$39.99", subtitle: "Maximum savings for committed users", buttons: [ { - text: "Save 13%", href: "#products" + text: "Save 13%", href: "products" }, { - text: "Learn More", href: "#features" + text: "Learn More", href: "features" } ], features: [ @@ -279,26 +281,26 @@ export default function LandingPage() { { title: "Products", items: [ { - label: "Single Tin", href: "#products" + label: "Single Tin", href: "products" }, { - label: "2x Bundle", href: "#products" + label: "2x Bundle", href: "products" }, { - label: "3x Bundle", href: "#products" + label: "3x Bundle", href: "products" } ] }, { title: "Company", items: [ { - label: "About Us", href: "#about" + label: "About Us", href: "about" }, { label: "Blog", href: "#blog" }, { - label: "Contact", href: "#contact" + label: "Contact", href: "contact" } ] },