import { useState } from "react"; import { AnimatePresence } from "framer-motion"; import Navigation from "@/components/Navigation"; import FloatingElements from "@/components/FloatingElements"; import MistClouds from "@/components/MistClouds"; import SmokeEffect from "@/components/SmokeEffect"; import HomeSection from "@/components/sections/HomeSection"; import AboutSection from "@/components/sections/AboutSection"; import ContactSection from "@/components/sections/ContactSection"; const Index = () => { const [activeSection, setActiveSection] = useState("home"); const renderSection = () => { switch (activeSection) { case "home": return ; case "about": return ; case "kontak": return ; default: return ; } }; return (
{/* Background effects */} {/* Navigation */} {/* Content */}
{renderSection()}
); }; export default Index;