StealThis .dev
Pages Medium

Cookbook — Recipe Page (ingredients · steps · notes)

A polished editorial recipe page for a cookbook library, pairing a serif headline with a warm cream layout. A gradient food-photo hero opens onto meta badges for prep, cook and total time, servings and diet tags, then a two-column body of check-off ingredients beside numbered method steps with inline tips and notes. A sticky action bar saves, prints and shares, and a live counter tracks how many ingredients you have gathered.

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

Code

Recipe Page (ingredients · steps · notes)

A full cookbook recipe detail page built with an editorial serif/sans pairing on warm cream surfaces. The hero uses layered CSS radial gradients and food emoji to evoke a glossy food photograph — no images or libraries — beside a serif dish title, a cuisine kicker, a drop-cap intro, and a row of meta badges (prep, cook, total time, servings, difficulty) plus dietary tags.

The two-column body keeps a sticky ingredient checklist on the left and numbered method steps on the right, with inline tip and note callouts. Tick ingredients off and they strike through while a live counter reports how many of the eleven you have gathered; a reset button clears the list. The sticky action bar saves the recipe (toggling its pressed state), prints via the browser dialog, and shares using the Web Share API with a clipboard fallback. A “jump to method” anchor scrolls to the steps.

Everything is keyboard-usable with visible focus rings, aria-live regions for the counter and toast, and a print stylesheet that drops the chrome for a clean recipe card.

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