diff --git a/src/app/page.tsx b/src/app/page.tsx index 796671e..dfbd7a1 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,6 +2,7 @@ import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import ReactLenis from "lenis/react"; +import { useState, useEffect } from "react"; import ContactSplit from '@/components/sections/contact/ContactSplit'; import FaqDouble from '@/components/sections/faq/FaqDouble'; import FeatureBento from '@/components/sections/feature/FeatureBento'; @@ -13,9 +14,37 @@ import ProductCardTwo from '@/components/sections/product/ProductCardTwo'; import TeamCardSix from '@/components/sections/team/TeamCardSix'; import TestimonialAboutCard from '@/components/sections/about/TestimonialAboutCard'; import TestimonialCardTen from '@/components/sections/testimonial/TestimonialCardTen'; -import { Award, Shield, Sparkles, Globe } from "lucide-react"; +import { Award, Shield } from "lucide-react"; export default function LandingPage() { + const [lang, setLang] = useState('en'); + + useEffect(() => { + const saved = localStorage.getItem('lang') || 'en'; + setLang(saved); + }, []); + + const toggleLang = () => { + const next = lang === 'en' ? 'es' : 'en'; + setLang(next); + localStorage.setItem('lang', next); + }; + + const t = { + en: { + nav: ["Home", "About", "Menu", "Contact"], + hero: { title: "Exceptional Food, Craft Drinks, Unforgettable Moments", desc: "Paröle combines elevated pub cuisine with carefully curated beverages.", btn: "Reserve" }, + contact: { title: "Book Your Experience", desc: "Secure your table today.", tag: "Contact Us", placeholder: "Enter your email", btn: "Sign Up", terms: "By clicking Sign Up you're confirming that you agree with our Terms and Conditions." }, + footer: { copyright: "© 2025 Paröle Pub & Food. All rights reserved." } + }, + es: { + nav: ["Inicio", "Sobre Nosotros", "Menú", "Contacto"], + hero: { title: "Cocina de Excepción, Bebidas Artesanales, Momentos Inolvidables", desc: "Paröle combina una cocina de pub refinada con bebidas cuidadosamente seleccionadas.", btn: "Reservar" }, + contact: { title: "Reserve su Experiencia", desc: "Asegure su mesa hoy.", tag: "Contáctenos", placeholder: "Ingrese su correo", btn: "Registrarse", terms: "Al hacer clic en Registrarse, confirma que acepta nuestros Términos y Condiciones." }, + footer: { copyright: "© 2025 Paröle Pub & Food. Todos los derechos reservados." } + } + }; + return ( +
@@ -60,10 +91,10 @@ export default function LandingPage() {
@@ -91,64 +121,10 @@ export default function LandingPage() { textboxLayout="split" useInvertedBackground={false} features={[ - { title: "Events / Événements", description: "Custom catering and space. / Traiteur sur mesure et espace dédié.", bentoComponent: "reveal-icon", icon: Award }, - { title: "Private Dining / Dîner Privé", description: "Intimate settings. / Cadre intime.", bentoComponent: "reveal-icon", icon: Shield }, + { title: lang === 'en' ? "Events" : "Eventos", description: lang === 'en' ? "Custom catering." : "Catering personalizado.", bentoComponent: "reveal-icon", icon: Award }, ]} - title="Why Choose Paröle / Pourquoi choisir Paröle" - description="Experience the best in pub dining. / Vivez le meilleur de la cuisine de pub." - /> -
- -
- -
- -
- -
- -
- -
- -
-
@@ -156,9 +132,12 @@ export default function LandingPage() { @@ -167,7 +146,7 @@ export default function LandingPage() {