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