跳到正文
VibeFather
免费注册

用这个模板做的 2 个案例

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

关于这个模板

这是一个为小批量冰淇淋店打造的单页网站,以色彩为核心。页面以一张大尺寸工作室照片开场:装满冰淇淋的杯子放在开心果色背景前,配以粗圆体标题和一排风味圆点,预告即将呈现的内容。模板的核心是风味墙:由色卡组成的网格,每种风味一张卡片,各自拥有专属的粉彩色调,配有手绘滴落效果、粗圆体名称,以及纯素、无乳制品和無坚果的饮食标签。筛选标签可即时为风味墙重新着色,将不匹配的卡片变暗。可堆叠杯子区域是交互核心:选择尺寸,点击风味标签最多堆叠三球,添加配料,然后观看实时 SVG 杯子填入你选择的颜色并开始滴落。保存按钮会将创作存储在本地——没有订购系统,没有支付,无需对接任何服务。配置器周围环绕着一条简短的慢搅故事带(含三张照片和真实数据)、两个带有地址和营业时间的店铺面板,以及一个餐饮服务区域,可汇总请求摘要供你复制到邮件中。外观已锁定:奶油色底搭配开心果、覆盆子和黄油粉彩,可可色文字,Baloo 2 展示字体搭配 Nunito,处处圆角,以及从页头、照片和分区分隔处垂下的滴落 SVG 形状。动效活泼但沉稳——悬停挤压、球体弹出、缓慢滚动显现——并且全部遵循 prefers-reduced-motion。在一个内容文件中替换品牌、城市、球数和价格;第二个演示案例将同一布局变为思慕雪碗吧。

模板提示词

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

# Gelato Shop Website

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

## Brief
A single-page marketing site for a small-batch gelato shop: pastel playful identity (cream, pistachio, raspberry, butter) with bold rounded type and drippy SVG shapes, a flavor wall of pastel swatches with dietary filter chips, a build-a-cup configurator with a live SVG cup, a churned-slow strip, two shop locations, and a client-side catering request builder.

- Audience: Neighborhood gelato, froyo, dessert and smoothie-bowl shops, and the designers who build sites for them.
- Goal: Get visitors hungry over the flavor wall, keep them playing with the cup builder until they are invested, then send them into a shop or out with a copied catering request.
- Tone: Sunny, chatty, a little silly — short punchy lines and gentle puns; the playfulness comes from color and shape, never from exclamation marks.

## Stack
- Framework: Vite 5 + React 18 + TypeScript
- Styling: Tailwind CSS 3.4
- Libraries: tailwindcss (MIT), motion (MIT), lucide-react (ISC), @fontsource/baloo-2 (OFL), @fontsource/nunito (OFL)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
  - Scaffold with npm create vite@latest gelato-shop-website -- --template react-ts; add [email protected], postcss and autoprefixer as dev dependencies; add motion, lucide-react, @fontsource/baloo-2 and @fontsource/nunito as dependencies.
  - vite.config.ts: base './', build.sourcemap false, build output dist/.
  - tailwind.config.js: extend colors cream #FFF6EA, milk #FFFDF9, pistachio #CBE3B6, pistachio-deep #A9C98E, raspberry #F4AFC0, raspberry-deep #E790A4, butter #FFE1A0, cocoa #4A3528, latte #8A7565; fontFamily display 'Baloo 2' and sans 'Nunito'; keep Tailwind's default radius scale (chips rounded-2xl, panels rounded-3xl, pills rounded-full).
  - postcss.config.js: tailwindcss + autoprefixer.
  - src/components/Drip.tsx: a reusable SVG drip divider (a wavy path with three hanging blobs, viewBox 0 0 1440 60, props fill and flip) used under the header, on photo frames and between pastel sections; src/components/Blob.tsx: large absolutely-positioned pastel radial-gradient blobs at 35% opacity behind sections, aria-hidden.
  - src/lib/motion.ts holds the shared motion variants: fadeUp (opacity 0→1, y 24→0, 400ms ease-out, 60ms stagger), squish (whileHover scale 1.04, whileTap 0.96, spring stiffness 400 damping 15), scoopPop (scale 0.6→1 spring); use Motion's useReducedMotion to fall back to plain 200ms opacity fades.
  - Keep every user-facing string (brand, city, sizes, the twelve flavors with name/color/tags, toppings, shops, facts, catering copy) in src/content.ts; sections read from it so values swap in one place.
  - index.html: <title>[BRAND] — Gelato in [CITY]</title> plus a drawn-in-code favicon.svg (three overlapping scoop circles in pistachio, raspberry and butter); no other meta work.

## Variables
- [BRAND] — Shop name (default: "Pastella"). Invented name used in the header, footer, page title, catering summary and email.
- [CITY] — Town (default: "Alder Bay"). The town the shops and catering copy live in ('churned daily in [CITY]', 'two shops in [CITY]').
- [SCOOPS] — Max scoops per cup (default: "3"). Drives the scoop limit in the cup builder, the counter chips and the 'stack up to three scoops' phrasing (spell the number out in copy via content.ts).
- [PRICE_CUP] — Starting cup price (default: "$6"). Shown in the hero sub-line and as the Classica size price in the builder.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/gelato-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 `#FFF6EA` — Page ground everywhere; footer ground.
- Milk `#FFFDF9` — Cup body in the SVG, panel fills, chip inner surfaces, input fields.
- Pistachio `#CBE3B6` — Primary pastel surface: hero photo frame, hero blob, active states' tints.
- Pistachio deep `#A9C98E` — Drips, borders and pressed states on pistachio surfaces.
- Raspberry `#F4AFC0` — Secondary pastel surface: shop panel two, tag pills, blob accents.
- Raspberry deep `#E790A4` — Drips and borders on raspberry surfaces; the single drip on the hero cup photo.
- Butter `#FFE1A0` — Third pastel: highlight chips, one blob per section, hero flavor-dot accent.
- Cocoa `#4A3528` — All text and outlines; primary buttons are cocoa grounds with cream text.
- Latte `#8A7565` — Secondary text: intros, captions, the honest allergen note.

### Typography
- Display — headlines, flavor names, prices (chunky rounded): Baloo 2 (OFL), weights 600/700/800
- Text — body, chips, tags, inputs (rounded sans): Nunito (OFL), weights 400/600/700

