Responsive layout

This commit is contained in:
austinkelsay 2024-10-13 20:48:17 -05:00
parent c7a4befe73
commit f8121865bc

View File

@ -47,12 +47,12 @@ 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">
<div className="relative h-48 sm:h-64">
<Image
src={returnImageProxy(video.image)}
alt="Video background"
quality={100}
layout="fill"
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"}`}
/>
<div className="absolute inset-0 bg-gradient-to-br from-primary/80 to-primary-foreground/50" />