// FloatingButtons + Footer function FloatingButtons() { const [showTop, setShowTop] = useState(false); useEffect(() => { const onScroll = () => setShowTop(window.scrollY > 500); window.addEventListener('scroll', onScroll); return () => window.removeEventListener('scroll', onScroll); }, []); return (
{showTop && ( window.scrollTo({ top: 0, behavior: 'smooth' })} aria-label="Subir" style={{ width: 52, height: 52, borderRadius: '50%', background: 'var(--ink-red)', color: 'var(--white)', display: 'grid', placeItems: 'center', boxShadow: '0 4px 20px rgba(139,0,0,0.5)', cursor: 'pointer', }} > )}
); } function Footer({ onNav }) { const navLinks = [ { id: 'inicio', label: 'Inicio' }, { id: 'portafolio', label: 'Portafolio' }, { id: 'estilos', label: 'Estilos' }, { id: 'tienda', label: 'Tienda' }, { id: 'sobre-mi', label: 'Sobre mí' }, { id: 'contacto', label: 'Contacto' }, ]; const socials = [ { label: 'Instagram', href: IG_URL }, { label: 'TikTok', href: TT_URL }, { label: 'WhatsApp', href: waLink('Hola Edwin') }, { label: 'Ubicación', href: MAP_URL }, ]; const linkStyle = { color: 'var(--white)', fontFamily: 'var(--font-accent)', fontSize: 13, letterSpacing: '0.25em', textTransform: 'uppercase', transition: 'color 0.2s', }; return ( ); } window.FloatingButtons = FloatingButtons; window.Footer = Footer;