From 63f9efd6216868f55b4ee2553c6ef2dd5a6f73be Mon Sep 17 00:00:00 2001 From: Troy Date: Tue, 11 Feb 2025 11:50:17 +0000 Subject: [PATCH] begin adding nav bar --- src/components/Header.astro | 123 +++++++++++++++++++++++++++++++-- src/components/Hero.astro | 2 +- src/pages/index.astro | 8 +-- src/pages/posts/index.astro | 18 ++--- src/pages/projects/index.astro | 18 ++--- 5 files changed, 144 insertions(+), 25 deletions(-) diff --git a/src/components/Header.astro b/src/components/Header.astro index 91a7221..45be34a 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -4,10 +4,14 @@ import { Icon } from "astro-icon/components"; ---
- + + + + + + +
diff --git a/src/components/Hero.astro b/src/components/Hero.astro index eab0cca..8e5b676 100644 --- a/src/components/Hero.astro +++ b/src/components/Hero.astro @@ -10,7 +10,7 @@ import borel from "@fontsource/borel/files/borel-latin-400-normal.woff2?url"; crossorigin="anonymous" /> -
+

diff --git a/src/pages/index.astro b/src/pages/index.astro index 66d140b..1fad4e3 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,6 +1,6 @@ --- import Layout from "@layouts/Layout.astro"; -import { HOME } from "@consts"; +import { HOME, SITE } from "@consts"; import { getCollection } from "astro:content"; import ShowcasePost from "@components/ShowcasePost.astro"; import Hero from "@components/Hero.astro"; @@ -126,7 +126,7 @@ const projectsJSON = JSON.stringify(projects); /> @@ -175,11 +175,11 @@ const projectsJSON = JSON.stringify(projects); class="mt-10 flex items-center justify-center gap-x-6 lg:justify-start" > Get started - Learn more diff --git a/src/pages/posts/index.astro b/src/pages/posts/index.astro index 696d161..dccf315 100644 --- a/src/pages/posts/index.astro +++ b/src/pages/posts/index.astro @@ -10,12 +10,14 @@ const posts = (await getCollection("posts")) --- -

- {POSTS.TITLE} -

-
    - {posts.map((article: any) => )} -
+
+

+ {POSTS.TITLE} +

+
    + {posts.map((article: any) => )} +
+
diff --git a/src/pages/projects/index.astro b/src/pages/projects/index.astro index 1630977..964f94a 100644 --- a/src/pages/projects/index.astro +++ b/src/pages/projects/index.astro @@ -10,12 +10,14 @@ const projects = (await getCollection("projects")) --- -

- {PROJECTS.TITLE} -

-
    - {projects.map((article: any) => )} -
+
+

+ {PROJECTS.TITLE} +

+
    + {projects.map((article: any) => )} +
+