Design a restaurant menu with categories, item cards, dietary icons, and order builder.…
Share
Download ▾
Private research annotation
Sign in to add a private research label or note.
Design a restaurant menu with categories, item cards, dietary icons, and order builder. Pre-populated with sample menu.
AssistantLet me start by exploring the project structure to understand what we're working with.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Let me check the current index.css and vite config:
Now I'll build the full restaurant menu application. Let me update the title and create all the necessary files.
Now let me create the full application. I'll create several component files and the main App.tsx.
Now let me create the main App.tsx:
Now let me update the CSS to add the custom scrollbar and animation:
The project builds successfully. Let me verify it looks complete by listing all files:
The restaurant menu app is built and ready. Here's a summary of what was created:
🍽️ Gourmet Bistro - Restaurant Menu App
Files Created
src/data/menuData.ts — Pre-populated menu with 30 items across 6 categories:
- 🧆 Starters (5) — Truffle Fries, Bruschetta, Calamari, Beet Salad, Tuna Tartare
- 🍽️ Mains (7) — Herb Chicken, Grilled Salmon, Wagyu Burger, Mushroom Risotto, Vegan Bowl, Lamb Rack, Thai Noodles
- 🍝 Pasta (4) — Carbonara, Lobster Linguine, Arrabbiata, Truffle Pappardelle
- 🍕 Pizza (4) — Margherita, Pepperoni & Honey, Prosciutto & Arugula, Vegan Supreme
- 🍰 Desserts (4) — Tiramisu, Lava Cake, Panna Cotta, Vegan Mango Tart
- 🍹 Drinks (6) — Lemonade, Espresso, Matcha Latte, Italian Soda, Beer Flight, Negroni
src/components/DietaryIcons.tsx — Smart icon badges for: Vegetarian 🥬, Vegan 🌱, Gluten-Free 🌾, Spicy 🌶️, Contains Nuts 🥜, Dairy-Free 🧀
src/components/MenuCard.tsx — Item card with name, description, price, dietary icons, and "Add to Order" button. Popular items get a ⭐ badge.
src/components/CategorySection.tsx — Groups items by category with icon headers.
src/components/CategoryNav.tsx — Sticky horizontal scrollable nav with active state highlighting.
src/components/OrderBuilder.tsx — Full order management with:
- Desktop: Persistent sidebar panel with scrollable item list
- Mobile: Floating action button → bottom sheet overlay with slide-up animation
- Quantity +/- controls, remove button, subtotal/tax/total calculation
- Empty state, clear all, and place order button
src/components/Header.tsx — Brand header with restaurant name, open hours, and location.
src/App.tsx — Main layout with responsive grid (menu + sidebar), scroll-to-category, and smooth interactions.
Files built: index.html, src/data/menuData.ts, src/components/DietaryIcons.tsx, src/components/MenuCard.tsx, src/components/CategorySection.tsx, src/components/CategoryNav.tsx, src/components/OrderBuilder.tsx, src/components/Header.tsx, src/App.tsx, src/index.css
Dataset releases
Not yet included in a published release.