From df76d0fabaf37bb2dc8380bee0ada5d9db72b3ae Mon Sep 17 00:00:00 2001 From: Derek Brown Date: Sun, 2 Feb 2025 19:52:29 -0600 Subject: [PATCH] Update styles --- src/components/Nav.astro | 4 ++++ src/components/Navbar.astro | 3 +++ src/pages/search.astro | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/Nav.astro b/src/components/Nav.astro index 75e162f..42e5d5f 100644 --- a/src/components/Nav.astro +++ b/src/components/Nav.astro @@ -1,5 +1,6 @@ --- import Emoji from 'astro-emoji' +import { Icon } from 'astro-icon/components' --- \ No newline at end of file diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index 1c88b91..4ca1d63 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -24,6 +24,9 @@ const { PageName } = Astro.props case 'About': document.getElementById('about').classList.add('active') break; + case 'Search': + document.getElementById('search').classList.add('active') + break; } \ No newline at end of file diff --git a/src/pages/search.astro b/src/pages/search.astro index fa84a92..0a144d8 100644 --- a/src/pages/search.astro +++ b/src/pages/search.astro @@ -8,8 +8,8 @@ allNotes.sort((a, b) => Date.parse(b.data.pubDate) - Date.parse(a.data.pubDate)) ---