Skip to content

Commit

Permalink
fix: also link image to feature (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
geisterfurz007 authored Feb 23, 2024
1 parent d99e412 commit 5b887c2
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions packages/web/src/ui/home/feature-card/feature-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@ export const FeatureCard: FC<FeatureCardProps> = ({feature, inverted}) => {
)}
>
<div className='relative flex flex-1 items-center justify-center'>
<Image
src={feature.teaserImage.url!}
height={feature.teaserImage.height!}
width={feature.teaserImage.width!}
shadow={inverted ? 'left' : 'right'}
alt=''
className='object-contain'
/>
<Link href={feature.navPath!} hideUnderline>
<Image
src={feature.teaserImage.url!}
height={feature.teaserImage.height!}
width={feature.teaserImage.width!}
shadow={inverted ? 'left' : 'right'}
alt=''
className='object-contain'
/>
</Link>
</div>
<div className='flex flex-1 flex-col justify-center gap-3'>
<Heading size='h3' frontText={feature.name} />
Expand Down

0 comments on commit 5b887c2

Please sign in to comment.