跳到正文
VibeFather
免费注册

用这个模板做的 2 个案例

同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。

关于这个模板

这个模板为散叶茶卖家打造了一个宁静、质朴的店铺:温暖的纸张纹理、柔和的绿色与陶土色调、安静的衬线标题,以及贯穿始终的暖调摄影——琥珀色的茶汤、袅袅的热气、亚麻布上的茶叶。首屏是一张倒茶特写,热气在店名上方升腾,奠定了整个页面不慌不忙的基调。它适合茶馆、咖啡烘焙商、香料商,以及任何贩卖味道与仪式感而非紧迫感的小型制作者。茶叶按类型分组,配有风味笔记标签,并可按类型和咖啡因含量实时筛选。产品页采用查询路由——未提供查询时显示第一款茶——并附带包含水温和投茶量的冲泡指南,以及一个可用的浸泡计时器:真实的 mm:ss 倒计时,支持暂停和重置,顾客可以在泡茶时实际使用。品鉴套装以宁静的卡片形式呈现,订阅罐以示例文案安静地说明,不涉及支付,冲泡基础条让教学保持轻松。技术栈完全在客户端——React、Tailwind 和 Motion——字体通过 Fontsource 自托管,所有照片均已打包。四个变量(品牌、城市、特色产品线和订阅价格)从一个内容文件重写文案。显现效果缓慢如蒸汽,计时器运行时安静地呼吸,prefers-reduced-motion 会返回静态页面。该模板在茶之外也同样适用:将变量替换为咖啡烘焙商或香料店,同样的宁静节奏依然延续。模板附带六张来自同一暖调拍摄的照片:倒茶、茶叶和茶壶,没有人物面孔,没有可辨认的包装。

模板提示词

在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。

# Tea Shop Website

Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.

## Brief
A quiet one-page shop for [BRAND], a loose-leaf tea shop in [CITY] selling [SPECIALTY]. Warm paper ground, muted green and clay, a serif voice. Six teas filter by type and caffeine, each with flavor-note chips; a query-routed product page carries a brewing guide and a working steep timer; sampler sets and a sample subscription close the page.

- Audience: People who own a good pot and a window seat — tea drinkers in [CITY] who read tasting notes before prices and gift samplers to friends.
- Goal: Move a visitor from curiosity to a shortlist: browse by type or caffeine, open a tea, run its steep timer, and save it to a local shelf.
- Tone: Quietly sensory: honey, woodsmoke, orchid — flavors first, facts second, never salesy. The copy never hurries the reader.

## 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/lora, @fontsource/alegreya-sans, @fontsource/spline-sans-mono (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. Two HTML pages at the project root: index.html (entry src/main.tsx) and tea.html (entry src/tea.tsx).
  - vite.config.ts: base './', plugins [react()], build { outDir 'dist', sourcemap false, assetsInlineLimit 0, rollupOptions.input { main: 'index.html', tea: 'tea.html' } }. Never copy src/ into dist/.
  - Tailwind 3.4 through PostCSS, content ['./index.html', './tea.html', './src/**/*.{ts,tsx}']. theme.extend.colors maps paper, kraft, ink, olive, clay, clayDeep, stone, rule.
  - src/fonts.ts imports @fontsource/lora/400.css, 600.css, @fontsource/lora/400-italic.css, @fontsource/alegreya-sans/400.css, 500.css, 700.css, and @fontsource/spline-sans-mono/400.css, 500.css. Import fonts.ts from both entries.
  - Global CSS in src/index.css: body background paper with a subtle warm paper-grain (inline SVG feTurbulence data-URI at 2.5% opacity); selection clay on paper; focus-visible outline 2px clay.
  - src/content.ts holds every string: teas array (slug, name, type green, black, oolong, herbal, white; caffeinated boolean; notes array of three; price per 100g; steepSeconds, tempC, leafGrams, steeps; image; alt; whyLine), sets array, subscription copy, brewBasics, address, hours. Rewrite this file when the variables change.
  - src/lib/brand.ts: brandSlug from [BRAND]; localStorage key `${brandSlug}:shelf` storing an array of tea slugs.
  - src/tea.tsx reads new URLSearchParams(location.search).get('id'); unknown or missing id renders the first tea (Hearth Amber) — never an empty or not-found state.
  - Steep timer: a plain React component (setInterval 250ms, ends exactly at 00:00, pause and reset, a thin clay progress ring via SVG stroke-dashoffset). It makes no sound, sends no notification, and stops clean when the tab is hidden (visibilitychange pauses the tick, not the display).
  - Components in src/components/: Header.tsx, Reveal.tsx (Motion whileInView, fade + 14px rise, 550ms, 80ms stagger), TeaCard.tsx, FilterBar.tsx, Sets.tsx, BrewBasics.tsx, Subscribe.tsx, Footer.tsx; on tea.html BrewGuide.tsx, SteepTimer.tsx, ShelfButton.tsx.
  - public/favicon.svg: a 64px code-drawn steaming teacup outline in clay on paper. Download the six photos from Assets into public/images/ before building; write ASSETS.md at the project root.
  - dist/ holds index.html, tea.html, hashed JS/CSS, the woff2 fonts, favicon.svg and six webp images. Keep it under 20 MB.

