跳到正文
VibeFather
免费注册

用这个模板做的 2 个案例

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

关于这个模板

单页花店:首屏展示花店的承诺,旁边是花桶照片和实时的当日截单时钟(下午2点前下单);八款花束的目录,附季节说明,三种尺寸(小束、标准、丰盛)价格实时更新,还有花瓶开关;未来七天的配送日期选择器,周日不营业,当日达标签在截单后消失;礼物留言框,手绘便签预览随输入实时更新;侧滑购物车抽屉,按尺寸和花瓶区分行项目,带数量步进器和每行所选日期;订阅条、三条评价,以及三行花卉养护说明。结账是诚实的客户端确认——不会扣款,页面也明确说明。默认内容来自一家虚构的街角花店,但这个结构适合任何花店或礼品店:更改店名、城市、截单时间和价格基数,每束花、每张便签和每个日期依然读得通。视觉是花园清新的编辑风:柔和的腮红与奶油色、深绿色墨迹、一抹罂粟红点缀,Lora 标题配 Albert Sans,丝带和票券细节用 SVG 绘制,植物般的疏朗留白。摄影是一套统一的生成图:花桶、花茎、包装好的花束和店铺角落,没有人物。要改编它,替换变量并在一个内容文件里重写文案即可。

模板提示词

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

# Florist Shop Website

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

## Brief
A single-page shop for [SHOP], a corner florist in [CITY] — same-day delivery on orders before [CUTOFF], bouquets from $[BASE_PRICE]. It must sell flowers honestly: an eight-bouquet catalogue with size and vase options priced live, a delivery date picker (next 7 days, Sundays closed, same-day before the cutoff), a gift message with a live notecard preview, a cart drawer with per-line variants and date, and a client-side checkout that says it takes no payment. One page: index.html with sections (#shop, #subscriptions, #care). Everything runs in the browser; nothing is submitted anywhere.

- Audience: Gift-givers in a mild panic and regulars who know what they like: partners, adult children, apology drafters. They shop on phones, care about the delivery date above all, and want the card message to sound better than they can write.
- Goal: Fill the cart and pick the date. Within ten seconds a visitor sees the same-day cutoff, the price range and the first bouquets; within a minute they have a size, a date and a message started.
- Tone: Warm, lightly witty, flower-literate but never gatekeep-y. Concrete stems and seasonal notes, one joke about lilies, no 'express your emotions through flowers'.

## Stack
- Framework: Vite 5 + React 18 + TypeScript
- Styling: Tailwind CSS 3.4
- Libraries: react (MIT), react-dom (MIT), motion (motion.dev, import from 'motion/react') (MIT), lucide-react (MIT), tailwindcss (MIT), postcss (MIT), autoprefixer (MIT), vite (MIT), @vitejs/plugin-react (MIT), typescript (Apache-2.0), @fontsource/lora (OFL-1.1), @fontsource-variable/albert-sans (OFL-1.1)
- 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 }. Do not copy src/ into dist/.
  - Tailwind 3.4 through PostCSS, content ['./index.html', './src/**/*.{ts,tsx}']. In tailwind.config.ts add every color under Design to theme.extend.colors with kebab-case keys (cream-blush, petal, card, leaf, leaf-deep, moss, poppy, poppy-deep, ink-green, rule) and fontFamily display ['Lora', 'Georgia', 'serif'], sans ['Albert Sans Variable', 'system-ui', 'sans-serif']. Set borderRadius DEFAULT to 14px and add maxWidth { container: '1180px' }.
  - In src/fonts.ts import '@fontsource/lora/500.css', '@fontsource/lora/600.css', '@fontsource/lora/500-italic.css' and '@fontsource-variable/albert-sans'; import src/fonts.ts and src/index.css from the entry file.
  - File layout: src/content.ts (every string, bouquet, size price, note, review, hour and image path, typed), src/lib/brand.ts (shopSlug = [SHOP] lowercased with every run of non-alphanumeric characters replaced by '-', emailDomain = shopSlug without hyphens + '.com'), src/lib/storage.ts (safe localStorage get/set wrapped in try/catch, keys prefixed with shopSlug + ':'), src/lib/cutoff.ts (cutoffInfo(now): parses [CUTOFF]; returns { sameDay: boolean, hoursLeft, minutesLeft } from the client clock), src/lib/dates.ts (nextDays(7) with Sundays marked closed; price math: size multiplier posey ×0.75 / bouquet ×1 / abundant ×1.45 off the bouquet base).
  - State: src/store/cart.ts is a tiny external store (useSyncExternalStore) holding lines { key: '<slug>|<size>|<vase>', slug, size, vase, date, message, qty } plus drawer open state and the placed flag, persisted to localStorage key shopSlug + ':cart'. The gift message is per-line (chosen at add time, editable in the drawer).
  - Components in src/components/: Header.tsx (with CartButton + count), CutoffBanner.tsx (the live countdown), Reveal.tsx (Motion whileInView wrapper), Eyebrow.tsx, Footer.tsx; Hero.tsx, Catalogue.tsx (BouquetCard.tsx with SizePicker.tsx, VaseToggle.tsx, AddToCart.tsx), DatePicker.tsx (DayChips.tsx), MessageCard.tsx (the drawn notecard preview), CartDrawer.tsx (LineRow.tsx, QtyStepper.tsx, Checkout.tsx, PlacedCard.tsx), Subscriptions.tsx, Reviews.tsx, CareBlock.tsx. src/pages/Home.tsx composes them.
  - Before the first build, download every image listed under Assets into public/images/ with curl -L -o using the exact file names given. The build itself never fetches anything.
  - public/favicon.svg as described under Assets. index.html: lang en, <meta name='theme-color' content='#FBF6F1'>, <link rel='icon' href='./favicon.svg' type='image/svg+xml'>, <title>[SHOP] — Flowers delivered in [CITY]</title>.
  - Write ASSETS.md at the project root as described under Assets.
  - dist/ holds index.html, hashed JS/CSS, the woff2 fonts, favicon.svg and the six images. Keep it under 10 MB.

## Variables
- [SHOP] — Shop name (default: "Petals & Post"). Invented florist name. Used in the wordmark, title, footer, email (hello@ + shopSlug without hyphens + .com) and localStorage keys. Never a real shop.
- [CITY] — City (default: "Portland, Maine"). Where the shop delivers. Used in the hero, delivery copy, reviews and the footer. Real cities fine; streets invented.
- [CUTOFF] — Same-day cutoff (default: "2pm"). The same-day order cutoff hour, written like '2pm' or '1pm'. Drives the countdown banner, the date picker's same-day chip and one FAQ-style line. Keep it noon–4pm.
- [BASE_PRICE] — Bouquet base price (default: "42"). The standard 'bouquet' size price of the signature arrangement as digits. Posey is ×0.75, abundant ×1.45; every bouquet's sizes derive from its own base around this figure.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/florist-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
- Cream Blush `#FBF6F1` — Page background throughout.
- Petal `#F4E6DE` — Alternate section background (Reviews, Care), hover fill, chips.
- Card `#FFFDFA` — Bouquet cards, notecard preview, drawer, placed card.
- Leaf `#33523F` — Primary: headlines' weight color, primary buttons, size selected, focus ring.
- Leaf Deep `#243B2D` — Primary hover, footer background.
- Moss `#7E8F7C` — Secondary text, captions, eyebrows, closed days.
- Poppy `#D4574B` — The one warm accent: prices, the cutoff countdown, selected date, cart badge, ribbon details.
- Poppy Deep `#B23F35` — Poppy hover, pressed, the countdown's final hour.
- Ink Green `#2A2E26` — Body text, bouquet names, icon color.
- Rule `#E7DAD1` — 1px hairlines, card borders, input borders, dividers.

