From e5aa13e7800ef37c69392af4dc4018bfa4ee5c30 Mon Sep 17 00:00:00 2001 From: bender Date: Tue, 7 Apr 2026 15:00:46 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 55fc92d..c27eaf1 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -13,11 +13,9 @@ import TestimonialCardSixteen from '@/components/sections/testimonial/Testimonia import { Award, Calendar, DollarSign, User } from "lucide-react"; export default function LandingPage() { - const handleContactClick = () => { - const element = document.getElementById('contact'); - if (element) { - element.scrollIntoView({ behavior: 'smooth' }); - } + const handleWhatsAppClick = () => { + const message = encodeURIComponent("Hi! I'd like to book an appointment at Kasa de Belleza. Could you help me with a reservation?"); + window.open(`https://wa.me/14070000000?text=${message}`, '_blank'); }; return ( @@ -42,7 +40,7 @@ export default function LandingPage() { { name: "Reviews", id: "testimonials" }, { name: "Contact", id: "contact" }, ]} - button={{ text: "Book Appointment", onClick: handleContactClick }} + button={{ text: "Book Appointment", onClick: handleWhatsAppClick }} brandName="Kasa de Belleza" /> @@ -52,7 +50,7 @@ export default function LandingPage() { background={{ variant: "gradient-bars" }} title="Expert Care. Personal Touch. Beautiful Results." description="Orlando’s premier destination for expert hair color, precision nails, and the dedicated attention you deserve." - buttons={[{ text: "Schedule Your Transformation", onClick: handleContactClick }]} + buttons={[{ text: "Schedule Your Transformation", onClick: handleWhatsAppClick }]} imageSrc="http://img.b2bpic.net/free-photo/close-up-details-hairdresser-salon_23-2149205859.jpg" imageAlt="Salon transformation" /> @@ -128,7 +126,7 @@ export default function LandingPage() { ]} ctaTitle="Ready to look and feel your best?" ctaDescription="Visit us at 1794 N Chickasaw Trail, Orlando, FL." - ctaButton={{ text: "Book Your Visit", onClick: handleContactClick }} + ctaButton={{ text: "Book Your Visit", onClick: handleWhatsAppClick }} ctaIcon={Calendar} /> @@ -137,7 +135,7 @@ export default function LandingPage() { -- 2.49.1