fix: show project card images in full color, add hover zoom
All checks were successful
Build & Push / build-and-push (push) Successful in 1m22s
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:
@@ -188,22 +188,14 @@ function SmallCard({ project, readLabel, t }: { project: Project; readLabel: str
|
||||
)}
|
||||
>
|
||||
<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]">
|
||||
<Image
|
||||
src={project.image}
|
||||
alt={t(`work.projects.${project.i18nKey}.title`)}
|
||||
fill
|
||||
className="object-cover"
|
||||
sizes="(max-width: 768px) 100vw, 33vw"
|
||||
/>
|
||||
</div>
|
||||
<div className="relative w-full aspect-[16/7]">
|
||||
<Image
|
||||
src={project.image}
|
||||
alt={t(`work.projects.${project.i18nKey}.title`)}
|
||||
fill
|
||||
className="object-cover transition-transform duration-500 group-hover:scale-[1.03]"
|
||||
sizes="(max-width: 768px) 100vw, 33vw"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user