### Typography
- Display: H1, H2, bouquet names, prices in large sizes, the wordmark, notecard script line: Lora (OFL), weights 500/600
- Text and UI: body, eyebrows, buttons, form fields, captions; tabular numerals for prices and the countdown: Albert Sans (OFL), weights 400/600/700

### Layout & motion
- Spacing: 8px base unit. Container max-width 1180px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. 12-column grid, column gap 24px. Section vertical padding 96px desktop, 72px under 1024px, 56px under 640px. Type scale: H1 clamp(42px, 6.2vw, 78px) Lora 500, line-height 1.04; H2 clamp(28px, 3.8vw, 46px) Lora 500; H3 22px Lora 600; italic phrases in headings use Lora 500 italic (marked *asterisks*, rendered <em>); lead Albert Sans 400 17.5px / 1.7 Ink Green at 90%; body 15.5px / 1.7 (max-width 62ch); eyebrow Albert Sans 700 12px uppercase letter-spacing 0.16em Moss; caption 13px Moss. Buttons: height 50px, Albert Sans 700 14px. Primary: Leaf fill, Card text. Secondary: 1px Leaf border, Leaf text. Small 38px. Inputs: height 48px, 1px Rule border, Card fill, focus Leaf border. Focus ring everywhere: 2px Leaf outline with 3px offset.
- Radius: 14px on cards, buttons, inputs, chips, the notecard and the drawer. 999px only for pills, day chips, the cart badge and the ribbon dot.
- Motion: Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1) for reveals, the drawer and price changes; --ease-io cubic-bezier(0.65, 0, 0.35, 1) for the notecard and checkout swaps. Light-footed and friendly.
- Motion: Reveal: blocks wrapped in <Reveal> start at opacity 0, translateY(14px) and settle over 700ms --ease-out when 15% visible (Motion whileInView, viewport once). Siblings stagger 75ms.
- Motion: CutoffBanner: the countdown ticks every minute (tabular numerals hold width); in the final hour the figure turns Poppy Deep and the banner gently pulses once a minute (off under reduced motion).
- Motion: Bouquet cards: hover lifts 3px; the size picker's prices crossfade 150ms; selecting a size fills the chip Leaf; the vase toggle slides a small drawn vase glyph in.
- Motion: Add to cart: the button reads 'Added ✓' for 1300ms; a small petal (drawn) drifts from the button toward the cart button and fades (700ms, once); the badge pops 1→1.3→1.
- Motion: Notecard preview: the drawn notecard sits beside the message field; typed text appears on the card in Lora italic in real time, with a soft underline draw; the signature line ('— with love, [name]') types once when the name field completes.
- Motion: Date picker: day chips fill Petal on hover and Leaf (Card text) when selected; the same-day chip carries a Poppy 'today' dot that disappears after the cutoff, the chip itself greying out with the caption 'tomorrow''s earliest now'.
- Motion: Cart drawer: overlay fades 300ms, drawer slides from the right 420ms --ease-out; qty steppers pulse the line's subtotal count (300ms); removing collapses the row 240ms.
- Motion: Checkout swap: the placed card rises 16px (320ms --ease-io) with a drawn Poppy ribbon 'ORDER TIED' stamp rotating in -6deg→-2deg; the order number (shopInitials-####) types 700ms.
- Motion: Links: .link-draw grows a 1px currentColor underline over 280ms on hover and focus-visible.
- Motion: prefers-reduced-motion: reduce — no pulses, petals, type-ins or counts; drawer and swaps appear; color/border hover changes stay. Use CSS @media in index.css plus Motion's useReducedMotion in components.
- Imagery: Warm real photography, all six made for this template in one consistent style: soft daylight, blush and cream with deep green leaves and poppy accents, one shop's world — buckets, stems, wrapped paper, workbench corners. Never a person (no faces, no hands); no readable signage. Every photo uses object-fit cover with the object-position given under Assets, 14px corners, no shadow; photos on Cream get a 1px Rule outline. Captions in Albert Sans 13px Moss. Drawn in code: the notecard, the vase glyph, the petal, the ribbon stamp, chips and the favicon. Icons: lucide-react only, stroke width 1.75.

## Pages & Sections
### Shop (`index.html`)
1. **Content file and copy rules** — All copy below is written for the default values ([SHOP] = Petals & Post, [CITY] = Portland, Maine, [CUTOFF] = 2pm, [BASE_PRICE] = 42). Put every string, price and list in src/content.ts and render from it. If any variable value differs, rewrite the hero, all eight bouquets (names, stems, seasonal notes), reviews, subscription copy and care lines so they are specific and believable for the new shop, keeping the same structure and counts (8 bouquets, 3 sizes each, 1 vase toggle, 7 date chips, 3 subscriptions, 3 reviews, 3 care lines). All stems, prices and reviewers are invented. Bouquets (slug · name · base · note · photo): 'meadow-post' The Meadow Post $42 'ranunculus, sweet pea, rye grass — like a letter from a field' hero-bucket; 'saturday-market' Saturday Market $48 'dahlias, cosmos, whatever the grower overslept on' market-wrap; 'first-blush' First Blush $45 'garden roses, lisianthus, a hesitation of astilbe' blush-rose; 'hearth-side' The Hearth Side $56 'amber mums, dried grasses, eucalyptus — for tables with candles' hearth-amber; 'wild-thursday' Wild Thursday $39 'whatever was left at close, made gorgeous — florist''s choice, honestly' wild-stems; 'white-noise' White Noise $58 'white ranunculus, jasmine, no green in sight' white-clean; 'poppy-argument' A Poppy Argument $50 'poppies, wheat, one dramatic branch — a statement, possibly an apology' poppy-argument; 'tuesday-tulips' Tuesday Tulips $34 'twenty tulips, paper-wrapped, no ceremony' tulip-wrap.
   Layout: n/a
   Motion: n/a
2. **Cutoff banner and header** — CutoffBanner (top, Petal band, Leaf Deep text): 'Order by [CUTOFF] for same-day delivery in [CITY]' and the live countdown 'You have 3h 12m' in Poppy (tabular) — after cutoff: 'Same-day has closed — tomorrow''s first deliveries are open.' Header: left the wordmark '[SHOP]' (Lora 600 21px) over 'Cut · wrapped · delivered · [CITY]' (10px uppercase Moss); right nav (Albert Sans 600 14px): 'Bouquets' → #shop, 'Subscriptions' → #subscriptions, 'Care' → #care; the CartButton (Lucide ShoppingBasket + Poppy count badge) opens the drawer.
   Layout: Banner static top, 36px; header sticky below it (72px), Cream Blush/94% blur, Rule border.
3. **Hero** — Two columns. Left: eyebrow 'FLOWERS, CUT THIS MORNING'; H1 'Say it' / '*in season.*'; lead (max-width 520px): 'A corner shop in [CITY] with one rule: if it wasn''t cut this week, it isn''t going out this week. Wrapped in paper, carried by bike, at the door before dinner.'; the primary 'Send flowers today' → #shop with the caption 'Order by [CUTOFF] — the countdown above is honest.'; three quick facts in mono-free small caps: 'Free delivery over $60'; 'Sundays we rest (the flowers too)'; 'Gift note included, always'. Right: hero-bucket.webp (4:3) with the caption 'Saturday''s bucket, 7am — photo by the shop, proudly'.
   Layout: Cream Blush background, vertical padding 104px top; left 6 cols, right 5 cols offset 1.
4. **Bouquet catalogue** — Section id='shop'. Eyebrow 'THE CATALOGUE' and H2 'Eight bouquets, three sizes, one honest vase.' The eight BouquetCards in a 4x2 grid: photo, name (Lora 600 20px), the seasonal note (13.5px Moss), the SizePicker (Posey / Bouquet / Abundant with derived prices, tabular), the VaseToggle ('+ Vase · glass, $12' — adds a drawn vase glyph beside the photo), the date chip row (today if before cutoff, else tomorrow + 6 days, Sundays disabled 'we rest'), the message field placeholder ('Gift note (optional) — we write it on the card'), and 'Add — $42' (live, Leaf fill). Cards open expanded on desktop, stacked-scroll on mobile. Five distinct bouquets map one-to-one to five distinct photos (hero photo never reused as a product card); Tuesday Tulips shows tulips, White Noise shows white ranunculus and jasmine, First Blush shows blush roses, Saturday Market shows the market wrap, The Poppy Argument shows poppies - each photo actually shows its named flowers.
   Layout: Petal background. 4 columns 20px gap (2 under 1024px, 1 under 640px); cards on Card 1px Rule border 18px padding; photo aspect 4:3 top; the price button full-width.
5. **Message notecard** — Between the catalogue and the drawer logic sits the MessageCard demo strip: 'The card, before we write it' — a drawn notecard (Card, 1px Rule border, a Poppy ribbon corner) previewing the current draft in Lora italic, with the line 'Handwritten, in actual ink, by whoever wraps the flowers.' and a small pen icon. This is a component of the add-flow (the message field lives on each card); the strip explains what happens to it. The notecard enlarges with a sample handwritten-style line and a signature placeholder, shown beside the field on desktop and above it on mobile, with a subtle eyebrow.
   Layout: Cream Blush band, two columns: the drawn card 4 cols, the explainer 6 cols offset 2; 72px padding.
6. **Cart drawer and checkout** — The CartDrawer: overlay Leaf Deep at 35%; drawer on Card slides from the right (380px): 'Your flowers' header, lines (photo thumb, name, size · vase row, date, message preview truncated to 28 chars, qty stepper, line price tabular), the delivery note ('Riding to [CITY] addresses, Tue–Sat'), subtotal, 'Checkout' primary with caption 'This demo takes no payment — it ties the order with ribbon and saves it here.' PlacedCard: the Poppy 'ORDER TIED' stamp, order number 'PP-####' typed, 'Delivering [DAY] between 4pm and 7pm.', the echoed message on the drawn card, 'Another bouquet' (clears) and 'Back to the shop'. Persisted in localStorage.
   Layout: Drawer full-height right, 20px padding, scrollable lines; checkout swaps inside the drawer 320ms --ease-io.
7. **Subscriptions, reviews and care** — Section id='subscriptions'. Eyebrow 'EVERY WEEK, OR EVERY MONTH' and three cards: 'The Weekly Post' — 'A fresh hand-tied bouquet every Friday · from $36/week'; 'The Monthly Hearth' — 'One abundant arrangement on the first of the month · from $58/month'; 'Office Fridays' — 'Desk-sized poseys for the whole team · quoted per floor'. A caption: 'Pause for holidays, pollen season, or heartbreak — two taps, no calls.' Reviews (id 'reviews' implicit in section): '"The card message came out better than what I sent them. I''ve stopped trying."' — 'Rosa M., monthly'; '"Ordered at 1:58pm, delivered by 5. I checked the clock twice."' — 'Dan O., same-day convert'; '"My mother now refers to Thursday as tulip day. This is their fault."' — 'Priya S., weekly'. Care (id='care'): three lines with icons — 'Trim 2cm, cold water, every other day'; 'Keep off the radiator and out of the fruit bowl (apples are gossips)'; 'Swap the sugar pill for a penny — old florist''s trick, works on tulips'.
   Layout: Petal band for subscriptions (3 cards, Card surfaces); Reviews on Cream Blush (3 columns); Care a hairline-bounded strip of three, 56px padding.
8. **Footer** — Leaf Deep background, Card-toned text. Three columns: 1) wordmark + '[SHOP]' over 'Cut, wrapped, delivered · [CITY]'. 2) 'The shop': '14 Marigold Lane, [CITY]', hello@ + emailDomain, '(207) 555-0173'. 3) 'Around': Bouquets, Subscriptions, Care, and 'Weddings & events — write us' (mailto). Bottom line: '© [SHOP]. Stems change; the ribbon doesn''t.'
   Layout: Vertical padding 64px, 3 columns, bottom line 32px below a Card/15% rule. Under 768px: stacked.

