Skip to content

Commit 86b1b14

Browse files
committed
Update styles
1 parent 15f23ac commit 86b1b14

File tree

4 files changed

+16
-24
lines changed

4 files changed

+16
-24
lines changed

src/components/Nav.astro

+11-19
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,21 @@ import Emoji from 'astro-emoji'
33
import { Icon } from 'astro-icon/components'
44
---
55

6-
<!-- <nav class="flex flex-col mt-12 mb-10 text-[#F2F5F7]">
7-
<div class="flex font-['Merriweather'] text-4xl font-black mb-3">
8-
<a href="/">Derek Brown <Emoji symbol="👨🏻‍💻" label="person" /></a>
9-
</div>
10-
<div class="font-['Merriweather'] text-xl flex items-center gap-4">
11-
<span class="navItem" id="notes"><a href="/">Notes</a></span>
12-
<span class="navItem" id="tags"><a href="/tags">Tags</a></span>
13-
<span class="navItem" id="about"><a href="/about">About</a></span>
14-
<span class="navItem" id="search">
15-
<a href="/notes/search"><Icon name="mdi:search" width="30" height="27"/></a>
16-
</span>
17-
</div>
18-
</nav> -->
19-
206
<nav class="flex flex-col mt-12 mb-10 text-[#F2F5F7]">
217
<div class="flex font-['Merriweather'] text-4xl font-black mb-3">
228
<a href="/">Derek Brown <Emoji symbol="👨🏻‍💻" label="person" /></a>
239
</div>
24-
<div class="text-lg flex items-center gap-3">
25-
<span class="bg-[#1E262F] px-3.5 py-2 rounded-lg" id="notes"><a href="/">Notes</a></span>
26-
<span class="bg-[#1E262F] px-3.5 py-2 rounded-lg" id="tags"><a href="/tags">Tags</a></span>
27-
<span class="bg-[#1E262F] px-3.5 py-2 rounded-lg" id="about"><a href="/about">About</a></span>
28-
<span class="bg-[#1E262F] px-3 py-2 rounded-lg" id="search">
10+
<div class="text-lg flex items-center gap-2.5">
11+
<span class="navItem bg-[#1E262F] px-3.5 py-2 rounded-lg" id="notes">
12+
<a href="/">Notes</a>
13+
</span>
14+
<span class="navItem bg-[#1E262F] px-3.5 py-2 rounded-lg" id="tags">
15+
<a href="/tags">Tags</a>
16+
</span>
17+
<span class="navItem bg-[#1E262F] px-3.5 py-2 rounded-lg" id="about">
18+
<a href="/about">About</a>
19+
</span>
20+
<span class="navItem bg-[#1E262F] px-3.5 py-2 rounded-lg" id="search">
2921
<a href="/notes/search"><Icon name="mdi:search" width="30" height="27"/></a>
3022
</span>
3123
</div>

src/components/ui/Search.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default function Search({ searchList }) {
3333
class="px-4 py-4"
3434
/>
3535
</div>
36-
{query.length > 1 && (
36+
{query.length >= 1 && (
3737
<div class="my-5 text-lg">
3838
<div>{notes.length} {notes.length === 1 ? 'note' : 'notes'} found with <span class="font-bold">{query}</span>:
3939
</div>

src/pages/tags/[tag].astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const title = `Tag: ${tag}`
2828
MetaTag="website",
2929
MetaUrl="https://derekbrown.io"
3030
>
31-
<div class="mb-6 text-lg">{filteredNotes.length} notes tagged with <span class="font-bold">{tag}</span>:</div>
31+
<div class="mb-6 text-lg">{filteredNotes.length} {filteredNotes.length === 1 ? 'note' : 'notes'} tagged with <span class="font-bold">{tag}</span>:</div>
3232
{filteredNotes.map((note) =>
3333
<NoteItem note={note} />
3434
)}

src/styles/global.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ html, body {
77
}
88

99
.navItem {
10-
border-bottom: 2px solid transparent;
10+
border: 1px solid transparent;
1111
}
1212

1313
.navItem:hover {
14-
border-bottom: 2px solid;
14+
border: 1px solid;
1515
transition: 0.8s;
1616
cursor: pointer;
1717
}
1818

1919
.active {
20-
border-bottom: 3px solid;
20+
border: 1px solid;
2121
}

0 commit comments

Comments
 (0)