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:
parent
d29f5e24eb
commit
4b3c7fa7d4
@ -212,12 +212,12 @@ export default function VideoCard({ video, onClick, className = "" }: VideoCardP
|
|||||||
|
|
||||||
{/* Title overlay - only show when not playing preview */}
|
{/* Title overlay - only show when not playing preview */}
|
||||||
{!showPreview && (
|
{!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="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-medium">{video.title}</div>
|
<div className="truncate font-bold text-white drop-shadow-lg">{video.title}</div>
|
||||||
<div className="text-xs text-white/80 flex items-center space-x-2">
|
<div className="text-xs text-purple-100/90 flex items-center space-x-2 mt-1">
|
||||||
<span>{formatViews(video.views)}</span>
|
<span className="bg-blue-500/20 px-2 py-0.5 rounded-full">{formatViews(video.views)}</span>
|
||||||
<span>•</span>
|
<span className="text-white/60">•</span>
|
||||||
<span>{formatDate(video.createdAt)}</span>
|
<span className="bg-purple-500/20 px-2 py-0.5 rounded-full">{formatDate(video.createdAt)}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user