## Assets
- image: Template photos made for this design (free to redistribute with the template). Download each with curl -L -o into public/images/: https://media.vibefather.ai/assets/1187bf3d-39e4-4025-a1ee-f4a5339d9f06/hero-bucket.webp → public/images/hero-bucket.webp (Hero, meadow-post card; object-position 50% 55%; alt 'A galvanized bucket of mixed stems in morning light'); https://media.vibefather.ai/assets/1187bf3d-39e4-4025-a1ee-f4a5339d9f06/market-wrap.webp → public/images/market-wrap.webp (saturday-market, tuesday-tulips; alt 'A paper-wrapped bouquet on a market table'); https://media.vibefather.ai/assets/1187bf3d-39e4-4025-a1ee-f4a5339d9f06/blush-rose.webp → public/images/blush-rose.webp (first-blush, white-noise; alt 'Blush garden roses with soft astilbe in a glass jar'); https://media.vibefather.ai/assets/1187bf3d-39e4-4025-a1ee-f4a5339d9f06/hearth-amber.webp → public/images/hearth-amber.webp (hearth-side; alt 'Amber mums and dried grasses against a dark shelf'); https://media.vibefather.ai/assets/1187bf3d-39e4-4025-a1ee-f4a5339d9f06/wild-stems.webp → public/images/wild-stems.webp (wild-thursday; alt 'A loose wild arrangement of leftovers made beautiful'); https://media.vibefather.ai/assets/1187bf3d-39e4-4025-a1ee-f4a5339d9f06/poppy-argument.webp → public/images/poppy-argument.webp (poppy-argument; alt 'Red poppies and wheat with one dramatic branch'). Six files in total.
- image: Write ASSETS.md at the project root with a table: path, source URL, author, license — one row for each photo (source 'media.vibefather.ai, made for this template', author 'VibeFather', license 'Distributed with the template'), plus rows for @fontsource/lora and @fontsource-variable/albert-sans (OFL-1.1) and lucide-react (ISC). Never replace photos with stock sites or images with people, faces, hands or readable signage.
- icon: lucide-react only: ShoppingBasket, Plus, Minus, Check, X, Truck, CalendarDays, PenLine, Sun, Droplets, Scissors, Leaf. Stroke width 1.75, 16–24px, color inherits. The notecard, vase glyph, petal, ribbon stamp and favicon are drawn SVG. public/favicon.svg: viewBox 0 0 32 32, a 32x32 rect rx 9 filled #33523F, a Card (#FFFDFA) tulip glyph (two petals and a stem) with a Poppy (#D4574B) ribbon cross. No other logo: the shop name is always set as type; no real payment marks.
- font: Install @fontsource/lora and @fontsource-variable/albert-sans and import them in src/fonts.ts as listed in Setup. Vite bundles the woff2 files into dist/.
- image: Drawn in code: the notecard and ribbon corner, the vase glyph, the drifting petal, the ORDER TIED stamp, day chips and the favicon. No other bitmaps; no illustrations; no map tiles.

