From 15659f2dc827931f1f71b1a8cac0440b075f8792 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Wed, 31 May 2023 14:54:56 -0400 Subject: [PATCH] Everything is now working --- src/components/About.astro | 2 +- src/components/Nav.astro | 2 +- src/styles/Home.css | 1 + src/styles/Nav.module.css | 3 +++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/About.astro b/src/components/About.astro index d4012e2..a6fef3a 100644 --- a/src/components/About.astro +++ b/src/components/About.astro @@ -3,7 +3,7 @@ import styles from "../styles/About.module.css" import Divider from "./Divider.astro" --- -
+

About Me

diff --git a/src/components/Nav.astro b/src/components/Nav.astro index 986da03..6a56b4b 100644 --- a/src/components/Nav.astro +++ b/src/components/Nav.astro @@ -9,7 +9,7 @@ import styles from "../styles/Nav.module.css" Home
  • - My Projects + Projects
  • About Me diff --git a/src/styles/Home.css b/src/styles/Home.css index 705db59..703a6e0 100644 --- a/src/styles/Home.css +++ b/src/styles/Home.css @@ -14,6 +14,7 @@ main { } main > section { + scroll-margin-top: 8rem; display: flex; flex-direction: column; border-radius: 1rem; diff --git a/src/styles/Nav.module.css b/src/styles/Nav.module.css index 556a6b5..d4cece3 100644 --- a/src/styles/Nav.module.css +++ b/src/styles/Nav.module.css @@ -6,6 +6,9 @@ font-weight: bold; background: hsl(0 0% 0% / 0.4); font-size: 1.5em; + position: sticky; + top: 0; + z-index: 1; } .links svg {