StealThis .dev
Pages Easy

Cookbook — Recipe Collection / Cookbook index

An editorial cookbook index page that gathers fictional recipes into a book-like collection. A gradient cover with curator, recipe count and total time sits above chapter sections for Starters, Mains and Desserts, each holding appetizing CSS-gradient recipe cards with times, difficulty and servings. Sticky chapter jump-nav, a save-collection toggle, and a grid or list view switch make it feel like browsing a real seasonal cookbook, all in warm cream tones.

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

Code

Recipe Collection / Cookbook index

A warm, editorial cookbook index built around a single curated collection. The cover pairs a layered gradient “photo” with a serif title, the curator’s name, and a quick summary of how many recipes the book holds and how long it all takes. Below it, recipes are grouped into numbered chapters — Starters, Mains and Desserts — so the page reads like flipping through an actual cookbook.

Each recipe card uses rich CSS gradients and food emoji as appetizing placeholders instead of images, with the dish name in a serif face and time, difficulty and servings underneath. Cards lift on hover and focus, and are fully keyboard-operable.

The interactions are all vanilla JS: a sticky chapter jump-nav with scroll-spy that highlights the section you’re reading, a save-collection button that toggles its state and confirms with a toast, and a grid/list view switch that re-flows the cards between a three-column grid and a single editorial column.

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