From 07cb5f4b49c09c26978cf48545bb0121b4477f47 Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 5 Mar 2026 17:27:57 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 0678b37..aedfd80 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -49,10 +49,11 @@ export default function LandingPage() { }, []); useEffect(() => { + if (mounted) return; const theme = localStorage.getItem('theme') || 'light'; applyTheme(theme); setMounted(true); - }, [applyTheme]); + }, []); const toggleTheme = () => { const newTheme = isDark ? 'light' : 'dark'; @@ -148,7 +149,7 @@ export default function LandingPage() { } ]} title="Set Your Goals" - description="Choose how far you want to go. Whether it's 30 days, 100 days, or a lifetime—define your milestone and watch yourself soar toward it." + description="Choose how far you want to go. Whether it is 30 days, 100 days, or a lifetime—define your milestone and watch yourself soar toward it." tag="Your Target" textboxLayout="default" useInvertedBackground={true} @@ -169,19 +170,19 @@ export default function LandingPage() { icon: MessageSquare }, { - id: "3", name: "James", handle: "@freedomfound", testimonial: "Setting my goal to 365 days was pivotal. It gave me direction and purpose. Now I'm beyond that and still going strong.", rating: 5, + id: "3", name: "James", handle: "@freedomfound", testimonial: "Setting my goal to 365 days was pivotal. It gave me direction and purpose. Now I am beyond that and still going strong.", rating: 5, icon: MessageSquare }, { - id: "4", name: "Elena", handle: "@newbeginning", testimonial: "The infinite counter represents infinite hope. There's no end to recovery—just endless possibilities for a beautiful life ahead.", rating: 5, + id: "4", name: "Elena", handle: "@newbeginning", testimonial: "The infinite counter represents infinite hope. There is no end to recovery—just endless possibilities for a beautiful life ahead.", rating: 5, icon: MessageSquare }, { - id: "5", name: "David", handle: "@journeywithin", testimonial: "This tool is more than a counter. It's a companion, a reminder, and a symbol of your commitment to yourself every single day.", rating: 5, + id: "5", name: "David", handle: "@journeywithin", testimonial: "This tool is more than a counter. It is a companion, a reminder, and a symbol of your commitment to yourself every single day.", rating: 5, icon: MessageSquare }, { - id: "6", name: "Priya", handle: "@strongertogether", testimonial: "I've tried many apps, but this one feels different. The luxury design reminds me that my recovery is worth investing in.", rating: 5, + id: "6", name: "Priya", handle: "@strongertogether", testimonial: "I have tried many apps, but this one feels different. The luxury design reminds me that my recovery is worth investing in.", rating: 5, icon: MessageSquare } ]} @@ -227,7 +228,7 @@ export default function LandingPage() { tag="Your Recovery Starts Here" tagIcon={Zap} title="Begin Your Journey Today" - description="This isn't just an app—it's your companion in recovery. Track your progress, set your goals, and remember: you are stronger than your struggles. Your future is waiting." + description="This is not just an app—it is your companion in recovery. Track your progress, set your goals, and remember: you are stronger than your struggles. Your future is waiting." buttons={[ { text: "Start Tracking Now", href: "counter" }, { text: "Read More Stories", href: "motivation" } -- 2.49.1