## Don'ts
- No backend, no form submission, no fetch to any API: the cart, messages and order save in the browser only (localStorage); the checkout says it takes no payment; the cutoff countdown uses the client clock and says so.
- All links on this single page are anchors (./index.html#shop, #subscriptions, #care) plus the footer mailto.
- Self-host everything: fonts through Fontsource, icons as npm packages or inline SVG, images downloaded into public/images/. No CDN <script> or <link> tags, no Google Fonts, no analytics.
- Production build: minified, no source maps, no src/ copied into dist/, single command npm run build, output in dist/ under 10 MB.
- No real florists, delivery brands or payment marks; no photos with people, faces or hands; no readable signage; all stems, prices and reviews invented.
- No dates or years anywhere; the date picker shows weekday chips (Today/Tomorrow then weekday names) without full dates; the site never shows today's date.
- Never mention VibeFather or any other brand inside the site except the optional credit footer link; all copy is invented US English.
- Respect prefers-reduced-motion: no pulses, petals, type-ins or counts; the countdown still ticks (it is information, not decoration); color/border hovers stay.
- The page must work at 1440x900 desktop and 390x844 mobile with zero console errors; size/date/message controls, the drawer and checkout work with keyboard only and visible focus rings; the drawer traps focus while open.
- Keep copy concrete: no lorem, no 'emotions through flowers'; every price, stem list and hour lives in src/content.ts.

---
— Prompt by VibeFather · https://vibefather.ai/t/florist-shop-website · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 花店网站

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

## 简介
为 [SHOP] 打造的单页花店——[SHOP] 是 [CITY] 的一家街角花店,[CUTOFF] 之前下单可享当日送达,花束 $[BASE_PRICE] 起。它必须诚实地卖花:八款花束的目录,尺寸和花瓶选项实时定价;一个送达日期选择器(未来 7 天,周日休息,截止时间前可当日送达);一条礼物留言,带实时贺卡预览;一个购物车抽屉,显示每行的规格和日期;以及一个客户端结账流程,声明不收取任何付款。单页:index.html,包含各区块(#shop、#subscriptions、#care)。一切都在浏览器中运行;不会向任何地方提交数据。

- 受众:手忙脚乱的送礼者和知道自己喜欢什么的常客:伴侣、成年子女、起草道歉的人。他们在手机上购物,最关心送达日期,希望卡片留言听起来比他们自己能写的更好。
- 目标:填满购物车并选好日期。访客在十秒内看到当日截止时间、价格区间和首批花束;在一分钟内他们就有了尺寸、日期和已开始撰写的留言。
- 语气:温暖,略带机智,懂花但不摆架子。具体的花茎和时令说明,一个关于百合的笑话,不说“用花表达你的情感”。

## 技术栈(Stack)
- 框架(Framework):Vite 5 + React 18 + TypeScript
- 样式(Styling):Tailwind CSS 3.4
- 库(Libraries):react(MIT)、react-dom(MIT)、motion(motion.dev,从 'motion/react' 导入)(MIT)、lucide-react(MIT)、tailwindcss(MIT)、postcss(MIT)、autoprefixer(MIT)、vite(MIT)、@vitejs/plugin-react(MIT)、typescript(Apache-2.0)、@fontsource/lora(OFL-1.1)、@fontsource-variable/albert-sans(OFL-1.1)
- 构建(Build):`npm run build` → 静态文件输出到 `dist/`。无后端、无服务端代码、无外部 API。
- 初始化设置(Setup):
  - 使用 npm create vite@latest 并选择 react-ts 模板来搭建脚手架。项目根目录下只有一个 HTML 页面:index.html(入口为 src/main.tsx)。
  - vite.config.ts:base 设为 './',plugins 为 [react()],build 配置为 { outDir 'dist', sourcemap false, assetsInlineLimit 0 }。不要将 src/ 复制到 dist/ 中。
  - Tailwind 3.4 通过 PostCSS 接入,content 为 ['./index.html', './src/**/*.{ts,tsx}']。在 tailwind.config.ts 中,将设计(Design)下的每种颜色以 kebab-case 键名添加到 theme.extend.colors 中(cream-blush、petal、card、leaf、leaf-deep、moss、poppy、poppy-deep、ink-green、rule),并设置 fontFamily 的 display 为 ['Lora', 'Georgia', 'serif']、sans 为 ['Albert Sans Variable', 'system-ui', 'sans-serif']。将 borderRadius 的 DEFAULT 设为 14px,并添加 maxWidth { container: '1180px' }。
  - 在 src/fonts.ts 中导入 '@fontsource/lora/500.css'、'@fontsource/lora/600.css'、'@fontsource/lora/500-italic.css' 和 '@fontsource-variable/albert-sans';在入口文件中导入 src/fonts.ts 和 src/index.css。
  - 文件布局(File layout):src/content.ts(所有字符串、花束、尺寸价格、备注、评价、营业时间和图片路径,均带类型)、src/lib/brand.ts(shopSlug = [SHOP] 转为小写,并将每一段连续的非字母数字字符替换为 '-',emailDomain = 去掉连字符的 shopSlug + '.com')、src/lib/storage.ts(安全的 localStorage get/set,用 try/catch 包裹,键名以 shopSlug + ':' 为前缀)、src/lib/cutoff.ts(cutoffInfo(now):解析 [CUTOFF];根据客户端时钟返回 { sameDay: boolean, hoursLeft, minutesLeft })、src/lib/dates.ts(nextDays(7),周日标记为休息;价格计算:尺寸倍率 posey ×0.75 / bouquet ×1 / abundant ×1.45,基于花束基础价)。
  - 状态(State):src/store/cart.ts 是一个小型外部 store(useSyncExternalStore),保存行项 { key: '<slug>|<size>|<vase>', slug, size, vase, date, message, qty } 以及抽屉打开状态和已下单标志,持久化到 localStorage 键 shopSlug + ':cart'。赠言按行项存储(在加入时选择,可在抽屉中编辑)。
  - 组件位于 src/components/:Header.tsx(含 CartButton + 数量)、CutoffBanner.tsx(实时倒计时)、Reveal.tsx(Motion whileInView 包装器)、Eyebrow.tsx、Footer.tsx;Hero.tsx、Catalogue.tsx(含 BouquetCard.tsx、SizePicker.tsx、VaseToggle.tsx、AddToCart.tsx)、DatePicker.tsx(DayChips.tsx)、MessageCard.tsx(手绘便签卡预览)、CartDrawer.tsx(LineRow.tsx、QtyStepper.tsx、Checkout.tsx、PlacedCard.tsx)、Subscriptions.tsx、Reviews.tsx、CareBlock.tsx。src/pages/Home.tsx 负责组合它们。
  - 在首次构建之前,使用 curl -L -o 将资源(Assets)下列出的每张图片下载到 public/images/ 中,并使用给定的确切文件名。构建本身从不获取任何内容。
  - public/favicon.svg 按资源(Assets)中的描述创建。index.html:lang 为 en,<meta name='theme-color' content='#FBF6F1'>,<link rel='icon' href='./favicon.svg' type='image/svg+xml'>,<title>[SHOP] — Flowers delivered in [CITY]</title>。
  - 按资源(Assets)中的描述在项目根目录编写 ASSETS.md。
  - dist/ 包含 index.html、带哈希的 JS/CSS、woff2 字体、favicon.svg 和六张图片。保持在 10 MB 以下。

## 变量
- [SHOP] — 店铺名称(默认:“Petals & Post”)。虚构的花店名称。用于字标、标题、页脚、电子邮件(hello@ + 不含连字符的 shopSlug + .com)以及 localStorage 键。绝不是真实店铺。
- [CITY] — 城市(默认:“Portland, Maine”)。店铺配送所在的城市。用于主视觉区、配送文案、评价和页脚。可以使用真实城市;街道为虚构。
- [CUTOFF] — 当日截单时间(默认:“2pm”)。当日订单的截单小时,写作 '2pm' 或 '1pm'。驱动倒计时横幅、日期选择器的当日标签以及一条 FAQ 风格文案。保持在中午至下午 4 点之间。
- [BASE_PRICE] — 花束基础价格(默认:“42”)。招牌花束标准“bouquet”尺寸的价格,以数字表示。Posey 为 ×0.75,abundant 为 ×1.45;每款花束的尺寸都基于其自身的基础价格,围绕此数值浮动。
- [CREDIT] — 在页脚保留一个小型“Template by VibeFather”链接,指向 https://vibefather.ai/t/florist-shop-website(默认:是;删除此行即可移除)

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

## 设计
### 颜色(Colors)
- Cream Blush `#FBF6F1` — 全站页面背景。
- Petal `#F4E6DE` — 交替区块背景(Reviews、Care)、悬停填充、标签。
- Card `#FFFDFA` — 花束卡片、便签预览、抽屉、已下单卡片。
- Leaf `#33523F` — 主色:标题字重颜色、主按钮、已选尺寸、焦点环。
- Leaf Deep `#243B2D` — 主色悬停、页脚背景。
- Moss `#7E8F7C` — 次要文本、说明文字、眉题、休息日。
- Poppy `#D4574B` — 唯一的暖色点缀:价格、截单倒计时、已选日期、购物车徽标、丝带细节。
- Poppy Deep `#B23F35` — Poppy 悬停、按下、倒计时最后一小时。
- Ink Green `#2A2E26` — 正文文本、花束名称、图标颜色。
- Rule `#E7DAD1` — 1px 细线、卡片边框、输入框边框、分隔线。

### 字体排印(Typography)
- 展示字体:H1、H2、花束名称、大号价格、字标、便签手写行:Lora(OFL),字重 500/600
- 文本与 UI:正文、眉题、按钮、表单字段、说明文字;价格和倒计时使用等宽数字:Albert Sans(OFL),字重 400/600/700

### 布局与动效(Layout & motion)
- 间距:8px 基准单位。容器最大宽度 1180px,居中,侧边内边距桌面端 48px、平板端 32px、640px 以下 20px。12 列网格,列间距 24px。区块垂直内边距桌面端 96px、1024px 以下 72px、640px 以下 56px。字号阶梯:H1 clamp(42px, 6.2vw, 78px) Lora 500,行高 1.04;H2 clamp(28px, 3.8vw, 46px) Lora 500;H3 22px Lora 600;标题中的斜体短语使用 Lora 500 italic(以 *星号* 标记,渲染为 <em>);导语 Albert Sans 400 17.5px / 1.7 Ink Green 90%;正文 15.5px / 1.7(最大宽度 62ch);眉题 Albert Sans 700 12px 大写 字距 0.16em Moss;说明文字 13px Moss。按钮:高度 50px,Albert Sans 700 14px。主按钮:Leaf 填充,Card 文本。次按钮:1px Leaf 边框,Leaf 文本。小号 38px。输入框:高度 48px,1px Rule 边框,Card 填充,聚焦时 Leaf 边框。全局焦点环:2px Leaf 轮廓,偏移 3px。
- 圆角:卡片、按钮、输入框、标签、便签和抽屉为 14px。仅胶囊、日期标签、购物车徽标和丝带圆点使用 999px。
- 动效:缓动:--ease-out cubic-bezier(0.22, 0.61, 0.36, 1) 用于显现、抽屉和价格变化;--ease-io cubic-bezier(0.65, 0, 0.35, 1) 用于便签和结账切换。轻盈友好。
- 动效:显现(Reveal):包裹在 <Reveal> 中的区块初始 opacity 0、translateY(14px),当 15% 可见时在 700ms 内以 --ease-out 落定(Motion whileInView,viewport once)。同级元素错开 75ms。
- 动效:截单横幅(CutoffBanner):倒计时每分钟跳动(等宽数字保持宽度);最后一小时数字变为 Poppy Deep,横幅每分钟轻微脉动一次(减少动态效果下关闭)。
- 动效:花束卡片:悬停上浮 3px;尺寸选择器的价格交叉淡入淡出 150ms;选择尺寸时标签填充 Leaf;花瓶开关滑入一个小型手绘花瓶图形。
- 动效:加入购物车:按钮显示 'Added ✓' 1300ms;一片小手绘花瓣从按钮飘向购物车按钮并淡出(700ms,一次);徽标弹跳 1→1.3→1。
- 动效:便签预览:手绘便签位于留言字段旁;输入的文字以 Lora 斜体实时出现在卡片上,并带有柔和的下划线绘制;当姓名字段完成时,签名行('— with love, [name]')打字出现一次。
- 动效:日期选择器:日期标签悬停时填充 Petal,选中时填充 Leaf(Card 文本);当日标签带有一个 Poppy 的 'today' 圆点,截单后消失,标签本身变灰并显示说明文字 'tomorrow''s earliest now'。
- 动效:购物车抽屉:遮罩淡入 300ms,抽屉从右侧滑入 420ms --ease-out;数量步进器使该行小计数字脉动(300ms);移除时该行折叠 240ms。
- 动效:结账切换:已下单卡片上升 16px(320ms --ease-io),带有手绘 Poppy 丝带 'ORDER TIED' 印章从 -6deg→-2deg 旋转进入;订单号(shopInitials-####)打字 700ms。
- 动效:链接:.link-draw 在悬停和 focus-visible 时以 280ms 生长出 1px currentColor 下划线。
- 动效:prefers-reduced-motion: reduce — 无脉动、花瓣、打字或计数;抽屉和切换直接出现;颜色/边框悬停变化保留。在 index.css 中使用 CSS @media,并在组件中使用 Motion 的 useReducedMotion。
- 图像:温暖的真实摄影,全部六张均为本模板以一致风格制作:柔和日光、腮红与奶油色搭配深绿叶子和罂粟点缀,同一个店铺的世界——花桶、花茎、包装纸、工作台角落。绝不出现人物(无面孔、无手);无可读招牌。每张照片使用 object-fit cover,object-position 见 Assets 下说明,14px 圆角,无阴影;Cream 背景上的照片加 1px Rule 轮廓。说明文字使用 Albert Sans 13px Moss。代码绘制:便签、花瓶图形、花瓣、丝带印章、标签和 favicon。图标:仅 lucide-react,描边宽度 1.75。

## 页面与区块
### 商店(`index.html`)
1. **内容文件与文案规则** — 以下所有文案均按默认值编写([SHOP] = Petals & Post,[CITY] = Portland, Maine,[CUTOFF] = 2pm,[BASE_PRICE] = 42)。将每个字符串、价格和列表放入 src/content.ts 并从中渲染。如果任何变量值不同,请重写主视觉、全部八款花束(名称、花材、季节说明)、评价、订阅文案和养护说明,使其对新店铺具体且可信,同时保持相同的结构和数量(8 款花束、每款 3 个尺寸、1 个花瓶开关、7 个日期选项、3 种订阅、3 条评价、3 条养护说明)。所有花材、价格和评价者均为虚构。花束(slug · 名称 · 基础价 · 说明 · 照片):'meadow-post' The Meadow Post $42 'ranunculus, sweet pea, rye grass — like a letter from a field' hero-bucket;'saturday-market' Saturday Market $48 'dahlias, cosmos, whatever the grower overslept on' market-wrap;'first-blush' First Blush $45 'garden roses, lisianthus, a hesitation of astilbe' blush-rose;'hearth-side' The Hearth Side $56 'amber mums, dried grasses, eucalyptus — for tables with candles' hearth-amber;'wild-thursday' Wild Thursday $39 'whatever was left at close, made gorgeous — florist''s choice, honestly' wild-stems;'white-noise' White Noise $58 'white ranunculus, jasmine, no green in sight' white-clean;'poppy-argument' A Poppy Argument $50 'poppies, wheat, one dramatic branch — a statement, possibly an apology' poppy-argument;'tuesday-tulips' Tuesday Tulips $34 'twenty tulips, paper-wrapped, no ceremony' tulip-wrap。
   布局:不适用
   动效:不适用
2. **截单横幅与页头** — CutoffBanner(顶部,Petal 色带,Leaf Deep 文字):'Order by [CUTOFF] for same-day delivery in [CITY]' 以及 Poppy 色(等宽数字)的实时倒计时 'You have 3h 12m' — 截单后:'Same-day has closed — tomorrow''s first deliveries are open.' 页头:左侧为字标 '[SHOP]'(Lora 600 21px),其下为 'Cut · wrapped · delivered · [CITY]'(10px 大写 Moss);右侧导航(Albert Sans 600 14px):'Bouquets' → #shop,'Subscriptions' → #subscriptions,'Care' → #care;CartButton(Lucide ShoppingBasket + Poppy 数量徽标)打开抽屉。
   布局:横幅固定顶部,36px;页头在其下方粘性定位(72px),Cream Blush/94% 模糊,Rule 边框。
3. **主视觉** — 两栏。左侧:眉题 'FLOWERS, CUT THIS MORNING';H1 'Say it' / '*in season.*';导语(最大宽度 520px):'A corner shop in [CITY] with one rule: if it wasn''t cut this week, it isn''t going out this week. Wrapped in paper, carried by bike, at the door before dinner.';主按钮 'Send flowers today' → #shop,附说明 'Order by [CUTOFF] — the countdown above is honest.';三条快速事实,使用无衬线小型大写字母:'Free delivery over $60';'Sundays we rest (the flowers too)';'Gift note included, always'。右侧:hero-bucket.webp(4:3),附说明 'Saturday''s bucket, 7am — photo by the shop, proudly'。
   布局:Cream Blush 背景,顶部垂直内边距 104px;左侧 6 栏,右侧 5 栏偏移 1。
4. **花束目录** — 区块 id='shop'。眉题 'THE CATALOGUE' 和 H2 'Eight bouquets, three sizes, one honest vase.' 八张 BouquetCard 以 4x2 网格排列:照片、名称(Lora 600 20px)、季节说明(13.5px Moss)、SizePicker(Posey / Bouquet / Abundant,含推导价格,等宽数字)、VaseToggle('+ Vase · glass, $12' — 在照片旁添加绘制的花瓶图标)、日期选项行(若在截单前则为今天,否则为明天 + 6 天,周日禁用 'we rest')、留言字段占位符('Gift note (optional) — we write it on the card')以及 'Add — $42'(实时,Leaf 填充)。卡片在桌面端展开,在移动端堆叠滚动。五款不同的花束与五张不同的照片一一对应(主视觉照片绝不重复用作产品卡);Tuesday Tulips 展示郁金香,White Noise 展示白色毛茛和茉莉,First Blush 展示腮红玫瑰,Saturday Market 展示市集包装,The Poppy Argument 展示罂粟 — 每张照片实际展示其命名的花卉。
   布局:Petal 背景。4 栏 20px 间距(1024px 以下 2 栏,640px 以下 1 栏);卡片使用 Card 1px Rule 边框 18px 内边距;照片顶部 4:3 宽高比;价格按钮全宽。
5. **留言卡片** — 在目录与抽屉逻辑之间是 MessageCard 演示条:'The card, before we write it' — 一张绘制的留言卡(Card,1px Rule 边框,Poppy 丝带角),以 Lora 斜体预览当前草稿,附一行 'Handwritten, in actual ink, by whoever wraps the flowers.' 和一个小钢笔图标。这是添加流程的组件(留言字段位于每张卡片上);该条解释其后续处理。留言卡放大显示一行手写风格示例和签名占位符,桌面端显示在字段旁,移动端显示在其上方,并带有一个微妙的眉题。
   布局:Cream Blush 色带,两栏:绘制的卡片 4 栏,说明文字 6 栏偏移 2;72px 内边距。
6. **购物车抽屉与结账** — CartDrawer:Leaf Deep 35% 遮罩;抽屉在 Card 上从右侧滑入(380px):'Your flowers' 标题、行项目(照片缩略图、名称、尺寸 · 花瓶行、日期、留言预览截断至 28 字符、数量步进器、行价格等宽数字)、配送说明('Riding to [CITY] addresses, Tue–Sat')、小计、'Checkout' 主按钮,附说明 'This demo takes no payment — it ties the order with ribbon and saves it here.' PlacedCard:Poppy 色 'ORDER TIED' 印章、打字机效果订单号 'PP-####'、'Delivering [DAY] between 4pm and 7pm.'、在绘制的卡片上回显留言、'Another bouquet'(清除)和 'Back to the shop'。持久化在 localStorage 中。
   布局:抽屉全高靠右,20px 内边距,行可滚动;结账在抽屉内以 320ms --ease-io 切换。
7. **订阅、评价与养护** — 区块 id='subscriptions'。眉题 'EVERY WEEK, OR EVERY MONTH' 和三张卡片:'The Weekly Post' — 'A fresh hand-tied bouquet every Friday · from $36/week';'The Monthly Hearth' — 'One abundant arrangement on the first of the month · from $58/month';'Office Fridays' — 'Desk-sized poseys for the whole team · quoted per floor'。说明文字:'Pause for holidays, pollen season, or heartbreak — two taps, no calls.' 评价(id 'reviews' 隐含在区块中):'"The card message came out better than what I sent them. I''ve stopped trying."' — 'Rosa M., monthly';'"Ordered at 1:58pm, delivered by 5. I checked the clock twice."' — 'Dan O., same-day convert';'"My mother now refers to Thursday as tulip day. This is their fault."' — 'Priya S., weekly'。养护(id='care'):三行带图标 — 'Trim 2cm, cold water, every other day';'Keep off the radiator and out of the fruit bowl (apples are gossips)';'Swap the sugar pill for a penny — old florist''s trick, works on tulips'。
   布局:订阅使用 Petal 色带(3 张卡片,Card 表面);评价在 Cream Blush 上(3 栏);养护为细线分隔的三条,56px 内边距。
8. **页脚** — Leaf Deep 背景,Card 色调文字。三栏:1)字标 + '[SHOP]',其下为 'Cut, wrapped, delivered · [CITY]'。2)'The shop':'14 Marigold Lane, [CITY]'、hello@ + emailDomain、'(207) 555-0173'。3)'Around':Bouquets、Subscriptions、Care,以及 'Weddings & events — write us'(mailto)。底部行:'© [SHOP]. Stems change; the ribbon doesn''t.'
   布局:垂直内边距 64px,3 栏,底部行在 Card/15% 分隔线上方 32px。768px 以下:堆叠。

