diff --git a/src/app/page.tsx b/src/app/page.tsx index 239029e..fd34bb0 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -10,8 +10,25 @@ import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCa import ContactText from '@/components/sections/contact/ContactText'; import FooterMedia from '@/components/sections/footer/FooterMedia'; import { ThemeProvider } from '@/providers/themeProvider/ThemeProvider'; +import { useState } from 'react'; export default function LandingPage() { + const [showPhonePopup, setShowPhonePopup] = useState(false); + const phoneNumber = "(443)805-9444"; + + const handleCallNowClick = () => { + setShowPhonePopup(true); + }; + + const handleCopyPhone = () => { + navigator.clipboard.writeText(phoneNumber); + setShowPhonePopup(false); + }; + + const handleDialPhone = () => { + window.location.href = `tel:${phoneNumber}`; + }; + return ( + {showPhonePopup && ( +
+
+

Call Now

+

Phone Number:

+
+

{phoneNumber}

+
+
+ + + +
+
+
+ )} +