write a simple ui for billing of a restaurant
- User
write a simple ui for billing of a restaurant
Assistant
I'll build a polished restaurant billing (POS) interface. Let me first look at the project structure and grab some food photography for the menu items.
Good — I have dessert/drink shots. Let me get a few more mains (pizza, pasta, steak, salads) and check the existing config files.
Setup confirmed: Tailwind v4 with a clean slate. Now I'll install Lucide icons, set up fonts/title, and create the design system CSS plus menu data.
Foundation is in place. Now the components: the menu card, the receipt-style bill panel, and the payment modal — plus the main App that wires everything together.
All components are in place. Let me fix one invalid arbitrary-value shadow (a CSS var with an opacity modifier won't parse), check the
cnutility signature, then build.Everything checks out. Building the project now.
Build succeeded. Ember & Oak — a restaurant billing / POS interface — is ready.
What's inside
Layout — a two-pane point-of-sale screen on a warm, dark "ember" theme:
- Header — brand mark, live clock with date, a table picker (01–12), and a cashier chip with shift status
- Menu side — "Tonight's menu" with 16 dishes across Starters, Mains, Drinks, and Desserts, each with food photography, a price chip, and tags like Popular / Chef's pick
Billing workflow
- Tap any card (or its Add button) to add items — the card lights up with a brass ring and an inline quantity stepper
- Category pills with live dish counts, plus dish search
- The bill is a real paper receipt — zig-zag torn edges, letterhead, table/cashier/time metadata, dashed dividers, per-line quantity steppers, and computed subtotal → 8% tax → 5% service → total due
- Payment method selector (Cash / Card / QR) and a
Charge $…button that stays disabled while the bill is empty
Payment flow
- Charging plays a "Processing payment…" state, then a success modal with an animated brass check ring, amount charged, order number, and a "Start new bill" button that increments the order counter
Details — Fraunces serif display type, IBM Plex Mono receipt figures with tabular numerals, staggered card entrances, pop animations on quantity and total changes, ambient brass glows with a film-grain overlay, and Lucide icons throughout.
Files built:
index.html,src/index.css,src/data/menu.ts,src/utils/format.ts,src/components/MenuCard.tsx,src/components/BillPanel.tsx,src/components/PaymentModal.tsx,src/App.tsx
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.