diff --git a/client/src/components/netflix-grid.tsx b/client/src/components/netflix-grid.tsx index 4b77ce5..af200d5 100644 --- a/client/src/components/netflix-grid.tsx +++ b/client/src/components/netflix-grid.tsx @@ -135,6 +135,7 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) { const scrollRef = useRef(null); const [isScrolling, setIsScrolling] = useState(false); const scrollIntervalRef = useRef(); + const [clickedVideoId, setClickedVideoId] = useState(null); const scroll = (direction: 'left' | 'right') => { if (scrollRef.current) { @@ -220,10 +221,14 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) { style={{ scrollbarWidth: 'none', msOverflowStyle: 'none' }} > {category.videos.map((video, index) => ( -
+
setClickedVideoId(null)} + > {/* Top 10 Number overlay for first category */} - {category.title.includes("Top 10") && index < 10 && ( -
{ + setClickedVideoId(video.id); + onVideoClick(video); + }} className="w-full hover:scale-105 md:hover:scale-110 hover:z-10 transition-all duration-300 md:duration-500 group-hover:shadow-2xl rounded-lg overflow-hidden" />