StealThis .dev
Pages Medium

Cookbook — Browse / Search (cuisine · diet filters)

An editorial cookbook browse and search page where readers sift a fictional library of about twelve dishes by cuisine, diet, meal, and maximum cook time. A live search box, a faceted filter sidebar that folds into a mobile drawer, removable active-filter chips, a popular and quick and newest sort control, and a responsive grid of gradient recipe cards with ratings and a save heart all work together, complete with a graceful empty state.

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

Code

Browse / Search (cuisine · diet filters)

A warm, print-inspired recipe browser. A sticky header carries the cookbook brand and a live search box that matches across titles, cuisines, diets, and descriptions. The left sidebar offers faceted filters — cuisine and diet and meal checkboxes plus a set of max-time chips — and every active choice surfaces as a removable chip above the results so it is always clear why a recipe is or is not showing.

The responsive grid renders gradient “photo” cards (no images, just CSS and food emoji) with cuisine kickers, diet badges, star ratings, serving counts, and a save heart that toasts when toggled. A sort control reorders by most popular, quickest, or newest, and the live result count updates with every keystroke. When nothing matches, a friendly empty state invites you to widen the search. On narrow screens the sidebar collapses into a slide-in filter drawer with a scrim and Escape-to-close.

Everything runs on vanilla JavaScript over a single in-memory dataset, so it is easy to drop in real recipes or wire to an API later.

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