Try old thumbnail image layout

This commit is contained in:
austinkelsay 2024-10-14 09:04:35 -05:00
parent f8121865bc
commit 937a8f4d1a

View File

@ -48,13 +48,19 @@ export function VideoTemplate({ video }) {
return (
<Card className="overflow-hidden group hover:shadow-xl transition-all duration-300 bg-gray-800 m-2 border-none">
<div className="relative h-48 sm:h-64">
<div
className="relative w-full h-0 "
style={{ paddingBottom: "56.25%" }}
>
<Image
src={returnImageProxy(video.image)}
alt="Video background"
alt="workshop thumbnail"
src={returnImageProxy(workshop.image)}
quality={100}
layout="responsive"
className={`${router.pathname === "/content" ? "w-full h-full object-cover" : "w-full h-full object-cover transition-transform duration-300 group-hover:scale-105"}`}
layout="fill"
objectFit="cover"
className="rounded-md"
/>
</div>
<div className="absolute inset-0 bg-gradient-to-br from-primary/80 to-primary-foreground/50" />
<div className="absolute top-4 right-4 flex items-center gap-1 bg-black/50 text-white px-3 py-1 rounded-full">
<ZapDisplay zapAmount={zapAmount} event={video} zapsLoading={zapsLoading && zapAmount === 0} />