add search page

This commit is contained in:
2025-11-20 23:03:43 -05:00
parent 84113e55d9
commit 03a15f0347
9 changed files with 78 additions and 14 deletions
+2
View File
@@ -8,6 +8,7 @@ import Nav from "./Nav.astro";
<a href="/">ghall.space</a>
<div>
<Nav />
<Drawer />
</div>
</div>
@@ -39,6 +40,7 @@ import Nav from "./Nav.astro";
.container > div {
display: flex;
gap: 20px;
align-items: center;
}
a {
+2 -10
View File
@@ -1,9 +1,5 @@
---
import { navLinks } from "../../data/nav-links";
const { pathname } = Astro.url;
const pathComponents = pathname.split("/").slice(1);
---
<nav>
@@ -11,12 +7,7 @@ const pathComponents = pathname.split("/").slice(1);
{
navLinks.map((link) => (
<li>
<a
href={`/${link.path}`}
class={pathComponents[0] === link.path ? "selected" : null}
>
{link.label}
</a>
<a href={`/${link.path}`}>{link.label}</a>
</li>
))
}
@@ -31,6 +22,7 @@ const pathComponents = pathname.split("/").slice(1);
gap: 10px;
font-size: 1.15rem;
font-weight: 600;
align-items: center;
}
a {