fix: show project card images in full color, add hover zoom
All checks were successful
Build & Push / build-and-push (push) Successful in 1m22s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-06 16:46:48 -04:00
parent 40e9a257f7
commit 2943d90ab1

View File

@@ -188,22 +188,14 @@ function SmallCard({ project, readLabel, t }: { project: Project; readLabel: str
)} )}
> >
<div className="relative overflow-hidden"> <div className="relative overflow-hidden">
<div <div className="relative w-full aspect-[16/7]">
className={cn( <Image
'transition-all duration-500', src={project.image}
'grayscale group-hover:grayscale-0', alt={t(`work.projects.${project.i18nKey}.title`)}
'opacity-80 group-hover:opacity-100', fill
)} className="object-cover transition-transform duration-500 group-hover:scale-[1.03]"
> sizes="(max-width: 768px) 100vw, 33vw"
<div className="relative w-full aspect-[16/7]"> />
<Image
src={project.image}
alt={t(`work.projects.${project.i18nKey}.title`)}
fill
className="object-cover"
sizes="(max-width: 768px) 100vw, 33vw"
/>
</div>
</div> </div>
</div> </div>