Improve carousel navigation indicators for better visual feedback
Update the carousel pagination dots in `netflix-grid.tsx` to use more descriptive keys, enhance visual styling with `scale` and `transition-all duration-200 ease-out` classes, and adjust background colors for improved contrast and user experience. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 2cd2c0bc-434c-4bc9-ad3f-b99d3897a0d1 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2cd2c0bc-434c-4bc9-ad3f-b99d3897a0d1/OdlP8Wj
This commit is contained in:
parent
d2c46814fa
commit
2233a33526
@ -410,7 +410,7 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate
|
||||
<div className="md:hidden flex justify-center mt-2 mb-2 gap-1 py-1">
|
||||
{Array.from({ length: Math.min(10, category.videos.length) }, (_, index) => (
|
||||
<button
|
||||
key={index}
|
||||
key={`dot-${category.title}-${index}`}
|
||||
onClick={() => {
|
||||
if (scrollRef.current) {
|
||||
const containerWidth = scrollRef.current.clientWidth;
|
||||
@ -422,18 +422,11 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate
|
||||
setCurrentIndex(index);
|
||||
}
|
||||
}}
|
||||
className={`rounded-full transition-all duration-300 ${
|
||||
className={`w-2 h-2 rounded-full transition-all duration-200 ease-out ${
|
||||
index === currentIndex
|
||||
? 'bg-gradient-to-r from-purple-500 to-blue-500'
|
||||
: 'bg-white/15 hover:bg-white/25'
|
||||
? 'bg-gradient-to-r from-purple-500 to-blue-500 scale-125'
|
||||
: 'bg-white/20 hover:bg-white/30 scale-100'
|
||||
}`}
|
||||
style={{
|
||||
width: '8px',
|
||||
height: '8px',
|
||||
minWidth: '8px',
|
||||
minHeight: '8px',
|
||||
transform: index === currentIndex ? 'scale(1.25)' : 'scale(1)'
|
||||
}}
|
||||
aria-label={`Go to card ${index + 1}`}
|
||||
/>
|
||||
))}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user