用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
营养师网站(含餐盘搭配工具)是一个明亮的一页式网站,面向营养指导业务,围绕一个互动式每日餐盘工具构建。访客可以浏览服务和套餐价格,阅读三步说明了解指导流程,然后点击食物类别,填充绘制的餐盘环,并看到友好的平衡读数实时响应——一次互动就展示了该机构的整体理念。页面还包括三道食谱预览、简洁的客户评价、一段关于介绍,以及一个预约咨询电话的示例。所有文案都停留在食物和习惯层面,没有任何医疗声明,预约流程仅为本地演示。
视觉风格清新明快:白色和奶油色底,叶绿色搭配柑橘色点缀,标题用 Baloo 2 字体,正文用 Nunito 字体,大量胶囊形控件,以及一组统一的摄影图片——农产品铺陈、装盘菜肴和一间明亮的日光厨房。首屏以市集餐桌上的农产品照片为锚点,而非人脸,餐盘环完全用代码绘制。
这个模板适合营养教练、烹饪老师、备餐工作室和健康从业者,他们想要一种互动、非临床的感觉。它也能适配任何提供套餐服务的教练业务:把餐盘环换成另一个简单的视觉工具,结构依然成立。
变量涵盖品牌、从业者、城市、受众和食物重点。所有文案都在一个内容文件中,餐盘类别、食谱、套餐、评价和常见问题都写成可替换的记录。演示版构建为静态 Vite + React + Tailwind 网站,使用 Motion 弹簧动画、自托管字体、生成的图片,以及用 localStorage 持久化餐盘和预约示例。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Nutritionist Website with Plate Builder
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
Build a bright, one-page site for [BRAND], the nutrition-coaching practice of [PRACTITIONER] in [CITY], serving [AUDIENCE] through one-to-one coaching, group programs, and [FOOD_FOCUS]. The page presents services and how coaching works, a tap-to-build daily plate tool with a friendly balance readout, a three-recipe preview, quiet client quotes, and a discovery-call booking sample. Every word stays at the kitchen level: no medical, diagnostic, or weight-loss claims anywhere on the page.
- Audience: Primary: [AUDIENCE] — people who want calmer grocery runs, faster weeknights, and steadier food habits without diets, shame, or clinical language. Secondary: freelancers and small studios adapting the layout for any coach-with-packages practice.
- Goal: Move a visitor from 'this looks like my life' to a held discovery-call slot: win them with the produce-first world in one screen, prove the coaching approach with the plate builder in one interaction, and make booking a simple weekday-and-time choice that completes inline and stays in the browser.
- Tone: Warm, plain-spoken, and appetizing — a cook in a sunny kitchen, never a clinic. Short sentences, real food words, gentle humor. Coaching talks skills, shopping, and habits; it never diagnoses, treats, prescribes, or promises weight or medical outcomes.
## Stack
- Framework: Vite 6 + React 18 + TypeScript
- Styling: Tailwind CSS 3.4
- Libraries: react (MIT), react-dom (MIT), vite (MIT), typescript (Apache-2.0), tailwindcss (MIT), motion (MIT), lucide-react (ISC), @fontsource/baloo-2 (OFL-1.1), @fontsource/nunito (OFL-1.1)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
- Create a Vite 6 + React 18 + TypeScript project with base './', build.outDir 'dist', and build.sourcemap: false. No router, no backend, no server code.
- Install Tailwind CSS 3.4 with PostCSS and Autrefixer. Extend the theme with the exact palette below, fontFamily.display 'Baloo 2' and fontFamily.body 'Nunito', and the four plate-group colors as named tokens.
- Self-host Baloo 2 weights 600 and 700 and Nunito weights 400, 600, and 700 through @fontsource/baloo-2 and @fontsource/nunito, imported in src/main.tsx. Never load fonts from a CDN.
- Use Motion from 'motion/react' (motion, AnimatePresence, useReducedMotion) for reveals, springs, and number tweens; gate every animation on useReducedMotion().
- Keep all copy and data in src/content.ts: brand strings, hero copy, services, how-it-works steps, plate groups (targets, maxima, examples), recipes, quotes, practitioner bio, booking day and slot chips, FAQ. When variable values change, rewrite the dependent copy there and derive slugs and storage keys from [BRAND] so no default-brand remnants remain.
- Build the plate as an inline SVG donut of 8 equal wedges with per-group fills and a white center circle; the score, readout tier, and suggestion are pure functions of the group counts defined in content.ts.
- Persist the plate and the discovery-call request to localStorage with keys namespaced as [BRAND_SLUG] + '-plate' and [BRAND_SLUG] + '-discovery-request'; validate restored JSON and recover silently from malformed data.
- Use only these lucide-react icons: Leaf, Sparkles, MessagesSquare, Users, ChefHat, Salad, Drumstick, Wheat, Droplets, Clock, CalendarCheck, Check, RotateCcw, Star, Quote, MapPin, ChevronDown, ArrowRight.
- Download the six generated photos to the exact public paths listed in Assets before building. Create ASSETS.md at the project root listing every file's path, source URL, author or generator, and license.
- A plain <title> of [BRAND] and a favicon (the code-drawn leaf mark) are enough; no meta descriptions, Open Graph tags, JSON-LD, or sitemaps.
## Variables
- [BRAND] — Brand (default: "Marigold Table"). Invented two-word practice name; a leaf-dot logomark is derived from it in code.
- [PRACTITIONER] — Practitioner (default: "June Calloway"). The invented coach's name used in the hero, about block, and booking copy.
- [CITY] — City (default: "Alder Springs"). Where the studio is; appears in the hero eyebrow, about, FAQ, and address.
- [AUDIENCE] — Audience (default: "busy parents who want weeknight dinners to come easily"). A plain-language phrase for who the coaching is for.
- [FOOD_FOCUS] — Food focus (default: "Mediterranean-inspired weeknight cooking"). The cooking style that shapes the hero line, recipes, and plate-builder examples.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/nutritionist-website-with-plate-builder 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
- Cream `#FBFAF6` — Page ground
- White `#FFFFFF` — Cards, chips, and the plate center
- Leaf green `#2E7D4F` — Primary: buttons, links, active states, logomark
- Leaf tint `#F0F7F1` — Section bands and soft chips
- Citrus `#F5A63B` — Accent: highlights, price ticks, selected-slot fills
- Spinach ink `#26332B` — Headings and body text
- Sage `#DEE9DD` — Hairline borders and dividers
- Plate veggie `#4C9A5F` — Plate-builder wedge fill for veggies and fruit
- Plate protein `#CC6B4A` — Plate-builder wedge fill for protein
- Plate grain `#DCA94E` — Plate-builder wedge fill for whole grains
- Plate fats `#8FA05C` — Plate-builder wedge fill for good fats and extras
### Typography
- Display: headlines, prices, plate readout headings: Baloo 2 (OFL), weights 600/700
- Body: paragraphs, controls, chips, meta: Nunito (OFL), weights 400/600/700
### Layout & motion
- Spacing: 8px base grid. Content shell max-width 1160px with 32px desktop and 20px mobile side padding. Header 72px. Desktop sections 96px vertical padding, mobile 64px. Card grids gap 24px. Prose blocks max 62 characters per line.
- Radius: Pill 999px for buttons, chips, tags, and the logomark; 24px for photos, the plate card, and large panels; 16px for small cards and inputs. Photos get a 24px radius with a 1px sage border.
- Motion: Sections reveal once on scroll: 14px rise with a 450ms ease-out fade, sibling cards staggered 60ms. Disabled under prefers-reduced-motion.
- Motion: Hero: the produce photo scales from 1.04 to 1 over 700ms while the copy lines rise 16px with an 80ms stagger.
- Motion: Plate builder: a newly added wedge springs in (stiffness 260, damping 20) and the newest wedge pulses once; the readout heading crossfades over 200ms and the score number tweens over 300ms.
- Motion: Hover states lift cards 4px with a soft shadow, 180ms. No page drift, no custom cursor, no autoplay media.
- Motion: With prefers-reduced-motion: reduce, replace springs, tweens, and reveals with 100ms opacity changes; every interaction stays fully functional.
- Imagery: One photographic set, one shoot: fresh produce and finished dishes in a consistent airy daylight grade — white marble and light oak surfaces, soft window light from the upper left, high-key whites, gentle warm highlights, leafy greens and citrus dominant. Six generated photos (hero produce spread, three plated recipes, the coaching kitchen, a market basket); no faces, no hands, no readable packaging or logos. The plate ring, icons, logomark, and decorative arcs are drawn in code, never photographed.
## Pages & Sections
### [BRAND] — Nutrition coaching in [CITY] (`index.html`)
1. **Header and hero** — Sticky header (72px, cream at 92% with backdrop blur, 1px sage bottom rule): code-drawn logomark — a leaf-green circle holding a white Lucide Leaf glyph — beside [BRAND] in Baloo 2 700; nav anchors Services, Plate builder, Recipes, About; right-aligned leaf-green pill button 'Book a discovery call'. Hero on cream: eyebrow 'NUTRITION COACHING IN [CITY]'; H1 'Good food, made doable.'; paragraph 'Hi, I'm [PRACTITIONER]. I help [AUDIENCE] cook [FOOD_FOCUS] — with calmer grocery runs, a rotation of dinners you actually like, and plates that get eaten.'; primary pill 'Book a free discovery call' (scrolls to booking) and secondary leaf-green-outline pill 'Try the plate builder'. Proof line under the buttons: '480 households coached · 12-week Table Reset program · 120+ weeknight recipes'. Right side: the hero produce photo in a 24px-radius frame with a floating white chip card at its bottom-left: a Sparkles icon and 'In season this week — oranges, chard, leeks'.
Layout: 12-column grid: copy in columns 1–5, photo in columns 6–12 at 4:3 with object-cover and a minimum height of 520px. H1 at clamp(40px, 4.6vw, 64px), line-height 1.05, spinach ink. The floating chip is a white pill shadow offset -16px from the photo's bottom-left. Mobile: copy stacks first, the photo follows full-width at 4:3 with the chip inside its bottom-left; every tap target at least 44px.
Motion: Photo settles from scale 1.04 over 700ms; the eyebrow, H1, paragraph, buttons, and proof line rise 16px in an 80ms stagger; the chip fades in last with the same spring.
2. **Services and how coaching works** — White section. Eyebrow 'WHAT WE DO TOGETHER'; title 'Coaching that fits your kitchen.' Three calm cards: 'One-to-one coaching' — '$390 / month' — 'Two 50-minute sessions a month, a grocery game plan, and message check-ins between. For people who want a coach in their corner.'; 'The Table Reset' — '$249 / 12 weeks' — 'A small-group program: six live cooking classes, a pantry clean-out guide, and weekly habit threads. New groups start each season.'; 'Pantry Workshop' — '$85 / one visit' — 'Two hours in your kitchen (or on video). We reorganize, label, and shop-list your staples so weeknights stop being improvised.' Each card footer links 'Ask about it on a call' to the booking anchor. Below the cards, a 'How coaching works' strip of three steps: '01 Discovery call — 20 minutes, no charge. We talk about your weeknights.'; '02 A plan you'll actually cook — three habits, one shopping rhythm.'; '03 Weekly check-ins — we adjust, celebrate, and keep it doable.'
Layout: Cards in a 3-column grid on white (16px radius, 1px sage border): icon disc (MessagesSquare, Users, ChefHat) on leaf tint, service name in Baloo 2 600, price line in Baloo 2 700 leaf green, body copy, footer link with ArrowRight. Steps strip beneath: three columns split by 1px sage hairlines, outlined numerals 01–03 at 40px in leaf green. Mobile: cards stack; steps stack with a left numeral rail and the hairlines become horizontal rules.
Motion: One-time reveal: cards rise 14px staggered 60ms; hover lifts a card 4px with a soft shadow; step numerals fade in with the section, no separate looping animation.
3. **Daily plate builder** — Band on leaf tint. Eyebrow 'TRY IT NOW'; title 'Build today's plate.'; intro 'Tap a food group to add a portion. Aim for the simple rule — half the plate veggies and fruit, a quarter protein, a quarter grains, plus a drizzle of something good.' Four group rows with icon, name, example line, count, and a minus control: 'Veggies & fruit' (Salad) 'roasted broccoli · shaved carrot · orange segments' max 5; 'Protein' (Drumstick) 'eggs · white beans · salmon' max 3; 'Whole grains' (Wheat) 'farro · barley · sourdough' max 2; 'Good fats & extras' (Droplets) 'olive oil · pumpkin seeds · avocado' max 2. The plate is a drawn SVG donut of 8 equal wedges around a white center that reads 'Your plate · N / 8'. Beside it a readout panel: score meter, heading, and one suggestion sentence, plus a 'Clear the plate' reset link. The plate state persists in localStorage.
Layout: Two columns: the plate SVG about 380px on the left, controls on the right. Each group row is a 56px-high button: icon disc in the group color, name plus examples, count '2 / 5', and a minus circle that removes that group's last portion. Wedges fill clockwise from 12 o'clock in the order added, colored by group. Scoring: target is 4 veg, 2 protein, 1 grain, 1 fat; score = max(0, 100 − 12 × Σ|count − target|). Readout tiers: score 100 'A beautifully balanced plate — the simple rule in action.'; 85–99 'Bright and balanced — {suggestion}.'; 60–84 'Almost there — {suggestion}.'; below 60 'Keep building — {suggestion}.' Suggestions: with an unfilled plate, name the group with the largest deficit ('add a scoop of whole grains'); when the plate is full but off target, name the largest surplus ('take one off the veggies and make room'). The readout is aria-live='polite'. Mobile: plate centered above the group rows, readout beneath, nothing scrolls horizontally.
Motion: A new wedge springs in (stiffness 260, damping 20) with a single pulse on the newest wedge; removals fade over 150ms; the score tweens 300ms and the heading crossfades 200ms; reduced motion swaps all of it for instant state changes.
4. **Recipe preview** — White section. Eyebrow 'FROM THE RECIPE LIBRARY'; title 'Three dinners from this month.'; three photo cards: 'Charred Lemon & White Bean Bowl' — chips '25 min' and 'weeknight' — 'Crisp-edged beans, soft herbs, and a lemony dressing kids ask for twice.'; 'Sheet-Pan Harissa Chicken with Plums' — '35 min' and 'one pan' — 'Sweet plums, warm spice, and a pan sauce that makes its own glory.'; 'Spring Pea & Feta Farro' — '20 min' and 'meatless' — 'Chewy grains, poppy peas, salty feta — dinner tonight, lunch tomorrow.' Footer line under the grid: 'Full recipes live in the member library — have a taste on a discovery call.' The cards are visuals with meta chips, not links.
Layout: 3-column grid of white cards (16px radius, 1px sage border): 4:3 photo at 24px radius on top, name in Baloo 2 600, meta chips with a Clock icon for the time, one-line description. Tablet uses 2 columns; mobile single column. Hover lifts 4px.
Motion: Cards reveal in a 60ms stagger; a slow 6s scale from 1 to 1.03 on each photo loops only while hovered, and is skipped entirely under reduced motion.
5. **Testimonials** — Cream band. Eyebrow 'KITCHEN TABLE STORIES'; title 'What changes, people say.' Three quiet quote cards: 'Priya S. — parent of two' 'Our Tuesday is no longer cereal. We plan on Sunday, shop once, and actually cook. [PRACTITIONER] made it feel easy, not virtuous.'; 'Marcus & Elena T. — Table Reset cohort' 'Six dishes we rotate happily, and a grocery list that alone paid for the program.'; 'Dana W. — shift nurse' 'I eat real food on night shifts now. We built a plan around my odd hours, not against them.'
Layout: 3-column grid of white cards (24px radius): a large Quote icon in leaf tint, the quote at 17px spinach ink, then a name row with a small sage initial disc. Mobile stacks to one column with comfortable 16px gaps.
Motion: One-time staggered reveal only; no hover animation on quotes.
6. **About the practitioner** — White section, two columns. Left: the studio-kitchen photo (4:3, 24px radius). Right: eyebrow 'YOUR COACH'; title 'Hi, I'm [PRACTITIONER].'; body 'I trained as a nutrition coach at the Welltable Institute and spent nine years in teaching kitchens before starting [BRAND] in [CITY]. I don't hand out meal plans you abandon in a week — we build food skills: shopping, prep, and a rotation of dinners you like. When I'm not coaching, I'm at the farmers' market deciding between two kinds of chard.' Three fact chips: '9 years coaching', 'Certified nutrition coach — Welltable Institute', 'Cooking-class teacher'. A small MapPin line under the chips: 'Studio 3, 92 Alder Lane, [CITY]'.
Layout: Photo in columns 1–6 at 4:3; copy in columns 7–12 with the fact chips as leaf-tint pills wrapping onto two lines maximum. Mobile: photo above copy, chips wrap freely.
Motion: Section-level reveal; the photo gets a subtle 700ms settle from scale 1.03, skipped under reduced motion.
7. **Discovery-call booking** — Band in deep leaf green with cream text: eyebrow 'START HERE'; title 'Book a free discovery call.'; intro 'Pick a weekday and a time that suits you — 20 minutes, on video or at the studio (Studio 3, 92 Alder Lane, [CITY]). This demo keeps your request in your own browser; nothing is sent anywhere.' Inside a white card: day chips Monday–Saturday; slot chips 9:00, 10:30, 13:00, 15:30, 17:00; a two-option segmented control 'Video call' / 'At the studio'; name and email inputs; submit pill 'Request this slot'. On success the form is replaced by a confirmation: CalendarCheck icon, 'You're on the list, {name}!', 'We'd see you {day} at {time} ({place}). In a live site this would reach [PRACTITIONER] — in this demo it's saved locally.', and a 'Change my request' link that restores the form filled in.
Layout: Centered white card 720px wide (24px radius) on the deep leaf band. Chips are 44px pills; selected chips fill leaf green with white text, slots fill citrus with spinach-ink text. Validate locally: a name is required and the email must match a simple pattern; errors show as inline red text under the field, never alerts. Persist the whole request to localStorage keyed from [BRAND_SLUG]; restore it on reload. The confirmation is aria-live='polite'. Mobile: the card keeps 20px side padding; chips wrap.
Motion: Selected chips pop to 1.06 and settle (180ms); the confirmation crossfades in over 240ms; the segmented control thumb slides 200ms. All replaced by instant changes under reduced motion.
8. **FAQ and footer** — FAQ 'Fair questions.' as four details/summary items: 'Do you write meal plans or give medical advice?' — 'Neither. We work on food skills and habits — shopping, prep, and rotation. I don't diagnose, treat, or prescribe; for medical questions you'll always be pointed back to your clinician.'; 'What happens on a discovery call?' — 'Twenty minutes about your weeknights: what works, what collapses, and whether coaching fits. No pressure and no charge.'; 'Do you sell supplements or products?' — 'No. The only things I sell are time, programs, and a very opinionated spice-rack diagram.'; 'Virtual or in person?' — 'Both. Coaching happens over video anywhere; pantry visits and classes happen at the studio in [CITY].' Footer on spinach ink with cream text: leaf logomark and [BRAND], the line 'Food skills, not rules.', anchor nav (Services, Plate builder, Recipes, About, Book a call), and the note 'This site is food-and-habits coaching, not medical advice.' plus the optional [CREDIT] link.
Layout: FAQ in a single column of max-width 760px with 1px sage dividers, 22px vertical padding per item, and a rotating ChevronDown. Footer: two rows on desktop — brand block left with nav right, note and [CREDIT] on a second row in muted cream; stacked on mobile. No social icons, no newsletter form.
Motion: A 160ms chevron rotation on toggle with no height animation that could clip text; footer is static.
## Assets
- image: Hero produce spread. Download https://media.vibefather.ai/assets/e96d06da-c68d-42e7-9fc9-2ae91f028d0f/hero-produce.webp to public/images/hero-produce.webp. Alt: 'A spread of fresh produce — leafy greens, citrus, and herbs on a white marble table.' Used as the hero's visual anchor. Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template; record that exact credit in ASSETS.md.
- image: Recipe photo one. Download https://media.vibefather.ai/assets/e96d06da-c68d-42e7-9fc9-2ae91f028d0f/recipe-beans.webp to public/images/recipe-beans.webp. Alt: 'A bowl of white beans with charred lemon halves and herbs.' Used on the Charred Lemon & White Bean Bowl card. Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template; record that exact credit in ASSETS.md.
- image: Recipe photo two. Download https://media.vibefather.ai/assets/e96d06da-c68d-42e7-9fc9-2ae91f028d0f/recipe-sheetpan.webp to public/images/recipe-sheetpan.webp. Alt: 'A sheet pan of roasted chicken with plums and red onion.' Used on the Sheet-Pan Harissa Chicken card. Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template; record that exact credit in ASSETS.md.
- image: Recipe photo three. Download https://media.vibefather.ai/assets/e96d06da-c68d-42e7-9fc9-2ae91f028d0f/recipe-farro.webp to public/images/recipe-farro.webp. Alt: 'A plate of farro with green peas, feta, and mint.' Used on the Spring Pea & Feta Farro card. Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template; record that exact credit in ASSETS.md.
- image: Coaching kitchen. Download https://media.vibefather.ai/assets/e96d06da-c68d-42e7-9fc9-2ae91f028d0f/studio-kitchen.webp to public/images/studio-kitchen.webp. Alt: 'A bright studio kitchen with jars of grains and a bowl of citrus.' Used in the about block. Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template; record that exact credit in ASSETS.md.
- image: Market basket. Download https://media.vibefather.ai/assets/e96d06da-c68d-42e7-9fc9-2ae91f028d0f/market-basket.webp to public/images/market-basket.webp. Alt: 'A woven basket filled with greens and citrus on light wood.' Used as a small square accent image beside the how-coaching-works strip. Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template; record that exact credit in ASSETS.md.
- image: Draw the plate builder entirely in code: an inline SVG donut of 8 equal wedges (each 45 degrees) with a 120px white center circle reading 'Your plate · N / 8', wedge fills from the four plate-group tokens, and a thin sage outer ring. No generated or stock image is used for the plate.
- icon: Install lucide-react and use only Leaf, Sparkles, MessagesSquare, Users, ChefHat, Salad, Drumstick, Wheat, Droplets, Clock, CalendarCheck, Check, RotateCcw, Star, Quote, MapPin, ChevronDown, and ArrowRight. ISC license. Draw no brand logos; the leaf logomark is original code around the Leaf glyph. Record the package and license in ASSETS.md.
- font: Self-host Baloo 2 weights 600 and 700 through @fontsource/baloo-2 (OFL-1.1). Record the package and license in ASSETS.md; do not use a font CDN.
- font: Self-host Nunito weights 400, 600, and 700 through @fontsource/nunito (OFL-1.1). Record the package and license in ASSETS.md; do not use a font CDN.
## Don'ts
- Never state or imply diagnosis, treatment, cure, prevention, detox, or weight-loss outcomes in any copy, tooltip, alt text, or metadata. Keep every sentence at the food-skills level and keep the footer's food-and-habits disclaimer present.
- Do not name or imply real nutritionists, dietitians, diet systems, or commercial programs. [PRACTITIONER], the Welltable Institute, client quotes, recipes, prices, and stats are invented for this demo.
- Photos must show produce, dishes, and kitchens only — no people's faces, no hands, no readable packaging, labels, or logos anywhere in the imagery.
- The booking flow is a local-only sample: no form submits, no APIs, no email or calendar services, no analytics. Persist to localStorage only and validate restored data.
- No dates tied to the real clock: use weekday chips and static sample slots; never render today's date, a countdown, or season-calendar math against the visitor's clock.
- No backend, server code, databases, auth, or third-party scripts. Static output in dist/ from the single build command.
- Self-host fonts through the listed Fontsource packages only; never load Google Fonts, Adobe Fonts, or any CDN stylesheet or script.
- No source maps in production, no src/ copied into dist/, keep dist/ under 20 MB, and keep Vite's base relative.
- No Unsplash, Pexels, Pixabay, Google Images, placeholder-image services, or hotlinked files; use only the six generated photos and original code-drawn SVG/CSS art.
- No SEO work: no meta descriptions, Open Graph tags, JSON-LD, sitemaps, or keyword-stuffed headings. A plain title with [BRAND] and a favicon are enough.
- Do not let the plate builder overflow horizontally, trap keyboard focus, or animate in a way that ignores prefers-reduced-motion.
- No scroll-jacking, custom cursor, autoplay audio, page parallax, or motion beyond the specified reveals, springs, pops, and tweens.
- Keep all copy in US English and build brand-derived strings (storage keys, slugs, alt text) from [BRAND] and [BRAND_SLUG] so alternate variable values never leave default-brand remnants.
- Every internal link is a file name or in-page anchor, never a bare directory; the site must render at 1440×900 and 390×844 with zero console errors.
---
— Prompt by VibeFather · https://vibefather.ai/t/nutritionist-website-with-plate-builder · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 带餐盘构建器的营养师网站
完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。
## 简介
为 [BRAND] 打造一个明亮的一页式网站,这是 [PRACTITIONER] 在 [CITY] 的营养教练实践,通过一对一教练、团体项目和 [FOOD_FOCUS] 服务 [AUDIENCE]。页面展示服务内容与教练方式、一个点击即可构建每日餐盘的工具(配有友好的平衡读数)、三道食谱预览、低调的客户评价,以及一个探索通话预约示例。每一个字都停留在厨房层面:页面上任何地方都没有医疗、诊断或减重声明。
- 受众:主要:[AUDIENCE] —— 想要更从容的采购行程、更快的周中晚餐,以及更稳定的饮食习惯,而不需要节食、羞耻感或临床语言的人。次要:自由职业者和小型工作室,为任何提供套餐服务的教练调整此布局。
- 目标:让访客从“这看起来就是我的生活”转变为预约好一个探索通话时段:用一屏的农产品优先世界赢得他们,用一次交互中的餐盘构建器证明教练方法,并让预约成为一个简单的工作日与时间选择,可内联完成并保留在浏览器中。
- 语气:温暖、平实、令人开胃——一位在阳光厨房里的厨师,绝不是诊所。短句、真实的食物词汇、温和的幽默。教练谈技能、购物和习惯;它从不诊断、治疗、开处方,也不承诺体重或医疗结果。
## 技术栈
- 框架:Vite 6 + React 18 + TypeScript
- 样式:Tailwind CSS 3.4
- 库:react (MIT)、react-dom (MIT)、vite (MIT)、typescript (Apache-2.0)、tailwindcss (MIT)、motion (MIT)、lucide-react (ISC)、@fontsource/baloo-2 (OFL-1.1)、@fontsource/nunito (OFL-1.1)
- 构建:`npm run build` → `dist/` 中的静态文件。无后端、无服务器代码、无外部 API。
- 设置:
- 创建一个 Vite 6 + React 18 + TypeScript 项目,base 为 './',build.outDir 为 'dist',build.sourcemap: false。无路由、无后端、无服务器代码。
- 安装 Tailwind CSS 3.4 及 PostCSS 和 Autrefixer。使用下方精确的调色板扩展主题,fontFamily.display 为 'Baloo 2',fontFamily.body 为 'Nunito',并将四个餐盘分组颜色作为命名令牌。
- 通过 @fontsource/baloo-2 和 @fontsource/nunito 自托管 Baloo 2 字重 600 和 700 以及 Nunito 字重 400、600 和 700,在 src/main.tsx 中导入。绝不从 CDN 加载字体。
- 使用来自 'motion/react' 的 Motion(motion、AnimatePresence、useReducedMotion)实现显现、弹簧和数字补间动画;每个动画都以 useReducedMotion() 为条件。
- 将所有文案和数据保留在 src/content.ts 中:品牌字符串、主视觉文案、服务、工作原理步骤、餐盘分组(目标、最大值、示例)、食谱、引语、从业者简介、预约日期和时段标签、FAQ。当变量值变化时,在该文件中重写依赖的文案,并从 [BRAND] 派生 slug 和存储键,以确保不残留默认品牌痕迹。
- 将餐盘构建为内联 SVG 环形图,由 8 个等分楔形组成,每个分组有各自的填充色,中心为白色圆形;分数、读数等级和建议是 content.ts 中定义的分组计数的纯函数。
- 将餐盘和探索通话请求持久化到 localStorage,键名分别为 [BRAND_SLUG] + '-plate' 和 [BRAND_SLUG] + '-discovery-request';验证恢复的 JSON,并从格式错误的数据中静默恢复。
- 仅使用以下 lucide-react 图标:Leaf、Sparkles、MessagesSquare、Users、ChefHat、Salad、Drumstick、Wheat、Droplets、Clock、CalendarCheck、Check、RotateCcw、Star、Quote、MapPin、ChevronDown、ArrowRight。
- 在构建前将六张生成的图片下载到资源部分列出的精确公共路径。在项目根目录创建 ASSETS.md,列出每个文件的路径、来源 URL、作者或生成器以及许可证。
- 一个纯 <title> 为 [BRAND] 以及一个 favicon(代码绘制的叶子标记)就足够了;不需要元描述、Open Graph 标签、JSON-LD 或站点地图。
## 变量
- [BRAND] — 品牌(默认:“Marigold Table”)。虚构的两词练习名称;代码中由此派生出一个叶点标志图形。
- [PRACTITIONER] — 从业者(默认:“June Calloway”)。虚构教练的名字,用于主视觉、关于区块和预约文案。
- [CITY] — 城市(默认:“Alder Springs”)。工作室所在地;出现在主视觉眉题、关于、FAQ 和地址中。
- [AUDIENCE] — 受众(默认:“busy parents who want weeknight dinners to come easily”)。用平实语言描述该教练服务面向的人群。
- [FOOD_FOCUS] — 食物重点(默认:“Mediterranean-inspired weeknight cooking”)。塑造主视觉文案、食谱和餐盘构建器示例的烹饪风格。
- [CREDIT] — 在页脚保留一个小型“Template by VibeFather”链接,指向 https://vibefather.ai/t/nutritionist-website-with-plate-builder(默认:是;删除此行即可移除)
页面与区块下的文案按默认值撰写。如果你的值不同,请为它们重写每个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便之后无需改动组件即可替换内容。
## 设计
### 颜色(Colors)
- 奶油色(Cream)`#FBFAF6` — 页面底色
- 白色(White)`#FFFFFF` — 卡片、标签和餐盘中心
- 叶绿色(Leaf green)`#2E7D4F` — 主色:按钮、链接、激活状态、品牌标志
- 叶绿浅色调(Leaf tint)`#F0F7F1` — 区块色带和柔和标签
- 柑橘色(Citrus)`#F5A63B` — 强调色:高亮、价格刻度、选中槽位填充
- 菠菜墨色(Spinach ink)`#26332B` — 标题和正文文本
- 鼠尾草色(Sage)`#DEE9DD` — 细线边框和分隔线
- 餐盘蔬菜色(Plate veggie)`#4C9A5F` — 餐盘构建器中蔬菜和水果扇区的填充色
- 餐盘蛋白质色(Plate protein)`#CC6B4A` — 餐盘构建器中蛋白质扇区的填充色
- 餐盘谷物色(Plate grain)`#DCA94E` — 餐盘构建器中全谷物扇区的填充色
- 餐盘脂肪色(Plate fats)`#8FA05C` — 餐盘构建器中优质脂肪和附加项扇区的填充色
### 排版(Typography)
- 展示字体:标题、价格、餐盘读数标题:Baloo 2(OFL),字重 600/700
- 正文字体:段落、控件、标签、元信息:Nunito(OFL),字重 400/600/700
### 布局与动效(Layout & motion)
- 间距:8px 基础网格。内容外壳最大宽度 1160px,桌面端侧边内边距 32px,移动端 20px。页头 72px。桌面端区块垂直内边距 96px,移动端 64px。卡片网格间距 24px。文本块每行最多 62 个字符。
- 圆角:按钮、标签、标记和品牌标志使用胶囊形 999px;照片、餐盘卡片和大型面板使用 24px;小型卡片和输入框使用 16px。照片使用 24px 圆角并带 1px 鼠尾草色边框。
- 动效:区块在滚动时显现一次:上移 14px,伴随 450ms ease-out 淡入,同级卡片错开 60ms。在 prefers-reduced-motion 下禁用。
- 动效:首屏:农产品照片在 700ms 内从 1.04 缩放至 1,同时文案行上移 16px,错开 80ms。
- 动效:餐盘构建器:新添加的扇区以弹簧效果弹入(刚度 260,阻尼 20),最新扇区脉冲一次;读数标题在 200ms 内交叉淡入,分数数字在 300ms 内补间。
- 动效:悬停状态将卡片上移 4px 并带柔和阴影,180ms。无页面漂移、无自定义光标、无自动播放媒体。
- 动效:在 prefers-reduced-motion: reduce 下,将弹簧、补间和显现替换为 100ms 透明度变化;所有交互保持完全可用。
- 图像:一组摄影作品,一次拍摄:新鲜农产品和成品菜肴,采用一致的轻盈日光色调——白色大理石和浅橡木表面,柔和的窗户光从左上角照入,高调白色,温和的暖色高光,以绿叶蔬菜和柑橘为主。六张生成照片(首屏农产品摆拍、三道摆盘食谱、教练厨房、市场篮子);不出现人脸、手、可读包装或标志。餐盘环、图标、品牌标志和装饰弧线均以代码绘制,绝不使用照片。
## 页面与区块
### [BRAND] — [CITY] 的营养指导(`index.html`)
1. **页眉与主视觉区** — 吸顶页眉(72px,奶油色 92% 不透明度并带背景模糊,1px 鼠尾草绿底边线):代码绘制的标志图形——一个叶绿色圆形内嵌白色 Lucide Leaf 图标——旁边是 Baloo 2 700 字重的 [BRAND];导航锚点:Services、Plate builder、Recipes、About;右对齐的叶绿色胶囊按钮 'Book a discovery call'。主视觉区位于奶油色背景上:眉题 'NUTRITION COACHING IN [CITY]';H1 'Good food, made doable.';段落 'Hi, I'm [PRACTITIONER]. I help [AUDIENCE] cook [FOOD_FOCUS] — with calmer grocery runs, a rotation of dinners you actually like, and plates that get eaten.';主胶囊按钮 'Book a free discovery call'(滚动至预约区)和次级叶绿色描边胶囊按钮 'Try the plate builder'。按钮下方的信任行:'480 households coached · 12-week Table Reset program · 120+ weeknight recipes'。右侧:主视觉农产品照片置于 24px 圆角边框内,其左下角悬浮一张白色小卡片:一个 Sparkles 图标和 'In season this week — oranges, chard, leeks'。
布局:12 列网格:文案位于第 1–5 列,照片位于第 6–12 列,4:3 比例,object-cover,最小高度 520px。H1 字号 clamp(40px, 4.6vw, 64px),行高 1.05,菠菜墨色。悬浮小卡片为白色胶囊,阴影从照片左下角偏移 -16px。移动端:文案先堆叠,照片随后全宽显示,4:3 比例,小卡片位于其左下角内;每个点击目标至少 44px。
动效:照片从 scale 1.04 在 700ms 内稳定;眉题、H1、段落、按钮和信任行以 80ms 错峰上升 16px;小卡片最后以相同弹簧效果淡入。
2. **服务与指导方式** — 白色区块。眉题 'WHAT WE DO TOGETHER';标题 'Coaching that fits your kitchen.'。三张平静的卡片:'One-to-one coaching' — '$390 / month' — 'Two 50-minute sessions a month, a grocery game plan, and message check-ins between. For people who want a coach in their corner.';'The Table Reset' — '$249 / 12 weeks' — 'A small-group program: six live cooking classes, a pantry clean-out guide, and weekly habit threads. New groups start each season.';'Pantry Workshop' — '$85 / one visit' — 'Two hours in your kitchen (or on video). We reorganize, label, and shop-list your staples so weeknights stop being improvised.' 每张卡片页脚链接 'Ask about it on a call' 指向预约锚点。卡片下方是一条 'How coaching works' 三步条带:'01 Discovery call — 20 minutes, no charge. We talk about your weeknights.';'02 A plan you'll actually cook — three habits, one shopping rhythm.';'03 Weekly check-ins — we adjust, celebrate, and keep it doable.'
布局:卡片在白色背景上呈 3 列网格(16px 圆角,1px 鼠尾草绿边框):图标圆盘(MessagesSquare、Users、ChefHat)位于叶色浅底上,服务名称 Baloo 2 600 字重,价格行 Baloo 2 700 字重叶绿色,正文,页脚链接带 ArrowRight。下方步骤条带:三列由 1px 鼠尾草绿细线分隔,描边数字 01–03 为 40px 叶绿色。移动端:卡片堆叠;步骤堆叠,左侧数字栏,细线变为水平分隔线。
动效:一次性显现:卡片以 60ms 错峰上升 14px;悬停时卡片上浮 4px 并带柔和阴影;步骤数字随区块淡入,无单独的循环动画。
3. **每日餐盘构建器** — 叶色浅底条带。眉题 'TRY IT NOW';标题 'Build today's plate.';引言 'Tap a food group to add a portion. Aim for the simple rule — half the plate veggies and fruit, a quarter protein, a quarter grains, plus a drizzle of something good.' 四行食物组,每行含图标、名称、示例行、计数和减号控件:'Veggies & fruit'(Salad)'roasted broccoli · shaved carrot · orange segments' 最多 5;'Protein'(Drumstick)'eggs · white beans · salmon' 最多 3;'Whole grains'(Wheat)'farro · barley · sourdough' 最多 2;'Good fats & extras'(Droplets)'olive oil · pumpkin seeds · avocado' 最多 2。餐盘是一个绘制的 SVG 甜甜圈,8 个等分扇区围绕白色中心,中心显示 'Your plate · N / 8'。旁边是读数面板:分数仪表、标题和一句建议,外加一个 'Clear the plate' 重置链接。餐盘状态持久化在 localStorage 中。
布局:两列:餐盘 SVG 约 380px 在左,控件在右。每个食物组行是 56px 高的按钮:图标圆盘为组颜色,名称加示例,计数 '2 / 5',以及一个减号圆圈,移除该组最后一份。扇区从 12 点钟方向顺时针按添加顺序填充,按组着色。评分:目标为 4 份蔬菜、2 份蛋白质、1 份谷物、1 份脂肪;分数 = max(0, 100 − 12 × Σ|count − target|)。读数层级:分数 100 'A beautifully balanced plate — the simple rule in action.';85–99 'Bright and balanced — {suggestion}.';60–84 'Almost there — {suggestion}.';低于 60 'Keep building — {suggestion}.'。建议:餐盘未满时,指出缺口最大的组('add a scoop of whole grains');餐盘已满但偏离目标时,指出超出最多的组('take one off the veggies and make room')。读数为 aria-live='polite'。移动端:餐盘居中于食物组行上方,读数在下方,无水平滚动。
动效:新扇区弹簧进入(stiffness 260,damping 20),最新扇区单次脉冲;移除在 150ms 内淡出;分数补间 300ms,标题交叉淡入淡出 200ms;减少动态效果时全部替换为即时状态变化。
4. **食谱预览** — 白色区块。眉题 'FROM THE RECIPE LIBRARY';标题 'Three dinners from this month.';三张照片卡片:'Charred Lemon & White Bean Bowl' — 标签 '25 min' 和 'weeknight' — 'Crisp-edged beans, soft herbs, and a lemony dressing kids ask for twice.';'Sheet-Pan Harissa Chicken with Plums' — '35 min' 和 'one pan' — 'Sweet plums, warm spice, and a pan sauce that makes its own glory.';'Spring Pea & Feta Farro' — '20 min' 和 'meatless' — 'Chewy grains, poppy peas, salty feta — dinner tonight, lunch tomorrow.' 网格下方页脚行:'Full recipes live in the member library — have a taste on a discovery call.' 卡片为视觉元素带元信息标签,非链接。
布局:3 列白色卡片网格(16px 圆角,1px 鼠尾草绿边框):顶部 4:3 照片 24px 圆角,名称 Baloo 2 600 字重,元信息标签带 Clock 图标表示时间,一行描述。平板 2 列;移动端单列。悬停上浮 4px。
动效:卡片以 60ms 错峰显现;每张照片在悬停时循环 6s 从 1 到 1.03 的缓慢缩放,减少动态效果时完全跳过。
5. **客户评价** — 奶油色条带。眉题 'KITCHEN TABLE STORIES';标题 'What changes, people say.' 三张安静的引用卡片:'Priya S. — parent of two' 'Our Tuesday is no longer cereal. We plan on Sunday, shop once, and actually cook. [PRACTITIONER] made it feel easy, not virtuous.';'Marcus & Elena T. — Table Reset cohort' 'Six dishes we rotate happily, and a grocery list that alone paid for the program.';'Dana W. — shift nurse' 'I eat real food on night shifts now. We built a plan around my odd hours, not against them.'
布局:3 列白色卡片网格(24px 圆角):大 Quote 图标为叶色浅底,引用文字 17px 菠菜墨色,然后是姓名行带小鼠尾草绿首字母圆盘。移动端堆叠为一列,间距舒适 16px。
动效:仅一次性错峰显现;引用无悬停动画。
6. **关于指导师** — 白色区块,两列。左:工作室厨房照片(4:3,24px 圆角)。右:眉题 'YOUR COACH';标题 'Hi, I'm [PRACTITIONER].';正文 'I trained as a nutrition coach at the Welltable Institute and spent nine years in teaching kitchens before starting [BRAND] in [CITY]. I don't hand out meal plans you abandon in a week — we build food skills: shopping, prep, and a rotation of dinners you like. When I'm not coaching, I'm at the farmers' market deciding between two kinds of chard.' 三个事实标签:'9 years coaching'、'Certified nutrition coach — Welltable Institute'、'Cooking-class teacher'。标签下方一行小 MapPin 文字:'Studio 3, 92 Alder Lane, [CITY]'。
布局:照片位于第 1–6 列,4:3;文案位于第 7–12 列,事实标签为叶色浅底胶囊,最多换行两行。移动端:照片在文案上方,标签自由换行。
动效:区块级显现;照片从 scale 1.03 在 700ms 内微妙稳定,减少动态效果时跳过。
7. **Discovery-call booking(探索通话预约)** — 深叶绿色横幅配奶油色文字:眉题 'START HERE';标题 'Book a free discovery call.';引言 'Pick a weekday and a time that suits you — 20 minutes, on video or at the studio (Studio 3, 92 Alder Lane, [CITY]). This demo keeps your request in your own browser; nothing is sent anywhere.' 白色卡片内:星期胶囊按钮 Monday–Saturday;时段胶囊按钮 9:00, 10:30, 13:00, 15:30, 17:00;一个双选项分段控件 'Video call' / 'At the studio';姓名和邮箱输入框;提交胶囊按钮 'Request this slot'。成功后表单替换为确认信息:CalendarCheck 图标、'You're on the list, {name}!'、'We'd see you {day} at {time} ({place}). In a live site this would reach [PRACTITIONER] — in this demo it's saved locally.',以及一个 'Change my request' 链接,点击后恢复已填写的表单。
布局:深叶绿色横幅上居中放置 720px 宽的白色卡片(24px 圆角)。胶囊按钮为 44px;选中胶囊填充叶绿色配白色文字,时段胶囊填充柑橘色配菠菜墨色文字。本地验证:姓名必填,邮箱必须匹配简单模式;错误以字段下方的行内红色文字显示,绝不使用弹窗。将整个请求持久化到以 [BRAND_SLUG] 为键的 localStorage;重新加载时恢复。确认信息为 aria-live='polite'。移动端:卡片保持 20px 侧边内边距;胶囊按钮换行。
动效:选中胶囊弹至 1.06 并回落(180ms);确认信息在 240ms 内交叉淡入;分段控件滑块滑动 200ms。在减少动态效果下全部替换为即时变化。
8. **FAQ and footer(常见问题与页脚)** — FAQ 'Fair questions.' 以四个 details/summary 项呈现:'Do you write meal plans or give medical advice?' — 'Neither. We work on food skills and habits — shopping, prep, and rotation. I don't diagnose, treat, or prescribe; for medical questions you'll always be pointed back to your clinician.';'What happens on a discovery call?' — 'Twenty minutes about your weeknights: what works, what collapses, and whether coaching fits. No pressure and no charge.';'Do you sell supplements or products?' — 'No. The only things I sell are time, programs, and a very opinionated spice-rack diagram.';'Virtual or in person?' — 'Both. Coaching happens over video anywhere; pantry visits and classes happen at the studio in [CITY].' 页脚为菠菜墨色配奶油色文字:叶子标志和 [BRAND],一行 'Food skills, not rules.',锚点导航(Services, Plate builder, Recipes, About, Book a call),以及说明 'This site is food-and-habits coaching, not medical advice.' 加上可选的 [CREDIT] 链接。
布局:FAQ 为单列,最大宽度 760px,1px 鼠尾草色分隔线,每项 22px 垂直内边距,以及一个旋转的 ChevronDown。页脚:桌面端两行——品牌块在左,导航在右,说明和 [CREDIT] 在第二行以柔和奶油色显示;移动端堆叠。无社交图标,无新闻订阅表单。
动效:切换时 160ms 的箭头旋转,无可能裁切文字的高度动画;页脚为静态。
## 资源
- 图片:主视觉食材铺陈图。将 https://media.vibefather.ai/assets/e96d06da-c68d-42e7-9fc9-2ae91f028d0f/hero-produce.webp 下载到 public/images/hero-produce.webp。Alt:'A spread of fresh produce — leafy greens, citrus, and herbs on a white marble table.' 用作主视觉的视觉锚点。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发;请将这一确切署名记录在 ASSETS.md 中。
- 图片:食谱照片一。将 https://media.vibefather.ai/assets/e96d06da-c68d-42e7-9fc9-2ae91f028d0f/recipe-beans.webp 下载到 public/images/recipe-beans.webp。Alt:'A bowl of white beans with charred lemon halves and herbs.' 用于 Charred Lemon & White Bean Bowl 卡片。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发;请将这一确切署名记录在 ASSETS.md 中。
- 图片:食谱照片二。将 https://media.vibefather.ai/assets/e96d06da-c68d-42e7-9fc9-2ae91f028d0f/recipe-sheetpan.webp 下载到 public/images/recipe-sheetpan.webp。Alt:'A sheet pan of roasted chicken with plums and red onion.' 用于 Sheet-Pan Harissa Chicken 卡片。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发;请将这一确切署名记录在 ASSETS.md 中。
- 图片:食谱照片三。将 https://media.vibefather.ai/assets/e96d06da-c68d-42e7-9fc9-2ae91f028d0f/recipe-farro.webp 下载到 public/images/recipe-farro.webp。Alt:'A plate of farro with green peas, feta, and mint.' 用于 Spring Pea & Feta Farro 卡片。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发;请将这一确切署名记录在 ASSETS.md 中。
- 图片:教练厨房。将 https://media.vibefather.ai/assets/e96d06da-c68d-42e7-9fc9-2ae91f028d0f/studio-kitchen.webp 下载到 public/images/studio-kitchen.webp。Alt:'A bright studio kitchen with jars of grains and a bowl of citrus.' 用于关于区块。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发;请将这一确切署名记录在 ASSETS.md 中。
- 图片:市集篮。将 https://media.vibefather.ai/assets/e96d06da-c68d-42e7-9fc9-2ae91f028d0f/market-basket.webp 下载到 public/images/market-basket.webp。Alt:'A woven basket filled with greens and citrus on light wood.' 用作教练如何运作条带旁的小方形点缀图。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发;请将这一确切署名记录在 ASSETS.md 中。
- 图片:完全用代码绘制餐盘构建器:一个内联 SVG 甜甜圈图,由 8 个等分扇区(每个 45 度)组成,中心有一个 120px 的白色圆形,显示 'Your plate · N / 8',扇区填充取自四个餐盘分组 token,外圈为细鼠尾草色圆环。餐盘不使用任何生成图或图库图片。
- 图标:安装 lucide-react,并且仅使用 Leaf、Sparkles、MessagesSquare、Users、ChefHat、Salad、Drumstick、Wheat、Droplets、Clock、CalendarCheck、Check、RotateCcw、Star、Quote、MapPin、ChevronDown 和 ArrowRight。ISC 许可证。不绘制任何品牌 logo;叶子标志是在 Leaf 字形周围用原创代码绘制的。请在 ASSETS.md 中记录该包和许可证。
- 字体:通过 @fontsource/baloo-2 自托管 Baloo 2 的 600 和 700 字重(OFL-1.1)。请在 ASSETS.md 中记录该包和许可证;不要使用字体 CDN。
- 字体:通过 @fontsource/nunito 自托管 Nunito 的 400、600 和 700 字重(OFL-1.1)。请在 ASSETS.md 中记录该包和许可证;不要使用字体 CDN。
## 禁止事项
- 不得在任何文案、工具提示、替代文本或元数据中陈述或暗示诊断、治疗、治愈、预防、排毒或减重效果。每句话都应保持在食物技能层面,并保留页脚中关于食物与习惯的免责声明。
- 不得提及或暗示真实的营养师、饮食学家、饮食体系或商业项目。[PRACTITIONER]、Welltable Institute、客户评价、食谱、价格和统计数据均为本演示虚构。
- 照片只能展示农产品、菜肴和厨房——图像中不得出现人脸、手、可读的包装、标签或徽标。
- 预约流程仅为本地示例:不提交表单、不调用 API、不发送邮件或使用日历服务、不做分析。仅持久化到 localStorage,并校验恢复的数据。
- 不得使用与真实时钟绑定的日期:使用星期标签和静态示例时段;绝不渲染今天的日期、倒计时,或基于访客时钟的节气日历计算。
- 不得使用后端、服务器代码、数据库、认证或第三方脚本。通过单一构建命令在 dist/ 中生成静态输出。
- 仅通过列出的 Fontsource 包自托管字体;绝不加载 Google Fonts、Adobe Fonts 或任何 CDN 样式表或脚本。
- 生产环境不得包含 source map,不得将 src/ 复制到 dist/,保持 dist/ 在 20 MB 以下,并保持 Vite 的 base 为相对路径。
- 不得使用 Unsplash、Pexels、Pixabay、Google Images、占位图服务或热链接文件;仅使用六张生成的图片和原创的代码绘制 SVG/CSS 艺术。
- 不做 SEO 工作:不写 meta 描述、Open Graph 标签、JSON-LD、站点地图,也不使用堆砌关键词的标题。一个包含 [BRAND] 的普通标题和一个 favicon 就足够了。
- 不得让餐盘构建器出现水平溢出、困住键盘焦点,或以忽略 prefers-reduced-motion 的方式进行动画。
- 不得使用滚动劫持、自定义光标、自动播放音频、页面视差,或超出指定显现、弹簧、弹出和补间动画范围的运动效果。
- 所有文案保持美式英语,并基于 [BRAND] 和 [BRAND_SLUG] 构建品牌派生字符串(存储键、slug、替代文本),以便替换变量值后不会残留默认品牌痕迹。
- 每个内部链接都是文件名或页内锚点,绝不是裸目录;网站必须在 1440×900 和 390×844 下渲染,且控制台零错误。
---
— Prompt by VibeFather · https://vibefather.ai/t/nutritionist-website-with-plate-builder · 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: "Nutritionist Website with Plate Builder"
colors:
cream: "#FBFAF6"
white: "#FFFFFF"
leaf_green: "#2E7D4F"
leaf_tint: "#F0F7F1"
citrus: "#F5A63B"
spinach_ink: "#26332B"
sage: "#DEE9DD"
plate_veggie: "#4C9A5F"
plate_protein: "#CC6B4A"
plate_grain: "#DCA94E"
plate_fats: "#8FA05C"
typography:
display_headlines_prices_plate_readout_headings: { family: "Baloo 2", weights: [600, 700] }
body_paragraphs_controls_chips_meta: { family: "Nunito", weights: [400, 600, 700] }
spacing: "8px base grid. Content shell max-width 1160px with 32px desktop and 20px mobile side padding. Header 72px. Desktop sections 96px vertical padding, mobile 64px. Card grids gap 24px. Prose blocks max 62 characters per line."
radius: "Pill 999px for buttons, chips, tags, and the logomark; 24px for photos, the plate card, and large panels; 16px for small cards and inputs. Photos get a 24px radius with a 1px sage border."
---
# Nutritionist Website with Plate Builder — 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
- **Cream** `#FBFAF6` — Page ground
- **White** `#FFFFFF` — Cards, chips, and the plate center
- **Leaf green** `#2E7D4F` — Primary: buttons, links, active states, logomark
- **Leaf tint** `#F0F7F1` — Section bands and soft chips
- **Citrus** `#F5A63B` — Accent: highlights, price ticks, selected-slot fills
- **Spinach ink** `#26332B` — Headings and body text
- **Sage** `#DEE9DD` — Hairline borders and dividers
- **Plate veggie** `#4C9A5F` — Plate-builder wedge fill for veggies and fruit
- **Plate protein** `#CC6B4A` — Plate-builder wedge fill for protein
- **Plate grain** `#DCA94E` — Plate-builder wedge fill for whole grains
- **Plate fats** `#8FA05C` — Plate-builder wedge fill for good fats and extras
## Typography
- **Display: headlines, prices, plate readout headings** — Baloo 2 (OFL), weights 600/700. Self-host the font files.
- **Body: paragraphs, controls, chips, meta** — Nunito (OFL), weights 400/600/700. Self-host the font files.
## Spacing & shape
- Spacing: 8px base grid. Content shell max-width 1160px with 32px desktop and 20px mobile side padding. Header 72px. Desktop sections 96px vertical padding, mobile 64px. Card grids gap 24px. Prose blocks max 62 characters per line.
- Radius: Pill 999px for buttons, chips, tags, and the logomark; 24px for photos, the plate card, and large panels; 16px for small cards and inputs. Photos get a 24px radius with a 1px sage border.
## Motion
- Sections reveal once on scroll: 14px rise with a 450ms ease-out fade, sibling cards staggered 60ms. Disabled under prefers-reduced-motion.
- Hero: the produce photo scales from 1.04 to 1 over 700ms while the copy lines rise 16px with an 80ms stagger.
- Plate builder: a newly added wedge springs in (stiffness 260, damping 20) and the newest wedge pulses once; the readout heading crossfades over 200ms and the score number tweens over 300ms.
- Hover states lift cards 4px with a soft shadow, 180ms. No page drift, no custom cursor, no autoplay media.
- With prefers-reduced-motion: reduce, replace springs, tweens, and reveals with 100ms opacity changes; every interaction stays fully functional.
## Imagery
One photographic set, one shoot: fresh produce and finished dishes in a consistent airy daylight grade — white marble and light oak surfaces, soft window light from the upper left, high-key whites, gentle warm highlights, leafy greens and citrus dominant. Six generated photos (hero produce spread, three plated recipes, the coaching kitchen, a market basket); no faces, no hands, no readable packaging or logos. The plate ring, icons, logomark, and decorative arcs are drawn in code, never photographed.
## Tone
Warm, plain-spoken, and appetizing — a cook in a sunny kitchen, never a clinic. Short sentences, real food words, gentle humor. Coaching talks skills, shopping, and habits; it never diagnoses, treats, prescribes, or promises weight or medical outcomes.
---
— Prompt by VibeFather · https://vibefather.ai/t/nutritionist-website-with-plate-builder · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 备餐工作室:设置 [BRAND] 和 [CITY],围绕每周餐盒规格重写套餐,并保留餐盘搭配工具作为新订阅者的份量规划预览。
- 儿童烹饪俱乐部:将 [AUDIENCE] 设为有小朋友厨师的家庭,把食谱换成适合孩子的菜肴,并保留餐盘工具作为有趣的午餐盒平衡检查。
- 烹饪老师:将 [FOOD_FOCUS] 设为你课程的菜系,把指导步骤替换为课程形式,并将预约时间段选项链接到你的工作坊日期。
- 健康从业者:保持非临床语气,围绕习惯指导重写服务,并使用餐盘读数来展示你对均衡日常饮食的方法。
营养师网站(含餐盘搭配工具):常见问题
营养师网站(含餐盘搭配工具)上的餐盘搭配工具到底是怎么工作的?
餐盘搭配工具是一个内联绘制的环形图,由八个等分扇形组成,中间是白色圆形。访客点击食物类别——蔬菜水果、蛋白质、全谷物、优质脂肪及其他——来填充扇形,平衡分数、读数等级和简短建议会作为类别计数的纯函数响应。每个类别都有在内容文件中定义的目标值、上限和示例食物,因此这个工具通过一次互动就展示了该机构的饮食理念。
怎么用 AI 做一个营养师网站(含餐盘搭配工具)?
复制本页的提示词,或者运行 npx vibefather add nutritionist-website-with-plate-builder,把 [CITY]、[BRAND]、[AUDIENCE]、[FOOD_FOCUS] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。