From adbdfebf5689058383709c2029a5a32ee36b6247 Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 2 Apr 2026 16:35:37 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 89 +++++++++++++++++------------------------------- 1 file changed, 31 insertions(+), 58 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 3171a6f..5063594 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -9,25 +9,10 @@ import HeroBillboardGallery from '@/components/sections/hero/HeroBillboardGaller import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered'; import SplitAbout from '@/components/sections/about/SplitAbout'; import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive'; -import { toast } from "sonner"; export default function LandingPage() { const handleContactSubmit = async (email: string) => { - try { - const response = await fetch('/api/contact', { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ email }), - }); - - if (response.ok) { - toast.success("Successfully subscribed!"); - } else { - throw new Error("Submission failed"); - } - } catch (error) { - toast.error("Something went wrong. Please try again."); - } + console.log("Subscribed:", email); }; return ( @@ -47,14 +32,10 @@ export default function LandingPage() {