From f1f46ca8daf4e9e30fa23c182a3ff2c3e8bb29b4 Mon Sep 17 00:00:00 2001 From: Xevion Date: Fri, 30 Dec 2022 20:55:14 -0600 Subject: [PATCH] Add button links to index cover page --- src/pages/index.tsx | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 4512e56..e13a518 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -5,6 +5,7 @@ import ItemCard from "../components/ItemCard"; import {getPlaiceholder} from "plaiceholder"; import {useBreakpointValue} from "../utils/helpers"; import type {Project} from "../utils/types"; +import Link from "next/link"; type ProjectWithBlur = Project & { bannerBlur: string }; @@ -78,6 +79,11 @@ export async function getStaticProps() { } } +const buttons = [ + {text: "GitHub", href: "https://github.com/Xevion"}, + {text: "Contact", href: "/contact"} +] + const Home: NextPage = ({projects}: HomeStaticProps) => { const useLong = useBreakpointValue("sm", true, false); @@ -99,13 +105,20 @@ const Home: NextPage = ({projects}: HomeStaticProps) => { WIP -
Hi. I'm Ryan Walters.
Full Stack Software Developer
+
+ {buttons.map(({text, href}) => + +
+ {text} +
+ + )} +
-