diff --git a/src/app/page.tsx b/src/app/page.tsx index cf6054a..9a6f691 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -12,6 +12,30 @@ import FooterMedia from "@/components/sections/footer/FooterMedia"; import { AlertCircle, Award, Zap, Shield, CheckCircle, Eye, Wrench, Phone, Truck } from "lucide-react"; export default function LandingPage() { + const handleCallNow = () => { + window.location.href = "tel:(718)241-4200"; + }; + + const handleGetFreeEstimate = () => { + const element = document.querySelector("#contact"); + if (element) { + element.scrollIntoView({ behavior: "smooth" }); + } + }; + + const handleGetHelpNow = (email) => { + if (email) { + window.location.href = `tel:(718)241-4200`; + } + }; + + const handleRequestService = (email) => { + if (email) { + console.log("Service request for:", email); + // Handle service request + } + }; + return ( @@ -76,8 +101,8 @@ export default function LandingPage() { "http://img.b2bpic.net/free-photo/need-help-unhappy-woman-crouching-near-leaking-water-tap-home_259150-58305.jpg?_wi=2", imageAlt: "Professional technician working"}, ]} buttons={[ - { text: "CALL NOW (718) 241-4200", href: "tel:(718)241-4200" }, - { text: "Get Free Estimate", href: "#contact" }, + { text: "CALL NOW (718) 241-4200", onClick: handleCallNow }, + { text: "Get Free Estimate", onClick: handleGetFreeEstimate }, ]} tagAnimation="slide-up" buttonAnimation="slide-up" @@ -216,6 +241,7 @@ export default function LandingPage() { inputPlaceholder="Enter your phone number" buttonText="Get Help Now" termsText="We respect your privacy. Call now for immediate assistance." + onSubmit={handleGetHelpNow} /> @@ -231,6 +257,7 @@ export default function LandingPage() { inputPlaceholder="Enter your email" buttonText="Request Service" termsText="We'll contact you to confirm your appointment. Standard rates apply." + onSubmit={handleRequestService} />