'use client'; import { useEffect, useState } from 'react'; import Slideshow from '@/components/Slideshow'; import CalendarStrip from '@/components/CalendarStrip'; import WeatherWidget from '@/components/WeatherWidget'; import LanguageSwitcher from '@/components/LanguageSwitcher'; import Link from 'next/link'; import { t, useLanguage } from '@/lib/i18n'; const gold = '#E8A849'; const navy = '#010D1E'; const cream = '#f5f0e8'; const homeCopy = { en: { tagline: 'Welcome to the Heart of Imbabura', cta_rooms: 'Book a Room', cta_menu: 'View Our Menu', cta_contact: 'Contact Us', }, es: { tagline: 'Bienvenidos al Corazón de Imbabura', cta_rooms: 'Reservar Habitación', cta_menu: 'Ver Menú', cta_contact: 'Contáctenos', }, } as const; export default function HomePage() { const language = useLanguage(); const copy = homeCopy[language]; return (
{/* Compact CTA section */}

{copy.tagline}

{/* CTA Buttons */}
{ e.currentTarget.style.transform = 'translateY(-2px)'; e.currentTarget.style.boxShadow = '0 6px 20px rgba(232,168,73,0.35)'; }} onMouseLeave={(e) => { e.currentTarget.style.transform = 'translateY(0)'; e.currentTarget.style.boxShadow = '0 4px 12px rgba(232,168,73,0.25)'; }} > 🛏️ {copy.cta_rooms} { e.currentTarget.style.background = gold; e.currentTarget.style.color = navy; }} onMouseLeave={(e) => { e.currentTarget.style.background = 'transparent'; e.currentTarget.style.color = cream; }} > 🍽️ {copy.cta_menu} { e.currentTarget.style.borderColor = 'rgba(245,240,232,0.6)'; e.currentTarget.style.color = cream; }} onMouseLeave={(e) => { e.currentTarget.style.borderColor = 'rgba(245,240,232,0.3)'; e.currentTarget.style.color = 'rgba(245,240,232,0.8)'; }} > ✉️ {copy.cta_contact}
); }