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..e0bbecf 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -44,28 +44,10 @@ const projects = [ }, ] -const navItems = ['Home', 'Bio', 'Skills', 'Projects', 'Contact'] - --- - -
- -
-
-
@@ -78,7 +60,7 @@ const navItems = ['Home', 'Bio', 'Skills', 'Projects', 'Contact']
@@ -141,7 +124,7 @@ const navItems = ['Home', 'Bio', 'Skills', 'Projects', 'Contact']
- { + {
@@ -162,5 +145,4 @@ const navItems = ['Home', 'Bio', 'Skills', 'Projects', 'Contact'] - 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