-
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.
Merge pull request #30 from ishtails/4-home-page
Issue 4 - created new home page
- Loading branch information
Showing
13 changed files
with
329 additions
and
91 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
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,28 @@ | ||
"use client"; | ||
|
||
import { useEffect, useState } from "react"; | ||
import { useTheme } from "next-themes"; | ||
|
||
const Arrow_Icon = () => { | ||
const { theme } = useTheme(); | ||
const [mounted, setMounted] = useState(false); | ||
|
||
useEffect(() => { | ||
setMounted(true); | ||
}, []); | ||
|
||
if (!mounted) return null; | ||
|
||
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; |
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,28 @@ | ||
import Link from "next/link"; | ||
import Arrow_Icon from "~~/components/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] px-4 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; |
Oops, something went wrong.