From 3bf65ae7abf8e7a811e0f687ff963bc3109261b4 Mon Sep 17 00:00:00 2001 From: Alexander Daichendt Date: Fri, 3 Jan 2025 19:50:29 +0100 Subject: [PATCH] feat: mobile nav with animations --- src/components/Header.astro | 15 ------ src/components/NavMenu.astro | 78 ++++++++++++++++++++++++++++ src/content/blog/cv-verification.mdx | 14 ++++- src/layouts/BaseLayout.astro | 13 ++--- 4 files changed, 97 insertions(+), 23 deletions(-) delete mode 100644 src/components/Header.astro create mode 100644 src/components/NavMenu.astro diff --git a/src/components/Header.astro b/src/components/Header.astro deleted file mode 100644 index ed16c92..0000000 --- a/src/components/Header.astro +++ /dev/null @@ -1,15 +0,0 @@ ---- -import HeaderLink from "./HeaderLink.astro"; ---- - -
- -
diff --git a/src/components/NavMenu.astro b/src/components/NavMenu.astro new file mode 100644 index 0000000..472bfeb --- /dev/null +++ b/src/components/NavMenu.astro @@ -0,0 +1,78 @@ +--- +import { Icon } from "astro-icon/components"; +import HeaderLink from "./HeaderLink.astro"; +--- + + + + +
+
+ Home + Blog + Projects + Publications + Contact +
+
+ + diff --git a/src/content/blog/cv-verification.mdx b/src/content/blog/cv-verification.mdx index 5720055..8d4c67b 100644 --- a/src/content/blog/cv-verification.mdx +++ b/src/content/blog/cv-verification.mdx @@ -23,7 +23,12 @@ Pretty cool gimmick! This effectively binds the CV document to my personal websi On this astro page, I have a route `/admin` which allows me to create a new verification id. This endpoint is secured with Cloudflare access. -
+
![Backend](../../assets/cv_backend.png)
@@ -100,7 +105,12 @@ if __name__ == "__main__": Finally, I enter the generated sha256 hash and the PGP signature into the second page of the create verification workflow. -
+
![Backend Second Step](../../assets/cv_backend2.png)
diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 4b0293b..80cbd2c 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -1,6 +1,6 @@ --- import BaseHead from "../components/BaseHead.astro"; -import Header from "../components/Header.astro"; +import NavMenu from "../components/NavMenu.astro"; import Footer from "../components/Footer.astro"; import { SITE_TITLE, SITE_DESCRIPTION } from "../consts"; import DarkModeToggle from "../components/DarkModeToggle.astro"; @@ -36,14 +36,15 @@ const { title = SITE_TITLE, description = SITE_DESCRIPTION } = Astro.props;
-

+

{SITE_TITLE}

- +
+ + +
-
-
@@ -60,7 +61,7 @@ const { title = SITE_TITLE, description = SITE_DESCRIPTION } = Astro.props;
-
+