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() {