From 3947476e90e15403dc082b5d841fdfdd181a5dc7 Mon Sep 17 00:00:00 2001 From: Jonas Perusquia Morales Date: Wed, 30 Apr 2025 12:24:38 -0600 Subject: [PATCH 1/2] feat: implement responsive navigation component and integrate into layout --- src/components/Navigation.astro | 72 +++++++++++++++++++++++++++++++++ src/layouts/Layout.astro | 9 +++-- src/pages/index.astro | 22 +--------- src/styles/global.css | 4 ++ 4 files changed, 83 insertions(+), 24 deletions(-) create mode 100644 src/components/Navigation.astro diff --git a/src/components/Navigation.astro b/src/components/Navigation.astro new file mode 100644 index 0000000..917e19b --- /dev/null +++ b/src/components/Navigation.astro @@ -0,0 +1,72 @@ +--- +const navItems = ['Home', 'Bio', 'Skills', 'Projects', 'Contact']; +--- + +
+ +
+ + \ No newline at end of file diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 03e7e9f..8a3b5ea 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,6 +1,7 @@ --- const { title } = Astro.props import '@/styles/global.css' +import Navigation from '@/components/Navigation.astro' --- @@ -13,6 +14,7 @@ import '@/styles/global.css' + {title} + -
- -
+ + diff --git a/src/pages/index.astro b/src/pages/index.astro index 436e0b9..aed991e 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -44,28 +44,10 @@ const projects = [ }, ] -const navItems = ['Home', 'Bio', 'Skills', 'Projects', 'Contact'] - --- - -
- -
-
-
@@ -94,6 +76,7 @@ const navItems = ['Home', 'Bio', 'Skills', 'Projects', 'Contact'] width={320} height={320} class="rounded-full object-cover" + loading="eager" />
@@ -141,7 +124,7 @@ const navItems = ['Home', 'Bio', 'Skills', 'Projects', 'Contact']
- { + {
@@ -162,5 +145,4 @@ const navItems = ['Home', 'Bio', 'Skills', 'Projects', 'Contact']

Made with ♥️ from Chihuahua, Mexico.

- diff --git a/src/styles/global.css b/src/styles/global.css index 8b29d44..39976f5 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -369,4 +369,8 @@ html { & img { @apply scale-110; } +} + +#mobile-menu { + interpolate-size: allow-keywords; } \ No newline at end of file From 5c85a6c00c80b8c608d31bab5f98b9891f6f6d26 Mon Sep 17 00:00:00 2001 From: Jonas Perusquia Morales Date: Wed, 30 Apr 2025 12:27:42 -0600 Subject: [PATCH 2/2] fix: add aria-label to social network links for improved accessibility --- src/pages/index.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index aed991e..e0bbecf 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -60,7 +60,7 @@ const projects = [
{ socialNetworks.map(socialNetwork => ( - +