## Variables
- [BRAND] — Shop name (default: "Amber & Ash"). Invented tea shop name. Wordmark, titles, brandSlug (localStorage keys) and every mention. Never a real tea brand or estate.
- [CITY] — City (default: "Burlington, Vermont"). Where the shop is. Appears in the hero eyebrow, the subscription line and the footer address. Real cities are fine.
- [SPECIALTY] — Specialty line (default: "small-lot oolong and black teas"). What the shop is known for. Used in the hero sub-line and the subscription copy. Keep it lowercase and specific.
- [SUB_PRICE] — Subscription price (default: "$19/month"). Sample price string for the monthly tin, explained as sample copy with no payments taken on the page.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/tea-shop-website 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 `#F4EDDE` — Page ground everywhere — warm paper carrying a whisper of grain.
- Kraft `#EAE0C9` — Alternate section bands, tea cards, the brewing guide panel.
- Ink `#2F2A22` — Primary text: headlines, body, prices, buttons on light.
- Olive `#6F7A4F` — Muted green: eyebrows, type chips, links, the timer ring at rest.
- Clay `#B26840` — Accent: CTAs, running timer ring, selected filters, note-chip borders, focus ring.
- Clay Deep `#96532F` — Clay hover and pressed state.
- Stone `#8B8171` — Secondary text: captions, brewing labels, the quiet footnotes.
- Rule `#D9CCB0` — 1px hairlines: card borders, set rows, footer divider.

### Typography
- Display — wordmark, H1, H2, tea names, set names. Lora serif, sentence case, line-height 1.25; flavor notes use the italic: Lora (OFL), weights 400/600
- Text — body, buttons (500, 0.04em tracking), captions, FAQ answers: Alegreya Sans (OFL), weights 400/500/700
- Figures — the steep timer digits, brewing numbers, prices: Spline Sans Mono (OFL), weights 400/500

### Layout & motion
- Spacing: Calm and generous: 128px desktop section rhythm (80px mobile), 1120px container, 32px padding, body line-height 1.7. Grid gap 24px; product page 6/6 split with a 56px gutter.
- Radius: Soft but not bubbly: 10px on cards and panels, 999px on chips and buttons, 8px on images.
- Motion: Slow like steam: reveals fade and rise 14px over 550ms with 80ms stagger; nothing bounces.
- Motion: Filtering re-flows the tea grid with Motion layout animations at 380ms.
- Motion: A thin steam wisp — one SVG path drifting upward on a 4s loop — sits at the hero's bottom edge; under prefers-reduced-motion it is a static curl.
- Motion: The steep timer ring drains smoothly (SVG stroke-dashoffset) and the digits breathe once per second at 4% opacity while running; pause freezes both instantly.
- Motion: Note chips and swatch-like type chips crossfade 220ms on selection; reduced-motion makes every animation instant.
- Imagery: One warm-graded shoot: every photograph is tea — pouring liquor with steam, dry leaves on linen or dark wood, clay pots and dishes — in soft warm side window light, amber and clay tones, shallow depth of field, 50-85mm macro feel. No people, no readable packaging, no logos.

## Pages & Sections
### [BRAND] — teas by type, sets and a monthly tin (`index.html`)
1. **Header** — Sticky header on Paper, 1px Rule hairline after 12px of scroll. Left: wordmark [BRAND] in Lora 600 20px, Ink. Center nav (desktop): Teas, Sets, The Monthly Tin — Alegreya Sans 500 14px, Stone to Ink on 180ms, scrolling to anchors. Right: 'My shelf' text link with a Bookmark icon and the live count from localStorage. Mobile: wordmark plus burger (two 1.5px Ink lines) opening a full-screen Paper overlay with anchors in Lora 26px.
   Layout: Single row, 1120px container, 18px vertical padding.
   Motion: Hairline fades in on scroll; overlay fades and rises 12px in 240ms.
2. **Hero** — Split hero: left 6 columns carry hero-pour.webp (tea mid-pour into a glass cup, steam curling through window light) at 4:3 rounded 8px; right 6 columns, copy vertically centered. Eyebrow '[BRAND] — TEA SHOP IN [CITY]' in Alegreya Sans 700 12px uppercase 0.2em Olive. H1 in Lora 400 clamp(40px, 5vw, 60px), Ink: 'Slow hours, good leaves.' Sub in Alegreya Sans 400 16px Stone, max 46ch: '[SPECIALTY], weighed by the scoop at the counter and brewed with patience at home. Every tea ships with its brewing card — and its timer is on this page.' CTAs side by side: 'Shop teas' (clay fill, paper text, 999px) and 'See the sets' (ghost, 1px Ink border). Under the CTAs a quiet line in Stone 13px with a Timer icon: 'Each tea page runs a steep timer while you wait.'
   Layout: 6/6 split; mobile stacks the photo above the copy with 24px padding.
   Motion: Copy staggers in at 550ms each, 80ms apart; the steam wisp (one SVG curl, 4s loop) drifts at the photo's bottom edge; the photo itself never moves.
3. **Teas by type** — id='teas'. Eyebrow 'THE SHELF' and H2 'Six tins, weighed fresh.' Filter bar: two chip groups — Type (All, Green, Black, Oolong, Herbal, White) and Caffeine (Any, Caffeine-free) — as 999px chips, Kraft fill, Ink text, Olive border; active chip inverts to Olive fill with paper text. The six teas, exact data: Hearth Amber — oolong, caffeinated, notes 'honey, toasted grain, orchid', $14/100g; Meadow Steam — green, caffeinated, 'cut grass, sweet pea, hazelnut', $12; Rowan Black — black, caffeinated, 'malt, dark honey, woodsmoke', $11; Roast Moon — oolong, caffeinated, 'charcoal, brown butter, dried fig', $13; Quiet Bloom — herbal, caffeine-free, 'chamomile, honey, apple peel', $10; Cloud Veil — white, caffeinated, 'melon, fresh hay, spring rain', $16. Each card: the tea's photo at 4:3 rounded 8px, name in Lora 600 19px, the three notes as italic chips (Kraft fill, 1px clay border, Lora italic 13px), type and price line in Spline Sans Mono 13px ('$14 / 100 g — oolong'), and 'View tea' linking to ./tea.html?id=… with each tea's slug. Filtering hides non-matching cards and shows 'Showing 2 of 6 teas'; 'Clear' appears once a filter is active.
   Layout: 3-column grid (2 tablet, 1 mobile), 24px gap, cards on Kraft rounded 10px with 20px padding and a 1px Rule border.
   Motion: Cards glide with Motion layout animation at 380ms when filters change; cards reveal on scroll at 550ms with 80ms stagger.
