diff --git a/client/src/components/simple-carousel.tsx b/client/src/components/simple-carousel.tsx index 4cee23e..8c1a567 100644 --- a/client/src/components/simple-carousel.tsx +++ b/client/src/components/simple-carousel.tsx @@ -96,33 +96,66 @@ export default function SimpleCarousel({ category, onVideoClick }: SimpleCarouse }, [category.videos.length]); return ( -
+

{category.title}

-
- {/* Simple grid layout - videos next to each other */} -
- {category.videos.map((video, videoIndex) => ( -
- {/* Top 10 Number overlay for first category */} - {category.title.includes("Top 10") && ( -
- {videoIndex + 1} +
+ {/* Left scroll button */} + + + {/* Right scroll button */} + + + {/* Scroll container */} +
+
+ {/* Create many copies for infinite feel */} + {Array.from({ length: 20 }).map((_, copyIndex) => + category.videos.map((video, videoIndex) => ( +
+ {/* Top 10 Number overlay for first category */} + {category.title.includes("Top 10") && ( +
+ {videoIndex + 1} +
+ )} +
- )} - -
- ))} + )) + ).flat()} +