import React, { useState, useEffect } from 'react'; import { MessageCircle, ArrowRight } from 'lucide-react'; const App = () => { const [loading, setLoading] = useState(true); const [fillHeight, setFillHeight] = useState(0); // URL da imagem da logo atualizada (B-me) const logoUrl = "https://i.ibb.co/jvnMBWPP/b-me-de-essa-logo-em-p-Photoroom.png"; // Links de redirecionamento const links = [ { id: 1, label: "Fale com Kassia", url: "https://wa.me/message/EAQ5LVQ2BRA7L1" }, { id: 2, label: "Fale com Fabricia", url: "https://wa.me/message/NLZHGGG3SSIBG1" } ]; useEffect(() => { // Animação de preenchimento de 0 a 100 em 3 segundos const duration = 3000; const interval = 30; const step = 100 / (duration / interval); const fillTimer = setInterval(() => { setFillHeight((prev) => { if (prev >= 100) { clearInterval(fillTimer); setLoading(false); return 100; } return prev + step; }); }, interval); return () => clearInterval(fillTimer); }, []); const handleRedirect = (url) => { window.location.href = url; }; return (