From 4cd335e1535c73a2eef2adfc94038fa79a9bab2e Mon Sep 17 00:00:00 2001 From: vaporvee Date: Fri, 12 Jul 2024 21:01:31 +0200 Subject: [PATCH] added basic project page --- src/components/Footer.astro | 6 ++-- src/components/Navbar.astro | 2 +- src/components/ProjectCard.astro | 49 ++++++++++++++++++++++++++++++++ src/pages/projects.astro | 36 ++++++++++++++--------- src/styles/home.scss | 5 +--- 5 files changed, 75 insertions(+), 23 deletions(-) create mode 100644 src/components/ProjectCard.astro diff --git a/src/components/Footer.astro b/src/components/Footer.astro index f9dc747..42c514a 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -4,8 +4,6 @@ import "../styles/footer.scss"; --- diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index 9ac2421..03bf9e2 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -1,7 +1,7 @@ --- const routes = { Home: "/", - //Projects: "/projects", + Projects: "/projects", //Skills: "/skills", Blog: "/blog", }; diff --git a/src/components/ProjectCard.astro b/src/components/ProjectCard.astro new file mode 100644 index 0000000..3a32710 --- /dev/null +++ b/src/components/ProjectCard.astro @@ -0,0 +1,49 @@ +--- +interface Props { + name: string; + href?: string; +} + +const { name, href } = Astro.props; +--- + + + +
+ +

{name}

+
+
diff --git a/src/pages/projects.astro b/src/pages/projects.astro index 164f222..f8442af 100644 --- a/src/pages/projects.astro +++ b/src/pages/projects.astro @@ -1,18 +1,9 @@ --- import Layout from "../layouts/Layout.astro"; +import ProjectCard from "../components/ProjectCard.astro"; ---