Update video grid navigation to use circular buttons

Refactor the navigation arrows in the `netflix-grid.tsx` component to use circular buttons with improved styling and functionality.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 8e9f2b36-ec9c-4acc-b19b-5304fa9790c5
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/8e9f2b36-ec9c-4acc-b19b-5304fa9790c5/srjpoes
This commit is contained in:
sebastjanartic 2025-09-01 15:04:29 +00:00
parent 6c96096968
commit 3d28babfbe

View File

@ -278,16 +278,26 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate
))}
</div>
{/* Navigation arrows - track style */}
<div className="absolute left-0 top-0 bottom-0 w-12 bg-gradient-to-r from-black/60 to-transparent z-[40] hidden md:flex items-center justify-center hover:from-black/80 transition-all duration-300 cursor-pointer"
onMouseEnter={() => startAutoScroll('left')}
onMouseLeave={stopAutoScroll}>
<ChevronLeft className="w-6 h-6 text-white" />
{/* Navigation arrows - black circles */}
<div className="absolute left-2 top-1/2 -translate-y-1/2 z-[40] hidden md:block">
<Button
onMouseEnter={() => startAutoScroll('left')}
onMouseLeave={stopAutoScroll}
className="bg-black/60 hover:bg-black/80 text-white border-none w-10 h-10 rounded-full transition-all duration-300 flex items-center justify-center shadow-lg backdrop-blur-sm"
size="sm"
>
<ChevronLeft className="w-4 h-4" />
</Button>
</div>
<div className="absolute right-0 top-0 bottom-0 w-12 bg-gradient-to-l from-black/60 to-transparent z-[40] hidden md:flex items-center justify-center hover:from-black/80 transition-all duration-300 cursor-pointer"
onMouseEnter={() => startAutoScroll('right')}
onMouseLeave={stopAutoScroll}>
<ChevronRight className="w-6 h-6 text-white" />
<div className="absolute right-2 top-1/2 -translate-y-1/2 z-[40] hidden md:block">
<Button
onMouseEnter={() => startAutoScroll('right')}
onMouseLeave={stopAutoScroll}
className="bg-black/60 hover:bg-black/80 text-white border-none w-10 h-10 rounded-full transition-all duration-300 flex items-center justify-center shadow-lg backdrop-blur-sm"
size="sm"
>
<ChevronRight className="w-4 h-4" />
</Button>
</div>
</div>
</div>