## 资源
- 图片:为本设计制作的模板照片(可随模板自由再分发)。用 curl -L -o 将每张图片下载到 public/images/:https://media.vibefather.ai/assets/1187bf3d-39e4-4025-a1ee-f4a5339d9f06/hero-bucket.webp → public/images/hero-bucket.webp(Hero、meadow-post 卡片;object-position 50% 55%;alt 'A galvanized bucket of mixed stems in morning light');https://media.vibefather.ai/assets/1187bf3d-39e4-4025-a1ee-f4a5339d9f06/market-wrap.webp → public/images/market-wrap.webp(saturday-market、tuesday-tulips;alt 'A paper-wrapped bouquet on a market table');https://media.vibefather.ai/assets/1187bf3d-39e4-4025-a1ee-f4a5339d9f06/blush-rose.webp → public/images/blush-rose.webp(first-blush、white-noise;alt 'Blush garden roses with soft astilbe in a glass jar');https://media.vibefather.ai/assets/1187bf3d-39e4-4025-a1ee-f4a5339d9f06/hearth-amber.webp → public/images/hearth-amber.webp(hearth-side;alt 'Amber mums and dried grasses against a dark shelf');https://media.vibefather.ai/assets/1187bf3d-39e4-4025-a1ee-f4a5339d9f06/wild-stems.webp → public/images/wild-stems.webp(wild-thursday;alt 'A loose wild arrangement of leftovers made beautiful');https://media.vibefather.ai/assets/1187bf3d-39e4-4025-a1ee-f4a5339d9f06/poppy-argument.webp → public/images/poppy-argument.webp(poppy-argument;alt 'Red poppies and wheat with one dramatic branch')。共六个文件。
- 图片:在项目根目录写入 ASSETS.md,包含一张表:path、source URL、author、license——每张照片一行(source 为 'media.vibefather.ai, made for this template',author 为 'VibeFather',license 为 'Distributed with the template'),另加 @fontsource/lora 和 @fontsource-variable/albert-sans(OFL-1.1)以及 lucide-react(ISC)的行。绝不要用图库网站或含人物、面孔、手或可读招牌的图片替换照片。
- 图标:仅使用 lucide-react:ShoppingBasket、Plus、Minus、Check、X、Truck、CalendarDays、PenLine、Sun、Droplets、Scissors、Leaf。描边宽度 1.75,16–24px,颜色继承。便签卡、花瓶图形、花瓣、丝带印章和 favicon 为绘制的 SVG。public/favicon.svg:viewBox 0 0 32 32,一个 32x32 的 rect,rx 为 9,填充 #33523F,一个 Card(#FFFDFA)郁金香图形(两片花瓣和一根茎),带一个 Poppy(#D4574B)丝带交叉。无其他标志:店名始终以文字排版呈现;无真实支付标识。
- 字体:安装 @fontsource/lora 和 @fontsource-variable/albert-sans,并按 Setup 中所述在 src/fonts.ts 中导入它们。Vite 会将 woff2 文件打包进 dist/。
- 图片:以代码绘制:便签卡和丝带角、花瓶图形、飘动的花瓣、ORDER TIED 印章、日期标签和 favicon。无其他位图;无插画;无地图瓦片。

