Skip to content

Commit

Permalink
make center carousel image draggable
Browse files Browse the repository at this point in the history
  • Loading branch information
cchrischen committed May 16, 2024
1 parent cd09ee7 commit cce62b9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions new-dti-website/components/team/TeamHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const TeamHero = () => {
</div>
<div
className="flex justify-center relative bottom-2 cursor-pointer"
onClick={() => setModalShown(width >= TABLET_BREAKPOINT)}
style={{ pointerEvents: 'none' }}
>
<img src="/images/carousel-frame.png" alt="frame" className="absolute z-10" />
<div className="absolute z-10 w-[243px] h-[270px]">
Expand Down Expand Up @@ -161,7 +161,12 @@ const TeamHero = () => {
index === carouselIndex % carouselLength ? '' : 'opacity-50'
}`}
>
<div className="relative z-10">
<div
className="relative z-10"
onClick={() =>
setModalShown(index === carouselIndex && width >= TABLET_BREAKPOINT)
}
>
<div className="flex justify-center overflow-hidden w-[227px] rounded-md">
<img src={image.src} alt={image.alt} className="h-[220px] max-w-none" />
</div>
Expand Down

0 comments on commit cce62b9

Please sign in to comment.