### Layout & motion
- Spacing: Roomy but bouncy: sections py-24 (96px) desktop / py-16 (64px) mobile; content max-w-6xl px-6/px-10; headings get 8–16px of breathing room below; pastel panels use 32px inner padding so drips never crowd text.
- Radius: Rounded everywhere: 24px (rounded-3xl) on panels and photo frames, 16px (rounded-2xl) on chips, buttons and inputs, 999px pills on filter tags; the only straight lines in the design are the SVG drips hanging down.
- Motion: Hover squish on every chip, button and flavor swatch: scale 1.04 with a spring (stiffness 400, damping 15), whileTap scale 0.96 — implemented once in src/lib/motion.ts.
- Motion: Scroll reveals: sections and grid items fade up (y 24→0, 400ms ease-out) with 60ms stagger via Motion's whileInView, firing once.
- Motion: Hero: the cup photograph bobs slowly (y ±6px, 6s ease-in-out loop) and the two background blobs drift on 20s loops; the flavor-dot row pops in sequentially on load (150ms apart).
- Motion: Flavor wall filter: non-matching swatches animate to opacity 0.25, grayscale 0.6 and scale 0.96 over 250ms; matching chips stay full color.
- Motion: Cup builder: each added scoop pops in (scale 0.6→1 spring); a removed scoop pops out (200ms); the price line slides up 80ms after any change; with two or more scoops a drip path grows below the rim (scaleY 0→1, 350ms).
- Motion: Drip dividers idle: one blob per divider slowly stretches (scaleY 1→1.15) on a 5s loop, staggered per section.
- Motion: prefers-reduced-motion: every loop (bob, blob drift, drip idle) stops, springs become 200ms opacity fades, squish becomes a color shift only.
- Imagery: One studio session throughout: gelato still-life photography on seamless pastel backdrops (pistachio green, raspberry pink, cream, butter yellow), soft diffused daylight from the front-left, one gentle shadow, candy-pastel palette, high-key minimal compositions with lots of empty backdrop. No text or labels in frame, no menu boards, no logos, no people or faces. The six photographs are generated by VibeFather and downloaded into public/images.

## Pages & Sections
### [BRAND] — Gelato in [CITY] (`index.html`)
1. **Header** — Sticky top bar on milk: left the [BRAND] wordmark in Baloo 2 800, 26px, cocoa, followed by a small three-dot scoop mark (pistachio, raspberry, butter circles). Right (desktop): anchor links 'Flavors', 'Build a cup', 'Shops', 'Catering' in Nunito 700 15px cocoa; then a pill button 'Build a cup' (cocoa ground, cream text). Mobile: wordmark + button + a lucide menu/x toggle opening a milk panel with the four links stacked. The whole bar ends in the reusable Drip divider in milk that overlaps the hero below (z-10).
   Layout: position sticky top-0 z-40, h-16, px-6/px-10, max-w-6xl mx-auto contents; the drip SVG sits absolute bottom, width 100%, pointing down.
   Motion: On scroll past 40px the bar gains a soft cocoa 10% bottom shadow (200ms); menu panel slides down 250ms; links squish on hover.
2. **Hero** — Left: a pill tag 'CHURNED DAILY IN [CITY]' (Nunito 700 12px uppercase, butter ground, cocoa text). Headline in Baloo 2 800, clamp(2.75rem, 6vw, 4.5rem), line-height 1.05, cocoa: 'Serious gelato, silly colors.' Sub-line, Nunito 400 18px, latte, max-w 46ch: 'Small-batch gelato in [CITY] — twelve rotating flavors, plant-based options, and a cup you design yourself. Cups from [PRICE_CUP].' CTAs: 'Build your cup' (cocoa pill, cream text, lucide arrow-down) → #build; 'See the flavor wall' (outline pill, cocoa border) → #flavors. Under the CTAs a row of six 14px flavor dots (pistachio, raspberry, butter, mango, blueberry, lemon from content.ts) linking to #flavors. Right: public/images/hero-cup.webp in a 3:4 rounded-3xl frame on a pistachio ground panel, a raspberry-deep Drip hanging off the frame's bottom edge, one pastel Blob behind the top-left corner.
   Layout: 12-column grid, py-24: text columns 1–6 (self-center), photo panel columns 8–12 (max height 520px, object-cover). Mobile: stacked, photo first at 420px tall, then text.
   Motion: Photo bobs ±6px on a 6s loop; blobs drift 20s; headline, sub, CTAs and flavor dots fade up in sequence (60ms stagger, dots 150ms apart); CTAs squish on hover.
3. **Flavor wall** — id=flavors. Heading Baloo 2 800 clamp(2rem,4vw,3rem) cocoa: 'The flavor wall.' Intro Nunito latte: 'Twelve flavors chalked up every morning — swirls, sorbets and one very stubborn fudge.' Filter row of four pills (Nunito 700 14px): 'All', 'Vegan', 'Dairy-free', 'Nut-free' — active pill = cocoa ground/cream text, inactive = milk ground/cocoa border. The wall: twelve swatch chips in a 4×3 grid (2 columns mobile), each chip filled with its flavor color from content.ts: flavor name in Baloo 2 700 20px cocoa, a Drip in the same color's deeper shade along the chip's bottom, and tag pills (milk at 80% opacity, cocoa 11px): Pistachio Cream —; Raspberry Sorbet — vegan, dairy-free, nut-free; Stracciatella — nut-free; Dark Chocolate Fudge — vegan, dairy-free; Salted Caramel — nut-free; Mango Sorbet — vegan, dairy-free, nut-free; Matcha White —; Blueberry Oat — vegan, dairy-free, nut-free; Lemon Basil Sorbet — vegan, dairy-free, nut-free; Hazelnut Crunch —; Coconut Vanilla — vegan, dairy-free; Coffee Toffee — nut-free. Under the grid, Nunito 13px latte: 'Tags describe the recipe, not a certified allergen statement — always ask in shop.'
   Layout: max-w-6xl grid gap-6; chips aspect around 4:5 with 24px inner padding, rounded-3xl.
   Motion: Chips fade up on scroll with 60ms stagger; hover squish lifts a chip 2px; filtering animates non-matching chips to opacity 0.25 + grayscale 0.6 + scale 0.96 (250ms) and they stop taking pointer events.
4. **Churned slow** — Heading: 'Churned slow, served soft.' A row of three photographs on milk frames with playful tilts: gelato-pan.webp (rotate -2deg), scoop-trio.webp (rotate 1.5deg), waffle-cones.webp (rotate -1deg), each rounded-3xl with a Drip under its frame. Facts row of three short lines in Nunito 600 cocoa with Baloo 700 lead-ins: '30% less air — churned slow and dense', '20 minutes — milk travels from the valley dairies to the churn', 'Every Friday — one new flavor gets chalked onto the wall'.
   Layout: py-24; photos row of three (each ~4 columns, heights 260px, object-cover), tilts alternate; facts row is a 3-column grid with 48px gaps, separated from photos by 48px.
   Motion: Photos fade up staggered; hover straightens each tilt to 0deg (300ms) and squishes; facts fade up after the photos.
