Skip to content

Commit

Permalink
Update styles
Browse files Browse the repository at this point in the history
  • Loading branch information
derekmbrown committed Feb 3, 2025
1 parent f3a5a2a commit df76d0f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/components/Nav.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
import Emoji from 'astro-emoji'
import { Icon } from 'astro-icon/components'
---

<nav class="flex flex-col mt-12 mb-10 text-[#F2F5F7]">
Expand All @@ -10,5 +11,8 @@ import Emoji from 'astro-emoji'
<span class="navItem" id="notes"><a href="/">Notes</a></span>
<span class="navItem" id="tags"><a href="/tags">Tags</a></span>
<span class="navItem" id="about"><a href="/about">About</a></span>
<span class="navItem" id="search">
<a href="/search"><Icon name="mdi:search" width="30" height="27"/></a>
</span>
</div>
</nav>
3 changes: 3 additions & 0 deletions src/components/Navbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

</script>
4 changes: 2 additions & 2 deletions src/pages/search.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ allNotes.sort((a, b) => Date.parse(b.data.pubDate) - Date.parse(a.data.pubDate))
---

<Main
PageName="Home"
TabTitle="Home",
PageName="Search"
TabTitle="Search",
MetaTitle="Derek Brown",
MetaDescription="Developer profile, portfolio and website of Derek Brown.",
MetaTag="website",
Expand Down

0 comments on commit df76d0f

Please sign in to comment.