import { useEffect, useRef } from 'react'; import { Check, ChevronRight, Play } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Badge } from '@/components/ui/badge'; const features = [ 'GPS Integrado de Alta Precisão', 'Display HUD em Tempo Real', 'Processador ESP32 Dual-Core', ]; export function Hero() { const heroRef = useRef(null); useEffect(() => { const observer = new IntersectionObserver( (entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { entry.target.classList.add('animate-fade-in-up'); observer.unobserve(entry.target); } }); }, { threshold: 0.1, rootMargin: '0px 0px -50px 0px' } ); const elements = heroRef.current?.querySelectorAll('.reveal'); elements?.forEach((el) => observer.observe(el)); return () => observer.disconnect(); }, []); const scrollToSection = (href: string) => { const element = document.querySelector(href); if (element) { element.scrollIntoView({ behavior: 'smooth' }); } }; return (
{/* Background Elements */}
{/* Grid Pattern */}
{/* Glow Circles */}
{/* Product Image - Left Side */}
{/* Glow Effect */}
{/* Product Container */}
VisionRun Pro - Óculos Inteligentes { // Fallback if image doesn't exist const target = e.target as HTMLImageElement; target.style.display = 'none'; const parent = target.parentElement; if (parent) { const fallback = document.createElement('div'); fallback.className = 'w-full h-full flex items-center justify-center'; fallback.innerHTML = `
VisionRun
`; parent.appendChild(fallback); } }} />
{/* Floating Stats */}
35g

Ultra-Leve

Design ergonômico

8h

Bateria

Uso contínuo

{/* Content - Right Side */}
Tecnologia de Ponta

VisionRun Pro

Óculos de Corrida de Alta Performance

Tecnologia!!!!!! e desempenho ao alcance da sua visão. Experimente o futuro da corrida com dados em tempo real sem tirar os olhos do caminho.

{features.map((feature, index) => (
{feature}
))}
{/* Bottom Gradient Fade */}
); }