Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 761972c69b | |||
| 68866d9445 | |||
| d2c00c1b78 |
@@ -11,8 +11,18 @@ import ContactCenter from "@/components/sections/contact/ContactCenter";
|
|||||||
import MetricCardFourteen from "@/components/sections/metrics/MetricCardFourteen";
|
import MetricCardFourteen from "@/components/sections/metrics/MetricCardFourteen";
|
||||||
import FooterBase from "@/components/sections/footer/FooterBase";
|
import FooterBase from "@/components/sections/footer/FooterBase";
|
||||||
import { Building, Zap, Droplet, Wind, Home, Mail, CheckCircle } from "lucide-react";
|
import { Building, Zap, Droplet, Wind, Home, Mail, CheckCircle } from "lucide-react";
|
||||||
|
import { useState } from "react";
|
||||||
|
|
||||||
export default function LandingPage() {
|
export default function LandingPage() {
|
||||||
|
const [showPhoneNumber, setShowPhoneNumber] = useState(false);
|
||||||
|
|
||||||
|
const handleCallNowClick = () => {
|
||||||
|
setShowPhoneNumber(true);
|
||||||
|
setTimeout(() => {
|
||||||
|
window.location.href = "tel:+971557213898";
|
||||||
|
}, 500);
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ThemeProvider
|
<ThemeProvider
|
||||||
defaultButtonVariant="hover-bubble"
|
defaultButtonVariant="hover-bubble"
|
||||||
@@ -36,7 +46,10 @@ export default function LandingPage() {
|
|||||||
{ name: "Reviews", id: "testimonials" },
|
{ name: "Reviews", id: "testimonials" },
|
||||||
{ name: "Contact", id: "contact" }
|
{ name: "Contact", id: "contact" }
|
||||||
]}
|
]}
|
||||||
button={{ text: "Call Now", href: "tel:+971557213898" }}
|
button={{
|
||||||
|
text: showPhoneNumber ? "+971557213898" : "Call Now", onClick: handleCallNowClick,
|
||||||
|
href: undefined
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -50,7 +63,9 @@ export default function LandingPage() {
|
|||||||
showBlur={true}
|
showBlur={true}
|
||||||
showDimOverlay={false}
|
showDimOverlay={false}
|
||||||
buttons={[
|
buttons={[
|
||||||
{ text: "Call Now", href: "tel:+971557213898" },
|
{
|
||||||
|
text: showPhoneNumber ? "+971557213898" : "Call Now", onClick: handleCallNowClick
|
||||||
|
},
|
||||||
{ text: "WhatsApp", href: "https://wa.me/971557213898" }
|
{ text: "WhatsApp", href: "https://wa.me/971557213898" }
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
@@ -230,4 +245,4 @@ export default function LandingPage() {
|
|||||||
</div>
|
</div>
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user