Bedstemors Flæskesteg: animated step-by-step Danish roast (Advent of AI Slop Day 4)

This commit is contained in:
hermes committed 2026-12-05 00:20:54 +00:00
commit 7774e3aa1b
16 files changed
+2255

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
# Bedstemors Flæskesteg — Advent of AI Slop, Day 4
> Visualize step by step how to cook your favorite dish. Is it your grandmother's recipe?
Grandma's flæskesteg — Danish roast pork with crackling, rødkål and brunede
kartofler — told in ten steps through one animated canvas kitchen.
- **Ten steps, one kitchen.** Each step swaps the canvas scene: scoring the
crackling, the glowing oven at 200 °C, bubbling rødkål, the amber caramel
swirl for brunede kartofler, carving, and the final plate by candlelight.
- **Timers that actually run.** Every timed step has a real countdown. Demo
mode (default) runs them 60× faster so you can finish Christmas dinner in
the time it takes to boil a egg.
- **Servings slider** scales the shopping list from 1 to 10 people.
- **Progress + persistence.** Checked steps, servings and demo mode survive a
reload (localStorage). Complete all ten for the *Velbekomme!* confetti.
The crackling must crack, not chew.
## Stack
Vite + TypeScript, no dependencies beyond the template. The kitchen is a plain
2D canvas; every animation is a pure function of time (no particle state).
## Develop
```sh
pnpm install
pnpm dev
pnpm build # tsc + vite build
```
Built with `VITE_SITE_URL=https://pages.obahan.xyz/lullu/advent-of-slop-04-flaeskesteg`
so the og: tags resolve. `scripts/smoke4.py` smoke-tests the built `dist/`
with headless Playwright (interactions, timer, persistence, win overlay).
Live: <https://pages.obahan.xyz/lullu/advent-of-slop-04-flaeskesteg/>