From 47fd10199359e76048beaa7fe8cb22bd2c98e34e Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 5 Mar 2026 21:46:24 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 52 +++++++++++++++++++++++++++++++++++++----------- 1 file changed, 40 insertions(+), 12 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index e6fe8bb..5a96f22 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -13,6 +13,34 @@ import FooterBaseReveal from "@/components/sections/footer/FooterBaseReveal"; import { Activity, Mail, Target, Trophy, Zap } from "lucide-react"; export default function LandingPage() { + const handleTipsClick = () => { + const element = document.getElementById("tips"); + if (element) { + element.scrollIntoView({ behavior: "smooth" }); + } + }; + + const handleOddsClick = () => { + const element = document.getElementById("odds"); + if (element) { + element.scrollIntoView({ behavior: "smooth" }); + } + }; + + const handleAnalysisClick = () => { + const element = document.getElementById("tips"); + if (element) { + element.scrollIntoView({ behavior: "smooth" }); + } + }; + + const handleContactClick = () => { + const element = document.getElementById("contact"); + if (element) { + element.scrollIntoView({ behavior: "smooth" }); + } + }; + return ( @@ -53,8 +81,8 @@ export default function LandingPage() { showBlur={true} showDimOverlay={true} buttons={[ - { text: "Start Predicting", href: "#tips" }, - { text: "View Odds", href: "#odds" } + { text: "Start Predicting", onClick: handleTipsClick }, + { text: "View Odds", onClick: handleOddsClick } ]} tagAnimation="slide-up" buttonAnimation="slide-up" @@ -82,7 +110,7 @@ export default function LandingPage() { ]} textboxLayout="default" useInvertedBackground={false} - buttons={[{ text: "Learn More", href: "#analysis" }]} + buttons={[{ text: "Learn More", onClick: handleAnalysisClick }]} /> @@ -118,21 +146,21 @@ export default function LandingPage() { plans={[ { id: "decimal", badge: "Standard", badgeIcon: Activity, - price: "1.50 - 3.50", subtitle: "Decimal odds format", buttons: [{ text: "Place Bet", href: "#contact" }], + price: "1.50 - 3.50", subtitle: "Decimal odds format", buttons: [{ text: "Place Bet", onClick: handleContactClick }], features: [ "Easy to calculate returns", "Shows total payout amount", "Most popular format", "Real-time updates" ] }, { id: "fractional", badge: "Traditional", badgeIcon: Target, - price: "1/2 - 7/2", subtitle: "Fractional odds format", buttons: [{ text: "Place Bet", href: "#contact" }], + price: "1/2 - 7/2", subtitle: "Fractional odds format", buttons: [{ text: "Place Bet", onClick: handleContactClick }], features: [ "Classic betting format", "Shows profit ratio", "Popular in UK", "Risk/reward visible" ] }, { id: "combo", badge: "Advanced", badgeIcon: Zap, - price: "1.85 - 4.20", subtitle: "Combination bets", buttons: [{ text: "Place Bet", href: "#contact" }], + price: "1.85 - 4.20", subtitle: "Combination bets", buttons: [{ text: "Place Bet", onClick: handleContactClick }], features: [ "Multiple match selections", "Higher potential returns", "Accumulator bets", "Expert combinations" ] @@ -210,10 +238,10 @@ export default function LandingPage() { columns={[ { title: "Platform", items: [ - { label: "Tips", href: "#tips" }, - { label: "Odds", href: "#odds" }, - { label: "Analysis", href: "#analysis" }, - { label: "Statistics", href: "#metrics" } + { label: "Tips", href: "tips" }, + { label: "Odds", href: "odds" }, + { label: "Analysis", href: "analysis" }, + { label: "Statistics", href: "metrics" } ] }, { @@ -229,7 +257,7 @@ export default function LandingPage() { { label: "Privacy Policy", href: "#" }, { label: "Terms of Service", href: "#" }, { label: "Responsible Gambling", href: "#" }, - { label: "Contact", href: "#contact" } + { label: "Contact", href: "contact" } ] } ]}