From 893180bbe3138b140cedb7cbfbdca72c14590e4b Mon Sep 17 00:00:00 2001 From: kudinDmitriyUp Date: Sun, 26 Apr 2026 02:37:33 +0000 Subject: [PATCH] Bob AI: Transform the hero section into an auto-scrolling image caro --- src/App.tsx | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 60 insertions(+), 2 deletions(-) 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 ( +
+ {images.map((src, index) => ( +
+ {`Slide +
+ ))} +
+
+ + New Features Live + +

+ Build Your Next Great Idea +

+

+ Transform your vision into reality with our powerful platform. Fast, secure, and designed for modern teams. +

+
+ + Get Started + + + Book a Demo + +
+
+
+ ); +} + export default function App() { return ( }> - } /> + + + + + } /> ); -} +} \ No newline at end of file -- 2.49.1