StealThis .dev
Pages Medium

Cookbook — Cook Mode (full-screen step-by-step + timers)

A distraction-free, full-screen cook mode that walks you through a recipe one large serif step at a time, with a progress bar, step count, and big touch-friendly Prev and Next controls. Each step carries its own independent countdown timer that beeps and toasts at zero, arrow keys move between steps, and a slide-out drawer lets you peek at the ingredient list and tick off your mise en place while you cook.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Cook Mode (full-screen step-by-step + timers)

A hands-busy, full-screen cooking view built for the moment you are actually at the stove. One step fills the screen in large editorial serif, with a kicker showing “Step n of N”, a warm gradient “photo” plate, and a saffron-to-tomato progress bar that fills as you advance. Prev and Next are oversized touch targets, the step dots double as a jump menu, and a quiet status note reflects the Screen Wake Lock so the display does not dim mid-recipe.

Every step that needs timing carries its own inline countdown — Start, Pause, Resume, and Reset — and the timers run independently, so you can have the simmer ticking on one step while you flip back to read another. When a timer hits zero it plays a short beep, raises a toast, and announces through an aria-live region. The arrow keys move between steps and the space bar starts or pauses the current step’s timer, all keyboard- and screen-reader-friendly with focus-visible rings.

Tap “Ingredients” to slide in a drawer with the full mise en place; check items off as you prep, then dismiss with Escape or the scrim. Food imagery is pure CSS gradient and emoji, the layout collapses to a single column on narrow phones, and the whole thing is vanilla HTML, CSS, and JavaScript with no dependencies.

Illustrative UI only — recipes & nutrition data are fictional, not dietary advice.