rt React, { useEffect, useState } from "react"; export default function HomePage() { const sections = [ "hero", "video", "comparison", "features", "benefits", "how-it-works", "pricing", "contact" ]; const sectionLabels = [ "iGala LEDs", "How-it-looks", "Don't Waste Your Windows", "Features", "Benefits", "How-it-works", "Pricing", "Contact" ]; const [activeSection, setActiveSection] = useState("hero"); useEffect(() => { const observer = new IntersectionObserver( (entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { setActiveSection(entry.target.id); } }); }, { threshold: 0.6 } ); sections.forEach((id) => { const el = document.getElementById(id); if (el) observer.observe(el); }); return () => observer.disconnect(); }, []); useEffect(() => { const link = document.createElement("link"); link.rel = "icon"; link.type = "image/png"; link.href = "/media/ChatGPT Image Apr 9, 2025, 12_45_59 PM.png"; document.head.appendChild(link); }, []); return (
{/* Top Nav */}
iGala Logo
{/* Scroll Progress Bar */}
{/* Dot Navigation */}
{sections.map((id, index) => ( {sectionLabels[index]} ))}
{/* Hero Section */}

Transform Your Windows into
Revenue-Generating Displays

{/* Video Section */}
); }