From 30ac82c3c4ff467c0f3bc90e1a5543a7e17e3586 Mon Sep 17 00:00:00 2001 From: Nicholai Date: Sat, 6 Dec 2025 22:49:27 -0700 Subject: [PATCH] Update configuration, enhance navigation, and improve layout responsiveness - Changed image service in `astro.config.mjs` from "cloudflare" to "compile". - Adjusted GridOverlay component to remove unnecessary height styling. - Refined Navigation component with a mobile menu toggle and improved accessibility features. - Updated FeaturedProject and Hero sections to use `min-h-[100dvh]` for better responsiveness. - Modified global CSS to disable smooth scroll on mobile for performance and added a mobile viewport height fix. --- astro.config.mjs | 4 +- src/components/GridOverlay.astro | 2 +- src/components/Navigation.astro | 113 +++++++++++++++++- src/components/sections/FeaturedProject.astro | 2 +- src/components/sections/Hero.astro | 2 +- src/styles/global.css | 14 ++- 6 files changed, 126 insertions(+), 11 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 6d1e104..d40afbe 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -20,10 +20,10 @@ export default defineConfig({ enabled: true }, - imageService: "cloudflare" + imageService: "compile" }), vite: { plugins: [tailwindcss()], }, -}); \ No newline at end of file +}); diff --git a/src/components/GridOverlay.astro b/src/components/GridOverlay.astro index b10bf98..858d5b3 100644 --- a/src/components/GridOverlay.astro +++ b/src/components/GridOverlay.astro @@ -1,7 +1,7 @@ --- --- -
+
+ class="hidden md:block border border-slate-600 px-5 lg:px-6 py-2.5 lg:py-3 text-xs font-bold uppercase tracking-[0.15em] text-white hover:border-brand-accent hover:bg-brand-accent hover:text-brand-dark transition-all duration-300"> Let's Talk
- -