Move odometer into the shared footer

Widget + script + styles live in Base.astro now, so every page ticks;
index.astro is back to just rendering the vault homepage.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
wes
2026-07-15 15:21:17 -04:00
co-authored by Claude Opus 4.8
parent 13b23ace3d
commit f9e45f32f8
3 changed files with 87 additions and 101 deletions
+7 -5
View File
@@ -37,9 +37,11 @@ Defaults to the kotov vault copy. On cyrion use `deploy/build.sh`
`docker compose -f deploy/docker-compose.yml up -d` serves `dist/` on
port 18100 (`garden-next.c0smere.net` while staging).
## Homepage extras
## Layout extras
`src/pages/index.astro` renders the vault's `index.md` and appends the
bandwidth odometer, fed by `https://api.c0smere.net/bandwidth/odometer`.
The widget animates at the lifetime average rate from a fetched baseline —
it never reflects live throughput, and hides itself if the API is down.
Every page carries a left sidebar tree of the whole garden (folders
collapsible, current page highlighted; flows after the footer on narrow
screens) and the bandwidth odometer in the footer, fed by
`https://api.c0smere.net/bandwidth/odometer`. The widget animates at the
lifetime average rate from a fetched baseline — it never reflects live
throughput, and hides itself if the API is down.