From 5c7c58d34df12953a24f23a2a21954e91c4c6c78 Mon Sep 17 00:00:00 2001 From: bender Date: Sat, 21 Mar 2026 19:53:34 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 84 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 83 insertions(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 6760044..5374d53 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -11,8 +11,26 @@ import TestimonialCardTwo from "@/components/sections/testimonial/TestimonialCar import ContactFaq from "@/components/sections/contact/ContactFaq"; import FooterBaseReveal from "@/components/sections/footer/FooterBaseReveal"; import { Hammer, CheckCircle, Wrench, Droplet, Lightbulb, Drill, PaintBucket, Home, Image, Star, Phone } from "lucide-react"; +import { useState } from "react"; export default function LandingPage() { + const [showContactForm, setShowContactForm] = useState(false); + const [formData, setFormData] = useState({ + phone: "", email: "", address: "" + }); + + const handleFormSubmit = (e: React.FormEvent) => { + e.preventDefault(); + // Handle form submission here + console.log("Form submitted:", formData); + setShowContactForm(false); + setFormData({ phone: "", email: "", address: "" }); + }; + + const handleHeroButtonClick = () => { + setShowContactForm(true); + }; + return ( + {showContactForm && ( +
+
+

Get Your Free Quote

+
+
+ + setFormData({ ...formData, phone: e.target.value })} + className="w-full px-4 py-2 border border-accent rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-cta" + placeholder="(123) 456-7890" + /> +
+
+ + setFormData({ ...formData, email: e.target.value })} + className="w-full px-4 py-2 border border-accent rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-cta" + placeholder="you@example.com" + /> +
+
+ + setFormData({ ...formData, address: e.target.value })} + className="w-full px-4 py-2 border border-accent rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-cta" + placeholder="123 Main Street, Nampa, ID" + /> +
+
+ + +
+
+
+
+ )} +