/* global React */ const { useState, useEffect } = React; window.smoothScroll = (id) => { const el = document.getElementById(id); if (el) window.scrollTo({ top: el.offsetTop - 60, behavior: 'smooth' }); }; function Nav() { const [scrolled, setScrolled] = useState(false); useEffect(() => { const onScroll = () => setScrolled(window.scrollY > 60); window.addEventListener('scroll', onScroll); return () => window.removeEventListener('scroll', onScroll); }, []); const links = [ ['Sobre Mí', 'sobre'], ['Destinos', 'destinos'], ['Cómo Trabajo', 'pasos'], ['Cotizar', 'cotizar'], ['FAQ', 'faq'], ]; return ( { e.preventDefault(); window.scrollTo({top: 0, behavior: 'smooth'}); }}> {links.map(([label, id]) => ( { e.preventDefault(); window.smoothScroll(id); }}>{label} ))} { e.preventDefault(); window.smoothScroll('cotizar'); }}> Cotizá tu viaje ); } function Hero() { const sparkles = Array.from({length: 22}, (_, i) => ({ left: Math.random() * 100, top: Math.random() * 90, size: Math.random() * 3 + 2, delay: Math.random() * 3, })); return ( {sparkles.map((s, i) => ( ))} ✦ AGENTE DE VIAJES ESPECIALIZADA ✦ Tu destino soñado, hecho realidad. Soy Martu, agente de viajes especializada en experiencias mágicas. Te ayudo a planear tu próximo viaje con todo organizado y a tu medida. { e.preventDefault(); window.smoothScroll('cotizar'); }}> Cotizar mi viaje → { e.preventDefault(); window.smoothScroll('destinos'); }}> Ver destinos ); } window.Nav = Nav; window.Hero = Hero;
Soy Martu, agente de viajes especializada en experiencias mágicas. Te ayudo a planear tu próximo viaje con todo organizado y a tu medida.