用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
为桌上二维码设计的移动优先数字菜单,做出来更像温暖的 bistro 纸质菜单,而不是一个 App。390px 手机是主要设计尺寸;在桌面端,同一个单列只是居中并加上安静的分隔细线——没有第二套布局。页面以暖色 bistro 灯光下招牌菜品的俯拍照片开场,上方是餐厅字标和桌号标签。吸顶分类标签会随滚动高亮当前菜单分区;过敏原避让标签(麸质、乳制品、坚果、贝类)会淡化所有不匹配的菜品,并附上诚实免责声明:标签仅供参考,不构成保证。菜品有两种诚实的行样式:带方形缩略图和陶土色添加按钮的图片行,以及带点线引导到价格的经典文字行,就像真正的纸质菜单。点击任意菜品会打开底部抽屉详情,包含更大的照片、过敏原标签和数量步进器。点单记录只是统计,不是结账:固定底栏统计件数和总价,点击后弹出干净列表给服务员看,呼叫服务员按钮会切换成“出示此屏幕”状态——任何地方都不声称联网。所有内容仅保存在本地存储中。奶油纸色底、胡桃木色墨、单一陶土色点缀,Lora 搭配 Asap;抽屉滑动,标签下划线,其余不动,prefers-reduced-motion 下只保留平淡淡入。在一个内容文件中替换品牌、桌号标签和服务说明;第二个演示案例把菜单变成葡萄酒吧的吧台卡。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Restaurant QR Menu Page Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else. ## Brief A mobile-first single-page QR menu with warm bistro styling: a signature-dish overhead hero, sticky scroll-spy category tabs, allergen filter chips that dim non-matching dishes, photo and text menu rows, a bottom-sheet dish detail with quantity stepper, a locally stored order tally presented to the server, and a call-waiter button with a show-this-screen confirmation state. - Audience: Bistros, cafés, wine bars and any table-service restaurant replacing an ugly PDF, plus the studios building for them. - Goal: Let a guest read the menu comfortably one-handed, filter around an allergy, build a tally of what they want, and show one clean screen to the server — with zero staff-facing technology implied. - Tone: Warm, plain-spoken and a little homely — the voice of a chalkboard, not an app; short dish lines, honest sample-copy notes. ## Stack - Framework: Vite 5 + React 18 + TypeScript - Styling: Tailwind CSS 3.4 - Libraries: tailwindcss (MIT), motion (MIT), lucide-react (ISC), @fontsource/lora (OFL), @fontsource/asap (OFL) - Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs. - Setup: - Scaffold with npm create vite@latest restaurant-qr-menu-page -- --template react-ts; add [email protected], postcss and autoprefixer as dev dependencies; add motion, lucide-react, @fontsource/lora and @fontsource/asap as dependencies. - vite.config.ts: base './', build.sourcemap false, build output dist/. - tailwind.config.js: extend colors paper #FAF3E7, paperdeep #F1E6D2, linen #FFFDF8, benchline #E3D5BC, walnut #4A3628, walnutsoft #7A6753, terracotta #C05B3C, terracottadeep #A34830; fontFamily display 'Lora' and sans 'Asap'; radius: chip 999px, card 14px, photo 12px, sheet 20px. - postcss.config.js: tailwindcss + autoprefixer. - Mobile-first column: the app root is a max-w-[480px] mx-auto column; below 480px it fills the viewport, at md and up it gains 1px benchline side borders on a paperdeep page ground — the layout never becomes multi-column. - src/components/BottomSheet.tsx: a reusable sheet — fixed bottom, linen ground, 20px top radius, 1px benchline top border, backdrop rgba(74,54,40,0.35); opens with translateY 100%→0 over 320ms ease-out; closes on backdrop tap and on its X; body scroll locked while open. - src/hooks/useScrollSpy.ts: IntersectionObserver over the five category sections; the tab matching the topmost visible category activates, and the tab row auto-scrolls horizontally to keep the active chip visible. - Order state in src/hooks/useOrder.ts: {dishId: qty} persisted to localStorage key 'qrOrder'; exposes add/remove/step and a count/total derived from the dish list. - src/lib/motion.ts: shared variants — reveal (opacity 0→1, y 14→0, 500ms ease-out, 60ms stagger, whileInView once), pop (scale 0.9→1, 180ms, for count and add-button feedback) — with useReducedMotion using plain 150ms opacity fades and sheets fading in place. - Keep every user-facing string and the whole menu (brand, table label, service note, five categories, each dish {id, name, one-line description, price, allergens, photo?}, footer address and hours) in src/content.ts; sections read from it so values swap in one place. - index.html: <title>[BRAND] — Menu</title> plus a drawn-in-code favicon.svg (a terracotta circle on the paper ground, like a plate); no other meta work. ## Variables - [BRAND] — Restaurant name (default: "Rue Noisette"). Invented bistro name for the wordmark, page title and footer. - [TABLE] — Table label (default: "Table 7"). The chip under the wordmark naming where this QR sits (e.g. 'Table 7', 'Stool 12') — from the QR the guest scanned. - [SERVICE] — Service note (default: "Service included"). The one-line service note shown under the header and on the tally sheet (e.g. '15% service added'). - [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/restaurant-qr-menu-page in the footer (default: yes; delete this line to remove it) The copy under Pages & Sections is written for the default values. If your values differ, rewrite every headline, paragraph, label and image for them — same length, tone and structure. Layout, colors, type and motion stay as described. Keep all copy, image paths and links in one content file (for example `src/content.ts`), keyed by section, so the content can be swapped later without touching components. ## Design ### Colors - Paper `#FAF3E7` — Page ground — warm cream paper, the whole menu. - Paper deep `#F1E6D2` — Sticky tab bar ground, hover tints, desktop page ground outside the column. - Linen `#FFFDF8` — Cards, bottom sheets, photo caption card — near-white linen. - Bench line `#E3D5BC` — Hairlines, borders, dotted price leaders, chip outlines. - Walnut `#4A3628` — Primary ink — dish names, prices, headings, active tab fill; warm dark brown, never black. - Walnut soft `#7A6753` — Secondary text: descriptions, captions, notes. - Terracotta `#C05B3C` — The one accent: add buttons, active filter chips, CTA pills, the signature label, call-waiter outline. - Terracotta deep `#A34830` — Pressed states on terracotta. ### Typography - Display — wordmark, dish names, sheet titles (warm serif, italic accents): Lora (OFL), weights 500/600 - Text — descriptions, chips, buttons, notes (friendly rounded sans): Asap (OFL), weights 400/500/600 ### Layout & motion - Spacing: Menu-tight, thumb-friendly: one 480px column; 16px page padding; category blocks py-24px with a Lora heading and a benchline rule; rows 16px tall padding with 12px gaps; every tap target ≥ 44px; the tally bar reserves 72px so the last dish never hides behind it. - Radius: Friendly and round: 999px chips, 14px cards, 12px photo thumbs, 20px sheet tops; the dotted price leaders are the only straight lines. - Motion: Bottom sheets slide up translateY 100%→0 over 320ms ease-out with a linen backdrop fade (250ms); closing reverses in 240ms. - Motion: Sticky tabs: the active chip fills walnut with paper text (200ms); the tab row auto-scrolls to keep it centered; a 2px terracotta underline slides between tabs (240ms). - Motion: Allergen filters: non-matching rows animate to 35% opacity with grayscale(0.5) and their add buttons disable (250ms); matching rows stay full color. - Motion: Add-button feedback: the terracotta plus scales 0.9→1 (180ms) and the tally bar's count pops once; the bar total slides up 80ms after a change. - Motion: Call-waiter state: the outline pill cross-fades to a walnut confirmation card with a bell icon (250ms) — a screen state, never a network claim. - Motion: Reveals: category blocks fade up gently (y 14→0, 500ms, 60ms stagger) via Motion whileInView, once. - Motion: prefers-reduced-motion: sheets fade in place without sliding, pops and underlines become instant, reveals become 150ms opacity fades. - Imagery: One bistro session: appetizing overhead (top-down) food photography on ceramic plates at a warm walnut table, every shot in the same warm pendant bistro light pooling from the upper left, soft shadows, cream-and-walnut palette with terracotta touches, gentle steam and gloss, honest portions — six dishes only; every other dish is a text row with a dotted leader, like a paper menu. No readable text in frame (no menus, no labels), no logos, no people. The photographs are generated by VibeFather and downloaded into public/images. ## Pages & Sections ### [BRAND] — Menu (`index.html`) 1. **Bistro header** — Non-sticky top block on paper: the [BRAND] wordmark in Lora 600 italic 24px walnut; beside it a quiet table chip ([TABLE]) — linen ground, benchline border, a 6px terracotta dot before the label, Asap 500 13px walnut. One line beneath, Asap 400 13px walnutsoft: 'Kitchen open till 22:00 · [SERVICE] · this menu is sample copy for a demo bistro.' Layout: Column padding 16px, py-16px; chip right-aligned on the same baseline as the wordmark; wraps below on 320px screens. Motion: None — the header scrolls away and the tabs take over. 2. **Signature hero** — The visual anchor: a full-column overhead photograph (public/images/hero-steak.webp, 4:3, 12px radius) of the house signature under warm bistro light. Overlapping its bottom edge, a linen caption card (14px radius, soft shadow): a small terracotta label 'FROM THE PASS' in Asap 600 11px uppercase tracked; 'Steak au poivre' in Lora 600 22px walnut; one line Asap 13px walnutsoft: 'the dish that named the street'; price '$26' Asap 600 walnut right-aligned. Tapping the card opens the dish's detail sheet. Layout: Photo full column width (aspect 4:3, object-cover); caption card overlaps -28px with 16px side insets. Motion: Photo fades up on load (500ms); caption card follows 100ms later; no parallax on mobile. 3. **Category tabs** — Sticky tab row (top-0, z-30, paperdeep ground at 92% opacity with blur, 1px benchline bottom): five chips in a horizontally scrolling row — 'Starters', 'Mains', 'Sides', 'Desserts', 'Drinks' — Asap 500 14px; the active chip is walnut ground with paper text, the rest linen with benchline borders. The tabs scroll-spy the categories below and the row auto-scrolls to keep the active chip centered; tapping a chip scrolls smoothly to its category. Layout: Full-width sticky bar, 48px tall, chips 36px tall with 8px gaps, row padding-x 16px. Motion: Active fill 200ms; a 2px terracotta underline slides between chips (240ms); smooth scroll to category (400ms, native scroll-behavior under reduced motion). 4. **Allergen filters** — One row under the tabs (not sticky): label 'Avoid:' in Asap 500 13px walnutsoft, then four chips — 'Gluten', 'Dairy', 'Nuts', 'Shellfish' — linen ground, benchline border, walnut text; an active chip fills terracotta with linen text. Filtering dims non-matching dishes (35% opacity, grayscale 0.5, add buttons disabled) across every category. Disclaimer line beneath, Asap 12px walnutsoft: 'Filters are a guide from our sample menu — always tell your server about allergies.' Layout: Chips wrap to two lines at 390px; row py-12px. Motion: Dim/undim 250ms per row; active chip fill 200ms. 5. **Menu — five categories** — Five category blocks, each with a Lora 600 18px walnut heading, a benchline rule, and two honest row styles. PHOTO ROWS (six dishes, 1:1 thumb 88px, 12px radius): 'French onion soup' — 'double broth, gruyère lid, the proper way' — $9 — dairy, gluten (onion-soup.webp); 'Steak au poivre' — 'the signature; frites underneath' — $26 — dairy (hero-steak.webp reused); 'Duck confit' — 'slow leg, potatoes cooked in its fat' — $24 — dairy (duck-confit.webp); 'Moules frites' — 'a bowl of mussels, bread for the broth' — $21 — shellfish, dairy (mussels.webp); 'Chocolate tart' — 'dark, barely set, salt on top' — $9 — dairy, gluten (choc-tart.webp); 'House red, carafe' — 'the one the staff drinks' — $18 — (wine-carafe.webp). TEXT ROWS with dotted leaders to the price: 'Pâté de campagne' — 'toast, cornichons' — $11; 'Little gem salad' — 'buttermilk, herbs' — $8 — dairy; 'Rainbow trout amandine' — 'brown butter, almonds' — $23 — nuts, dairy; 'Frites' — 'twice-cooked' — $5; 'Haricots verts' — 'shallot, butter' — $6 — dairy; 'Crème brûlée' — 'cracked to order' — $8 — dairy; 'Badoit, bottle' — 'the fizzy one' — $6; 'Espresso' — 'short, walnut-forward' — $3. Every row carries a 32px terracotta add button (lucide plus) at the right; allergen tags sit as tiny benchline chips under the description. STARTERS: soup, pâté, salad · MAINS: steak, duck, mussels, trout · SIDES: frites, haricots · DESSERTS: tart, brûlée · DRINKS: carafe, Badoit, espresso. Layout: Blocks py-24px; photo rows: thumb left, text middle (name Lora 600 17px, description Asap 13px walnutsoft one line, allergen chips), price Asap 600 walnut and add button right, stacked when narrower than 360px; text rows: name and price on one line with a dotted benchline leader between, description below in 13px walnutsoft. Motion: Blocks fade up on scroll (500ms, 60ms stagger); add-button press scales 0.9→1 (180ms); rows dim per the filters. 6. **Dish detail sheet** — Opening any dish opens the BottomSheet: a 4:3 photo across the sheet top (12px radius), the dish name in Lora 600 24px walnut, the full description in Asap 15px walnutsoft (two lines), allergen chips (linen, benchline), and a quantity stepper (walnut-outline minus/plus, count in Asap 600). Bottom of the sheet: a walnut pill 'Add to order — $26' whose label reflects quantity; adding closes the sheet and pops the tally count. Layout: Sheet max-height 82vh, scrollable inside; 20px top radius; X (lucide) top-right on the photo. Motion: Sheet slides up 320ms; backdrop fades 250ms; the Add pill press scales 0.97; reduced motion: sheet fades in place. 7. **Order tally and call-waiter** — Fixed bottom bar (72px, linen ground, 20px top radius, benchline top border): left '3 items · $47' in Asap 600 walnut (hidden shows 'Your order is empty — walnutsoft' when none); right a terracotta pill 'Show server' (lucide receipt) opening the tally sheet. The sheet: 'For your server' in Lora 600 20px; line items with name, walnut-outline qty steppers, line total, and a small x to remove; then a benchline rule, subtotal, the service note '[SERVICE]' in Asap 13px walnutsoft, the total in Lora 600 22px; an outline terracotta pill 'Call waiter' (lucide bell) that swaps to a walnut confirmation card (250ms): bell icon, linen text 'Screen ready — show your server when they pass.' Closing line, Asap 12px walnutsoft centered: 'This tally lives on your phone only — nothing was sent.' The tally persists in localStorage and says so. Layout: Bar spans the column width (fixed within the 480px column, inset on desktop); sheet like the dish sheet; items list capped with internal scroll. Motion: Bar count pops (180ms) on add; total slides up 80ms; sheet slide 320ms; call-waiter cross-fade 250ms; reduced motion: fades only. 8. **Footer** — Benchline top rule, py-24px: the [BRAND] wordmark small (Lora 600 16px), one line Asap 13px walnutsoft: '9 Larkspur Lane · Tue–Sun 17:00–22:00'; a second line Asap 12px walnutsoft: 'An invented demo bistro — dishes, prices and allergens are sample copy.'; optional [CREDIT] link. No dates beyond static hours, no social row. Layout: Centered column text, 16px padding. Motion: None. ## Assets - image: Download https://media.vibefather.ai/assets/388ef5f3-17ea-4f4a-a4af-a482bca86e24/hero-steak.webp to public/images/hero-steak.webp. Alt: 'Overhead view of steak au poivre with peppercorn sauce and frites on a ceramic plate at a walnut bistro table.' Used as the signature hero (4:3) and its Mains row thumb. Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template. - image: Download https://media.vibefather.ai/assets/388ef5f3-17ea-4f4a-a4af-a482bca86e24/onion-soup.webp to public/images/onion-soup.webp. Alt: 'Overhead view of French onion soup with a melted cheese lid in a ceramic crock.' Starters row thumb (1:1). Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template. - image: Download https://media.vibefather.ai/assets/388ef5f3-17ea-4f4a-a4af-a482bca86e24/duck-confit.webp to public/images/duck-confit.webp. Alt: 'Overhead view of duck confit with potatoes in a warm ceramic plate.' Mains row thumb (1:1). Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template. - image: Download https://media.vibefather.ai/assets/388ef5f3-17ea-4f4a-a4af-a482bca86e24/mussels.webp to public/images/mussels.webp. Alt: 'Overhead view of a bowl of mussels in broth with fries and bread beside it.' Mains row thumb (1:1). Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template. - image: Download https://media.vibefather.ai/assets/388ef5f3-17ea-4f4a-a4af-a482bca86e24/choc-tart.webp to public/images/choc-tart.webp. Alt: 'Overhead view of a dark chocolate tart slice with flakes of salt on a small plate.' Desserts row thumb (1:1). Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template. - image: Download https://media.vibefather.ai/assets/388ef5f3-17ea-4f4a-a4af-a482bca86e24/wine-carafe.webp to public/images/wine-carafe.webp. Alt: 'Overhead view of a small carafe of red wine and one glass on a walnut table.' Drinks row thumb (1:1). Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template. - icon: lucide-react (ISC) via npm — plus and minus on add buttons and steppers, x to close sheets and remove items, receipt on the Show-server pill, bell on the call-waiter button and its confirmation, utensils as a tiny accent in the header line. No other iconography: no emoji, no allergen pictogram sets, no restaurant logos. Dishes without photographs are quiet text rows with dotted leaders — never placeholder boxes. - font: @fontsource/lora (OFL, weights 500 and 600, plus the 500 italic) and @fontsource/asap (OFL, weights 400, 500, 600), imported in src/main.tsx; never loaded from fonts.googleapis.com or any CDN. List both families and the six photographs in ASSETS.md at the project root: path, source, generator or author, license. ## Don'ts - No backend, no ordering, no payments, no network calls, no analytics: the tally, filters and sheets are client state persisted to localStorage only, and the copy keeps saying the tally is for showing the server. - The call-waiter button never claims to reach anyone: it only changes the screen to a show-this-screen confirmation state — no staff-network implications anywhere. - Allergen tags are sample guidance, never dietary guarantees; the disclaimer line under the filters must stay. - No real restaurants, chains or their menus: the venue, dishes, prices and address are invented, and [BRAND] is used everywhere a name appears. - Photographs are overhead bistro dishes only: no readable text in frame (no menus, boards or labels), no logos, no people; if a generated image ever shows writing or a face, replace it. - No real-clock anything: opening hours and 'kitchen open till 22:00' are static sample copy, and no dates, years or 'today's specials' appear. - No CDN anything: fonts ship through Fontsource packages, icons from lucide-react, photographs from public/images; never hotlink, never use Unsplash/Pexels/Pixabay or placeholder-image services. - Production build: single command, minified, no source maps, no src/ in the output, relative paths (Vite base './'); keep dist/ under 20 MB by compressing each photograph to ≤ 300 KB WebP. - Mobile-first is the design: 390×844 is the primary target and the desktop (1440×900) view simply centers the same 480px column with hairline sides — never a multi-column desktop layout, no hidden desktop-only content; zero console errors at both sizes. - Bottom sheets and the tally bar must respect safe areas (env(safe-area-inset-bottom)) and keep every tap target ≥ 44px. - Keep the warm-bistro direction locked: paper ground, walnut ink, one terracotta accent, Lora over Asap, dotted leaders and friendly radii; no dark mode, no neon, no glassmorphism, no fast springs — everything ≤ 320ms. - Respect prefers-reduced-motion: sheets fade in place, pops and sliding underlines become instant, reveals become 150ms fades. - All copy, labels, sample data and alt text in US English, living in src/content.ts; when [BRAND], [TABLE] or [SERVICE] change, rewrite dishes, prices and hours to fit the new venue instead of leaving bistro copy under a wine bar. - List every third-party file (two Fontsource families, lucide icons, six photographs) in ASSETS.md at the project root: path, source, license. --- — Prompt by VibeFather · https://vibefather.ai/t/restaurant-qr-menu-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 餐厅二维码菜单页面 完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。 ## 简介 一个移动优先的单页二维码菜单,采用温暖的小酒馆风格:招牌菜俯拍主视觉区、粘性滚动监听分类标签、可淡化不匹配菜品的过敏原筛选标签、图文菜单行、带数量步进器的底部抽屉式菜品详情、本地存储并呈现给服务员的点单统计,以及一个带“展示此屏幕”确认状态的呼叫服务员按钮。 - 受众:小酒馆、咖啡馆、葡萄酒吧以及任何用此替代丑陋 PDF 的餐桌服务餐厅,还有为其构建的工作室。 - 目标:让客人单手舒适地阅读菜单,围绕过敏进行筛选,建立他们想要的点单统计,并向服务员展示一个干净的屏幕——不暗示任何面向员工的技术。 - 语气:温暖、平实、略带家常感——是黑板的嗓音,而非应用的嗓音;简短的菜品行,诚实的示例文案注释。 ## 技术栈 - 框架:Vite 5 + React 18 + TypeScript - 样式:Tailwind CSS 3.4 - 库:tailwindcss(MIT)、motion(MIT)、lucide-react(ISC)、@fontsource/lora(OFL)、@fontsource/asap(OFL) - 构建:`npm run build` → `dist/` 中的静态文件。无后端、无服务器代码、无外部 API。 - 设置: - 使用 npm create vite@latest restaurant-qr-menu-page -- --template react-ts 搭建脚手架;将 [email protected]、postcss 和 autoprefixer 添加为开发依赖;将 motion、lucide-react、@fontsource/lora 和 @fontsource/asap 添加为依赖。 - vite.config.ts:base './',build.sourcemap false,构建输出 dist/。 - tailwind.config.js:扩展颜色 paper #FAF3E7、paperdeep #F1E6D2、linen #FFFDF8、benchline #E3D5BC、walnut #4A3628、walnutsoft #7A6753、terracotta #C05B3C、terracottadeep #A34830;fontFamily display 'Lora' 和 sans 'Asap';radius:chip 999px、card 14px、photo 12px、sheet 20px。 - postcss.config.js:tailwindcss + autoprefixer。 - 移动优先列布局:应用根元素是 max-w-[480px] mx-auto 列;低于 480px 时填满视口,在 md 及以上时在 paperdeep 页面底色上获得 1px benchline 侧边框——布局永远不会变成多列。 - src/components/BottomSheet.tsx:可复用面板——固定底部、linen 底色、20px 顶部圆角、1px benchline 顶部边框、背景遮罩 rgba(74,54,40,0.35);以 translateY 100%→0 在 320ms ease-out 内打开;点击背景遮罩和其 X 关闭;打开时锁定 body 滚动。 - src/hooks/useScrollSpy.ts:对五个分类区块使用 IntersectionObserver;与最顶部可见分类匹配的标签激活,标签行自动水平滚动以保持活动 chip 可见。 - src/hooks/useOrder.ts 中的订单状态:{dishId: qty} 持久化到 localStorage 键 'qrOrder';暴露 add/remove/step 以及从菜品列表派生的 count/total。 - src/lib/motion.ts:共享变体——reveal(opacity 0→1,y 14→0,500ms ease-out,60ms 交错,whileInView once)、pop(scale 0.9→1,180ms,用于计数和添加按钮反馈)——使用 useReducedMotion 时使用普通 150ms 透明度淡入和面板原地淡入。 - 将每个面向用户的字符串和整个菜单(品牌、桌号标签、服务说明、五个分类、每道菜 {id, name, one-line description, price, allergens, photo?}、页脚地址和营业时间)保留在 src/content.ts 中;各区块从中读取,以便值在一处替换。 - index.html:<title>[BRAND] — Menu</title> 加上代码绘制的 favicon.svg(paper 底色上的 terracotta 圆形,像盘子);无其他 meta 工作。 ## 变量 - [BRAND] — 餐厅名称(默认:"Rue Noisette")。为字标、页面标题和页脚虚构的小酒馆名称。 - [TABLE] — 桌号标签(默认:"Table 7")。字标下方的小标签,标明此二维码所在的位置(例如 'Table 7'、'Stool 12')——来自客人扫描的二维码。 - [SERVICE] — 服务说明(默认:"Service included")。显示在页眉下方和账单上的一行服务说明(例如 '15% service added')。 - [CREDIT] — 在页脚保留一个小型 "Template by VibeFather" 链接,指向 https://vibefather.ai/t/restaurant-qr-menu-page(默认:是;删除此行即可移除) 页面与区块下的文案是按默认值编写的。如果你的值不同,请为它们重写每个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。 将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便日后无需改动组件即可替换内容。 ## 设计 ### 颜色 - 纸色(Paper)`#FAF3E7` — 页面底色 — 温暖的奶油纸张色,覆盖整个菜单。 - 深纸色(Paper deep)`#F1E6D2` — 吸顶标签栏底色、悬停色调、栏外桌面页面底色。 - 亚麻色(Linen)`#FFFDF8` — 卡片、底部弹层、照片说明卡 — 近白亚麻色。 - 长凳线色(Bench line)`#E3D5BC` — 细线、边框、点状价格引导线、标签描边。 - 胡桃木色(Walnut)`#4A3628` — 主墨色 — 菜品名、价格、标题、激活标签填充;温暖的深棕色,绝不用黑色。 - 柔胡桃木色(Walnut soft)`#7A6753` — 次要文本:描述、说明、注释。 - 陶土色(Terracotta)`#C05B3C` — 唯一强调色:添加按钮、激活筛选标签、CTA 胶囊按钮、招牌标签、呼叫服务员描边。 - 深陶土色(Terracotta deep)`#A34830` — 陶土色上的按下状态。 ### 字体排印 - 展示字体 — 字标、菜品名、弹层标题(温暖衬线体,斜体点缀):Lora(OFL),字重 500/600 - 文本字体 — 描述、标签、按钮、注释(友好圆润无衬线体):Asap(OFL),字重 400/500/600 ### 布局与动效 - 间距:菜单紧凑、适合拇指操作:单列 480px;页面内边距 16px;分类区块 py-24px,带 Lora 标题和一条长凳线分隔线;行内边距 16px 高,间距 12px;每个点击目标 ≥ 44px;计数栏预留 72px,确保最后一道菜永远不会被它遮住。 - 圆角:友好而圆润:999px 标签、14px 卡片、12px 照片缩略图、20px 弹层顶部;点状价格引导线是唯一的直线。 - 动效:底部弹层以 translateY 100%→0 在 320ms ease-out 内上滑,并伴随亚麻色背景淡入(250ms);关闭时以 240ms 反向执行。 - 动效:吸顶标签:激活标签以胡桃木色填充、纸色文字(200ms);标签行自动滚动使其保持居中;一条 2px 陶土色下划线在标签之间滑动(240ms)。 - 动效:过敏原筛选:不匹配的行以 35% 不透明度、grayscale(0.5) 动画过渡,其添加按钮禁用(250ms);匹配的行保持全彩。 - 动效:添加按钮反馈:陶土色加号从 0.9→1 缩放(180ms),计数栏的数字弹跳一次;变更后 80ms,栏内总数上滑。 - 动效:呼叫服务员状态:描边胶囊按钮交叉淡入为带铃铛图标的胡桃木色确认卡(250ms)—— 一种屏幕状态,绝不代表网络请求。 - 动效:显现:分类区块通过 Motion 的 whileInView 轻柔淡入上移(y 14→0,500ms,60ms 交错),仅一次。 - 动效:prefers-reduced-motion:弹层原地淡入而不滑动,弹跳和下划线变为即时,显现变为 150ms 不透明度淡入。 - 图像:一个 bistro 场景:在温暖胡桃木桌面的陶瓷盘上,俯拍(top-down)诱人的食物摄影,每张照片都在同样的温暖吊灯 bistro 光线中,光线从左上角倾泻,柔和阴影,奶油与胡桃木色调配以陶土色点缀,轻柔蒸汽与光泽,诚实的分量 —— 仅六道菜;其他每道菜都是带点状引导线的文本行,像纸质菜单。画面中无可读文字(无菜单、无标签),无标志,无人物。照片由 VibeFather 生成并下载到 public/images。 ## 页面与区块 ### [BRAND] — 菜单(`index.html`) 1. **Bistro 页头** — 纸质背景上的非吸顶顶部区块:[BRAND] 字标使用 Lora 600 斜体 24px 胡桃色;旁边是一个低调的桌号标签([TABLE])——亚麻底色、长凳线边框、标签前有一个 6px 陶土色圆点,Asap 500 13px 胡桃色。下方一行,Asap 400 13px 柔胡桃色:'Kitchen open till 22:00 · [SERVICE] · this menu is sample copy for a demo bistro.' 布局:列内边距 16px,py-16px;标签与字标基线对齐并右对齐;在 320px 屏幕上换行到下方。 动效:无——页头随滚动移出,标签栏接管。 2. **招牌主视觉** — 视觉锚点:一张占满整列宽度的俯拍照片(public/images/hero-steak.webp,4:3,12px 圆角),在温暖的 bistro 灯光下展示招牌菜。照片底边叠压一张亚麻说明卡(14px 圆角,柔和阴影):一个小陶土色标签 'FROM THE PASS',Asap 600 11px 大写加字距;'Steak au poivre' 使用 Lora 600 22px 胡桃色;一行 Asap 13px 柔胡桃色:'the dish that named the street';价格 '$26' Asap 600 胡桃色右对齐。点击卡片打开该菜品的详情面板。 布局:照片占满整列宽度(宽高比 4:3,object-cover);说明卡向上叠压 -28px,左右内缩 16px。 动效:照片加载时淡入上移(500ms);说明卡延后 100ms 跟随;移动端无视差。 3. **分类标签** — 吸顶标签行(top-0,z-30,深纸色底 92% 不透明度加模糊,底部 1px 长凳线):五个标签在横向滚动行中——'Starters'、'Mains'、'Sides'、'Desserts'、'Drinks'——Asap 500 14px;激活标签为胡桃色底配纸色文字,其余为亚麻色配长凳线边框。标签对下方分类做滚动监听,标签行自动滚动以保持激活标签居中;点击标签平滑滚动到对应分类。 布局:全宽吸顶栏,高 48px,标签高 36px、间距 8px,行内边距-x 16px。 动效:激活填充 200ms;一条 2px 陶土色下划线在标签间滑动(240ms);平滑滚动到分类(400ms,减少动效模式下使用原生 scroll-behavior)。 4. **过敏原筛选** — 标签栏下方一行(非吸顶):标签 'Avoid:' 使用 Asap 500 13px 柔胡桃色,然后是四个标签——'Gluten'、'Dairy'、'Nuts'、'Shellfish'——亚麻底色、长凳线边框、胡桃色文字;激活标签填充陶土色配亚麻色文字。筛选会使所有分类中不匹配的菜品变暗(35% 不透明度,grayscale 0.5,添加按钮禁用)。下方免责声明行,Asap 12px 柔胡桃色:'Filters are a guide from our sample menu — always tell your server about allergies.' 布局:标签在 390px 时换行到两行;行 py-12px。 动效:每行变暗/恢复 250ms;激活标签填充 200ms。 5. **菜单——五个分类** — 五个分类区块,每个都有 Lora 600 18px 胡桃色标题、一条长凳线分隔线,以及两种诚实的行样式。照片行(六道菜,1:1 缩略图 88px,12px 圆角):'French onion soup' — 'double broth, gruyère lid, the proper way' — $9 — dairy, gluten(onion-soup.webp);'Steak au poivre' — 'the signature; frites underneath' — $26 — dairy(复用 hero-steak.webp);'Duck confit' — 'slow leg, potatoes cooked in its fat' — $24 — dairy(duck-confit.webp);'Moules frites' — 'a bowl of mussels, bread for the broth' — $21 — shellfish, dairy(mussels.webp);'Chocolate tart' — 'dark, barely set, salt on top' — $9 — dairy, gluten(choc-tart.webp);'House red, carafe' — 'the one the staff drinks' — $18 —(wine-carafe.webp)。文字行带点状引导线到价格:'Pâté de campagne' — 'toast, cornichons' — $11;'Little gem salad' — 'buttermilk, herbs' — $8 — dairy;'Rainbow trout amandine' — 'brown butter, almonds' — $23 — nuts, dairy;'Frites' — 'twice-cooked' — $5;'Haricots verts' — 'shallot, butter' — $6 — dairy;'Crème brûlée' — 'cracked to order' — $8 — dairy;'Badoit, bottle' — 'the fizzy one' — $6;'Espresso' — 'short, walnut-forward' — $3。每一行右侧都有一个 32px 陶土色添加按钮(lucide plus);过敏原标签作为小长凳线标签位于描述下方。STARTERS:soup、pâté、salad · MAINS:steak、duck、mussels、trout · SIDES:frites、haricots · DESSERTS:tart、brûlée · DRINKS:carafe、Badoit、espresso。 布局:区块 py-24px;照片行:缩略图在左,文字居中(名称 Lora 600 17px,描述 Asap 13px 柔胡桃色单行,过敏原标签),价格 Asap 600 胡桃色和添加按钮在右,窄于 360px 时堆叠;文字行:名称和价格在同一行,中间用点状长凳线引导线连接,描述在下方 13px 柔胡桃色。 动效:区块滚动时淡入上移(500ms,60ms 交错);添加按钮按下缩放 0.9→1(180ms);行按筛选变暗。 6. **菜品详情面板** — 打开任意菜品会打开 BottomSheet:面板顶部一张 4:3 照片(12px 圆角),菜品名称 Lora 600 24px 胡桃色,完整描述 Asap 15px 柔胡桃色(两行),过敏原标签(亚麻色、长凳线),以及数量步进器(胡桃色描边减/加,数量 Asap 600)。面板底部:一个胡桃色胶囊按钮 'Add to order — $26',其标签反映数量;添加后关闭面板并弹出计数气泡。 布局:面板最大高度 82vh,内部可滚动;顶部 20px 圆角;X(lucide)在照片右上角。 动效:面板上滑 320ms;背景淡入 250ms;添加胶囊按钮按下缩放 0.97;减少动效:面板原地淡入。 7. **订单计数与呼叫服务员** — 固定底栏(72px,亚麻底色,顶部 20px 圆角,顶部长凳线边框):左侧 '3 items · $47' 使用 Asap 600 胡桃色(无订单时隐藏并显示 'Your order is empty — walnutsoft');右侧一个陶土色胶囊按钮 'Show server'(lucide receipt)打开计数面板。面板:'For your server' 使用 Lora 600 20px;行项目含名称、胡桃色描边数量步进器、行总计,以及一个小 x 用于移除;然后一条长凳线分隔线、小计、服务说明 '[SERVICE]' 使用 Asap 13px 柔胡桃色、总计使用 Lora 600 22px;一个描边陶土色胶囊按钮 'Call waiter'(lucide bell),点击后切换为胡桃色确认卡(250ms):铃铛图标,亚麻色文字 'Screen ready — show your server when they pass.' 结尾行,Asap 12px 柔胡桃色居中:'This tally lives on your phone only — nothing was sent.' 计数持久化在 localStorage 中并注明这一点。 布局:栏横跨列宽(固定在 480px 列内,桌面端内缩);面板同菜品面板;项目列表有上限并内部滚动。 动效:添加时栏计数弹出(180ms);总计上滑 80ms;面板滑动 320ms;呼叫服务员交叉淡入 250ms;减少动效:仅淡入。 8. **页脚** — 顶部长凳线分隔线,py-24px:[BRAND] 字标小号(Lora 600 16px),一行 Asap 13px 柔胡桃色:'9 Larkspur Lane · Tue–Sun 17:00–22:00';第二行 Asap 12px 柔胡桃色:'An invented demo bistro — dishes, prices and allergens are sample copy.';可选 [CREDIT] 链接。除静态营业时间外无日期,无社交行。 布局:居中列文字,16px 内边距。 动效:无。 ## 资源 - 图片:将 https://media.vibefather.ai/assets/388ef5f3-17ea-4f4a-a4af-a482bca86e24/hero-steak.webp 下载到 public/images/hero-steak.webp。Alt:'Overhead view of steak au poivre with peppercorn sauce and frites on a ceramic plate at a walnut bistro table.' 用作招牌主视觉(4:3)及其主菜(Mains)行的缩略图。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发。 - 图片:将 https://media.vibefather.ai/assets/388ef5f3-17ea-4f4a-a4af-a482bca86e24/onion-soup.webp 下载到 public/images/onion-soup.webp。Alt:'Overhead view of French onion soup with a melted cheese lid in a ceramic crock.' 前菜(Starters)行缩略图(1:1)。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发。 - 图片:将 https://media.vibefather.ai/assets/388ef5f3-17ea-4f4a-a4af-a482bca86e24/duck-confit.webp 下载到 public/images/duck-confit.webp。Alt:'Overhead view of duck confit with potatoes in a warm ceramic plate.' 主菜(Mains)行缩略图(1:1)。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发。 - 图片:将 https://media.vibefather.ai/assets/388ef5f3-17ea-4f4a-a4af-a482bca86e24/mussels.webp 下载到 public/images/mussels.webp。Alt:'Overhead view of a bowl of mussels in broth with fries and bread beside it.' 主菜(Mains)行缩略图(1:1)。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发。 - 图片:将 https://media.vibefather.ai/assets/388ef5f3-17ea-4f4a-a4af-a482bca86e24/choc-tart.webp 下载到 public/images/choc-tart.webp。Alt:'Overhead view of a dark chocolate tart slice with flakes of salt on a small plate.' 甜点(Desserts)行缩略图(1:1)。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发。 - 图片:将 https://media.vibefather.ai/assets/388ef5f3-17ea-4f4a-a4af-a482bca86e24/wine-carafe.webp 下载到 public/images/wine-carafe.webp。Alt:'Overhead view of a small carafe of red wine and one glass on a walnut table.' 饮品(Drinks)行缩略图(1:1)。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发。 - 图标:lucide-react(ISC)通过 npm 引入——添加按钮和步进器上的 plus 和 minus,关闭面板和移除条目用的 x,Show-server 胶囊按钮上的 receipt,呼叫服务员按钮及其确认提示上的 bell,页眉行中作为微小点缀的 utensils。不使用其他图标:不用 emoji,不用过敏原象形图集,不用餐厅 logo。没有照片的菜品是带点线引导的安静文本行——绝不用占位框。 - 字体:@fontsource/lora(OFL,字重 500 和 600,外加 500 斜体)和 @fontsource/asap(OFL,字重 400、500、600),在 src/main.tsx 中导入;绝不从 fonts.googleapis.com 或任何 CDN 加载。在项目根目录的 ASSETS.md 中列出这两个字体家族和六张照片:路径、来源、生成器或作者、许可证。 ## 不要做 - 不要后端、不要点单、不要支付、不要网络请求、不要分析统计:计数、筛选和底部弹层都只是客户端状态,仅持久化到 localStorage,文案始终说明该计数是用于展示给服务员的。 - 呼叫服务员按钮绝不声称能联系到任何人:它只是把屏幕切换为“请出示此屏幕”的确认状态——任何地方都不暗示会接入员工网络。 - 过敏原标签只是示例性提示,绝不是饮食保证;筛选器下方的免责声明行必须保留。 - 不要真实餐厅、连锁店或其菜单:场所、菜品、价格和地址均为虚构,凡是出现名称的地方一律使用 [BRAND]。 - 照片只能是俯拍的 bistro 菜品:画面中不得有可读文字(不要菜单、黑板或标签),不要 logo,不要人物;如果生成的图片出现文字或人脸,请替换。 - 不要任何真实时钟相关内容:营业时间和“kitchen open till 22:00”都是静态示例文案,不得出现日期、年份或“today's specials”。 - 不要任何 CDN:字体通过 Fontsource 包提供,图标来自 lucide-react,照片来自 public/images;绝不外链,绝不使用 Unsplash/Pexels/Pixabay 或占位图服务。 - 生产构建:单条命令、压缩、无 source map、输出中不含 src/、使用相对路径(Vite base './');每张照片压缩为 ≤ 300 KB 的 WebP,使 dist/ 保持在 20 MB 以下。 - 移动优先就是设计本身:390×844 是主要目标,桌面端(1440×900)视图只是将同样的 480px 单列居中,两侧为细线——绝不做多列桌面布局,不隐藏任何仅桌面可见的内容;两种尺寸下控制台零报错。 - 底部弹层和计数栏必须尊重安全区域(env(safe-area-inset-bottom)),并确保每个点击目标 ≥ 44px。 - 锁定温暖 bistro 方向:纸感底色、胡桃木墨色、单一陶土色点缀、Lora 配 Asap、点状引导线和友好的圆角;不要深色模式、不要霓虹、不要玻璃拟态、不要快速弹簧动画——所有动画 ≤ 320ms。 - 尊重 prefers-reduced-motion:弹层原地淡入,弹出和滑动下划线变为即时,显现效果变为 150ms 淡入。 - 所有文案、标签、示例数据和 alt 文本均使用美式英语,放在 src/content.ts 中;当 [BRAND]、[TABLE] 或 [SERVICE] 变化时,重写菜品、价格和营业时间以适配新场所,而不是在 wine bar 下保留 bistro 文案。 - 在项目根目录的 ASSETS.md 中列出每个第三方文件(两个 Fontsource 字体家族、lucide 图标、六张照片):路径、来源、许可证。 --- — Prompt by VibeFather · https://vibefather.ai/t/restaurant-qr-menu-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
个人项目可免费使用(CC BY-NC 4.0)。 商业用途需要 Pro.
DESIGN.md
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
name: "Restaurant QR Menu Page"
colors:
paper: "#FAF3E7"
paper_deep: "#F1E6D2"
linen: "#FFFDF8"
bench_line: "#E3D5BC"
walnut: "#4A3628"
walnut_soft: "#7A6753"
terracotta: "#C05B3C"
terracotta_deep: "#A34830"
typography:
display_wordmark_dish_names_sheet_titles_warm_serif_italic_accents: { family: "Lora", weights: [500, 600] }
text_descriptions_chips_buttons_notes_friendly_rounded_sans: { family: "Asap", weights: [400, 500, 600] }
spacing: "Menu-tight, thumb-friendly: one 480px column; 16px page padding; category blocks py-24px with a Lora heading and a benchline rule; rows 16px tall padding with 12px gaps; every tap target ≥ 44px; the tally bar reserves 72px so the last dish never hides behind it."
radius: "Friendly and round: 999px chips, 14px cards, 12px photo thumbs, 20px sheet tops; the dotted price leaders are the only straight lines."
---
# Restaurant QR Menu Page — Design System
Apply this design system to an existing project. It describes the look and feel only; for the full site, use prompt.md.
## Colors
- **Paper** `#FAF3E7` — Page ground — warm cream paper, the whole menu.
- **Paper deep** `#F1E6D2` — Sticky tab bar ground, hover tints, desktop page ground outside the column.
- **Linen** `#FFFDF8` — Cards, bottom sheets, photo caption card — near-white linen.
- **Bench line** `#E3D5BC` — Hairlines, borders, dotted price leaders, chip outlines.
- **Walnut** `#4A3628` — Primary ink — dish names, prices, headings, active tab fill; warm dark brown, never black.
- **Walnut soft** `#7A6753` — Secondary text: descriptions, captions, notes.
- **Terracotta** `#C05B3C` — The one accent: add buttons, active filter chips, CTA pills, the signature label, call-waiter outline.
- **Terracotta deep** `#A34830` — Pressed states on terracotta.
## Typography
- **Display — wordmark, dish names, sheet titles (warm serif, italic accents)** — Lora (OFL), weights 500/600. Self-host the font files.
- **Text — descriptions, chips, buttons, notes (friendly rounded sans)** — Asap (OFL), weights 400/500/600. Self-host the font files.
## Spacing & shape
- Spacing: Menu-tight, thumb-friendly: one 480px column; 16px page padding; category blocks py-24px with a Lora heading and a benchline rule; rows 16px tall padding with 12px gaps; every tap target ≥ 44px; the tally bar reserves 72px so the last dish never hides behind it.
- Radius: Friendly and round: 999px chips, 14px cards, 12px photo thumbs, 20px sheet tops; the dotted price leaders are the only straight lines.
## Motion
- Bottom sheets slide up translateY 100%→0 over 320ms ease-out with a linen backdrop fade (250ms); closing reverses in 240ms.
- Sticky tabs: the active chip fills walnut with paper text (200ms); the tab row auto-scrolls to keep it centered; a 2px terracotta underline slides between tabs (240ms).
- Allergen filters: non-matching rows animate to 35% opacity with grayscale(0.5) and their add buttons disable (250ms); matching rows stay full color.
- Add-button feedback: the terracotta plus scales 0.9→1 (180ms) and the tally bar's count pops once; the bar total slides up 80ms after a change.
- Call-waiter state: the outline pill cross-fades to a walnut confirmation card with a bell icon (250ms) — a screen state, never a network claim.
- Reveals: category blocks fade up gently (y 14→0, 500ms, 60ms stagger) via Motion whileInView, once.
- prefers-reduced-motion: sheets fade in place without sliding, pops and underlines become instant, reveals become 150ms opacity fades.
## Imagery
One bistro session: appetizing overhead (top-down) food photography on ceramic plates at a warm walnut table, every shot in the same warm pendant bistro light pooling from the upper left, soft shadows, cream-and-walnut palette with terracotta touches, gentle steam and gloss, honest portions — six dishes only; every other dish is a text row with a dotted leader, like a paper menu. No readable text in frame (no menus, no labels), no logos, no people. The photographs are generated by VibeFather and downloaded into public/images.
## Tone
Warm, plain-spoken and a little homely — the voice of a chalkboard, not an app; short dish lines, honest sample-copy notes.
---
— Prompt by VibeFather · https://vibefather.ai/t/restaurant-qr-menu-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 社区小酒馆:把 BRAND 设为你的店名,TABLE 设为每张桌的桌号,并用你自己的菜单和价格替换五个示例分类和菜品行。
- 葡萄酒吧:把分类改成起泡酒、白葡萄酒、红葡萄酒和杯卖酒,把菜品行改写成瓶装和杯装条目,并保留用于亚硫酸盐的过敏原标签。
- 咖啡吧台:把 TABLE 改成吧台凳或吧台标签,把分类列表缩短为咖啡、糕点和午餐,并把 SERVICE 设为你吧台服务的说明。
- 为餐厅做网站的工作室:按客户复制内容文件,保留陶土色和胡桃木色调色板,并为每个场所把招牌主图换成他们自己的菜品照片。
餐厅扫码点餐页:常见问题
餐厅扫码点餐页的过敏原筛选是怎么工作的?
餐厅扫码点餐页会显示麸质、乳制品、坚果和贝类的过敏原避让标签。选中一个标签后,所有不匹配的菜品会以 35% 不透明度加灰度淡化,并禁用其添加按钮,匹配的菜品则保持全彩。页面上有免责声明,说明标签仅供参考,不构成保证,客人仍应向服务员确认。
怎么用 AI 做一个餐厅扫码点餐页?
复制本页的提示词,或者运行 npx vibefather add restaurant-qr-menu-page,把 [BRAND]、[TABLE]、[SERVICE] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。