Skip to content

Commit

Permalink
feat: clickable tracks card
Browse files Browse the repository at this point in the history
  • Loading branch information
yjose committed Feb 2, 2024
1 parent 7c2e6d4 commit 0fea25f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/tracks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ const Track = ({ title, description, image, index, tooltip }: TrackType) => {
</span>
));
return (
<article className="rounded-xl p-3 cursor-pointer group flex flex-col items-center">
<a
href={`/#day-${index}`}
className="rounded-xl p-3 cursor-pointer group flex flex-col items-center"
>
<div className="w-fit relative items-center justify-center overflow-visible rounded-xl bg-[url('/images/t-back.svg')] bg-contain bg-no-repeat bg-center">
{/* <div className="absolute bottom-0 left-0 top-0 w-full h-full z-10 rounded-xl flex">
<span className="track-tooltip absolute " data-tooltip={tooltip} />
Expand Down Expand Up @@ -126,6 +129,6 @@ const Track = ({ title, description, image, index, tooltip }: TrackType) => {
{description}
</p>
</div>
</article>
</a>
);
};

0 comments on commit 0fea25f

Please sign in to comment.