Build a Mobile-First Cafe Menu Page With Dietary Filters

Create a thumb-friendly QR code cafe menu with instant dietary tag filters, category jump links, keyword search, and a table order tally.

Text prompt for ChatGPT and Claude

The prompt

Prompt
Act as a senior front-end developer and hospitality UX designer. Build a mobile-first cafe menu page for a fictional neighborhood spot called Cedar & Crumb, designed for customers scanning a table QR code. The page must load with realistic sample menu items across four categories: Coffee, Tea & Matcha, Bakery, and Sandwiches. Follow these rules: 1. Use a thumb-friendly single-column layout centered at 640px max width, with 44px minimum tap targets and zero horizontal overflow from 360px to 1280px. 2. Include a sticky top navigation bar with category jump links, a live keyword search box, and a Reset sample button that clears all filters and selections. 3. Add instant dietary filter toggles for Vegan, Gluten-Free, Dairy-Free, and Nut-Free, updating the visible items and item count immediately. 4. Include an optional table tray counter so guests can tap items to tally a quick order total to show their server. 5. Use a warm, high-contrast palette with system fonts only, no external assets, no form tags, and respect prefers-reduced-motion. Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.

Example output

One HTML file. Save it and open it in any browser.Open full screen (opens in a new tab)

Example: Cedar & Crumb, a mobile-first QR cafe menu with dietary filters and a table tray tally. Guests can tap category jump links, toggle Vegan, Gluten-Free, Dairy-Free, or Nut-Free filters, search by ingredient, and tap items to build a quick order total for their server. Use Reset sample to clear all filters and tray items.

Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Specifying 44px tap targets and a 640px single-column layout ensures the menu feels natural on phones after scanning a QR code.
  • Requiring in-memory filtering with no form tags or external assets guarantees the file runs offline in any browser.
  • Adding a Reset sample button and realistic cafe items makes the page immediately testable without manual setup.

Paste this prompt into ChatGPT, Claude, or Gemini, save the generated code as an .html file, and open it in any browser or preview it in Canvas/Artifacts.

Common edits

  • Swap the sample menu array and color variables to match your own cafe, bakery, or food truck.
  • Add a browser localStorage save or a QR code generator modal if hosting on your own domain.

Reuse it: Use in a workflowTurn into a skillAdapt in the builder

Mini Apps & Tools

Build an Email Signature Generator With Three Layouts in HTML

Create a self-contained email signature builder with three switchable layouts, live preview, and inline-styled table HTML ready to copy.

Mini Apps & Tools

Build a Contractor Quote and Estimate Builder in HTML

A single-file contractor quote builder that separates labour and materials with adjustable markup, tax, deposit calculation, and a clean print view.

Mini Apps & Tools

Build a Unit Economics Calculator for CAC, LTV, and Payback

Create a single-file unit economics calculator with interactive sliders, live CAC and LTV formulas, payback months, and a plain-language health verdict.

Mini Apps & Tools

Build a Keyboard-Friendly To-Do Checklist with Priorities and Filters in One HTML File

A ready-to-paste prompt that makes an AI build a single-file to-do checklist where you can add, reorder, prioritize, filter and export tasks as plain text, all with keyboard shortcuts.

Mini Apps & Tools

Build a Freelance Project Scope and Rate Estimator in One HTML File

Generate ScopeCraft, a self-contained freelance pricing calculator with deliverables checklists, complexity multipliers, rush fees, and an instant client quote.

Mini Apps & Tools

Build a Countdown Timer to Any Date With a Confetti Finish in One HTML File

Get a polished single-file countdown page with a custom event title, a large days-hours-minutes-seconds display and a confetti-and-chime celebration at zero.