diff --git a/src/pages/HomePage/sections/About.tsx b/src/pages/HomePage/sections/About.tsx index 10d77b9..9b804e3 100644 --- a/src/pages/HomePage/sections/About.tsx +++ b/src/pages/HomePage/sections/About.tsx @@ -9,9 +9,29 @@ import ScrollReveal from "@/components/ui/ScrollReveal"; import { CheckCircle2 } from "lucide-react"; export default function AboutSection(): React.JSX.Element { + const [currentIndex, setCurrentIndex] = React.useState(0); + const IMAGES = [ + "https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&q=80", + "https://images.unsplash.com/photo-1582719478250-c894e4dc24a5?auto=format&fit=crop&q=80", + "https://images.unsplash.com/photo-1542314831-c6a4d14d8c85?auto=format&fit=crop&q=80" + ]; + + React.useEffect(() => { + const timer = setInterval(() => { + setCurrentIndex((prev) => (prev + 1) % IMAGES.length); + }, 5000); + return () => clearInterval(timer); + }, []); + return (