'use client'; import { useState, useEffect } from 'react'; import Navigation from '../../components/Navigation'; import Footer from '../../components/Footer'; import { useLanguage } from '../../hooks/useLanguage'; interface Particle { id: number; x: number; y: number; size: number; speed: number; opacity: number; } interface HomePageProps { params: { lang: string; }; } export default function HomePage({ params }: HomePageProps) { const { currentLang, setCurrentLang, currentContent, createLocalizedPath } = useLanguage( params.lang, ); const [isLoaded, setIsLoaded] = useState(false); const [particles, setParticles] = useState([]); // Initialize particles for background effect useEffect(() => { const newParticles = Array.from({ length: 50 }, (_, i) => ({ id: i, x: Math.random() * 100, y: Math.random() * 100, size: Math.random() * 3 + 1, speed: Math.random() * 0.5 + 0.1, opacity: Math.random() * 0.5 + 0.2, })); setParticles(newParticles); setIsLoaded(true); }, []); // Animate particles useEffect(() => { const interval = setInterval(() => { setParticles((prev) => prev.map((particle) => ({ ...particle, y: (particle.y + particle.speed) % 100, })), ); }, 50); return () => clearInterval(interval); }, []); return ( <>
{/* Animated particle background */}
{particles.map((particle) => (
))}
{/* Gradient overlay */}
{/* Navigation */} {/* Hero Section */}

{currentContent.hero.title}

{currentContent.hero.subtitle}

{currentContent.hero.description}

{/* Services Section */}

{currentContent.services.title}

{currentContent.services.subtitle}

{currentContent.services.items.map((service, index) => (
{/* 3D Icon effect */}

{service.title}

{service.description}

{/* Glow effect */}
))}
{/* Decorative lines */}
{/* Footer */}
); }