Make the number overlay on Top 10 videos disappear on hover

Fix: Update `SimpleCarousel` component to use a new CSS class for hover effects on video elements. Add CSS rule to `.individual-video-hover:hover .individual-video-hover\:opacity-0` to hide the number overlay when a video is hovered.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2eb1084e-b728-4449-9231-f1665924c8d5
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2eb1084e-b728-4449-9231-f1665924c8d5/yexZbDm
This commit is contained in:
sebastjanartic 2025-08-29 17:55:27 +00:00
parent 2789264854
commit 1ac0c4fd30
2 changed files with 7 additions and 2 deletions

View File

@ -135,10 +135,10 @@ export default function SimpleCarousel({ category, onVideoClick }: SimpleCarouse
{/* Create many copies for infinite feel */}
{Array.from({ length: 20 }).map((_, copyIndex) =>
category.videos.map((video, videoIndex) => (
<div key={`${video.id}-${copyIndex}-${videoIndex}`} className="flex-shrink-0 w-28 md:w-52 relative group">
<div key={`${video.id}-${copyIndex}-${videoIndex}`} className="flex-shrink-0 w-28 md:w-52 relative individual-video-hover">
{/* Top 10 Number overlay for first category */}
{category.title.includes("Top 10") && (
<div className="absolute top-1 left-1 z-30 text-white font-black text-3xl md:text-5xl drop-shadow-2xl pointer-events-none group-hover:opacity-0 transition-opacity duration-300"
<div className="absolute top-1 left-1 z-30 text-white font-black text-3xl md:text-5xl drop-shadow-2xl pointer-events-none individual-video-hover:opacity-0 transition-opacity duration-300"
style={{
textShadow: '4px 4px 8px rgba(0,0,0,0.8), -2px -2px 4px rgba(0,0,0,0.6)',
WebkitTextStroke: '2px rgba(0,0,0,0.8)',

View File

@ -382,6 +382,11 @@ input[data-testid*="search"]::placeholder {
filter: blur(0.5px);
}
/* Individual video hover effect for Top 10 numbers */
.individual-video-hover:hover .individual-video-hover\:opacity-0 {
opacity: 0;
}
/* Hide picture-in-picture button on all video elements */
video::-webkit-media-controls-picture-in-picture-button {
display: none !important;