-
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.
- Added latest post and project to home screen - Removed home page button components Signed-off-by: Alan P John <[email protected]>
- Loading branch information
Showing
16 changed files
with
4,570 additions
and
11,523 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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,52 @@ | ||
import { CustomLink } from "@components/link"; | ||
|
||
import { PropsWithChildren } from "react"; | ||
import { BsArrowRight } from "react-icons/bs"; | ||
|
||
type Props = PropsWithChildren<{ | ||
title: string; | ||
subtitle: string; | ||
url?: string; | ||
isBlog?: boolean; | ||
}>; | ||
|
||
export const HomeCard: React.FC<Props> = ({ | ||
title, | ||
subtitle, | ||
url = "/projects", | ||
isBlog = false, | ||
children, | ||
}: Props) => { | ||
let keyText = "Featured Project"; | ||
if (isBlog) { | ||
keyText = "Featured Blog Article"; | ||
} | ||
return ( | ||
<CustomLink | ||
href={url} | ||
className="m-2 p-4 | ||
max-w-md | ||
border-background-primary dark:border-foreground-primary | ||
bg-background-secondary dark:bg-foreground-secondary | ||
border-2 rounded-md | ||
flex flex-col justify-between | ||
" | ||
> | ||
<span className="text-xs font-mono text-accent-primary dark:text-accent-secondary text-opacity-70"> | ||
{keyText} | ||
</span> | ||
<span className="px-1 text-xl font-sans text-foreground-primary dark:text-background-primary"> | ||
{title} | ||
</span> | ||
<span className="px-1 text-s text-foreground-primary dark:text-background-primary"> | ||
{subtitle} | ||
</span> | ||
{children} | ||
|
||
<div className="flex flex-row items-center w-full justify-end"> | ||
<span className="text-xs font-mono mr-2">Check out</span> | ||
<BsArrowRight /> | ||
</div> | ||
</CustomLink> | ||
); | ||
}; |
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
Oops, something went wrong.