用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
这个模板为宠物食品品牌打造了一个友好、多彩的订阅页:温暖的奶油色底,两个活泼的强调色——取食橙和草绿,粗圆字体,以及没有人物入镜的宠物快乐影棚照。首屏是一只咧嘴笑的开心狗狗,位于品牌名下方,承诺为每一只动物量身定制食物。它适合鲜粮、风干粮或干粮品牌,猫粮或狗粮皆可,也适合任何通过一次交互就能个性化定制方案的订阅产品。页面核心是方案定制器:物种、年龄段、体重滑块和活动水平共同驱动一个实时面板,显示以杯为单位的份量、每日卡路里、配送频率和每日价格,每个数字都随输入变化弹跳就位。一个碗的可视化会按份量填充,鲜粮/冻粮切换会重写配方行,保存的方案存在浏览器里,并附有诚实说明:这是示例计算,不是兽医建议。原料卡片、三步配送条和来自具名宠物的评价让页面更完整。一切都在 React、Tailwind 和 Motion 上客户端运行;字体自托管,照片打包内置。四个变量——品牌、食品风格、配送区域和基础日费率——从一个内容文件重写文案。弹簧动画在桌面端保持弹跳,在移动端更平静,prefers-reduced-motion 下即时更新。模板附带六张匹配的影棚照片,全部为同一温暖奶油色拍摄,无包装文字和标识。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Pet Food Subscription Page
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
A single-page subscription site for [BRAND], a pet food maker delivering [FOOD_STYLE] across the [DELIVERY_AREA]. A hero pet portrait anchors the page; the plan builder turns species, age, weight and activity into a visible plan — portion cups, calories, cadence and price updating live; ingredients, delivery steps and pet-named reviews close it.
- Audience: Dog and cat owners in the [DELIVERY_AREA] who read labels, worry about portion creep, and will happily trade two minutes for a plan that looks made for their animal.
- Goal: Get a visitor to build a plan in the quiz, watch the numbers move, save it locally, and feel the brand is precise and warm before a real checkout ever exists.
- Tone: Cheerful and straight-talking, like a good vet tech: plain words, real numbers, gentle jokes about pets. Never wiggles around the fact that the math is a sample.
## Stack
- Framework: Vite 5 + React 18 + TypeScript
- Styling: Tailwind CSS 3.4
- Libraries: react + react-dom 18 (MIT), motion (motion.dev) 11 (MIT), lucide-react (ISC), @fontsource/fredoka, @fontsource/figtree (OFL)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
- Scaffold with npm create vite@latest using the react-ts template. One HTML page at the project root: index.html (entry src/main.tsx).
- vite.config.ts: base './', plugins [react()], build { outDir 'dist', sourcemap false, assetsInlineLimit 0 }. Never copy src/ into dist/.
- Tailwind 3.4 through PostCSS, content ['./index.html', './src/**/*.{ts,tsx}']. theme.extend.colors maps cream, peanut, ink, orange, orangeDeep, grass, grassDeep, rule.
- src/fonts.ts imports @fontsource/fredoka/500.css, 600.css, 700.css and @fontsource/figtree/400.css, 600.css, 700.css. Import fonts.ts from src/main.tsx.
- Global CSS in src/index.css: body background cream; selection orange on cream; focus-visible outline 3px orange; chunky shadows via box-shadow 0 4px 0 rgba(43,37,32,0.12) on primary buttons.
- src/content.ts holds every string: quiz steps, plan labels, ingredients (name, source, blurb), delivery steps, reviews (pet name, breed line, quote, human name), footer data, and the plan formula constants. Rewrite this file when the variables change.
- src/lib/brand.ts: brandSlug from [BRAND]; localStorage key `${brandSlug}:plan` storing the full plan object. src/lib/plan.ts exports the deterministic calculation: kcal = 70 × (weightKg ^ 0.75) × activityFactor (couch 1.2, regular 1.6, athlete 2.0) × ageFactor (young 1.4, adult 1.0, senior 0.9); cups = kcal / 400, rounded to the nearest quarter; pricePerDay = baseRate × (kcal / 1000) × styleFactor (fresh 1.15, frozen 1.0), baseRate parsed from [BASE_DAY_RATE], shown to two decimals; deliveryPrice = pricePerDay × cadenceDays (14, 28, 42). Convert slider pounds to kg with lb × 0.4536.
- Components in src/components/: Header.tsx, Reveal.tsx (Motion whileInView, fade + 18px rise, 420ms, 70ms stagger), PlanBuilder.tsx (SpeciesStep, AgeStep, WeightSlider, ActivityStep, PlanPanel), BowlViz.tsx (SVG bowl that fills to cups/fullCups ratio), Ingredients.tsx, DeliverySteps.tsx, Reviews.tsx, FaqNote.tsx, Footer.tsx.
- Springs via Motion: type spring stiffness 300 damping 20 on desktop; on mobile (max-width 768px matchMedia) use 300ms tweens instead; prefers-reduced-motion removes all animation but keeps every number correct.
- public/favicon.svg: a 64px code-drawn bone shape in orange on cream. Download the six photos from Assets into public/images/ before building; write ASSETS.md at the project root.
- dist/ holds index.html, hashed JS/CSS, the woff2 fonts, favicon.svg and six webp images. Keep it under 20 MB.
## Variables
- [BRAND] — Brand name (default: "Tail & Tummy"). Invented pet food brand. Wordmark, titles, brandSlug (localStorage keys) and every mention. Never a real pet food maker or vet chain.
- [FOOD_STYLE] — Food style (default: "fresh-frozen bowls"). What the brand cooks. Appears in the hero eyebrow, the recipe line and the ingredients intro. Keep it lowercase, e.g. fresh-frozen bowls, air-dried kibble.
- [DELIVERY_AREA] — Delivery area (default: "Denver metro"). Where the brand delivers. Used in the hero eyebrow, reviews bylines and the footer address line.
- [BASE_DAY_RATE] — Base day rate (default: "$2.90"). The anchor per-day price for a 1,000 kcal adult dog on the frozen plan; the live math scales it by calories, age, activity and style. Keep the dollar-and-cents format.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/pet-food-subscription-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
- Cream `#FFF5E8` — Page ground everywhere — warm, like an afternoon kitchen.
- Peanut `#FAE7CD` — Card wells, chips, the plan panel, review cards.
- Ink `#2B2520` — Primary text: headlines, numbers, buttons on light grounds.
- Fetch Orange `#F0761F` — Primary accent: CTAs, slider fill, active step, bowl fill, focus ring.
- Orange Deep `#D25F10` — Orange hover and pressed state.
- Grass Green `#4C9A58` — Second accent: pet-safe and ingredient tags, secondary buttons, check marks, cadence chips.
- Grass Deep `#3B7A45` — Green hover and pressed state.
- Rule `#EFDCC3` — 1px hairlines and card borders, stepper dividers.
### Typography
- Display — wordmark, H1, H2, plan numbers, step questions. Fredoka, chunky rounded, sentence case, line-height 1.15: Fredoka (OFL), weights 500/600/700
- Text — body, option labels, reviews (600 for names), captions: Figtree (OFL), weights 400/600/700
### Layout & motion
- Spacing: Big and friendly: 104px desktop section rhythm (64px mobile), 1160px container, 28px padding. Cards 24px gap; the plan builder is a 6/6 split with a 40px gutter; buttons are 52-56px tall.
- Radius: Chunky rounds: 24px on cards and the plan panel, 999px on buttons, chips and badges, 20px on images.
- Motion: Bouncy but polite: quiz steps slide 28px with a spring (stiffness 300, damping 20); mobile uses 300ms tweens instead.
- Motion: Plan numbers (cups, kcal, price) spring into place on every input change — old value exits up, new value enters from below, 240ms.
- Motion: The bowl SVG fills with orange to the portion ratio on the same spring; switching species swaps the bowl art with a 240ms crossfade.
- Motion: Primary buttons have a chunky 0 4px 0 shadow that flattens on press; chips scale 0.96 on press.
- Motion: Reveals fade and rise 18px over 420ms with 70ms stagger; prefers-reduced-motion makes every animation an instant state change.
- Imagery: One bright studio shoot: every photograph is a pet or its food on a warm cream seamless backdrop — soft even light with a warm golden cast, joyful expressions, gentle floor shadow. No people, no hands, no readable packaging, no logos.
## Pages & Sections
### [BRAND] — build your pet's plan (`index.html`)
1. **Header** — Sticky header on Cream, 1px Rule hairline after 12px of scroll. Left: wordmark [BRAND] in Fredoka 600 22px, Ink, with a small code-drawn paw glyph in orange before the name. Center nav (desktop): The Plan, Ingredients, Delivery, Reviews — Figtree 600 14px, Ink at 70% to full on 150ms, scrolling to anchors. Right: CTA 'Build a plan' (orange fill, cream text, 999px, chunky shadow). Mobile: wordmark plus burger (two 2px Ink lines) opening a full-screen Cream overlay with anchors in Fredoka 26px and the CTA at the bottom.
Layout: Single row, 1160px container, 16px vertical padding.
Motion: Hairline fades in on scroll; overlay fades and rises 12px in 200ms.
2. **Hero** — Split hero: right 6 columns hold hero-dog.webp (a scruffy terrier mix mid-grin on the cream backdrop) bleeding to the viewport's right edge, rounded 24px on its left corners. Left 6 columns, copy vertically centered. Eyebrow '[BRAND] — [FOOD_STYLE] FOR DOGS AND CATS — [DELIVERY_AREA]' in Figtree 700 12px uppercase 0.14em, orange. H1 in Fredoka 700 clamp(40px, 5.5vw, 64px), Ink: 'One bowl, built for one body.' Sub in Figtree 400 17px Ink at 80%, max 46ch: 'Tell us about your pet — portion, calories and price appear before your coffee cools. Plans start around [BASE_DAY_RATE] a day.' CTAs: 'Build your plan — 60 sec' (orange fill) and 'Read the recipe' (ghost, 1.5px Ink border) scrolling to ingredients. Trust row of three mini-badges with icons in grass: Check 'Cooked weekly', Snowflake 'Arrives frozen', PawPrint 'Pet-safe ingredients list'.
Layout: 6/6 split; image bleeds right on desktop. Mobile: image on top at 4:3, copy below with 24px padding.
Motion: Copy staggers in at 420ms each, 70ms apart; the photo scales from 1.03 to 1.0 over 600ms once; the trust badges pop in sequence after the CTAs.
3. **Plan builder** — id='plan'. The whole pitch. Left column, one step at a time under the eyebrow 'BUILD THE PLAN' and H2 'Sixty seconds, one honest plan.' Step 1 'Who eats tonight?' — two big option cards with photos: dog (hero-dog crop) and cat (cat-bowl crop), lucide Dog / Cat icons beside labels. Step 2 'Which birthday era?' — chips 'Under a year', 'One to seven', 'Seven-plus' (young, adult, senior). Step 3 'How heavy?' — a range slider from 4 to 120 lb (4 to 20 lb when cat is chosen), orange fill, Ink thumb, live label '34 lb'. Step 4 'Couch pal, daily walker, or athlete?' — three cards with icons Sofa, Footprints, Zap. A progress rail of four dots (orange when done) sits under the steps; Back is a text link; steps auto-advance on selection (the slider advances on Next). Right column: the live plan panel on Peanut, rounded 24px — species and name line ('Your dog's plan'), then four animated figures in Fredoka 600: Portion '1¾ cups a day' (nearest quarter), Energy '940 kcal a day', Cadence — three chips 2 / 4 / 6 weeks (grass fill when active), Price '$3.20 a day — $44.80 per 4-week delivery' (from src/lib/plan.ts). Beneath, the fresh/frozen toggle: two pill buttons Flame 'Fresh, never frozen' and Snowflake 'Frozen at peak' — frozen is default; fresh multiplies price by 1.15 and rewrites the recipe line. The BowlViz SVG (120px) sits in the panel corner, filling orange to cups / 3 cups. Button 'Save my plan' (orange) writes the plan to `${brandSlug}:plan` and reveals the honest note with a grass Check: 'Saved on this device — this is a sample calculation, not veterinary advice. Real plans start with your vet.'
Layout: 6/6 split, 40px gutter; steps are full-width cards in a 3-column grid inside the left column; the plan panel is sticky at top 96px on desktop. Mobile: steps first, plan panel above them (sticky top) so numbers stay visible.
Motion: Steps slide on springs; every figure springs on change; the bowl fill springs; the toggle crossfades the recipe line at 200ms; the save note slides up 12px in 240ms.
4. **Ingredients** — id='ingredients'. Eyebrow 'THE RECIPE' and H2 'Short list, real food.' Intro line in Figtree 15px Ink 80%: 'Our [FOOD_STYLE] start with a kitchen, not a factory — four things in the bowl, nothing sprayed on.' Left: ingredients-flat.webp at 4:3 rounded 20px. Right: four ingredient rows, each a grass tag plus a blurb: 'Chicken thigh — from Hallow Farm, Idaho, cooked low'; 'Sweet potato — roasted, never extruded'; 'Carrots and peas — frozen the day they are picked'; 'Salmon oil — a small drizzle for coats'. Footnote in Ink 60% 13px: 'Recipes shown are invented samples for this template — portion math is a sample too.'
Layout: 5/7 split, 40px gap, rows separated by 1px Rule hairlines; stacks on mobile with the photo first.
Motion: Rows reveal on scroll at 420ms, 70ms stagger; each tag pops once when it enters.
5. **How delivery works** — Three steps in a row under the eyebrow 'DELIVERY' and H2 'From our freezer to yours.' — each a numbered orange circle (Fredoka 600 20px) with a title and two lines: 1 'Build the plan — sixty seconds, species to slider'; 2 'Boxes ride out on your cadence — sample 2, 4 or 6 weeks across the [DELIVERY_AREA]'; 3 'Thaw, scoop, serve — tubs are dishwasher-safe and stack like books'. Beneath, one honest line in Ink 60% 13px with a Truck icon: 'Delivery cadence here is sample copy — no real schedules are promised.'
Layout: 3-column grid, 24px gap, no card wells — steps on cream with connecting 1px Rule dashes on desktop; stacks on mobile.
Motion: Steps reveal on scroll at 420ms, 70ms stagger; the connecting dashes draw once (scaleX 0 to 1, 400ms).
6. **Reviews** — id='reviews'. Eyebrow 'THE JURY' and H2 'Verdicts from the bowl.' Four review cards on Peanut rounded 24px, each with five orange Star icons (12px), a quote in Figtree 400 15px, and a byline in Figtree 600 13px: 'Biscuit, beagle, 4 — “Licks the bowl, then waits by the freezer.” — Dana R.'; 'Pearl, tabby, 9 — “Ate it before the dog could investigate.” — Sam K.'; 'Waffles, corgi, 6 — “The slider said one cup. Waffles disagrees.” — Priya M.'; 'Miso, husky, 3 — “Coat so shiny the neighbors asked.” — Leo T.' All reviews are invented; bylines stay in the [DELIVERY_AREA].
Layout: 2×2 grid (1 column on mobile), 24px gap, 24px card padding.
Motion: Cards reveal on scroll at 420ms, 70ms stagger; stars pop in sequence (80ms apart) per card.
7. **Footer** — 1px Rule hairline, then three columns on Cream: wordmark with paw glyph; '88 Ballast Row, [DELIVERY_AREA]' with MapPin, '(303) 555-0187' with Phone; nav anchors repeated small. Bottom line in Ink 60% 12px: 'Every brand, formula, review and price on this page is an invented example — portion output is a sample calculation, not veterinary advice.' plus the optional [CREDIT] link.
Layout: Three columns, stacked on mobile with 32px gaps.
Motion: None — the footer is still.
## Assets
- image: Six bright studio photographs made for this template, redistributable with it. Download each into public/images/ with curl -L -o before building. https://media.vibefather.ai/assets/07b10d05-0050-49cc-840b-2b0087ee831d/hero-dog.webp -> public/images/hero-dog.webp (hero and the dog species option; alt 'A happy scruffy terrier mix grinning on a warm cream studio backdrop'); https://media.vibefather.ai/assets/07b10d05-0050-49cc-840b-2b0087ee831d/cat-bowl.webp -> public/images/cat-bowl.webp (cat species option; alt 'A grey tabby cat leaning toward a ceramic bowl on a cream backdrop'); https://media.vibefather.ai/assets/07b10d05-0050-49cc-840b-2b0087ee831d/dog-bowl.webp -> public/images/dog-bowl.webp (plan panel aside; alt 'A stoneware bowl of fresh pet food with visible chicken and vegetables'); https://media.vibefather.ai/assets/07b10d05-0050-49cc-840b-2b0087ee831d/ingredients-flat.webp -> public/images/ingredients-flat.webp (ingredients section; alt 'Raw chicken, sweet potato, carrots, peas and a dish of salmon oil laid out on cream'); https://media.vibefather.ai/assets/07b10d05-0050-49cc-840b-2b0087ee831d/delivery-box.webp -> public/images/delivery-box.webp (delivery section aside; alt 'A plain unbranded kraft box packed with sealed meal tubs'); https://media.vibefather.ai/assets/07b10d05-0050-49cc-840b-2b0087ee831d/dog-play.webp -> public/images/dog-play.webp (reviews section aside; alt 'A small brown mixed-breed dog mid-hop chasing an orange fabric toy'). In ASSETS.md credit each: 'Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template.'
- icon: lucide-react only: Dog, Cat, Sofa, Footprints, Zap, Flame, Snowflake, Star, Check, PawPrint, Truck, MapPin, Phone, ArrowRight. Stroke width 2, 16-24px, color inherits. The paw wordmark glyph, the bone favicon and the BowlViz SVG are code-drawn. No other icon sets.
- font: @fontsource/fredoka (500, 600, 700) and @fontsource/figtree (400, 600, 700), imported in src/fonts.ts so Vite bundles the woff2 files into dist/. Never load fonts from a CDN.
## Don'ts
- No backend, no APIs, no form submission, no checkout: the plan saves to localStorage only and the copy says so.
- No veterinary or health claims: the portion output is labeled a sample calculation everywhere it appears, and the save note points to a real vet for real diets.
- No real pet food brands, farms, vets or review sites; formulas, ingredient sources and reviews are invented.
- Photographs show pets and food only — no people, no hands, no readable packaging, no logos.
- No real delivery promises: cadence chips and the delivery strip are sample copy, explicitly labeled.
- No calendar dates and no live clock; the site never shows today's date.
- Self-host everything: fonts via Fontsource, icons via lucide-react, images downloaded into public/images/ — no CDN tags, no analytics.
- Static build: minified, no source maps, no src/ in dist/, one command npm run build, output in dist/ under 20 MB.
- Internal links are anchors into ./index.html (#plan, #ingredients, #delivery, #reviews); never a bare directory.
- Respect prefers-reduced-motion: no springs, no bowl animation, no star pops — every number still updates instantly and correctly.
- Works at 1440×900 and 390×844 with zero console errors; quiz, slider, toggle and save work with keyboard only and a visible orange focus ring.
- The plan formula must match src/lib/plan.ts exactly — deterministic, no randomness, same inputs always produce the same plan.
- No SEO machinery beyond a plain title with [BRAND]; never mention VibeFather or any real brand inside the site; all copy is invented US English living in src/content.ts.
---
— Prompt by VibeFather · https://vibefather.ai/t/pet-food-subscription-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 宠物食品订阅页面
完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。
## 简介
为 [BRAND] 打造的单页订阅网站,[BRAND] 是一家宠物食品制造商,在 [DELIVERY_AREA] 范围内配送 [FOOD_STYLE]。页面以一张宠物肖像主视觉图作为核心;方案构建器将物种、年龄、体重和活动量转化为一个可见的方案——份量杯数、卡路里、配送频率和价格实时更新;食材、配送步骤和以宠物命名的评价则为页面收尾。
- 受众:[DELIVERY_AREA] 内养狗和养猫的人,他们会看标签、担心份量悄悄增加,并且乐意花两分钟换取一个看起来像是为自己的动物量身定制的方案。
- 目标:让访客在测验中构建一个方案,看着数字变化,将其保存在本地,并在真正的结账功能存在之前就感受到品牌既精准又温暖。
- 语气:欢快而直截了当,像一位优秀的兽医技师:用词平实、数字真实、对宠物开些温和的玩笑。绝不回避这样一个事实:这些计算只是示例。
## 技术栈
- 框架:Vite 5 + React 18 + TypeScript
- 样式:Tailwind CSS 3.4
- 库:react + react-dom 18(MIT)、motion(motion.dev)11(MIT)、lucide-react(ISC)、@fontsource/fredoka、@fontsource/figtree(OFL)
- 构建:`npm run build` → `dist/` 中的静态文件。无后端、无服务器代码、无外部 API。
- 设置:
- 使用 react-ts 模板通过 npm create vite@latest 搭建脚手架。项目根目录下有一个 HTML 页面:index.html(入口 src/main.tsx)。
- vite.config.ts:base './',plugins [react()],build { outDir 'dist', sourcemap false, assetsInlineLimit 0 }。切勿将 src/ 复制到 dist/ 中。
- 通过 PostCSS 使用 Tailwind 3.4,content ['./index.html', './src/**/*.{ts,tsx}']。theme.extend.colors 映射 cream、peanut、ink、orange、orangeDeep、grass、grassDeep、rule。
- src/fonts.ts 导入 @fontsource/fredoka/500.css、600.css、700.css 以及 @fontsource/figtree/400.css、600.css、700.css。从 src/main.tsx 导入 fonts.ts。
- 全局 CSS 位于 src/index.css:body 背景为 cream;选中文本为 cream 上的 orange;focus-visible 轮廓为 3px orange;主按钮通过 box-shadow 0 4px 0 rgba(43,37,32,0.12) 实现厚重阴影。
- src/content.ts 保存所有字符串:测验步骤、方案标签、食材(名称、来源、简介)、配送步骤、评价(宠物名、品种行、引语、人名)、页脚数据以及方案公式常量。当变量变化时重写此文件。
- src/lib/brand.ts:brandSlug 来自 [BRAND];localStorage 键 `${brandSlug}:plan` 存储完整方案对象。src/lib/plan.ts 导出确定性计算:kcal = 70 × (weightKg ^ 0.75) × activityFactor(couch 1.2、regular 1.6、athlete 2.0)× ageFactor(young 1.4、adult 1.0、senior 0.9);cups = kcal / 400,四舍五入到最接近的四分之一;pricePerDay = baseRate × (kcal / 1000) × styleFactor(fresh 1.15、frozen 1.0),baseRate 从 [BASE_DAY_RATE] 解析,显示两位小数;deliveryPrice = pricePerDay × cadenceDays(14、28、42)。用 lb × 0.4536 将滑块磅数转换为千克。
- src/components/ 中的组件:Header.tsx、Reveal.tsx(Motion whileInView,淡入 + 上移 18px,420ms,70ms 交错)、PlanBuilder.tsx(SpeciesStep、AgeStep、WeightSlider、ActivityStep、PlanPanel)、BowlViz.tsx(SVG 碗,填充至 cups/fullCups 比例)、Ingredients.tsx、DeliverySteps.tsx、Reviews.tsx、FaqNote.tsx、Footer.tsx。
- 通过 Motion 实现弹簧:桌面端类型 spring 刚度 300 阻尼 20;移动端(max-width 768px matchMedia)改用 300ms 补间;prefers-reduced-motion 移除所有动画但保持每个数字正确。
- public/favicon.svg:一个 64px 代码绘制的骨头形状,orange 在 cream 上。构建前从 Assets 下载六张照片到 public/images/;在项目根目录写入 ASSETS.md。
- dist/ 包含 index.html、带哈希的 JS/CSS、woff2 字体、favicon.svg 和六张 webp 图片。保持在 20 MB 以下。
## 变量
- [BRAND] — 品牌名称(默认:"Tail & Tummy")。虚构的宠物食品品牌。用于字标、标题、brandSlug(localStorage 键)以及每一处提及。绝不使用真实宠物食品制造商或兽医连锁机构。
- [FOOD_STYLE] — 食品风格(默认:"fresh-frozen bowls")。品牌所烹制的食品类型。出现在主视觉眉题、配方行和配料介绍中。保持小写,例如 fresh-frozen bowls、air-dried kibble。
- [DELIVERY_AREA] — 配送区域(默认:"Denver metro")。品牌配送的范围。用于主视觉眉题、评价署名和页脚地址行。
- [BASE_DAY_RATE] — 基础日费率(默认:"$2.90")。冷冻方案下 1,000 kcal 成年犬的每日锚定价格;实时计算会根据卡路里、年龄、活动量和风格对其进行缩放。保持美元加美分的格式。
- [CREDIT] — 在页脚保留一个小型 "Template by VibeFather" 链接,指向 https://vibefather.ai/t/pet-food-subscription-page(默认:是;删除此行即可移除)
Pages & Sections 下的文案是按默认值撰写的。如果你的取值不同,请为它们重写每一个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便日后无需改动组件即可替换内容。
## 设计
### 颜色
- 奶油色(Cream)`#FFF5E8` — 所有页面的底色 — 温暖,像午后的厨房。
- 花生色(Peanut)`#FAE7CD` — 卡片凹槽、标签、方案面板、评价卡片。
- 墨色(Ink)`#2B2520` — 主文本:标题、数字、浅色背景上的按钮。
- 取餐橙(Fetch Orange)`#F0761F` — 主强调色:CTA、滑块填充、当前步骤、碗的填充、焦点环。
- 深橙(Orange Deep)`#D25F10` — 橙色悬停与按下状态。
- 草绿色(Grass Green)`#4C9A58` — 第二强调色:宠物安全与成分标签、次要按钮、对勾、周期标签。
- 深绿(Grass Deep)`#3B7A45` — 绿色悬停与按下状态。
- 分隔线(Rule)`#EFDCC3` — 1px 细线与卡片边框、步骤条分隔线。
### 字体排印
- 展示字体 — 品牌字标、H1、H2、方案数字、步骤问题。Fredoka,粗圆体,句首大写,行高 1.15:Fredoka (OFL),字重 500/600/700
- 正文字体 — 正文、选项标签、评价(姓名用 600)、说明文字:Figtree (OFL),字重 400/600/700
### 布局与动效
- 间距:大而友好:桌面端区块节奏 104px(移动端 64px),容器 1160px,内边距 28px。卡片间距 24px;方案构建器为 6/6 分栏,栏间距 40px;按钮高度 52-56px。
- 圆角:粗圆角:卡片和方案面板 24px,按钮、标签和徽章 999px,图片 20px。
- 动效:弹跳但克制:测验步骤以弹簧动画滑动 28px(刚度 300,阻尼 20);移动端改用 300ms 补间。
- 动效:方案数字(杯数、kcal、价格)在每次输入变化时弹入到位 — 旧值向上退出,新值从下方进入,240ms。
- 动效:碗的 SVG 按份量比例以同样的弹簧动画填充橙色;切换物种时,碗的图案以 240ms 交叉淡入淡出切换。
- 动效:主按钮有粗厚的 0 4px 0 阴影,按下时压平;标签按下时缩放 0.96。
- 动效:显现效果为淡入并上移 18px,持续 420ms,错开 70ms;prefers-reduced-motion 下所有动画变为即时状态切换。
- 图像:一次明亮的棚拍:每张照片都是宠物或其食物,置于温暖的奶油色无缝背景上 — 柔和均匀的光线带温暖金色调,表情欢快,地面有柔和阴影。不出现人物、不出现手、不出现可读包装、不出现标志。
## 页面与区块
### [BRAND] — 为你的宠物制定计划(`index.html`)
1. **页头(Header)** — 在 Cream(奶油色)上吸顶,滚动 12px 后出现 1px Rule(分隔线)细线。左侧:字标 [BRAND],Fredoka 600 22px,Ink(墨色),名称前有一个橙色的小型代码绘制爪印图形。中间导航(桌面端):The Plan、Ingredients、Delivery、Reviews — Figtree 600 14px,Ink 从 70% 到全色,150ms,滚动到锚点。右侧:CTA 'Build a plan'(橙色填充、奶油色文字、999px、厚重阴影)。移动端:字标加汉堡菜单(两条 2px Ink 线),打开全屏 Cream 覆盖层,锚点用 Fredoka 26px,CTA 在底部。
布局:单行,1160px 容器,16px 垂直内边距。
动效:细线在滚动时淡入;覆盖层淡入并上移 12px,200ms。
2. **首屏(Hero)** — 分栏首屏:右侧 6 列放置 hero-dog.webp(一只毛发蓬乱的梗犬混血在奶油色背景上咧嘴笑),出血到视口右边缘,左侧圆角 24px。左侧 6 列,文案垂直居中。眉题 '[BRAND] — [FOOD_STYLE] FOR DOGS AND CATS — [DELIVERY_AREA]',Figtree 700 12px 大写 0.14em,橙色。H1 用 Fredoka 700 clamp(40px, 5.5vw, 64px),Ink:'One bowl, built for one body.' 副标题用 Figtree 400 17px Ink 80%,最多 46ch:'Tell us about your pet — portion, calories and price appear before your coffee cools. Plans start around [BASE_DAY_RATE] a day.' CTA:'Build your plan — 60 sec'(橙色填充)和 'Read the recipe'(幽灵按钮,1.5px Ink 边框),滚动到 ingredients。信任行三个迷你徽章,图标为 grass(草绿色):Check 'Cooked weekly'、Snowflake 'Arrives frozen'、PawPrint 'Pet-safe ingredients list'。
布局:6/6 分栏;桌面端图片向右出血。移动端:图片在上,4:3,文案在下,24px 内边距。
动效:文案以 420ms 每个、间隔 70ms 交错进入;照片从 1.03 缩放到 1.0,持续 600ms,仅一次;信任徽章在 CTA 之后依次弹出。
3. **计划构建器(Plan builder)** — id='plan'。整个卖点。左列,在眉题 'BUILD THE PLAN' 和 H2 'Sixty seconds, one honest plan.' 下一次一步。第 1 步 'Who eats tonight?' — 两张带照片的大选项卡片:狗(hero-dog 裁剪)和猫(cat-bowl 裁剪),标签旁有 lucide Dog / Cat 图标。第 2 步 'Which birthday era?' — 芯片 'Under a year'、'One to seven'、'Seven-plus'(幼年、成年、老年)。第 3 步 'How heavy?' — 范围滑块从 4 到 120 lb(选择猫时为 4 到 20 lb),橙色填充,Ink 滑块,实时标签 '34 lb'。第 4 步 'Couch pal, daily walker, or athlete?' — 三张卡片,图标 Sofa、Footprints、Zap。四个点的进度轨(完成时橙色)位于步骤下方;Back 是文本链接;选择后步骤自动前进(滑块在 Next 时前进)。右列:Peanut 上的实时计划面板,圆角 24px — 物种和名称行('Your dog's plan'),然后四个动画数字用 Fredoka 600:Portion '1¾ cups a day'(最接近的四分之一)、Energy '940 kcal a day'、Cadence — 三个芯片 2 / 4 / 6 周(激活时 grass 填充)、Price '$3.20 a day — $44.80 per 4-week delivery'(来自 src/lib/plan.ts)。下方,新鲜/冷冻切换:两个胶囊按钮 Flame 'Fresh, never frozen' 和 Snowflake 'Frozen at peak' — 冷冻为默认;新鲜将价格乘以 1.15 并重写配方行。BowlViz SVG(120px)位于面板角落,橙色填充到 cups / 3 cups。按钮 'Save my plan'(橙色)将计划写入 `${brandSlug}:plan` 并显示带有 grass Check 的诚实说明:'Saved on this device — this is a sample calculation, not veterinary advice. Real plans start with your vet.'
布局:6/6 分栏,40px 间距;步骤是左列内 3 列网格中的全宽卡片;计划面板在桌面端吸顶于顶部 96px。移动端:步骤在前,计划面板在其上方(吸顶顶部)以便数字保持可见。
动效:步骤以弹簧滑动;每个数字变化时弹簧;碗填充弹簧;切换在 200ms 交叉淡化配方行;保存说明上滑 12px,240ms。
4. **食材(Ingredients)** — id='ingredients'。眉题 'THE RECIPE' 和 H2 'Short list, real food.' 介绍行用 Figtree 15px Ink 80%:'Our [FOOD_STYLE] start with a kitchen, not a factory — four things in the bowl, nothing sprayed on.' 左侧:ingredients-flat.webp 4:3 圆角 20px。右侧:四行食材,每行一个 grass 标签加一段简介:'Chicken thigh — from Hallow Farm, Idaho, cooked low';'Sweet potato — roasted, never extruded';'Carrots and peas — frozen the day they are picked';'Salmon oil — a small drizzle for coats'。脚注用 Ink 60% 13px:'Recipes shown are invented samples for this template — portion math is a sample too.'
布局:5/7 分栏,40px 间距,行之间用 1px Rule 细线分隔;移动端堆叠,照片在前。
动效:行在滚动时以 420ms、70ms 交错显示;每个标签进入时弹出一次。
5. **配送如何运作(How delivery works)** — 在眉题 'DELIVERY' 和 H2 'From our freezer to yours.' 下三步骤一行 — 每个是一个带编号的橙色圆圈(Fredoka 600 20px),有标题和两行:1 'Build the plan — sixty seconds, species to slider';2 'Boxes ride out on your cadence — sample 2, 4 or 6 weeks across the [DELIVERY_AREA]';3 'Thaw, scoop, serve — tubs are dishwasher-safe and stack like books'。下方,一行诚实说明用 Ink 60% 13px 带 Truck 图标:'Delivery cadence here is sample copy — no real schedules are promised.'
布局:3 列网格,24px 间距,无卡片容器 — 步骤在奶油色上,桌面端有连接的 1px Rule 虚线;移动端堆叠。
动效:步骤在滚动时以 420ms、70ms 交错显示;连接虚线绘制一次(scaleX 0 到 1,400ms)。
6. **评价(Reviews)** — id='reviews'。眉题 'THE JURY' 和 H2 'Verdicts from the bowl.' 四张评价卡片在 Peanut 上圆角 24px,每张有五个橙色 Star 图标(12px)、一段 Figtree 400 15px 的引语,以及 Figtree 600 13px 的署名:'Biscuit, beagle, 4 — “Licks the bowl, then waits by the freezer.” — Dana R.';'Pearl, tabby, 9 — “Ate it before the dog could investigate.” — Sam K.';'Waffles, corgi, 6 — “The slider said one cup. Waffles disagrees.” — Priya M.';'Miso, husky, 3 — “Coat so shiny the neighbors asked.” — Leo T.' 所有评价均为虚构;署名保持在 [DELIVERY_AREA]。
布局:2×2 网格(移动端 1 列),24px 间距,24px 卡片内边距。
动效:卡片在滚动时以 420ms、70ms 交错显示;每张卡片的星星依次弹出(间隔 80ms)。
7. **页脚(Footer)** — 1px Rule 细线,然后在 Cream 上三列:带爪印图形的字标;'88 Ballast Row, [DELIVERY_AREA]' 带 MapPin、'(303) 555-0187' 带 Phone;导航锚点小字重复。底部行用 Ink 60% 12px:'Every brand, formula, review and price on this page is an invented example — portion output is a sample calculation, not veterinary advice.' 加上可选的 [CREDIT] 链接。
布局:三列,移动端堆叠,32px 间距。
动效:无 — 页脚静止。
## 资源
- 图片:为本模板制作的六张明亮影棚照片,可随模板一起再分发。构建前用 curl -L -o 将每张图片下载到 public/images/。https://media.vibefather.ai/assets/07b10d05-0050-49cc-840b-2b0087ee831d/hero-dog.webp -> public/images/hero-dog.webp(主视觉区和狗这一物种选项;alt 'A happy scruffy terrier mix grinning on a warm cream studio backdrop');https://media.vibefather.ai/assets/07b10d05-0050-49cc-840b-2b0087ee831d/cat-bowl.webp -> public/images/cat-bowl.webp(猫这一物种选项;alt 'A grey tabby cat leaning toward a ceramic bowl on a cream backdrop');https://media.vibefather.ai/assets/07b10d05-0050-49cc-840b-2b0087ee831d/dog-bowl.webp -> public/images/dog-bowl.webp(方案面板侧栏;alt 'A stoneware bowl of fresh pet food with visible chicken and vegetables');https://media.vibefather.ai/assets/07b10d05-0050-49cc-840b-2b0087ee831d/ingredients-flat.webp -> public/images/ingredients-flat.webp(配料区;alt 'Raw chicken, sweet potato, carrots, peas and a dish of salmon oil laid out on cream');https://media.vibefather.ai/assets/07b10d05-0050-49cc-840b-2b0087ee831d/delivery-box.webp -> public/images/delivery-box.webp(配送区侧栏;alt 'A plain unbranded kraft box packed with sealed meal tubs');https://media.vibefather.ai/assets/07b10d05-0050-49cc-840b-2b0087ee831d/dog-play.webp -> public/images/dog-play.webp(评价区侧栏;alt 'A small brown mixed-breed dog mid-hop chasing an orange fabric toy')。在 ASSETS.md 中为每张图片注明:'Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template.'
- 图标:仅使用 lucide-react:Dog、Cat、Sofa、Footprints、Zap、Flame、Snowflake、Star、Check、PawPrint、Truck、MapPin、Phone、ArrowRight。描边宽度 2,16-24px,颜色继承。爪印字标字形、骨头 favicon 和 BowlViz SVG 均为代码绘制。不使用其他图标集。
- 字体:@fontsource/fredoka(500、600、700)和 @fontsource/figtree(400、600、700),在 src/fonts.ts 中导入,以便 Vite 将 woff2 文件打包进 dist/。切勿从 CDN 加载字体。
## 不要做
- 不要后端、不要 API、不要表单提交、不要结账:方案仅保存到 localStorage,文案中要说明这一点。
- 不要兽医或健康声明:分量输出在所有出现的地方都标注为示例计算,保存提示要指向真实兽医以获取真实饮食建议。
- 不要真实的宠物食品品牌、农场、兽医或评测网站;配方、原料来源和评价均为虚构。
- 照片只展示宠物和食物——不要人物、不要手、不要可读包装、不要 logo。
- 不要真实的配送承诺:配送频率标签(cadence chips)和配送条(delivery strip)是示例文案,需明确标注。
- 不要日历日期,不要实时时钟;网站永远不显示今天的日期。
- 一切自托管:字体通过 Fontsource,图标通过 lucide-react,图片下载到 public/images/ ——不要 CDN 标签,不要分析工具。
- 静态构建:压缩,不要 source map,dist/ 中不要有 src/,一条命令 npm run build,输出在 dist/ 下,小于 20 MB。
- 内部链接是指向 ./index.html 的锚点(#plan、#ingredients、#delivery、#reviews);绝不要使用裸目录。
- 尊重 prefers-reduced-motion:不要弹簧动画、不要碗动画、不要星星弹出——每个数字仍然即时且正确地更新。
- 在 1440×900 和 390×844 下正常工作,控制台零错误;测验、滑块、开关和保存仅用键盘即可操作,并有可见的橙色焦点环。
- 方案公式必须与 src/lib/plan.ts 完全一致——确定性,无随机性,相同输入始终产生相同方案。
- 除带有 [BRAND] 的普通标题外,不要任何 SEO 机制;网站内绝不提及 VibeFather 或任何真实品牌;所有文案均为虚构的美式英语,位于 src/content.ts。
---
— Prompt by VibeFather · https://vibefather.ai/t/pet-food-subscription-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: "Pet Food Subscription Page"
colors:
cream: "#FFF5E8"
peanut: "#FAE7CD"
ink: "#2B2520"
fetch_orange: "#F0761F"
orange_deep: "#D25F10"
grass_green: "#4C9A58"
grass_deep: "#3B7A45"
rule: "#EFDCC3"
typography:
display_wordmark_h1_h2_plan_numbers_step_questions_fredoka_chunky_rounded_sentence_case_line_height_1_15: { family: "Fredoka", weights: [500, 600, 700] }
text_body_option_labels_reviews_600_for_names_captions: { family: "Figtree", weights: [400, 600, 700] }
spacing: "Big and friendly: 104px desktop section rhythm (64px mobile), 1160px container, 28px padding. Cards 24px gap; the plan builder is a 6/6 split with a 40px gutter; buttons are 52-56px tall."
radius: "Chunky rounds: 24px on cards and the plan panel, 999px on buttons, chips and badges, 20px on images."
---
# Pet Food Subscription 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
- **Cream** `#FFF5E8` — Page ground everywhere — warm, like an afternoon kitchen.
- **Peanut** `#FAE7CD` — Card wells, chips, the plan panel, review cards.
- **Ink** `#2B2520` — Primary text: headlines, numbers, buttons on light grounds.
- **Fetch Orange** `#F0761F` — Primary accent: CTAs, slider fill, active step, bowl fill, focus ring.
- **Orange Deep** `#D25F10` — Orange hover and pressed state.
- **Grass Green** `#4C9A58` — Second accent: pet-safe and ingredient tags, secondary buttons, check marks, cadence chips.
- **Grass Deep** `#3B7A45` — Green hover and pressed state.
- **Rule** `#EFDCC3` — 1px hairlines and card borders, stepper dividers.
## Typography
- **Display — wordmark, H1, H2, plan numbers, step questions. Fredoka, chunky rounded, sentence case, line-height 1.15** — Fredoka (OFL), weights 500/600/700. Self-host the font files.
- **Text — body, option labels, reviews (600 for names), captions** — Figtree (OFL), weights 400/600/700. Self-host the font files.
## Spacing & shape
- Spacing: Big and friendly: 104px desktop section rhythm (64px mobile), 1160px container, 28px padding. Cards 24px gap; the plan builder is a 6/6 split with a 40px gutter; buttons are 52-56px tall.
- Radius: Chunky rounds: 24px on cards and the plan panel, 999px on buttons, chips and badges, 20px on images.
## Motion
- Bouncy but polite: quiz steps slide 28px with a spring (stiffness 300, damping 20); mobile uses 300ms tweens instead.
- Plan numbers (cups, kcal, price) spring into place on every input change — old value exits up, new value enters from below, 240ms.
- The bowl SVG fills with orange to the portion ratio on the same spring; switching species swaps the bowl art with a 240ms crossfade.
- Primary buttons have a chunky 0 4px 0 shadow that flattens on press; chips scale 0.96 on press.
- Reveals fade and rise 18px over 420ms with 70ms stagger; prefers-reduced-motion makes every animation an instant state change.
## Imagery
One bright studio shoot: every photograph is a pet or its food on a warm cream seamless backdrop — soft even light with a warm golden cast, joyful expressions, gentle floor shadow. No people, no hands, no readable packaging, no logos.
## Tone
Cheerful and straight-talking, like a good vet tech: plain words, real numbers, gentle jokes about pets. Never wiggles around the fact that the math is a sample.
---
— Prompt by VibeFather · https://vibefather.ai/t/pet-food-subscription-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 生骨肉宠物食品合作社:将 BRAND 设为你的厨房名称,FOOD_STYLE 设为生食或风干,并将配送条指向你的自提日而非快递时段。
- 猫专用订阅盒:保留物种步骤但默认设为猫,重写原料卡片为鱼类和禽类,并将首屏肖像换成奶油色背景上的猫。
- 区域干粮品牌:将 DELIVERY_AREA 设为你所在的县,按每日价格调整 BASE_DAY_RATE,并将评价改为具名的本地宠物及其品种。
- 提供营养方案的兽医诊所:保留方案定制器作为份量计算器,重写 FAQ 说明为方案由你的诊所团队审核,并将 CTA 链接到预约表单。
宠物食品订阅页:常见问题
宠物食品订阅页的方案定制器如何计算份量和价格?
宠物食品订阅页的方案定制器在浏览器中运行固定公式。物种、年龄段、体重滑块和活动水平输入计算:每日卡路里来自体重和活动系数,杯数四舍五入到最近的 1/4 杯,每日价格来自基础日费率按卡路里和食品风格缩放。面板显示以杯为单位的份量、每日卡路里、配送频率和每日价格,碗会按份量填充。
怎么用 AI 做一个宠物食品订阅页?
复制本页的提示词,或者运行 npx vibefather add pet-food-subscription-page,把 [BRAND]、[FOOD_STYLE]、[BASE_DAY_RATE]、[DELIVERY_AREA] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。