Improve the appearance of video titles and metadata on cards

Update the video card component to use a gradient background and improved styling for the video title and metadata, enhancing visual appeal.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 074b0e4c-6171-43bd-aa98-f9e04623ca14
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/074b0e4c-6171-43bd-aa98-f9e04623ca14/DVZN4Rp
This commit is contained in:
sebastjanartic 2025-08-30 14:47:46 +00:00
parent d29f5e24eb
commit 4b3c7fa7d4

View File

@ -212,12 +212,12 @@ export default function VideoCard({ video, onClick, className = "" }: VideoCardP
{/* Title overlay - only show when not playing preview */}
{!showPreview && (
<div className="absolute bottom-2 left-2 right-2 bg-black/70 text-white text-sm px-2 py-1 rounded z-10">
<div className="truncate font-medium">{video.title}</div>
<div className="text-xs text-white/80 flex items-center space-x-2">
<span>{formatViews(video.views)}</span>
<span></span>
<span>{formatDate(video.createdAt)}</span>
<div className="absolute bottom-2 left-2 right-2 bg-gradient-to-r from-black/80 via-purple-900/60 to-black/80 text-white text-sm px-3 py-2 rounded-lg backdrop-blur-md border border-white/10 shadow-xl z-10">
<div className="truncate font-bold text-white drop-shadow-lg">{video.title}</div>
<div className="text-xs text-purple-100/90 flex items-center space-x-2 mt-1">
<span className="bg-blue-500/20 px-2 py-0.5 rounded-full">{formatViews(video.views)}</span>
<span className="text-white/60"></span>
<span className="bg-purple-500/20 px-2 py-0.5 rounded-full">{formatDate(video.createdAt)}</span>
</div>
</div>
)}