This commit is contained in:
Hugh Kaznowski
2026-09-05 12:23:46 +01:00
parent 818f8d09ea
commit 68548911bc
34 changed files with 3262 additions and 4 deletions
+30
View File
@@ -0,0 +1,30 @@
import type { Stats } from '../lib/api'
export function NavMenu({ stats }: { stats: Stats | null }) {
return (
<div className="flex h-full w-48 shrink-0 flex-col justify-between border-r border-neutral-800 p-3">
<div>
<div className="mb-4 text-lg font-semibold text-neutral-100">ottyl</div>
<nav className="flex flex-col gap-1 text-sm text-neutral-400">
<span className="rounded bg-neutral-800 px-2 py-1 text-neutral-100">Dashboard</span>
<span className="cursor-not-allowed px-2 py-1 opacity-50" title="Coming soon">
Presets
</span>
<span className="cursor-not-allowed px-2 py-1 opacity-50" title="Coming soon">
Settings
</span>
</nav>
</div>
<div className="text-xs text-neutral-500">
{stats ? (
<>
<div>{stats.log_count} logs</div>
<div>seq {stats.first_sequence ?? 0}–{stats.last_sequence ?? 0}</div>
</>
) : (
<div>connecting…</div>
)}
</div>
</div>
)
}