diff --git a/src/App.tsx b/src/App.tsx index 33d15f9..a36d7d5 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,13 +1,71 @@ +import { useState, useEffect } from 'react'; import { Routes, Route } from 'react-router-dom'; import Layout from './components/Layout'; import HomePage from './pages/HomePage'; +const images = [ + "https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80", + "https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&q=80", + "https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&q=80" +]; + +function HeroCarousel() { + const [currentIndex, setCurrentIndex] = useState(0); + + useEffect(() => { + const timer = setInterval(() => { + setCurrentIndex((prev) => (prev + 1) % images.length); + }, 5000); + return () => clearInterval(timer); + }, []); + + return ( +
+ Transform your vision into reality with our powerful platform. Fast, secure, and designed for modern teams. +
+ +