From 5360b60db428ee732918d81c1ba88e7af7e23190 Mon Sep 17 00:00:00 2001 From: bender Date: Mon, 16 Mar 2026 10:20:41 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 60 +++++++++++++++++++++++++++++++----------------- 1 file changed, 39 insertions(+), 21 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index f5bade3..daafa23 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -8,11 +8,31 @@ import ProductCardTwo from "@/components/sections/product/ProductCardTwo"; import FeatureCardSeven from "@/components/sections/feature/FeatureCardSeven"; import TestimonialCardTen from "@/components/sections/testimonial/TestimonialCardTen"; import PricingCardTwo from "@/components/sections/pricing/PricingCardTwo"; -import ContactFaq from "@/components/sections/contact/ContactFaq"; +import ContactSplitForm from "@/components/sections/contact/ContactSplitForm"; import FooterCard from "@/components/sections/footer/FooterCard"; import { Sparkles, Heart, Award, Calendar, Instagram, Facebook, Linkedin } from "lucide-react"; +import { useState } from "react"; export default function LandingPage() { + const [formSubmitted, setFormSubmitted] = useState(false); + + const handleContactSubmit = async (data: Record) => { + try { + const response = await fetch("/api/contact", { + method: "POST", headers: { + "Content-Type": "application/json"}, + body: JSON.stringify(data), + }); + + if (response.ok) { + setFormSubmitted(true); + setTimeout(() => setFormSubmitted(false), 5000); + } + } catch (error) { + console.error("Error submitting form:", error); + } + }; + return (
-
-- 2.49.1