-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,29 @@ | ||
import { cn } from "@/lib/cn"; | ||
|
||
export function Button({ | ||
href, | ||
children, | ||
icon, | ||
}: { | ||
href: string; | ||
children: React.ReactNode; | ||
icon?: React.ReactNode; | ||
}) { | ||
return ( | ||
<a | ||
href={href} | ||
className="text-center sm:text-left bg-emerald-800 hover:bg-emerald-900 text-md text-white no-underline rounded p-xl py-sm cursor-pointer block sm:inline-block" | ||
className={cn( | ||
"bg-emerald-800 hover:bg-emerald-900 text-md text-white", | ||
"no-underline rounded p-xl py-sm cursor-pointer block sm:inline-block" | ||
)} | ||
style={{ | ||
boxShadow: "0 2px 0 #0b0c0c", // TODO: use shadow token | ||
}} | ||
> | ||
{children} | ||
<span className="flex gap-lg items-center justify-center sm:justify-start"> | ||
{children} | ||
{icon} | ||
</span> | ||
</a> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export function RightArrowIcon() { | ||
return ( | ||
<svg | ||
viewBox="0 0 16 16" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
className="w-[16px] h-[16px] mt-[2px]" | ||
> | ||
<path | ||
d="M8 0.5L6.59 1.91L12.17 7.5H0V9.5H12.17L6.59 15.09L8 16.5L16 8.5L8 0.5Z" | ||
fill="white" | ||
/> | ||
</svg> | ||
); | ||
} |