Merge version_2 into main #2
@@ -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 (
|
||||
<ThemeProvider
|
||||
defaultButtonVariant="bounce-effect"
|
||||
@@ -35,7 +59,8 @@ export default function LandingPage() {
|
||||
{ name: "Contact", id: "contact" },
|
||||
]}
|
||||
button={{
|
||||
text: "CALL NOW", href: "tel:(718)241-4200"}}
|
||||
text: "CALL NOW", onClick: handleCallNow,
|
||||
}}
|
||||
animateOnLoad={true}
|
||||
/>
|
||||
</div>
|
||||
@@ -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}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -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}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user