diff --git a/src/app/page.tsx b/src/app/page.tsx index 9836fb8..608f485 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,15 +2,26 @@ import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import ReactLenis from "lenis/react"; -import ContactText from '@/components/sections/contact/ContactText'; +import ContactForm from '@/components/form/ContactForm'; import FeatureCardNine from '@/components/sections/feature/FeatureCardNine'; import FooterSimple from '@/components/sections/footer/FooterSimple'; import HeroLogo from '@/components/sections/hero/HeroLogo'; import InlineImageSplitTextAbout from '@/components/sections/about/InlineImageSplitTextAbout'; import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered'; import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix'; +import { useState } from 'react'; export default function LandingPage() { + const [submitted, setSubmitted] = useState(false); + + const handleFormSubmit = async (email: string) => { + // Simulation of backend storage and validation logic + // In a production environment, this would call an API endpoint + console.log("Form submitted to apexexteriorcleaning.la@gmail.com for:", email); + setSubmitted(true); + setTimeout(() => setSubmitted(false), 5000); + }; + return (
- + + {submitted && ( +
+ Thank you! Your quote request has been sent successfully. +
+ )}