diff --git a/src/app/page.tsx b/src/app/page.tsx index c86527e..b042e32 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -9,38 +9,9 @@ import ProductCardThree from "@/components/sections/product/ProductCardThree"; import TestimonialCardTwo from "@/components/sections/testimonial/TestimonialCardTwo"; import ContactText from "@/components/sections/contact/ContactText"; import FooterBase from "@/components/sections/footer/FooterBase"; -import { Award, Sparkles, BookOpen, Star, Phone, MessageCircle, MapPin } from "lucide-react"; -import { useState, useEffect } from "react"; +import { Award, Sparkles, BookOpen, Star } from "lucide-react"; export default function LandingPage() { - const [isSticky, setIsSticky] = useState(false); - const [showReservationModal, setShowReservationModal] = useState(false); - - useEffect(() => { - const handleScroll = () => { - setIsSticky(window.scrollY > 300); - }; - window.addEventListener('scroll', handleScroll); - return () => window.removeEventListener('scroll', handleScroll); - }, []); - - const handleClickToCall = () => { - window.location.href = 'tel:+34911234567'; - }; - - const handleWhatsAppBooking = () => { - const message = encodeURIComponent('Hola, me gustaría hacer una reserva en Restaurante Alabaster'); - window.open(`https://wa.me/34911234567?text=${message}`, '_blank'); - }; - - const handleGoogleMaps = () => { - window.open('https://maps.google.com/?q=Paseo+de+la+Castellana+123,+Madrid+28046', '_blank'); - }; - - const handleReservationOnline = () => { - setShowReservationModal(true); - }; - return ( - {isSticky && ( -
- - - - -
- )} - - {showReservationModal && ( -
-
-

Reservar Mesa

-

Elige tu forma de reservar:

-
- - - - -
-
-
- )} -
@@ -295,10 +180,8 @@ export default function LandingPage() { background={{ variant: "plain" }} useInvertedBackground={true} buttons={[ - { text: "Reservar Online", onClick: handleReservationOnline }, - { text: "Llamar Ahora", onClick: handleClickToCall }, - { text: "WhatsApp", onClick: handleWhatsAppBooking }, - { text: "Ver en Mapa", onClick: handleGoogleMaps } + { text: "Reservar Online", href: "#" }, + { text: "Llamar Ahora", href: "tel:+34911234567" } ]} ariaLabel="Sección de reservas" /> @@ -348,13 +231,3 @@ export default function LandingPage() {
); } - -// Calendar icon component (not from lucide-react to avoid import issues) -const Calendar = ({ size }: { size: number }) => ( - - - - - - -); \ No newline at end of file