Skip to content

Commit

Permalink
OPHJOD-393: Refactor hero card to use icon instead of text arrow
Browse files Browse the repository at this point in the history
  • Loading branch information
sauanto committed May 2, 2024
1 parent 2daa724 commit b287f4d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/components/HeroCard/HeroCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,19 @@ const BaseCard = ({ title, content, actionContent, backgroundColor, href }: Hero
className="absolute bottom-0 right-7 translate-y-2/4 rounded-[40px] outline-none transition-transform hover:scale-105 focus:scale-105"
>
<div
className="flex select-none gap-4 rounded-[40px] bg-white px-8 py-[20px] text-[28px] font-bold leading-[40px]"
className="flex select-none items-center gap-4 rounded-[40px] bg-white px-8 py-[20px] text-[28px] font-bold leading-[40px]"
style={{ color: backgroundColor }}
>
{actionContent}
<i aria-hidden></i>
<span className="material-symbols-outlined size-32 select-none font-bold" aria-hidden>
arrow_forward
</span>
</div>
</a>
) : (
<i className="absolute bottom-5 right-7 select-none text-[28px] font-bold leading-[32px]" aria-hidden>
</i>
<span className="material-symbols-outlined size-32 absolute bottom-5 right-7 select-none font-bold" aria-hidden>
arrow_forward
</span>
)}
</div>
);
Expand Down

0 comments on commit b287f4d

Please sign in to comment.