From e07210638e3f130756dbe658558ecf3b4f95d92b Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Tue, 15 Jul 2025 21:56:33 -0500 Subject: [PATCH] add astro native SPA transition --- src/components/Background.astro | 2 +- src/components/Footer.astro | 1 + src/components/Navigation.astro | 3 ++- src/components/ThemeToggle.astro | 16 +++++++++++++++- src/layouts/Layout.astro | 4 +++- src/pages/404.astro | 1 + src/pages/about.astro | 7 +++++-- src/pages/blog/[...slug].astro | 3 --- src/pages/blog/index.astro | 4 ++-- src/pages/index.astro | 7 +++++-- src/pages/topics/index.astro | 7 +++++-- 11 files changed, 40 insertions(+), 15 deletions(-) diff --git a/src/components/Background.astro b/src/components/Background.astro index b09228d..cdb5113 100644 --- a/src/components/Background.astro +++ b/src/components/Background.astro @@ -29,7 +29,7 @@ + + -
diff --git a/src/pages/404.astro b/src/pages/404.astro index 58a39f6..c1b85a1 100644 --- a/src/pages/404.astro +++ b/src/pages/404.astro @@ -5,6 +5,7 @@ import Layout from '../layouts/Layout.astro';
diff --git a/src/pages/about.astro b/src/pages/about.astro index f9d7f38..c347186 100644 --- a/src/pages/about.astro +++ b/src/pages/about.astro @@ -16,7 +16,10 @@ const skills = await directus.request( --- -
+
@@ -366,7 +369,7 @@ const skills = await directus.request( diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro index b6a551c..fa59d44 100644 --- a/src/pages/blog/index.astro +++ b/src/pages/blog/index.astro @@ -25,7 +25,7 @@ const years = Object.keys(postsByYear).sort((a, b) => b - a); --- -
+
b - a);