mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-04-19 19:01:19 +00:00
max w on thumbnail
This commit is contained in:
parent
343685e907
commit
40861b6229
@ -47,18 +47,13 @@ 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 overflow-hidden">
|
||||
<div className="relative h-48 sm:h-64 max-w-full">
|
||||
<Image
|
||||
src={returnImageProxy(video.image)}
|
||||
alt="Video background"
|
||||
quality={100}
|
||||
layout="fill"
|
||||
objectFit="cover"
|
||||
className={`${
|
||||
router.pathname === "/content"
|
||||
? "w-full h-full object-cover"
|
||||
: "w-full h-full object-cover transition-transform duration-300 group-hover:scale-105"
|
||||
}`}
|
||||
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" />
|
||||
<div className="absolute top-4 right-4 flex items-center gap-1 bg-black/50 text-white px-3 py-1 rounded-full">
|
||||
@ -115,4 +110,4 @@ export function VideoTemplate({ video }) {
|
||||
</CardFooter>
|
||||
</Card>
|
||||
)
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user