import { useState, useEffect } from "react"; import HeroSection from "./components/HeroSection"; import LeadershipSection from "./components/LeadershipSection"; import EntrepreneurshipSection from "./components/EntrepreneurshipSection"; import AcademicSection from "./components/AcademicSection"; import TechSection from "./components/TechSection"; import AboutSection from "./components/AboutSection"; import AthleticsSection from "./components/AthleticsSection"; import ReviewsSection from "./components/ReviewsSection"; import Footer from "./components/Footer"; import { Sun, Moon } from "lucide-react"; const App = () => { const [, setActiveSection] = useState("hero"); const [, setIsVisible] = useState({}); const [isDarkMode, setIsDarkMode] = useState(true); useEffect(() => { const observer = new IntersectionObserver( (entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { setIsVisible((prev) => ({ ...prev, [entry.target.id]: true })); setActiveSection(entry.target.id); } }); }, { threshold: 0.3 } ); document.querySelectorAll("section[id]").forEach((section) => { observer.observe(section); }); return () => observer.disconnect(); }, []); const scrollToSection = (sectionId: string) => { document.getElementById(sectionId)?.scrollIntoView({ behavior: "smooth" }); }; const toggleDarkMode = () => { setIsDarkMode(!isDarkMode); }; const themeClasses = isDarkMode ? "min-h-screen bg-gradient-to-br from-slate-900 via-purple-900 to-slate-900 text-white overflow-x-hidden transition-all duration-1000" : "min-h-screen bg-gradient-to-br from-blue-50 via-purple-50 to-pink-50 text-gray-900 overflow-x-hidden transition-all duration-1000"; const cardClasses = isDarkMode ? "bg-white/5 backdrop-blur-lg border-white/10" : "bg-white/90 backdrop-blur-lg border-gray-200/60 shadow-xl"; const navClasses = isDarkMode ? "bg-black/20 backdrop-blur-lg border-white/10" : "bg-white/80 backdrop-blur-lg border-gray-200/30"; const textClasses = isDarkMode ? "text-gray-300" : "text-gray-700"; return (
{/* Navigation */} {/* Hero Section */} {/* About Section */} {/* Academic Section */} {/* Tech Section */} {/* Leadership Section */} {/* Athletics Section */} {/* Entrepreneurship Section */} {/* Reviews Section */} {/* Footer */}
); }; export default App;