diff --git a/.agent/MEMORY.md b/.agent/MEMORY.md new file mode 100644 index 0000000..960f681 --- /dev/null +++ b/.agent/MEMORY.md @@ -0,0 +1,23 @@ +# MEMORY.md + +Entrypoint for project memory. Read this before working in the repo. + +## Project + +- Repo root: `/home/yigid/repos/pos` +- `site/` — PeacockProject static build output (the source for the port). +- `site-2/` — Astro port (the new site). See `site-2/README.md`. + +## Memories + +- [Port `site` to Astro in `site-2`](./memories/port-site-to-astro.md) — what was ported, decisions, verification, and follow-ups. +- [Redesign: homepage + project page](./memories/redesign-2026-11-01.md) — brief, design decisions, commits, verification. + +## Current state (2026-11-01) + +The Astro port is complete and builds. `cd site-2 && npm run build` emits +`dist/` with `/`, `/project`, `/projects` (redirect), `/devices`, +`/404.html`, assets and device data. + +The homepage and project page were redesigned: solid buttons, no pill labels +or eyebrows, no gradient text, revised copy, and a parts list on `/project`. diff --git a/.agent/memories/port-site-to-astro.md b/.agent/memories/port-site-to-astro.md new file mode 100644 index 0000000..1fc2806 --- /dev/null +++ b/.agent/memories/port-site-to-astro.md @@ -0,0 +1,102 @@ +# Port `site` to Astro (`site-2`) + +Date: 2026-11-01 + +## Task + +`site/` is a static build output. Port it 1:1 to Astro in `site-2/`. + +## What `site/` actually contains + +The current site is a hand-written static site with a dark "jewel" design: + +- `index.html` — homepage +- `project/index.html` — "The Project" page +- `devices/index.html` — generated device cards (from `devices/status.json`) +- `assets/peacock-head.svg`, `assets/peacock-full.svg` — inlined at runtime +- `logo-mark-dark.png` — favicon +- `scripts/gen-devices.py` + `.github/workflows/devices.yml` — device pipeline +- `vercel.json` — static hosting config + +It also contains **stale leftovers from an older Next.js export** (light +"builder design language" theme, branch `origin/site-redesign-light`): +`404.html`, `404/`, `_not-found/`, `_next/`, `index.txt`, `__next*.txt`, +`assets/site.css`, `assets/site.js`. Nothing in the current pages references +them (only `404.html` references `_next`). These were intentionally **not** +ported. + +Git context: HEAD on `master` is commit `52064e2` ("Rework homepage copy …"), +which is the current dark site. The Next.js files date from commits +`46e21d5`/`2679833`/`211fe75`. + +## Astro structure + +``` +site-2/ + astro.config.mjs static, build.format 'directory' + public/ favicon, devices/status.json, devices/img/ + src/ + assets/peacock-*.svg imported with ?raw and inlined at build time + components/ + Header.astro homeHref prop (index uses "#", others "/") + Footer.astro + Mark.astro strips , fill:#xxx -> fill:currentColor + IridescentDefs.astro hidden SVG with the #irid gradient + layouts/Base.astro head/meta/fonts, ambient/grain, page wrapper, shared script + pages/ + index.astro + project.astro + devices.astro renders from public/devices/status.json at build time + 404.astro + scripts/site.js reveals + spine (mark inlining removed) + styles/global.css exact original