4. **Sampler sets** — id='sets'. Eyebrow 'SETS' and H2 'Begin anywhere.' Three calm rows (not cards), each separated by a Rule hairline: 'First Steeps — three 20 g tins of the gentlest greens and herbals — $24'; 'Oolong Hours — two oolongs and a small clay pot — $38'; 'Caffeine-Free Evenings — three herbals built for after dinner — $28'. Names in Lora 600 22px, descriptions in Alegreya Sans 15px Stone, prices in Spline Sans Mono 16px clay. A quiet line under the rows: 'Sets are wrapped in the same paper as the tins — no ribbon, no fuss.'
   Layout: Single 760px column, left-aligned rows, hairline dividers, 28px row padding.
   Motion: Rows reveal on scroll at 550ms, 80ms stagger.
5. **The Monthly Tin** — id='subscribe'. A full-width band in Kraft rounded 10px with a Package icon in Olive. Heading in Lora 600 22px: 'The Monthly Tin'. Body in Alegreya Sans 15px Stone, max 60ch: 'One 50 g tin chosen to match the month's weather — darker in November, greener in May — posted with its brewing card. [SUB_PRICE], pause or skip whenever you like.' Then the honest line in Stone 13px: 'Sample copy for this template — the page takes no payments and stores nothing.' CTA 'See how it works' scrolls back to the teas; there is no checkout.
   Layout: Centered single column, 680px max width, 44px padding.
   Motion: Reveals once on scroll at 550ms.
6. **Brewing basics** — Three short tips under the eyebrow 'BREWING BASICS' and H2 'Three habits, better tea.' — each with a lucide icon in Olive: Scale 'Weigh, don't guess — 3 g per 150 ml is the whole secret'; Thermometer 'Temperature before leaf — boiling water is for black, not for green'; Timer 'One short rinse wakes rolled oolongs — then start counting'. Titles in Lora 17px, bodies in Alegreya Sans 14px Stone. Caption line: 'General brewing guidance, offered warmly.'
   Layout: 3-column grid, 24px gap, no card background — just icons and text on Paper; stacks on mobile.
   Motion: Reveals on scroll at 550ms with 80ms stagger.
7. **Footer** — 1px Rule hairline, then three columns on Paper: wordmark; '5 Weave Lane, [CITY]' with MapPin, 'Mon–Sat 10:00–18:00' with Clock, '(802) 555-0126' with Phone; nav anchors repeated small. Bottom line in Stone 12px: 'Every tea, note and price on this page is an invented example.' plus the optional [CREDIT] link.
   Layout: Three columns, stacked on mobile with 32px gaps.
   Motion: None — the footer is still.

### [BRAND] — a tea, its brewing guide and steep timer (`tea.html`)
1. **Product** — Reads ?id=; unknown or missing id renders Hearth Amber. 6/6 split. Left: the tea's photo at 4:3 rounded 8px; beneath it a caption in Stone 13px: 'Shot on the shop counter — your tin will be weighed, not staged.' Right column: type eyebrow in Olive uppercase ('OOLONG — CAFFEINATED' or 'HERBAL — CAFFEINE-FREE'), tea name in Lora 400 40px Ink, the three flavor notes as italic chips, price line in Spline Sans Mono '$14 / 100 g'. Then the brewing guide panel (Kraft, rounded 10px, 24px padding): three rows with lucide icons — Thermometer 'Temperature — 85°C'; Scale 'Leaf — 3 g per 150 ml'; Timer 'Time — 3:00, up to 3 steeps' — values come from content.ts per tea (Hearth Amber 85°C, 3:00; greens 75°C, 2:30; herbals 100°C, 6:00; whites 80°C, 4:00; blacks 95°C, 3:30; Roast Moon 90°C, 3:30). Below, the working steep timer: large mm:ss digits in Spline Sans Mono 500 56px, a thin clay progress ring (80px SVG circle) draining as it runs, and three quiet buttons — Start/Pause (toggles label), Reset (back to the tea's preset), and the label 'steeping [name]' in Stone 12px. Button 'Save to my shelf' adds the slug to `${brandSlug}:shelf` and shows an inline Check note: 'Saved on this device — a demo shelf, nothing ordered.'
   Layout: 6/6 split, 56px gutter; guide and timer stacked on the right; mobile stacks photo first.
   Motion: Digits breathe at 4% opacity once per second while running; the ring drains smoothly; Start/Pause and Reset act instantly; the save note slides up 12px in 240ms; reduced-motion keeps the timer fully functional but static-looking.
2. **Related teas** — Eyebrow 'ALSO ON THE SHELF' and three related teas (the next three slugs after the current one, wrapping) as compact cards: photo 4:3, name, notes line, price, 'View tea' link to ./tea.html?id=….
   Layout: 3-column grid, 24px gap, same card style as the main grid.
   Motion: Reveals on scroll at 550ms with 80ms stagger.

