import { motion } from "framer-motion"; import { useTranslation } from "react-i18next"; import heroBg from "@/assets/hero-bg.jpg"; /** Calcula diferencia entre ahora y la fecha del evento */ export const getTimeLeft = (target: string) => { const diff = new Date(target).getTime() - Date.now(); if (diff <= 0) return { days: 0, hours: 0, minutes: 0, seconds: 0 }; return { days: Math.floor(diff / (1000 * 60 * 60 * 24)), hours: Math.floor((diff / (1000 * 60 * 60)) % 24), minutes: Math.floor((diff / (1000 * 60)) % 60), seconds: Math.floor((diff / 1000) % 60), }; }; const HeroSection = () => { const { t } = useTranslation(); return (
{/* Background image */}
{/* Overlay */}
{t('hero.dates')} · {t('hero.location')} {t('hero.title')} {t('hero.subtitle')} {/* Event finished banner — countdown and program links disabled */}
{t('hero.eventFinished')} {t('hero.thankYou')}
); }; export default HeroSection;