diff options
| author | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-08-15 20:12:25 +0900 |
|---|---|---|
| committer | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-08-15 20:12:25 +0900 |
| commit | b9e06d9a139e6d9a6d509f500beee97d0d071602 (patch) | |
| tree | 1e131cac0c65471da6b17ca1abff258412f8816f /app/root.tsx | |
| parent | 1777cdbf812959e39a2b2abc142afc2fe8932938 (diff) | |
Add site-wide search for bands and artists
Adds a nav search box and /search route backed by a LIKE-based
searchAll() query over band name/area/description and artist name.
Diffstat (limited to 'app/root.tsx')
| -rw-r--r-- | app/root.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/root.tsx b/app/root.tsx index 6c60350..f422f52 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -1,4 +1,5 @@ import { + Form, isRouteErrorResponse, Link, Links, @@ -55,6 +56,9 @@ export default function App() { <Link to="/" className="nav-brand">whois.band</Link> <Link to="/bands">Bands</Link> <Link to="/artists">Artists</Link> + <Form method="get" action="/search" className="nav-search"> + <input type="search" name="q" placeholder="検索" /> + </Form> </nav> <Outlet /> </> |