## Assets
- image: Six warm-graded tea photographs made for this template, redistributable with it. Download each into public/images/ with curl -L -o before building. https://media.vibefather.ai/assets/a61dccb9-1f8d-4222-a254-42161ff37c63/hero-pour.webp -> public/images/hero-pour.webp (hero and Hearth Amber's card/product photo; alt 'Amber tea pouring into a glass cup, steam curling through warm window light'); https://media.vibefather.ai/assets/a61dccb9-1f8d-4222-a254-42161ff37c63/leaf-green.webp -> public/images/leaf-green.webp (Meadow Steam; alt 'Dry green tea leaves scattered on oatmeal linen'); https://media.vibefather.ai/assets/a61dccb9-1f8d-4222-a254-42161ff37c63/leaf-black.webp -> public/images/leaf-black.webp (Rowan Black; alt 'Twisted black tea leaves on dark walnut wood in warm side light'); https://media.vibefather.ai/assets/a61dccb9-1f8d-4222-a254-42161ff37c63/leaf-oolong.webp -> public/images/leaf-oolong.webp (Roast Moon; alt 'Rolled oolong tea balls in a small clay dish on linen'); https://media.vibefather.ai/assets/a61dccb9-1f8d-4222-a254-42161ff37c63/leaf-herbal.webp -> public/images/leaf-herbal.webp (Quiet Bloom; alt 'Dried chamomile flowers on warm linen'); https://media.vibefather.ai/assets/a61dccb9-1f8d-4222-a254-42161ff37c63/leaf-white.webp -> public/images/leaf-white.webp (Cloud Veil; alt 'Slender white tea needles on a warm ceramic plate'). In ASSETS.md credit each: 'Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template.'
- icon: lucide-react only: Timer, Thermometer, Scale, Package, Bookmark, Check, MapPin, Clock, Phone, ArrowRight. Stroke width 1.75, 16-24px, color inherits. The steam wisp and the teacup favicon are code-drawn SVG. No other icon sets.
- font: @fontsource/lora (400, 600, 400-italic), @fontsource/alegreya-sans (400, 500, 700) and @fontsource/spline-sans-mono (400, 500), 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 payments: the shelf saves to localStorage only and the subscription is explained as sample copy.
- No real tea brands, estates or importers; shop name, tea names, tasting notes and prices are invented.
- No health claims of any kind — copy stays sensory (taste, smell, warmth) and the brewing card never promises effects.
- The steep timer is a local utility only: no sound, no notifications, no background behavior beyond the visible countdown.
- Photographs show tea, leaves, pots and pours only — no people's faces, no hands, no readable packaging, no logos.
- No calendar dates and no live clock: hours are fixed sample strings, the subscription copy names months as examples only; the site never shows today's date.
- tea.html without a query shows the first tea, never an empty or not-found state.
- 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, multi-page output with real tea.html in dist/ under 20 MB.
- Every internal link points at a file (./index.html#teas, ./tea.html?id=…); never a bare directory.
- Respect prefers-reduced-motion: no steam loop, no breathing digits; the timer itself stays functional.
- Works at 1440×900 and 390×844 with zero console errors; filters, timer buttons and shelf save work with keyboard only and a visible clay focus ring.
- 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/tea-shop-website · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 茶叶店网站

完全按照下面的描述构建这个网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。

## 简介
为 [BRAND] 打造的一页式静谧小店,这是位于 [CITY] 的一家散叶茶店,售卖 [SPECIALTY]。暖纸底色,低饱和绿与陶土色,衬线字体语调。六款茶可按类型与咖啡因含量筛选,每款配有风味笔记标签;一个由查询路由驱动的产品页承载冲泡指南与可用的浸泡计时器;品鉴套装与样品订阅为页面收尾。

- 受众:拥有好茶壶与窗边座位的人——[CITY] 的饮茶者,他们先读品鉴笔记再看价格,会把样品套装送给朋友。
- 目标:让访客从好奇走向候选清单:按类型或咖啡因浏览,打开一款茶,运行其浸泡计时器,并将其保存到本地茶架。
- 语调:安静而感官化:蜂蜜、木烟、兰花——风味在先,事实在后,绝不推销。文案从不催促读者。

## 技术栈
- 框架:Vite 5 + React 18 + TypeScript
- 样式:Tailwind CSS 3.4
- 库:react + react-dom 18(MIT)、motion(motion.dev)11(MIT)、lucide-react(ISC)、@fontsource/lora、@fontsource/alegreya-sans、@fontsource/spline-sans-mono(OFL)
- 构建:`npm run build` → 静态文件输出到 `dist/`。无后端、无服务器代码、无外部 API。
- 设置:
  - 使用 npm create vite@latest 配合 react-ts 模板搭建脚手架。项目根目录下有两个 HTML 页面:index.html(入口 src/main.tsx)和 tea.html(入口 src/tea.tsx)。
  - vite.config.ts:base './',plugins [react()],build { outDir 'dist', sourcemap false, assetsInlineLimit 0, rollupOptions.input { main: 'index.html', tea: 'tea.html' } }。切勿将 src/ 复制到 dist/ 中。
  - Tailwind 3.4 通过 PostCSS 配置,content ['./index.html', './tea.html', './src/**/*.{ts,tsx}']。theme.extend.colors 映射 paper、kraft、ink、olive、clay、clayDeep、stone、rule。
  - src/fonts.ts 导入 @fontsource/lora/400.css、600.css、@fontsource/lora/400-italic.css、@fontsource/alegreya-sans/400.css、500.css、700.css,以及 @fontsource/spline-sans-mono/400.css、500.css。从两个入口文件导入 fonts.ts。
  - src/index.css 中的全局 CSS:body 背景为 paper,带有微妙的暖色纸张纹理(内联 SVG feTurbulence data-URI,不透明度 2.5%);选中文本为 clay 配 paper;focus-visible 轮廓为 2px clay。
  - src/content.ts 保存所有字符串:teas 数组(slug、name、type 为 green、black、oolong、herbal、white;caffeinated 布尔值;notes 数组含三项;每 100g 价格;steepSeconds、tempC、leafGrams、steeps;image;alt;whyLine)、sets 数组、订阅文案、brewBasics、address、hours。当变量变化时重写此文件。
  - src/lib/brand.ts:brandSlug 来自 [BRAND];localStorage 键 `${brandSlug}:shelf` 存储茶叶 slug 数组。
  - src/tea.tsx 读取 new URLSearchParams(location.search).get('id');未知或缺失的 id 渲染第一款茶(Hearth Amber)——绝不出现空白或未找到状态。
  - 冲泡计时器:一个普通 React 组件(setInterval 250ms,精确在 00:00 结束,暂停和重置,通过 SVG stroke-dashoffset 实现细 clay 进度环)。不发出声音、不发送通知,标签页隐藏时干净停止(visibilitychange 暂停计时,而非显示)。
  - src/components/ 中的组件:Header.tsx、Reveal.tsx(Motion whileInView,淡入 + 14px 上移,550ms,80ms 交错)、TeaCard.tsx、FilterBar.tsx、Sets.tsx、BrewBasics.tsx、Subscribe.tsx、Footer.tsx;tea.html 上为 BrewGuide.tsx、SteepTimer.tsx、ShelfButton.tsx。
  - public/favicon.svg:一个 64px 代码绘制的热气茶杯轮廓,clay 色配 paper 底色。构建前从 Assets 下载六张照片到 public/images/;在项目根目录编写 ASSETS.md。
  - dist/ 包含 index.html、tea.html、带哈希的 JS/CSS、woff2 字体、favicon.svg 和六张 webp 图片。保持在 20 MB 以下。

## 变量
- [BRAND] — 店铺名称(默认:"Amber & Ash")。虚构的茶叶店名称。用于字标、标题、brandSlug(localStorage 键)以及每一处提及。绝不使用真实茶叶品牌或茶园名称。
- [CITY] — 城市(默认:"Burlington, Vermont")。店铺所在地。出现在主视觉眉题、订阅行和页脚地址中。可以使用真实城市。
- [SPECIALTY] — 特色产品线(默认:"small-lot oolong and black teas")。店铺的招牌产品。用于主视觉副标题和订阅文案。保持小写且具体。
- [SUB_PRICE] — 订阅价格(默认:"$19/month")。月度茶罐的示例价格字符串,以示例文案形式说明,页面上不进行任何支付。
- [CREDIT] — 在页脚保留一个小型 "Template by VibeFather" 链接,指向 https://vibefather.ai/t/tea-shop-website(默认:是;删除此行即可移除)

页面与区块下的文案是按默认值撰写的。如果你的值不同,请为它们重写每一个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便日后无需改动组件即可替换内容。

## 设计
### 颜色
- 纸色(Paper)`#F4EDDE` — 全站页面底色 — 带有细微颗粒感的暖纸色。
- 牛皮纸色(Kraft)`#EAE0C9` — 交替区块色带、茶卡片、冲泡指南面板。
- 墨色(Ink)`#2F2A22` — 主文本:标题、正文、价格、浅色背景上的按钮。
- 橄榄色(Olive)`#6F7A4F` — 柔和绿色:眉题、类型标签、链接、静止状态的计时环。
- 陶土色(Clay)`#B26840` — 强调色:CTA、运行中的计时环、选中的筛选器、笔记标签边框、焦点环。
- 深陶土色(Clay Deep)`#96532F` — 陶土色的悬停与按下状态。
- 石色(Stone)`#8B8171` — 次要文本:说明文字、冲泡标签、低调的脚注。
- 分隔线色(Rule)`#D9CCB0` — 1px 细线:卡片边框、套装行、页脚分隔线。

### 字体排印
- 展示字体(Display)— 字标、H1、H2、茶名、套装名。Lora 衬线体,句首大写,行高 1.25;风味笔记使用斜体:Lora (OFL),字重 400/600
- 文本字体(Text)— 正文、按钮(500,0.04em 字距)、说明文字、FAQ 回答:Alegreya Sans (OFL),字重 400/500/700
- 数字字体(Figures)— 陡峭的计时数字、冲泡数字、价格:Spline Sans Mono (OFL),字重 400/500

### 布局与动效
- 间距:平静而宽裕:桌面端区块节奏 128px(移动端 80px),容器 1120px,内边距 32px,正文行高 1.7。网格间距 24px;产品页 6/6 分栏,栏间距 56px。
- 圆角:柔和但不圆鼓:卡片和面板 10px,标签和按钮 999px,图片 8px。
- 动效:如蒸汽般缓慢:显现效果在 550ms 内淡入并上移 14px,错开 80ms;没有任何弹跳。
- 动效:筛选时茶网格以 Motion 布局动画在 380ms 内重新排列。
- 动效:一缕细蒸汽——一条 SVG 路径以 4s 循环向上飘移——位于首屏底边;在 prefers-reduced-motion 下为静态卷曲。
- 动效:陡峭的计时环平滑消退(SVG stroke-dashoffset),运行中数字每秒以 4% 不透明度呼吸一次;暂停时两者立即冻结。
- 动效:笔记标签和色块状类型标签在选中时以 220ms 交叉淡入淡出;减少动效模式下所有动画即时完成。
- 图像:一次暖调拍摄:每张照片都是茶——冒着热气的倾倒茶汤、亚麻布或深色木上的干叶、陶壶与碟——在柔和的暖色侧窗光下,琥珀色与陶土色调,浅景深,50-85mm 微距质感。无人物,无可读包装,无标识。

## 页面与区块
### [BRAND] — 按类型分类的茶、套装与每月茶罐(`index.html`)
1. **页眉** — 在 Paper 上吸顶,滚动 12px 后出现 1px Rule 细线。左侧:字标 [BRAND],Lora 600 20px,Ink。中间导航(桌面端):Teas、Sets、The Monthly Tin — Alegreya Sans 500 14px,Stone 到 Ink 过渡 180ms,滚动至锚点。右侧:'My shelf' 文本链接,带 Bookmark 图标和来自 localStorage 的实时计数。移动端:字标加汉堡菜单(两条 1.5px Ink 线),打开全屏 Paper 覆盖层,锚点用 Lora 26px。
   布局:单行,1120px 容器,18px 垂直内边距。
   动效:细线在滚动时淡入;覆盖层淡入并上移 12px,240ms。
2. **首屏** — 分栏首屏:左侧 6 列放置 hero-pour.webp(茶正在倒入玻璃杯,蒸汽在窗光中缭绕),4:3 圆角 8px;右侧 6 列,文案垂直居中。眉题 '[BRAND] — TEA SHOP IN [CITY]',Alegreya Sans 700 12px 大写 0.2em Olive。H1 用 Lora 400 clamp(40px, 5vw, 60px),Ink:'Slow hours, good leaves.' 副标题用 Alegreya Sans 400 16px Stone,最大 46ch:'[SPECIALTY], weighed by the scoop at the counter and brewed with patience at home. Every tea ships with its brewing card — and its timer is on this page.' CTA 并排:'Shop teas'(clay 填充,paper 文字,999px)和 'See the sets'(幽灵按钮,1px Ink 边框)。CTA 下方一行低调文字,Stone 13px,带 Timer 图标:'Each tea page runs a steep timer while you wait.'
   布局:6/6 分栏;移动端将照片堆叠在文案上方,24px 内边距。
   动效:文案以每条 550ms、间隔 80ms 交错进入;蒸汽缕(一个 SVG 卷曲,4s 循环)在照片底边飘动;照片本身从不移动。
3. **按类型分类的茶** — id='teas'。眉题 'THE SHELF' 和 H2 'Six tins, weighed fresh.' 筛选栏:两组 chip — Type(All、Green、Black、Oolong、Herbal、White)和 Caffeine(Any、Caffeine-free)— 为 999px chip,Kraft 填充,Ink 文字,Olive 边框;激活 chip 反转为 Olive 填充配 paper 文字。六款茶,精确数据:Hearth Amber — oolong,含咖啡因,风味 'honey, toasted grain, orchid',$14/100g;Meadow Steam — green,含咖啡因,'cut grass, sweet pea, hazelnut',$12;Rowan Black — black,含咖啡因,'malt, dark honey, woodsmoke',$11;Roast Moon — oolong,含咖啡因,'charcoal, brown butter, dried fig',$13;Quiet Bloom — herbal,无咖啡因,'chamomile, honey, apple peel',$10;Cloud Veil — white,含咖啡因,'melon, fresh hay, spring rain',$16。每张卡片:该茶的 4:3 圆角 8px 照片,名称 Lora 600 19px,三条风味笔记作为斜体 chip(Kraft 填充,1px clay 边框,Lora 斜体 13px),类型和价格行用 Spline Sans Mono 13px('$14 / 100 g — oolong'),以及 'View tea' 链接到 ./tea.html?id=…,使用每款茶的 slug。筛选会隐藏不匹配的卡片并显示 'Showing 2 of 6 teas';一旦有筛选激活,'Clear' 出现。
   布局:3 列网格(平板 2 列,移动 1 列),24px 间距,卡片在 Kraft 上圆角 10px,20px 内边距,1px Rule 边框。
   动效:筛选变化时卡片以 Motion 布局动画 380ms 滑动;卡片在滚动时以 550ms、80ms 交错显现。
4. **品鉴套装** — id='sets'。眉题 'SETS' 和 H2 'Begin anywhere.' 三行平静的条目(不是卡片),每行由 Rule 细线分隔:'First Steeps — three 20 g tins of the gentlest greens and herbals — $24';'Oolong Hours — two oolongs and a small clay pot — $38';'Caffeine-Free Evenings — three herbals built for after dinner — $28'。名称 Lora 600 22px,描述 Alegreya Sans 15px Stone,价格 Spline Sans Mono 16px clay。行下方一行低调文字:'Sets are wrapped in the same paper as the tins — no ribbon, no fuss.'
   布局:单列 760px,左对齐行,细线分隔,28px 行内边距。
   动效:行在滚动时以 550ms、80ms 交错显现。
5. **每月茶罐** — id='subscribe'。全宽 Kraft 色带,圆角 10px,带 Olive 的 Package 图标。标题 Lora 600 22px:'The Monthly Tin'。正文 Alegreya Sans 15px Stone,最大 60ch:'One 50 g tin chosen to match the month's weather — darker in November, greener in May — posted with its brewing card. [SUB_PRICE], pause or skip whenever you like.' 然后一行坦诚文字 Stone 13px:'Sample copy for this template — the page takes no payments and stores nothing.' CTA 'See how it works' 滚动回茶区;没有结账。
   布局:居中单列,最大宽度 680px,44px 内边距。
   动效:滚动时以 550ms 显现一次。
6. **冲泡基础** — 眉题 'BREWING BASICS' 和 H2 'Three habits, better tea.' 下的三条简短提示 — 每条带一个 Olive 的 lucide 图标:Scale 'Weigh, don't guess — 3 g per 150 ml is the whole secret';Thermometer 'Temperature before leaf — boiling water is for black, not for green';Timer 'One short rinse wakes rolled oolongs — then start counting'。标题 Lora 17px,正文 Alegreya Sans 14px Stone。说明行:'General brewing guidance, offered warmly.'
   布局:3 列网格,24px 间距,无卡片背景 — 只有 Paper 上的图标和文字;移动端堆叠。
   动效:滚动时以 550ms、80ms 交错显现。
7. **页脚** — 1px Rule 细线,然后在 Paper 上三列:字标;'5 Weave Lane, [CITY]' 带 MapPin,'Mon–Sat 10:00–18:00' 带 Clock,'(802) 555-0126' 带 Phone;导航锚点小号重复。底部行 Stone 12px:'Every tea, note and price on this page is an invented example.' 加上可选的 [CREDIT] 链接。
   布局:三列,移动端堆叠,32px 间距。
   动效:无 — 页脚是静止的。

### [BRAND] — 一款茶、其冲泡指南与浸泡计时器(`tea.html`)
1. **产品** — 读取 ?id=;未知或缺失 id 渲染 Hearth Amber。6/6 分栏。左侧:该茶的 4:3 圆角 8px 照片;下方 Stone 13px 说明:'Shot on the shop counter — your tin will be weighed, not staged.' 右列:类型眉题 Olive 大写('OOLONG — CAFFEINATED' 或 'HERBAL — CAFFEINE-FREE'),茶名 Lora 400 40px Ink,三条风味笔记作为斜体 chip,价格行 Spline Sans Mono '$14 / 100 g'。然后是冲泡指南面板(Kraft,圆角 10px,24px 内边距):三行带 lucide 图标 — Thermometer 'Temperature — 85°C';Scale 'Leaf — 3 g per 150 ml';Timer 'Time — 3:00, up to 3 steeps' — 值来自 content.ts 中每款茶(Hearth Amber 85°C,3:00;greens 75°C,2:30;herbals 100°C,6:00;whites 80°C,4:00;blacks 95°C,3:30;Roast Moon 90°C,3:30)。下方是工作浸泡计时器:大号 mm:ss 数字 Spline Sans Mono 500 56px,一个细 clay 进度环(80px SVG 圆)在运行时逐渐排空,以及三个低调按钮 — Start/Pause(切换标签)、Reset(回到该茶的预设),以及 Stone 12px 的标签 'steeping [name]'。按钮 'Save to my shelf' 将 slug 添加到 `${brandSlug}:shelf` 并显示内联 Check 提示:'Saved on this device — a demo shelf, nothing ordered.'
   布局:6/6 分栏,56px 栏间距;指南和计时器在右侧堆叠;移动端照片优先堆叠。
   动效:运行时数字每秒以 4% 不透明度呼吸一次;进度环平滑排空;Start/Pause 和 Reset 即时生效;保存提示以 240ms 上滑 12px;减少动效时计时器完全可用但外观静止。
2. **相关茶** — 眉题 'ALSO ON THE SHELF' 和三款相关茶(当前之后的下三个 slug,循环)作为紧凑卡片:照片 4:3,名称,风味行,价格,'View tea' 链接到 ./tea.html?id=…。
   布局:3 列网格,24px 间距,与主网格相同的卡片样式。
   动效:滚动时以 550ms、80ms 交错显现。

## 资源

- 图片:为本模板制作的六张暖色调茶主题照片,可随模板一起再分发。构建前,用 curl -L -o 将每张图片下载到 public/images/ 目录。https://media.vibefather.ai/assets/a61dccb9-1f8d-4222-a254-42161ff37c63/hero-pour.webp -> public/images/hero-pour.webp(主视觉图,以及 Hearth Amber 的卡片/产品图;alt 'Amber tea pouring into a glass cup, steam curling through warm window light');https://media.vibefather.ai/assets/a61dccb9-1f8d-4222-a254-42161ff37c63/leaf-green.webp -> public/images/leaf-green.webp(Meadow Steam;alt 'Dry green tea leaves scattered on oatmeal linen');https://media.vibefather.ai/assets/a61dccb9-1f8d-4222-a254-42161ff37c63/leaf-black.webp -> public/images/leaf-black.webp(Rowan Black;alt 'Twisted black tea leaves on dark walnut wood in warm side light');https://media.vibefather.ai/assets/a61dccb9-1f8d-4222-a254-42161ff37c63/leaf-oolong.webp -> public/images/leaf-oolong.webp(Roast Moon;alt 'Rolled oolong tea balls in a small clay dish on linen');https://media.vibefather.ai/assets/a61dccb9-1f8d-4222-a254-42161ff37c63/leaf-herbal.webp -> public/images/leaf-herbal.webp(Quiet Bloom;alt 'Dried chamomile flowers on warm linen');https://media.vibefather.ai/assets/a61dccb9-1f8d-4222-a254-42161ff37c63/leaf-white.webp -> public/images/leaf-white.webp(Cloud Veil;alt 'Slender white tea needles on a warm ceramic plate')。在 ASSETS.md 中为每张图片注明:'Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template.'
- 图标:仅使用 lucide-react:Timer、Thermometer、Scale、Package、Bookmark、Check、MapPin、Clock、Phone、ArrowRight。描边宽度 1.75,尺寸 16-24px,颜色继承。蒸汽细缕和茶杯 favicon 是用代码绘制的 SVG。不使用其他图标集。
- 字体:@fontsource/lora(400、600、400-italic)、@fontsource/alegreya-sans(400、500、700)和 @fontsource/spline-sans-mono(400、500),在 src/fonts.ts 中导入,以便 Vite 将 woff2 文件打包进 dist/。绝不从 CDN 加载字体。

## 不要做
- 不要后端、不要 API、不要表单提交、不要支付:货架只保存到 localStorage,订阅仅以示例文案说明。
- 不要真实茶叶品牌、茶园或进口商;店铺名称、茶名、品鉴笔记和价格均为虚构。
- 不要任何健康声明——文案只停留在感官层面(味道、气味、温度),冲泡卡片绝不承诺功效。
- 浸泡计时器仅为本地工具:无声音、无通知、除可见倒计时外无后台行为。
- 照片只展示茶、茶叶、茶壶和倒茶——不要人脸、不要手、不要可辨认的包装、不要标志。
- 不要日历日期,不要实时时钟:营业时间为固定的示例字符串,订阅文案中的月份仅为示例;网站绝不显示今天的日期。
- 不带查询参数的 tea.html 显示第一款茶,绝不显示空白或未找到状态。
- 一切自托管:字体通过 Fontsource,图标通过 lucide-react,图片下载到 public/images/——不要 CDN 标签,不要分析工具。
- 静态构建:压缩,无 source map,dist/ 中无 src/,一条命令 npm run build,多页面输出,dist/ 中有真实的 tea.html,总体积低于 20 MB。
- 每个内部链接都指向一个文件(./index.html#teas、./tea.html?id=…);绝不指向裸目录。
- 尊重 prefers-reduced-motion:无蒸汽循环,无呼吸数字;计时器本身保持可用。
- 在 1440×900 和 390×844 下正常工作,控制台零错误;筛选器、计时器按钮和货架保存仅用键盘即可操作,并有可见的陶土色焦点环。
- 除带有 [BRAND] 的普通标题外,不要任何 SEO 机制;网站内绝不提及 VibeFather 或任何真实品牌;所有文案均为虚构的美式英语,存放于 src/content.ts。

---
— Prompt by VibeFather · https://vibefather.ai/t/tea-shop-website · 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: "Tea Shop Website"
colors:
  paper: "#F4EDDE"
  kraft: "#EAE0C9"
  ink: "#2F2A22"
  olive: "#6F7A4F"
  clay: "#B26840"
  clay_deep: "#96532F"
  stone: "#8B8171"
  rule: "#D9CCB0"
typography:
  display_wordmark_h1_h2_tea_names_set_names_lora_serif_sentence_case_line_height_1_25_flavor_notes_use_the_italic: { family: "Lora", weights: [400, 600] }
  text_body_buttons_500_0_04em_tracking_captions_faq_answers: { family: "Alegreya Sans", weights: [400, 500, 700] }
  figures_the_steep_timer_digits_brewing_numbers_prices: { family: "Spline Sans Mono", weights: [400, 500] }
spacing: "Calm and generous: 128px desktop section rhythm (80px mobile), 1120px container, 32px padding, body line-height 1.7. Grid gap 24px; product page 6/6 split with a 56px gutter."
radius: "Soft but not bubbly: 10px on cards and panels, 999px on chips and buttons, 8px on images."
---

# Tea Shop Website — 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** `#F4EDDE` — Page ground everywhere — warm paper carrying a whisper of grain.
- **Kraft** `#EAE0C9` — Alternate section bands, tea cards, the brewing guide panel.
- **Ink** `#2F2A22` — Primary text: headlines, body, prices, buttons on light.
- **Olive** `#6F7A4F` — Muted green: eyebrows, type chips, links, the timer ring at rest.
- **Clay** `#B26840` — Accent: CTAs, running timer ring, selected filters, note-chip borders, focus ring.
- **Clay Deep** `#96532F` — Clay hover and pressed state.
- **Stone** `#8B8171` — Secondary text: captions, brewing labels, the quiet footnotes.
- **Rule** `#D9CCB0` — 1px hairlines: card borders, set rows, footer divider.

## Typography
- **Display — wordmark, H1, H2, tea names, set names. Lora serif, sentence case, line-height 1.25; flavor notes use the italic** — Lora (OFL), weights 400/600. Self-host the font files.
- **Text — body, buttons (500, 0.04em tracking), captions, FAQ answers** — Alegreya Sans (OFL), weights 400/500/700. Self-host the font files.
- **Figures — the steep timer digits, brewing numbers, prices** — Spline Sans Mono (OFL), weights 400/500. Self-host the font files.

## Spacing & shape
- Spacing: Calm and generous: 128px desktop section rhythm (80px mobile), 1120px container, 32px padding, body line-height 1.7. Grid gap 24px; product page 6/6 split with a 56px gutter.
- Radius: Soft but not bubbly: 10px on cards and panels, 999px on chips and buttons, 8px on images.

## Motion
- Slow like steam: reveals fade and rise 14px over 550ms with 80ms stagger; nothing bounces.
- Filtering re-flows the tea grid with Motion layout animations at 380ms.
- A thin steam wisp — one SVG path drifting upward on a 4s loop — sits at the hero's bottom edge; under prefers-reduced-motion it is a static curl.
- The steep timer ring drains smoothly (SVG stroke-dashoffset) and the digits breathe once per second at 4% opacity while running; pause freezes both instantly.
- Note chips and swatch-like type chips crossfade 220ms on selection; reduced-motion makes every animation instant.

## Imagery
One warm-graded shoot: every photograph is tea — pouring liquor with steam, dry leaves on linen or dark wood, clay pots and dishes — in soft warm side window light, amber and clay tones, shallow depth of field, 50-85mm macro feel. No people, no readable packaging, no logos.

## Tone
Quietly sensory: honey, woodsmoke, orchid — flavors first, facts second, never salesy. The copy never hurries the reader.

---
— Prompt by VibeFather · https://vibefather.ai/t/tea-shop-website · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown

改成你自己的

  • 手作咖啡烘焙商:将 BRAND 和 CITY 设为你的烘焙坊,将茶叶条目改写为带有烘焙笔记的单一产地咖啡豆,并保留浸泡计时器用于手冲时间。
  • 香料商:将 SPECIALTY 指向你的拼配,将类型筛选重命名为辣度等级,并将冲泡指南替换为烘烤和研磨笔记。
  • 茶订阅俱乐部:将 SUB_PRICE 设为你的月度罐装价格,围绕你的发货节奏重写订阅文案,并将收藏架链接到你的邮件列表。
  • 茶饮礼品店:将品鉴套装卡片变成精选礼盒,调整套装名称和价格,并保留冲泡基础条作为教学插页。

茶馆网站:常见问题

茶馆网站模板的浸泡计时器是如何工作的?

茶馆网站模板的每个茶页面都配有一个可用的浸泡计时器:真实的 mm:ss 倒计时,支持暂停和重置,顾客可以在泡茶时实际使用。它在 00:00 精确结束,排空一个细陶土进度环,运行时每秒让数字呼吸一次。它不发出声音,不发送通知,标签页隐藏时暂停计时。

怎么用 AI 做一个茶馆网站?

复制本页的提示词,或者运行 npx vibefather add tea-shop-website,把 [CITY]、[BRAND]、[SPECIALTY]、[SUB_PRICE] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。