Skip to content

Commit

Permalink
Tune tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Plesnik committed Jan 16, 2025
1 parent cd7ee20 commit 856e481
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/components/WorkPreviewTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ const WorkPreviewTile = ({ title, className, link, src }: WorkPreviewTileProps)
return (
<a
href={link}
className={clsx(
'group relative w-full overflow-hidden rounded-lg transition-shadow duration-500 hover:shadow-lg md:rounded-2xl',
className
)}
className={clsx('group relative w-full overflow-hidden rounded-lg md:rounded-2xl', className)}
>
<div className="aspect-[2/1] overflow-hidden rounded-lg transition-[transform,opacity] duration-[400ms] ease-in-out group-hover:scale-[1.02] group-hover:opacity-80 md:rounded-2xl">
<CustomImg src={src} alt={title} />
<div className="aspect-[2/1] overflow-hidden rounded-lg md:rounded-2xl">
<CustomImg
src={src}
alt={title}
className="transition-[transform,opacity] duration-[400ms] ease-in-out group-hover:scale-[1.02] group-hover:opacity-80"
/>
</div>
<Heading
size={2}
Expand Down

0 comments on commit 856e481

Please sign in to comment.