-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
various fixes based on @phipsae's review
- Loading branch information
Showing
11 changed files
with
118 additions
and
153 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import Link from "next/link"; | ||
import Arrow_Icon from "~~/public/arrow_icon"; | ||
|
||
type Props = { | ||
mainText: string; | ||
footerText: string; | ||
footerLink: string; | ||
}; | ||
|
||
const Card = ({ mainText, footerText, footerLink }: Props) => { | ||
return ( | ||
<div className="shadow-sm border rounded-xl w-[16rem] h-[12rem] font-light mt-6 border-zinc-500 flex flex-col"> | ||
<div className="w-full flex items-center justify-center flex-grow-[5] dark:hover:bg-zinc-800 px-4 hover:bg-zinc-300 transition-all rounded-t-xl"> | ||
{mainText} | ||
</div> | ||
|
||
<hr className="border-t border-zinc-500" /> | ||
|
||
<div className="hover:bg-st_cyan/10 rounded-b-xl transition-all border-zinc-500 flex-grow"> | ||
<Link href={footerLink} target="_blank" passHref className="flex items-center justify-between h-full px-4"> | ||
<p className="font-medium flex flex-col items-center justify-center">{footerText}</p> | ||
|
||
<Arrow_Icon /> | ||
</Link> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Card; |
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
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,22 @@ | ||
"use client"; | ||
|
||
import { useTheme } from "next-themes"; | ||
|
||
const Arrow_Icon = () => { | ||
const { theme } = useTheme(); | ||
|
||
return ( | ||
<svg width="12" height="12" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path | ||
fillRule="evenodd" | ||
clipRule="evenodd" | ||
d="M16 16.5V0.5H0V2.5H13L0 15.5L1 16.5L14 3.5V16.5H16ZM16 0.5H13V3.5H16V0.5Z" | ||
fill={` | ||
${theme === "light" ? "#000000" : "#868686"} | ||
`} | ||
/> | ||
</svg> | ||
); | ||
}; | ||
|
||
export default Arrow_Icon; |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
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