Signed-off-by: Yigit BALABAN <balaban@yigid.dev>
1.9 KiB
Peacock // OS — site
Astro port of the static site in ../site (the PeacockProject build output).
Markup, copy, styling and interactions are kept 1:1 with the original.
Commands
npm install
npm run dev # local dev server
npm run build # static build -> dist/
npm run preview # serve dist/
Use pnpm instead of npm if you prefer; both work.
Deploy
Vercel auto-detects Astro: build command npm run build, output directory
dist. No vercel.json is needed.
Structure
public/
logo-mark-dark.png favicon
devices/status.json device data (generated; rendered by the devices page)
devices/img/ per-device photos (webp/png/jpg)
src/
assets/peacock-*.svg peacock marks, inlined at build time
components/ Header, Footer, Mark, IridescentDefs
layouts/Base.astro document shell, fonts, shared script
pages/
index.astro /
project.astro /project
devices.astro /devices (built from public/devices/status.json)
404.astro /404.html
scripts/site.js scroll reveals + path spine
styles/global.css shared design system
scripts/gen-devices.py regenerates status.json + images + wiki pages
.github/workflows/devices.yml CI for the device pipeline
Device pages
src/pages/devices.astro reads public/devices/status.json at build time and
renders the brand-grouped cards and search. To refresh the data, run
python3 scripts/gen-devices.py (needs a peacock-ports checkout; see the
workflow for the CI invocation). The same script also updates the wiki.
Notes on the port
../site also contains leftovers from an older Next.js export (404.html,
_next/, *.txt, assets/site.css, assets/site.js). Those are not part of
the current site and were intentionally not ported. The 404 page was rebuilt
in the current design language instead.