## 禁止事项
- 无后端、无表单提交、不向任何 API 发起 fetch 请求:购物车、留言和订单仅保存在浏览器中(localStorage);结账页面声明不收取任何付款;截单倒计时使用客户端时钟,并对此作出说明。
- 此单页上的所有链接均为锚点(./index.html#shop、#subscriptions、#care)以及页脚的 mailto。
- 一切资源自托管:字体通过 Fontsource 引入,图标以 npm 包或内联 SVG 形式使用,图片下载至 public/images/。不得使用 CDN 的 <script> 或 <link> 标签,不得使用 Google Fonts,不得使用分析工具。
- 生产构建:压缩、无 source map、不将 src/ 复制到 dist/、使用单一命令 npm run build、输出位于 dist/ 且小于 10 MB。
- 不得出现真实花店、配送品牌或支付标识;不得使用含人物、面部或手部的照片;不得出现可辨识的招牌;所有花茎、价格和评价均为虚构。
- 任何位置不得出现日期或年份;日期选择器显示星期标签(Today/Tomorrow 然后是星期名称),不显示完整日期;网站永不显示今天的日期。
- 除页脚可选的署名链接外,网站内绝不提及 VibeFather 或任何其他品牌;所有文案均为虚构的美式英语。
- 遵循 prefers-reduced-motion:无脉冲、花瓣、打字机效果或计数动画;倒计时仍然跳动(它是信息,不是装饰);颜色/边框的悬停效果保留。
- 页面必须在 1440x900 桌面端和 390x844 移动端正常工作,控制台零报错;尺寸/日期/留言控件、抽屉和结账仅用键盘即可操作,且焦点环可见;抽屉打开时须锁定焦点。
- 文案保持具体:不得使用 lorem,不得使用“emotions through flowers”之类表述;每个价格、花茎列表和营业时间均存放于 src/content.ts。

---
— Prompt by VibeFather · https://vibefather.ai/t/florist-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: "Florist Shop Website"
colors:
  cream_blush: "#FBF6F1"
  petal: "#F4E6DE"
  card: "#FFFDFA"
  leaf: "#33523F"
  leaf_deep: "#243B2D"
  moss: "#7E8F7C"
  poppy: "#D4574B"
  poppy_deep: "#B23F35"
  ink_green: "#2A2E26"
  rule: "#E7DAD1"
typography:
  display_h1_h2_bouquet_names_prices_in_large_sizes_the_wordmark_notecard_script_line: { family: "Lora", weights: [500, 600] }
  text_and_ui_body_eyebrows_buttons_form_fields_captions_tabular_numerals_for_prices_and_the_countdown: { family: "Albert Sans", weights: [400, 600, 700] }
spacing: "8px base unit. Container max-width 1180px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. 12-column grid, column gap 24px. Section vertical padding 96px desktop, 72px under 1024px, 56px under 640px. Type scale: H1 clamp(42px, 6.2vw, 78px) Lora 500, line-height 1.04; H2 clamp(28px, 3.8vw, 46px) Lora 500; H3 22px Lora 600; italic phrases in headings use Lora 500 italic (marked *asterisks*, rendered <em>); lead Albert Sans 400 17.5px / 1.7 Ink Green at 90%; body 15.5px / 1.7 (max-width 62ch); eyebrow Albert Sans 700 12px uppercase letter-spacing 0.16em Moss; caption 13px Moss. Buttons: height 50px, Albert Sans 700 14px. Primary: Leaf fill, Card text. Secondary: 1px Leaf border, Leaf text. Small 38px. Inputs: height 48px, 1px Rule border, Card fill, focus Leaf border. Focus ring everywhere: 2px Leaf outline with 3px offset."
radius: "14px on cards, buttons, inputs, chips, the notecard and the drawer. 999px only for pills, day chips, the cart badge and the ribbon dot."
---

# Florist 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
- **Cream Blush** `#FBF6F1` — Page background throughout.
- **Petal** `#F4E6DE` — Alternate section background (Reviews, Care), hover fill, chips.
- **Card** `#FFFDFA` — Bouquet cards, notecard preview, drawer, placed card.
- **Leaf** `#33523F` — Primary: headlines' weight color, primary buttons, size selected, focus ring.
- **Leaf Deep** `#243B2D` — Primary hover, footer background.
- **Moss** `#7E8F7C` — Secondary text, captions, eyebrows, closed days.
- **Poppy** `#D4574B` — The one warm accent: prices, the cutoff countdown, selected date, cart badge, ribbon details.
- **Poppy Deep** `#B23F35` — Poppy hover, pressed, the countdown's final hour.
- **Ink Green** `#2A2E26` — Body text, bouquet names, icon color.
- **Rule** `#E7DAD1` — 1px hairlines, card borders, input borders, dividers.

## Typography
- **Display: H1, H2, bouquet names, prices in large sizes, the wordmark, notecard script line** — Lora (OFL), weights 500/600. Self-host the font files.
- **Text and UI: body, eyebrows, buttons, form fields, captions; tabular numerals for prices and the countdown** — Albert Sans (OFL), weights 400/600/700. Self-host the font files.

## Spacing & shape
- Spacing: 8px base unit. Container max-width 1180px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. 12-column grid, column gap 24px. Section vertical padding 96px desktop, 72px under 1024px, 56px under 640px. Type scale: H1 clamp(42px, 6.2vw, 78px) Lora 500, line-height 1.04; H2 clamp(28px, 3.8vw, 46px) Lora 500; H3 22px Lora 600; italic phrases in headings use Lora 500 italic (marked *asterisks*, rendered <em>); lead Albert Sans 400 17.5px / 1.7 Ink Green at 90%; body 15.5px / 1.7 (max-width 62ch); eyebrow Albert Sans 700 12px uppercase letter-spacing 0.16em Moss; caption 13px Moss. Buttons: height 50px, Albert Sans 700 14px. Primary: Leaf fill, Card text. Secondary: 1px Leaf border, Leaf text. Small 38px. Inputs: height 48px, 1px Rule border, Card fill, focus Leaf border. Focus ring everywhere: 2px Leaf outline with 3px offset.
- Radius: 14px on cards, buttons, inputs, chips, the notecard and the drawer. 999px only for pills, day chips, the cart badge and the ribbon dot.

## Motion
- Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1) for reveals, the drawer and price changes; --ease-io cubic-bezier(0.65, 0, 0.35, 1) for the notecard and checkout swaps. Light-footed and friendly.
- Reveal: blocks wrapped in <Reveal> start at opacity 0, translateY(14px) and settle over 700ms --ease-out when 15% visible (Motion whileInView, viewport once). Siblings stagger 75ms.
- CutoffBanner: the countdown ticks every minute (tabular numerals hold width); in the final hour the figure turns Poppy Deep and the banner gently pulses once a minute (off under reduced motion).
- Bouquet cards: hover lifts 3px; the size picker's prices crossfade 150ms; selecting a size fills the chip Leaf; the vase toggle slides a small drawn vase glyph in.
- Add to cart: the button reads 'Added ✓' for 1300ms; a small petal (drawn) drifts from the button toward the cart button and fades (700ms, once); the badge pops 1→1.3→1.
- Notecard preview: the drawn notecard sits beside the message field; typed text appears on the card in Lora italic in real time, with a soft underline draw; the signature line ('— with love, [name]') types once when the name field completes.
- Date picker: day chips fill Petal on hover and Leaf (Card text) when selected; the same-day chip carries a Poppy 'today' dot that disappears after the cutoff, the chip itself greying out with the caption 'tomorrow''s earliest now'.
- Cart drawer: overlay fades 300ms, drawer slides from the right 420ms --ease-out; qty steppers pulse the line's subtotal count (300ms); removing collapses the row 240ms.
- Checkout swap: the placed card rises 16px (320ms --ease-io) with a drawn Poppy ribbon 'ORDER TIED' stamp rotating in -6deg→-2deg; the order number (shopInitials-####) types 700ms.
- Links: .link-draw grows a 1px currentColor underline over 280ms on hover and focus-visible.
- prefers-reduced-motion: reduce — no pulses, petals, type-ins or counts; drawer and swaps appear; color/border hover changes stay. Use CSS @media in index.css plus Motion's useReducedMotion in components.

## Imagery
Warm real photography, all six made for this template in one consistent style: soft daylight, blush and cream with deep green leaves and poppy accents, one shop's world — buckets, stems, wrapped paper, workbench corners. Never a person (no faces, no hands); no readable signage. Every photo uses object-fit cover with the object-position given under Assets, 14px corners, no shadow; photos on Cream get a 1px Rule outline. Captions in Albert Sans 13px Moss. Drawn in code: the notecard, the vase glyph, the petal, the ribbon stamp, chips and the favicon. Icons: lucide-react only, stroke width 1.75.

## Tone
Warm, lightly witty, flower-literate but never gatekeep-y. Concrete stems and seasonal notes, one joke about lilies, no 'express your emotions through flowers'.

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

改成你自己的

  • 婚礼花艺:设置 SHOP 和 CITY,把八款花束换成仪式和桌花布置,保留配送日期选择器用于活动日期。
  • 植物与礼品店:保留购物车抽屉和礼物留言便签,但把花束换成盆栽,并在尺寸选择器里加入无花瓶选项。
  • 鲜花订阅服务:把订阅条作为主要卖点,将 BASE_PRICE 设为每周花盒价格,花束目录指向加购花材。
  • 农夫市集摊位:把 CUTOFF 设为市集当天早上,缩短配送天数,并重写养护板块,改为应季花材和自提说明。

花店网站:常见问题

花店网站上如何修改当日截单时间和花束基础价格?

花店网站模板的倒计时、日期选择器和花束价格由两个变量驱动:CUTOFF,写成 2pm 这样的格式;BASE_PRICE,标准花束尺寸的价格,用数字表示。把 CUTOFF 设在中午到下午4点之间,每束花的小束和丰盛尺寸都会围绕这个数字从各自的基础价重新计算。在内容文件里改这两项,截单横幅、当日达标签和目录就保持一致。

怎么用 AI 做一个花店网站?

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