5. **Build a cup** — id=build. Heading: 'Build your cup.' Intro: 'Pick a size, stack your scoops, dress it up — we will make exactly this at the counter.' Left: the live SVG cup (see layout for geometry) with, underneath, a price line in Baloo 2 700 24px cocoa, e.g. '[PRICE_CUP] · Classica · 3 scoops · hot fudge', and two pill buttons: 'Save my cup' (cocoa) and 'Reset' (outline). Saving writes the choice to localStorage key 'savedCup' and pops an inline chip 'Saved! Show this at the counter.' (butter ground). Right, three steps separated by 24px: Step 1 'SIZE' — two chips, 'Piccolo — 1 scoop — $5' and 'Classica — up to [SCOOPS] scoops — [PRICE_CUP]'. Step 2 'SCOOPS' — the twelve flavors as small color chips with name; clicking adds a scoop of that color to the cup until the size limit (Piccolo 1, Classica [SCOOPS]); a small count badge shows how many of each are in the cup; clicking a scoop in the SVG removes it. Step 3 'TOPPINGS' — four multi-select pills: 'Rainbow sprinkles', 'Pistachio crumble', 'Hot fudge', 'Fresh berries' (+$1 each, reflected in the price line). Below the toppings, berry-toppings.webp as a small 1:1 160px rounded-2xl photo chip, tilted -2deg.
   Layout: 12-column grid: sticky cup column 1–5 (self-start), steps column 7–12. Cup SVG: viewBox 0 0 200 260 — cup body path 'M40 100 L52 220 Q54 236 70 236 L130 236 Q146 236 148 220 L160 100 Z' fill milk, stroke cocoa 6px; rim line from 34,100 to 166,100; scoops are circles r=34 at x=100 stacked at y=96, 62 and 28 (bottom scoop first); each scoop fill = flavor color, stroke cocoa 5px; toppings render on the top scoop at fixed constant positions (sprinkles: eight 8×3 rotated rects; fudge: three small drip arcs; berries: three 6px circles in #B85C74; crumble: seven 3px cocoa dots); with 2+ scoops a drip path grows under the rim. Mobile: cup first (240px wide, not sticky), then steps.
   Motion: Scoops pop in (scale 0.6→1 spring) and pop out (200ms); the drip grows scaleY 0→1 (350ms) when the second scoop lands; price line slides up 80ms after any change; chips and pills squish; the saved chip pops in and auto-fades after 4s.
6. **Shops** — Heading: 'Two shops in [CITY].' Two rounded-3xl panels side by side, each with a Drip on its bottom edge: panel one on pistachio ground — lucide map-pin + 'Old Mill Shop', '14 Ropewalk Lane, Old Mill', clock icon + 'Mon–Thu 12:00–21:00 · Fri–Sun 11:00–23:00', line 'Window seats, and the dog bowl is always full.' Panel two on raspberry ground — map-pin + 'Pier Two Shop', '2b Ferry Slip, Old Harbour', 'Mon–Thu 13:00–21:00 · Fri–Sun 11:00–23:00', line 'The sunset line forms at the window around six.' Text all cocoa, Nunito; shop names Baloo 2 700 24px.
   Layout: Two panels in a 2-column grid (stacked on mobile), 32px padding, drips in pistachio-deep and raspberry-deep.
   Motion: Panels fade up staggered 120ms; hover squish lifts 2px; icons nudge 2px on panel hover.
7. **Catering** — Heading: 'We bring the cart.' Intro: 'Cups, cones and a churn cart for weddings, launches and school fairs across [CITY]. Tell us the shape of your party:' Controls on a milk rounded-3xl panel: a name input (Nunito, rounded-2xl, milk ground, cocoa border, placeholder 'Your name'); event size chips '15 cups', '30 cups', '50 cups'; flavor picks — 'choose up to three' — the same flavor chips from the wall; a cocoa pill button 'Copy request' that writes to the clipboard: 'Hi [BRAND]! I'm {name} — {size} for my event, hoping for {flavors}.' and shows an inline chip 'Copied — paste it into an email to [email protected]' (butter ground). Above the panel, party-cups.webp as a full-width 16:9 rounded-3xl banner with a Drip. Nothing submits anywhere.
   Layout: Banner (h 320px, object-cover) then the panel max-w-4xl mx-auto; controls stacked with 24px gaps, flavor chips wrap.
   Motion: Banner parallax is not used (calm); panel fades up; chips squish; the copied chip pops in; the clipboard write falls back to selecting the summary text if the clipboard API is unavailable — never to a network call.
8. **Footer** — Cream ground opened by a milk Drip divider at the top. Left: the [BRAND] wordmark with the three-dot scoop mark, and one line in Nunito latte: 'Small-batch gelato · [CITY] · [email protected]' (email from content.ts, changes with [BRAND]). Right: anchor links 'Flavors · Build a cup · Shops · Catering' in cocoa. Optional [CREDIT] link in latte. No dates, no social icons, no newsletter.
   Layout: py-12, max-w-6xl, flex row wrapping to column on mobile, gap 24px.
   Motion: None.

## Assets
- image: Download https://media.vibefather.ai/assets/714eafea-4b0a-4b42-a617-0698f30b3d30/hero-cup.webp to public/images/hero-cup.webp. Alt: 'A paper cup with pistachio, raspberry and cream gelato scoops on a pastel green backdrop.' Used as the hero anchor photograph (3:4). Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template.
- image: Download https://media.vibefather.ai/assets/714eafea-4b0a-4b42-a617-0698f30b3d30/gelato-pan.webp to public/images/gelato-pan.webp. Alt: 'A metal pan of swirled raspberry sorbet with a spatula.' Used in 'Churned slow' (4:3). Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template.
- image: Download https://media.vibefather.ai/assets/714eafea-4b0a-4b42-a617-0698f30b3d30/scoop-trio.webp to public/images/scoop-trio.webp. Alt: 'Three gelato scoops — pistachio, vanilla and dark chocolate — in a row.' Used in 'Churned slow' (1:1). Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template.
- image: Download https://media.vibefather.ai/assets/714eafea-4b0a-4b42-a617-0698f30b3d30/waffle-cones.webp to public/images/waffle-cones.webp. Alt: 'A stack of crisp waffle cones on a pink pastel backdrop.' Used in 'Churned slow' (1:1). Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template.
- image: Download https://media.vibefather.ai/assets/714eafea-4b0a-4b42-a617-0698f30b3d30/berry-toppings.webp to public/images/berry-toppings.webp. Alt: 'Small bowls of sprinkles, chopped pistachios and fresh berries.' Used beside the toppings step in 'Build a cup' (1:1). Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template.
- image: Download https://media.vibefather.ai/assets/714eafea-4b0a-4b42-a617-0698f30b3d30/party-cups.webp to public/images/party-cups.webp. Alt: 'Two rows of small gelato cups in pastel colors on a long table.' Used as the catering banner (16:9). Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template.
- icon: lucide-react (ISC) via npm — arrow-down in the hero CTA, map-pin and clock in the shop panels, check in the saved-cup and copied-request chips, menu and x for the mobile header. No other iconography: no emoji, no food icons, no logo marks.
- font: @fontsource/baloo-2 (OFL, weights 600, 700, 800) and @fontsource/nunito (OFL, weights 400, 600, 700), imported in src/main.tsx; never loaded from fonts.googleapis.com or any CDN. List both families and all six photographs in ASSETS.md at the project root: path, source, generator or author, license.

## Don'ts
- No backend, no APIs, no analytics, no payment or ordering: the cup builder persists to localStorage only, and the catering section copies a summary to the clipboard — no form ever submits anywhere.
- No CDN anything: fonts ship through Fontsource packages, icons from lucide-react, photographs from public/images; never hotlink, never use Unsplash/Pexels/Pixabay or placeholder-image services.
- Production build: single command, minified, no source maps, no src/ in the output, relative paths (Vite base './'); keep dist/ under 20 MB by compressing each photograph to ≤ 350 KB WebP.
- Single page with anchor navigation only; must render cleanly at 1440×900 and 390×844 with zero console errors, and respect prefers-reduced-motion (bob, drift and drip loops stop; springs become fades).
- No real gelaterias, chains or their branding: shop, flavors, streets and locations are invented, and [BRAND] is used everywhere a name appears.
- Dietary tags are descriptive sample copy only — never an allergen certification or guarantee; the honest note under the flavor wall must stay.
- Photographs contain no readable text, labels, menu boards, logos, or people and faces; if a generated image ever shows writing, replace it.
- No real-clock dates anywhere: 'chalked up every morning' and 'every Friday' are static sample copy; no publish dates, no 'Est.' years, no today() in the UI.
- Keep the pastel direction locked: cream ground with pistachio, raspberry and butter pastels and cocoa text; no dark mode, no neon gradients, no glassmorphism; drippy shapes are drawn SVG paths, never raster images.
- All copy, labels, sample data and alt text in US English, living in src/content.ts; when [BRAND], [CITY], [SCOOPS] or [PRICE_CUP] change, rewrite flavor names, shop names, hours and the spelled-out scoop count to fit the new shop instead of leaving gelato copy under another brand.
- List every third-party file (two Fontsource families, lucide icons, six photographs) in ASSETS.md at the project root: path, source, license.

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

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

## 简介
为一家小批量意式冰淇淋店打造的单页营销网站:柔和俏皮的品牌识别(奶油色、开心果绿、覆盆子红、黄油黄),搭配粗圆字体和滴落感的 SVG 形状;一面由柔和色块组成的口味墙,配有饮食筛选标签;一个可实时预览 SVG 杯子的“自选装杯”配置器;一条“慢速搅制”展示带;两个门店位置;以及一个客户端餐饮需求构建器。

- 受众:社区意式冰淇淋店、冻酸奶店、甜品店和果昔碗店,以及为这些店铺建站的设计师。
- 目标:先让访客对着口味墙垂涎欲滴,再让他们在杯子构建器里玩到投入,最后引导他们前往门店,或复制一份餐饮需求带走。
- 语调:阳光、健谈、带点傻气——短促有力的句子和温和的双关;俏皮感来自色彩和形状,绝不靠感叹号。

## 技术栈
- 框架:Vite 5 + React 18 + TypeScript
- 样式:Tailwind CSS 3.4
- 库:tailwindcss(MIT)、motion(MIT)、lucide-react(ISC)、@fontsource/baloo-2(OFL)、@fontsource/nunito(OFL)
- 构建:`npm run build` → 静态文件输出到 `dist/`。无后端、无服务端代码、无外部 API。
- 初始化设置:
  - 使用 npm create vite@latest gelato-shop-website -- --template react-ts 搭建脚手架;将 [email protected]、postcss 和 autoprefixer 添加为开发依赖;将 motion、lucide-react、@fontsource/baloo-2 和 @fontsource/nunito 添加为依赖。
  - vite.config.ts:base 设为 './',build.sourcemap 设为 false,构建输出到 dist/。
  - tailwind.config.js:扩展颜色 cream #FFF6EA、milk #FFFDF9、pistachio #CBE3B6、pistachio-deep #A9C98E、raspberry #F4AFC0、raspberry-deep #E790A4、butter #FFE1A0、cocoa #4A3528、latte #8A7565;fontFamily 中 display 设为 'Baloo 2',sans 设为 'Nunito';保留 Tailwind 默认的圆角比例(chips 用 rounded-2xl,panels 用 rounded-3xl,pills 用 rounded-full)。
  - postcss.config.js:tailwindcss + autoprefixer。
  - src/components/Drip.tsx:一个可复用的 SVG 滴落分隔条(一条波浪路径带三个下垂的圆块,viewBox 0 0 1440 60,props 为 fill 和 flip),用于页眉下方、照片框上以及柔和色区块之间;src/components/Blob.tsx:大型绝对定位的柔和色径向渐变光斑,35% 不透明度,置于区块后方,aria-hidden。
  - src/lib/motion.ts 存放共享的动效变体:fadeUp(opacity 0→1,y 24→0,400ms ease-out,60ms 交错延迟)、squish(whileHover scale 1.04,whileTap 0.96,spring stiffness 400 damping 15)、scoopPop(scale 0.6→1 spring);使用 Motion 的 useReducedMotion 回退为普通的 200ms 不透明度淡入。
  - 将所有面向用户的字符串(品牌、城市、尺寸、十二种口味及其名称/颜色/标签、配料、门店、事实、餐饮文案)保留在 src/content.ts 中;各区块从中读取,以便在一处替换值。
  - index.html:<title>[BRAND] — Gelato in [CITY]</title> 加上一个用代码绘制的 favicon.svg(三个重叠的冰淇淋球圆形,分别为 pistachio、raspberry 和 butter);不做其他 meta 工作。

## 变量
- [BRAND] — 店铺名称(默认:“Pastella”)。用于页眉、页脚、页面标题、餐饮摘要和电子邮件的虚构名称。
- [CITY] — 城镇(默认:“Alder Bay”)。店铺和餐饮文案所在的城镇('churned daily in [CITY]'、'two shops in [CITY]')。
- [SCOOPS] — 每杯最大球数(默认:“3”)。控制杯子构建器中的球数限制、柜台标签以及 'stack up to three scoops' 的措辞(在文案中通过 content.ts 将数字拼写出来)。
- [PRICE_CUP] — 起步杯价(默认:“$6”)。显示在主视觉副行和构建器中作为 Classica 规格价格。
- [CREDIT] — 在页脚保留一个小型 “Template by VibeFather” 链接至 https://vibefather.ai/t/gelato-shop-website(默认:是;删除此行以移除)

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

## 设计
### 颜色(Colors)
- 奶油色(Cream)`#FFF6EA` — 所有页面的背景色;页脚背景色。
- 牛奶色(Milk)`#FFFDF9` — SVG 中的杯身、面板填充、标签内表面、输入框。
- 开心果绿(Pistachio)`#CBE3B6` — 主柔和色表面:主视觉照片边框、主视觉色块、激活状态的浅色调。
- 深开心果绿(Pistachio deep)`#A9C98E` — 开心果色表面上的滴落、边框和按下状态。
- 覆盆子粉(Raspberry)`#F4AFC0` — 次柔和色表面:商店面板二、标签胶囊、色块点缀。
- 深覆盆子粉(Raspberry deep)`#E790A4` — 覆盆子色表面上的滴落和边框;主视觉杯子照片上的那一滴。
- 黄油黄(Butter)`#FFE1A0` — 第三柔和色:高亮标签、每个区块一个色块、主视觉风味圆点点缀。
- 可可色(Cocoa)`#4A3528` — 所有文字和轮廓;主按钮为可可色底配奶油色文字。
- 拿铁色(Latte)`#8A7565` — 次要文字:介绍、说明文字、诚实的过敏原提示。

### 字体排印(Typography)
- 展示字体(Display)— 标题、风味名称、价格(粗圆体):Baloo 2(OFL),字重 600/700/800
- 正文字体(Text)— 正文、标签、标记、输入框(圆体无衬线):Nunito(OFL),字重 400/600/700

### 布局与动效(Layout & motion)
- 间距(Spacing):宽敞但有弹性:区块桌面端 py-24(96px)/ 移动端 py-16(64px);内容 max-w-6xl px-6/px-10;标题下方留 8–16px 呼吸空间;柔和色面板使用 32px 内边距,确保滴落不会挤到文字。
- 圆角(Radius):处处圆角:面板和照片边框 24px(rounded-3xl),标签、按钮和输入框 16px(rounded-2xl),筛选标签 999px 胶囊;设计中唯一的直线是垂下的 SVG 滴落。
- 动效(Motion):每个标签、按钮和风味色块悬停时挤压:以弹簧效果缩放至 1.04(stiffness 400,damping 15),whileTap 缩放至 0.96 — 在 src/lib/motion.ts 中实现一次。
- 动效(Motion):滚动显现:区块和网格项淡入上移(y 24→0,400ms ease-out),通过 Motion 的 whileInView 以 60ms 交错触发,仅触发一次。
- 动效(Motion):主视觉:杯子照片缓慢上下浮动(y ±6px,6s ease-in-out 循环),两个背景色块以 20s 循环漂移;风味圆点行在加载时依次弹出(间隔 150ms)。
- 动效(Motion):风味墙筛选:不匹配的色块在 250ms 内动画至 opacity 0.25、grayscale 0.6 和 scale 0.96;匹配的标签保持全彩。
- 动效(Motion):杯子构建器:每个添加的球弹出(scale 0.6→1 弹簧);移除的球弹出(200ms);价格行在任何变化后 80ms 滑入;有两个或更多球时,杯沿下方生长出一条滴落路径(scaleY 0→1,350ms)。
- 动效(Motion):滴落分隔线闲置:每个分隔线的一个色块缓慢拉伸(scaleY 1→1.15),5s 循环,按区块交错。
- 动效(Motion):prefers-reduced-motion:所有循环(浮动、色块漂移、滴落闲置)停止,弹簧变为 200ms 透明度淡入淡出,挤压变为仅颜色变化。
- 图像(Imagery):全程一次工作室拍摄:无缝柔和色背景(开心果绿、覆盆子粉、奶油色、黄油黄)上的意式冰淇淋静物摄影,左前方柔和漫射日光,一个轻柔阴影,糖果柔和色调,高调极简构图,大量空白背景。画面中无文字或标签,无菜单板,无标志,无人物或面孔。六张照片由 VibeFather 生成并下载到 public/images。

## 页面与区块
### [BRAND] — [CITY] 的意式冰淇淋(`index.html`)
1. **页头(Header)** — 牛奶色背景上的吸顶顶栏:左侧是 [BRAND] 字标,使用 Baloo 2 800、26px、可可色,后面跟着一个小三球勺标记(开心果、覆盆子、黄油色圆点)。右侧(桌面端):锚点链接 'Flavors'、'Build a cup'、'Shops'、'Catering',使用 Nunito 700 15px 可可色;然后是一个胶囊按钮 'Build a cup'(可可色底、奶油色文字)。移动端:字标 + 按钮 + 一个 lucide menu/x 切换按钮,打开一个牛奶色面板,四个链接纵向堆叠。整个栏以可复用的牛奶色 Drip 分隔线收尾,与下方 hero 重叠(z-10)。
   布局:position sticky top-0 z-40,h-16,px-6/px-10,max-w-6xl mx-auto 内容;drip SVG 绝对定位在底部,宽度 100%,朝下。
   动效:滚动超过 40px 时,栏获得柔和的 10% 可可色底部阴影(200ms);菜单面板下滑 250ms;链接悬停时挤压。
2. **Hero** — 左侧:一个胶囊标签 'CHURNED DAILY IN [CITY]'(Nunito 700 12px 大写,黄油色底,可可色文字)。标题使用 Baloo 2 800,clamp(2.75rem, 6vw, 4.5rem),行高 1.05,可可色:'Serious gelato, silly colors.' 副行,Nunito 400 18px,拿铁色,max-w 46ch:'Small-batch gelato in [CITY] — twelve rotating flavors, plant-based options, and a cup you design yourself. Cups from [PRICE_CUP].' CTA:'Build your cup'(可可色胶囊,奶油色文字,lucide arrow-down)→ #build;'See the flavor wall'(描边胶囊,可可色边框)→ #flavors。CTA 下方是一行六个 14px 风味圆点(开心果、覆盆子、黄油、芒果、蓝莓、柠檬,来自 content.ts),链接到 #flavors。右侧:public/images/hero-cup.webp 放在开心果色底面板上的 3:4 rounded-3xl 框架中,一个覆盆子深色的 Drip 悬挂在框架底边,一个柔和色 Blob 在左上角后方。
   布局:12 列网格,py-24:文字列 1–6(self-center),照片面板列 8–12(最大高度 520px,object-cover)。移动端:堆叠,照片在前,高 420px,然后是文字。
   动效:照片以 6s 循环上下浮动 ±6px;blob 漂移 20s;标题、副行、CTA 和风味圆点依次淡入上移(60ms 错开,圆点间隔 150ms);CTA 悬停时挤压。
3. **风味墙(Flavor wall)** — id=flavors。标题 Baloo 2 800 clamp(2rem,4vw,3rem) 可可色:'The flavor wall.' 介绍 Nunito 拿铁色:'Twelve flavors chalked up every morning — swirls, sorbets and one very stubborn fudge.' 筛选行四个胶囊(Nunito 700 14px):'All'、'Vegan'、'Dairy-free'、'Nut-free' — 激活胶囊 = 可可色底/奶油色文字,未激活 = 牛奶色底/可可色边框。墙:十二个色块芯片,4×3 网格(移动端 2 列),每个芯片填充其来自 content.ts 的风味颜色:风味名使用 Baloo 2 700 20px 可可色,芯片底部有一条同色系更深色调的 Drip,以及标签胶囊(牛奶色 80% 不透明度,可可色 11px):Pistachio Cream —;Raspberry Sorbet — vegan, dairy-free, nut-free;Stracciatella — nut-free;Dark Chocolate Fudge — vegan, dairy-free;Salted Caramel — nut-free;Mango Sorbet — vegan, dairy-free, nut-free;Matcha White —;Blueberry Oat — vegan, dairy-free, nut-free;Lemon Basil Sorbet — vegan, dairy-free, nut-free;Hazelnut Crunch —;Coconut Vanilla — vegan, dairy-free;Coffee Toffee — nut-free。网格下方,Nunito 13px 拿铁色:'Tags describe the recipe, not a certified allergen statement — always ask in shop.'
   布局:max-w-6xl 网格 gap-6;芯片宽高比约 4:5,内边距 24px,rounded-3xl。
   动效:芯片滚动时淡入上移,60ms 错开;悬停挤压使芯片上移 2px;筛选时非匹配芯片动画至 opacity 0.25 + grayscale 0.6 + scale 0.96(250ms),并停止接收指针事件。
4. **慢搅(Churned slow)** — 标题:'Churned slow, served soft.' 一行三张照片放在牛奶色框架上,带有俏皮的倾斜:gelato-pan.webp(rotate -2deg)、scoop-trio.webp(rotate 1.5deg)、waffle-cones.webp(rotate -1deg),每张 rounded-3xl,框架下方有一个 Drip。事实行三条短句,Nunito 600 可可色,Baloo 700 引导词:'30% less air — churned slow and dense'、'20 minutes — milk travels from the valley dairies to the churn'、'Every Friday — one new flavor gets chalked onto the wall'。
   布局:py-24;照片行三张(每张约 4 列,高度 260px,object-cover),倾斜交替;事实行是 3 列网格,间距 48px,与照片间隔 48px。
   动效:照片错开淡入上移;悬停时每个倾斜拉直到 0deg(300ms)并挤压;事实在照片之后淡入上移。
5. **制作一杯(Build a cup)** — id=build。标题:'Build your cup.' 介绍:'Pick a size, stack your scoops, dress it up — we will make exactly this at the counter.' 左侧:实时 SVG 杯子(几何见布局),下方是价格行,Baloo 2 700 24px 可可色,例如 '[PRICE_CUP] · Classica · 3 scoops · hot fudge',以及两个胶囊按钮:'Save my cup'(可可色)和 'Reset'(描边)。保存将选择写入 localStorage 键 'savedCup',并弹出一个内联芯片 'Saved! Show this at the counter.'(黄油色底)。右侧,三个步骤间隔 24px:步骤 1 'SIZE' — 两个芯片,'Piccolo — 1 scoop — $5' 和 'Classica — up to [SCOOPS] scoops — [PRICE_CUP]'。步骤 2 'SCOOPS' — 十二种风味作为带名称的小色块芯片;点击向杯子添加一勺该颜色,直到尺寸上限(Piccolo 1,Classica [SCOOPS]);一个小计数徽章显示每种在杯中有多少;点击 SVG 中的一勺将其移除。步骤 3 'TOPPINGS' — 四个多选胶囊:'Rainbow sprinkles'、'Pistachio crumble'、'Hot fudge'、'Fresh berries'(每个 +$1,反映在价格行中)。配料下方,berry-toppings.webp 作为一个小 1:1 160px rounded-2xl 照片芯片,倾斜 -2deg。
   布局:12 列网格:吸顶杯子列 1–5(self-start),步骤列 7–12。杯子 SVG:viewBox 0 0 200 260 — 杯身路径 'M40 100 L52 220 Q54 236 70 236 L130 236 Q146 236 148 220 L160 100 Z' 填充牛奶色,描边可可色 6px;边缘线从 34,100 到 166,100;勺是 r=34 的圆,x=100,堆叠在 y=96、62 和 28(底部勺在前);每个勺填充 = 风味颜色,描边可可色 5px;配料渲染在顶部勺上的固定常量位置(sprinkles:八个 8×3 旋转矩形;fudge:三个小滴弧;berries:三个 6px 圆,颜色 #B85C74;crumble:七个 3px 可可色点);有 2+ 勺时,边缘下方生长出一条滴落路径。移动端:杯子在前(240px 宽,不吸顶),然后是步骤。
   动效:勺弹入(scale 0.6→1 弹簧)和弹出(200ms);第二勺落下时滴落生长 scaleY 0→1(350ms);价格行在任何变化后 80ms 上滑;芯片和胶囊挤压;保存芯片弹入并在 4s 后自动淡出。
6. **门店(Shops)** — 标题:'Two shops in [CITY].' 两个 rounded-3xl 面板并排,每个底边有一个 Drip:面板一在开心果色底上 — lucide map-pin + 'Old Mill Shop'、'14 Ropewalk Lane, Old Mill'、时钟图标 + 'Mon–Thu 12:00–21:00 · Fri–Sun 11:00–23:00',行 'Window seats, and the dog bowl is always full.' 面板二在覆盆子色底上 — map-pin + 'Pier Two Shop'、'2b Ferry Slip, Old Harbour'、'Mon–Thu 13:00–21:00 · Fri–Sun 11:00–23:00',行 'The sunset line forms at the window around six.' 文字全部可可色,Nunito;店名 Baloo 2 700 24px。
   布局:两个面板在 2 列网格中(移动端堆叠),内边距 32px,drip 使用 pistachio-deep 和 raspberry-deep。
   动效:面板错开 120ms 淡入上移;悬停挤压上移 2px;面板悬停时图标轻推 2px。
7. **餐饮(Catering)** — 标题:'We bring the cart.' 介绍:'Cups, cones and a churn cart for weddings, launches and school fairs across [CITY]. Tell us the shape of your party:' 牛奶色 rounded-3xl 面板上的控件:一个姓名输入框(Nunito,rounded-2xl,牛奶色底,可可色边框,占位符 'Your name');活动规模芯片 '15 cups'、'30 cups'、'50 cups';风味选择 — 'choose up to three' — 与墙上相同的风味芯片;一个可可色胶囊按钮 'Copy request',写入剪贴板:'Hi [BRAND]! I'm {name} — {size} for my event, hoping for {flavors}.' 并显示一个内联芯片 'Copied — paste it into an email to [email protected]'(黄油色底)。面板上方,party-cups.webp 作为全宽 16:9 rounded-3xl 横幅,带一个 Drip。不会提交到任何地方。
   布局:横幅(高 320px,object-cover)然后是面板 max-w-4xl mx-auto;控件堆叠,间距 24px,风味芯片换行。
   动效:横幅不使用视差(平静);面板淡入上移;芯片挤压;复制芯片弹入;如果剪贴板 API 不可用,剪贴板写入回退为选中摘要文本 — 绝不发起网络请求。
8. **页脚(Footer)** — 奶油色底,顶部由牛奶色 Drip 分隔线开启。左侧:[BRAND] 字标带三球勺标记,以及一行 Nunito 拿铁色:'Small-batch gelato · [CITY] · [email protected]'(邮箱来自 content.ts,随 [BRAND] 变化)。右侧:锚点链接 'Flavors · Build a cup · Shops · Catering',可可色。可选的 [CREDIT] 链接,拿铁色。没有日期,没有社交图标,没有 newsletter。
   布局:py-12,max-w-6xl,flex 行在移动端换行为列,gap 24px。
   动效:无。

## 资源(Assets)
- 图片(image):将 https://media.vibefather.ai/assets/714eafea-4b0a-4b42-a617-0698f30b3d30/hero-cup.webp 下载到 public/images/hero-cup.webp。替代文本(Alt):'A paper cup with pistachio, raspberry and cream gelato scoops on a pastel green backdrop.' 用作首屏主视觉照片(3:4)。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发。
- 图片(image):将 https://media.vibefather.ai/assets/714eafea-4b0a-4b42-a617-0698f30b3d30/gelato-pan.webp 下载到 public/images/gelato-pan.webp。替代文本(Alt):'A metal pan of swirled raspberry sorbet with a spatula.' 用于 'Churned slow' 区块(4:3)。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发。
- 图片(image):将 https://media.vibefather.ai/assets/714eafea-4b0a-4b42-a617-0698f30b3d30/scoop-trio.webp 下载到 public/images/scoop-trio.webp。替代文本(Alt):'Three gelato scoops — pistachio, vanilla and dark chocolate — in a row.' 用于 'Churned slow' 区块(1:1)。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发。
- 图片(image):将 https://media.vibefather.ai/assets/714eafea-4b0a-4b42-a617-0698f30b3d30/waffle-cones.webp 下载到 public/images/waffle-cones.webp。替代文本(Alt):'A stack of crisp waffle cones on a pink pastel backdrop.' 用于 'Churned slow' 区块(1:1)。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发。
- 图片(image):将 https://media.vibefather.ai/assets/714eafea-4b0a-4b42-a617-0698f30b3d30/berry-toppings.webp 下载到 public/images/berry-toppings.webp。替代文本(Alt):'Small bowls of sprinkles, chopped pistachios and fresh berries.' 用于 'Build a cup' 区块中配料步骤旁(1:1)。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发。
- 图片(image):将 https://media.vibefather.ai/assets/714eafea-4b0a-4b42-a617-0698f30b3d30/party-cups.webp 下载到 public/images/party-cups.webp。替代文本(Alt):'Two rows of small gelato cups in pastel colors on a long table.' 用作餐饮服务横幅(catering banner,16:9)。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发。
- 图标(icon):lucide-react(ISC)通过 npm 引入——首屏 CTA 中的 arrow-down,店铺面板中的 map-pin 和 clock,已保存杯子与已复制请求标签中的 check,移动端页头中的 menu 和 x。不使用其他图标:不用 emoji,不用食物图标,不用 logo 标记。
- 字体(font):@fontsource/baloo-2(OFL,字重 600、700、800)和 @fontsource/nunito(OFL,字重 400、600、700),在 src/main.tsx 中导入;绝不从 fonts.googleapis.com 或任何 CDN 加载。在项目根目录的 ASSETS.md 中列出这两个字体家族和全部六张照片:路径、来源、生成器或作者、许可证。

## 禁止事项
- 无后端、无 API、无分析、无支付或订购:杯子构建器仅持久化到 localStorage,餐饮服务部分仅将摘要复制到剪贴板——任何表单都不会提交到任何地方。
- 无任何 CDN:字体通过 Fontsource 包提供,图标来自 lucide-react,照片来自 public/images;绝不热链接,绝不使用 Unsplash/Pexels/Pixabay 或占位图服务。
- 生产构建:单命令、压缩、无 source map、输出中无 src/、相对路径(Vite base './');通过将每张照片压缩为 ≤ 350 KB WebP,保持 dist/ 在 20 MB 以下。
- 仅单页锚点导航;必须在 1440×900 和 390×844 下干净渲染,零控制台错误,并尊重 prefers-reduced-motion(bob、drift 和 drip 循环停止;springs 变为 fades)。
- 无真实 gelaterias、连锁店或其品牌:店铺、口味、街道和位置均为虚构,[BRAND] 用于所有出现名称的地方。
- 饮食标签仅为描述性示例文案——绝非过敏原认证或保证;口味墙下方的诚实说明必须保留。
- 照片不包含可读文字、标签、菜单板、标志或人物和面孔;如果生成的图像出现文字,请替换。
- 任何地方无真实时钟日期:'chalked up every morning' 和 'every Friday' 是静态示例文案;无发布日期、无 'Est.' 年份、UI 中无 today()。
- 保持粉彩方向锁定:奶油底色配 pistachio、raspberry 和 butter 粉彩及 cocoa 文字;无深色模式、无霓虹渐变、无 glassmorphism;drippy 形状为绘制的 SVG 路径,绝不用栅格图像。
- 所有文案、标签、示例数据和 alt 文本均为美式英语,位于 src/content.ts;当 [BRAND]、[CITY]、[SCOOPS] 或 [PRICE_CUP] 更改时,重写口味名称、店铺名称、营业时间和拼写出的 scoop 数量以适配新店铺,而不是将 gelato 文案留在另一品牌下。
- 在项目根目录的 ASSETS.md 中列出每个第三方文件(两个 Fontsource 家族、lucide 图标、六张照片):路径、来源、许可证。

---
— Prompt by VibeFather · https://vibefather.ai/t/gelato-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: "Gelato Shop Website"
colors:
  cream: "#FFF6EA"
  milk: "#FFFDF9"
  pistachio: "#CBE3B6"
  pistachio_deep: "#A9C98E"
  raspberry: "#F4AFC0"
  raspberry_deep: "#E790A4"
  butter: "#FFE1A0"
  cocoa: "#4A3528"
  latte: "#8A7565"
typography:
  display_headlines_flavor_names_prices_chunky_rounded: { family: "Baloo 2", weights: [600, 700, 800] }
  text_body_chips_tags_inputs_rounded_sans: { family: "Nunito", weights: [400, 600, 700] }
spacing: "Roomy but bouncy: sections py-24 (96px) desktop / py-16 (64px) mobile; content max-w-6xl px-6/px-10; headings get 8–16px of breathing room below; pastel panels use 32px inner padding so drips never crowd text."
radius: "Rounded everywhere: 24px (rounded-3xl) on panels and photo frames, 16px (rounded-2xl) on chips, buttons and inputs, 999px pills on filter tags; the only straight lines in the design are the SVG drips hanging down."
---

# Gelato 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** `#FFF6EA` — Page ground everywhere; footer ground.
- **Milk** `#FFFDF9` — Cup body in the SVG, panel fills, chip inner surfaces, input fields.
- **Pistachio** `#CBE3B6` — Primary pastel surface: hero photo frame, hero blob, active states' tints.
- **Pistachio deep** `#A9C98E` — Drips, borders and pressed states on pistachio surfaces.
- **Raspberry** `#F4AFC0` — Secondary pastel surface: shop panel two, tag pills, blob accents.
- **Raspberry deep** `#E790A4` — Drips and borders on raspberry surfaces; the single drip on the hero cup photo.
- **Butter** `#FFE1A0` — Third pastel: highlight chips, one blob per section, hero flavor-dot accent.
- **Cocoa** `#4A3528` — All text and outlines; primary buttons are cocoa grounds with cream text.
- **Latte** `#8A7565` — Secondary text: intros, captions, the honest allergen note.

## Typography
- **Display — headlines, flavor names, prices (chunky rounded)** — Baloo 2 (OFL), weights 600/700/800. Self-host the font files.
- **Text — body, chips, tags, inputs (rounded sans)** — Nunito (OFL), weights 400/600/700. Self-host the font files.

## Spacing & shape
- Spacing: Roomy but bouncy: sections py-24 (96px) desktop / py-16 (64px) mobile; content max-w-6xl px-6/px-10; headings get 8–16px of breathing room below; pastel panels use 32px inner padding so drips never crowd text.
- Radius: Rounded everywhere: 24px (rounded-3xl) on panels and photo frames, 16px (rounded-2xl) on chips, buttons and inputs, 999px pills on filter tags; the only straight lines in the design are the SVG drips hanging down.

## Motion
- Hover squish on every chip, button and flavor swatch: scale 1.04 with a spring (stiffness 400, damping 15), whileTap scale 0.96 — implemented once in src/lib/motion.ts.
- Scroll reveals: sections and grid items fade up (y 24→0, 400ms ease-out) with 60ms stagger via Motion's whileInView, firing once.
- Hero: the cup photograph bobs slowly (y ±6px, 6s ease-in-out loop) and the two background blobs drift on 20s loops; the flavor-dot row pops in sequentially on load (150ms apart).
- Flavor wall filter: non-matching swatches animate to opacity 0.25, grayscale 0.6 and scale 0.96 over 250ms; matching chips stay full color.
- Cup builder: each added scoop pops in (scale 0.6→1 spring); a removed scoop pops out (200ms); the price line slides up 80ms after any change; with two or more scoops a drip path grows below the rim (scaleY 0→1, 350ms).
- Drip dividers idle: one blob per divider slowly stretches (scaleY 1→1.15) on a 5s loop, staggered per section.
- prefers-reduced-motion: every loop (bob, blob drift, drip idle) stops, springs become 200ms opacity fades, squish becomes a color shift only.

## Imagery
One studio session throughout: gelato still-life photography on seamless pastel backdrops (pistachio green, raspberry pink, cream, butter yellow), soft diffused daylight from the front-left, one gentle shadow, candy-pastel palette, high-key minimal compositions with lots of empty backdrop. No text or labels in frame, no menu boards, no logos, no people or faces. The six photographs are generated by VibeFather and downloaded into public/images.

## Tone
Sunny, chatty, a little silly — short punchy lines and gentle puns; the playfulness comes from color and shape, never from exclamation marks.

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

改成你自己的

  • 思慕雪碗吧:设置 BRAND 和 CITY,将十二种风味替换为你的碗和配料,并将球构建器重命名为碗构建器,加入你的基底、水果和脆片选项。
  • 社区冻酸奶店:保留风味墙和饮食标签,将 SCOOPS 设为你的杯子上限,PRICE_CUP 设为起始价格,并围绕你的每日轮换重写慢搅故事带。
  • 按品脱销售冰淇淋的面包店:用风味墙展示你的品脱产品线,将餐饮请求构建器链接到你的活动邮箱,并用你的柜台地址和营业时间替换两个店铺面板。
  • 向甜品品牌提案的设计师:保留粉彩调色板和滴落 SVG 分隔符,将 BRAND 设为客户名称,并在展示可堆叠杯子演示前,用拿铁色文字改写诚实的过敏原说明。

冰淇淋店网站:常见问题

冰淇淋店网站模板中的可堆叠杯子配置器是如何工作的?

可堆叠杯子区域让访客选择尺寸,点击风味标签最多堆叠至 SCOOPS 上限的球数,并添加配料。实时 SVG 杯子会填入所选颜色,堆叠两球或以上时开始滴落,保存按钮会将创作存储在浏览器中。没有订购系统,也无需连接支付。

冰淇淋店网站模板中哪些是免费的,哪些需要 Pro?

冰淇淋店网站模板是一个免费模板,因此其提示词和 DESIGN.md 在 CC BY-NC 4.0 下可免费用于个人非商业用途。商业或客户项目需要 Pro,Pro 会员还可获得演示的源代码。在线演示、简介、技术栈和变量对所有人可见。

怎么用 AI 做一个冰淇淋店网站?

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