用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
Kiln 是一个手工制品的单品商店页面。它围绕一个交互构建:一排釉料色板,可以重新着色代码绘制的产品渲染图。默认内容销售一套来自虚构工作室 Ollan Ceramics 的粗陶手冲咖啡套装。这个布局也适合任何销售单一主打商品并提供几种饰面的制作者,比如茶具、花盆、蜡烛或灯具。
页面以两栏主视觉开场。左侧是五张 SVG 视图的画廊:全套产品、滤杯细节、杯子、釉料特写和带尺寸的比例图。下方有一排缩略图。在桌面端,你可以用放大镜检查渲染图;在手机上,点击即可缩放。右侧是一个粘性购买面板,包含产品名称、评分、价格、釉料色板、数量步进器和加入购物车按钮。选择一种釉料会缓慢地重新着色页面上的每一张渲染图,包括单品卡片和购物车缩略图。
购物车完全在浏览器中运行。一个抽屉从右侧滑入,包含商品项、数量步进器、一个小附加项、免运费进度条和一个只显示通知的结账按钮。购物车保存在 localStorage 中,因此这个演示在没有后端的情况下也能像真实商店一样运行。
外观安静:骨色背景、炭褐色字体、一种陶土色点缀、Fraunces 标题和 Inter 正文。粗陶纹理来自 SVG 噪点滤镜而非照片,因此无需追踪图片授权。动效仅限于淡入上浮、升腾的蒸汽和柔和的悬停抬升,并且当访客启用了减少动效时,所有这些都会关闭。
要适配这个页面,请更改品牌、产品名称、单品列表、价格和工作室位置。然后用相同的渐变和斑点方法重绘 SVG 单品。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Ceramics Shop Product Page Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else. ## Brief A calm, minimal single-product ecommerce page for [BRAND], a small invented pottery studio in [STUDIO_PLACE] that sells one item: [PRODUCT_NAME], a [PRODUCT_KIND] made up of [SET_PIECES], priced at $[PRICE]. The page centers on a two-column product hero: a large gallery of five code-drawn SVG views with zoom on the left, and a sticky buy panel with round glaze swatches on the right. Choosing a swatch smoothly recolors every SVG render of the product on the page. The buying flow runs entirely in the browser: a quantity stepper, a slide-in cart drawer with line items, an add-on, a free-shipping progress bar, and a mock checkout that only shows a toast. Below the hero, in order: a story strip, what's in the set, a care accordion, shipping and returns, reviews with rating bars, an FAQ and a footer. There are no photos. All product art is inline SVG with an SVG-filter stoneware speckle and a paper-grain overlay. All copy below is written for the default variable values. If the variables differ, rewrite every headline, paragraph, item name, review, FAQ and care entry so it fits the new brand and product, while keeping the same length, tone and structure. Keep all copy and product data in one file: src/content.ts. - Audience: Ceramicists, makers, small DTC and craft brands that sell one hero product in several finishes, and developers who want a polished static single-product store to adapt. - Goal: Let the visitor pick a glaze, see the product change color instantly, check the details (pieces, care, shipping, reviews) and add the set to a cart. Everything must feel like a real shop while running as static files. - Tone: Quiet, warm and plain-spoken, like a potter describing their work at a market stall. Short sentences, concrete numbers (ml, cm, °C, days), no hype words, no exclamation marks. ## Stack - Framework: Vite 5 + React 18 + TypeScript - Styling: Tailwind CSS 3.4 - Libraries: react (MIT), react-dom (MIT), motion (MIT), lucide-react (ISC), @fontsource-variable/fraunces (OFL-1.1), @fontsource-variable/inter (OFL-1.1), tailwindcss (MIT), postcss (MIT), autoprefixer (MIT), typescript (Apache-2.0), vite (MIT) - Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs. - Setup: - Scaffold with: npm create vite@latest kiln -- --template react-ts - Install: npm i motion lucide-react @fontsource-variable/fraunces @fontsource-variable/inter - Install dev deps: npm i -D [email protected] postcss autoprefixer, then npx tailwindcss init -p - In vite.config.ts set base: './' and build: { sourcemap: false, outDir: 'dist' } - In main.tsx import '@fontsource-variable/fraunces' and '@fontsource-variable/inter' before index.css - In tailwind.config.js set content to ./index.html and ./src/**/*.{ts,tsx}. Extend colors with bone #F4EFE6, paper #FBF8F3, sand #E3D8C6, ink #2B2420, muted #6E625A, clay #B4532F, clayDark #9A4426, foot #C8A27C. Extend fontFamily with display ['Fraunces Variable', 'Georgia', 'serif'] and sans ['Inter Variable', 'system-ui', 'sans-serif']. Extend boxShadow with soft: '0 1px 2px rgba(43,36,32,0.04), 0 12px 32px -12px rgba(43,36,32,0.18)' and lift: '0 2px 4px rgba(43,36,32,0.05), 0 20px 40px -14px rgba(43,36,32,0.24)' - src/content.ts holds every string, the GLAZES array, the views array, pieces, care, shipping, reviews, FAQ, the add-on item, FREE_SHIPPING_THRESHOLD = 150 and FLAT_SHIPPING = 9 - src/index.css holds the Tailwind directives, @property registrations for --glaze-hi, --glaze-base and --glaze-lo (syntax '<color>', inherits: true), the steam keyframes, and a prefers-reduced-motion block that disables steam and all transitions - Glaze state lives in a GlazeContext (src/state/GlazeContext.tsx). The selected glaze's hi/base/lo hex values are set as CSS custom properties on <body>, and body has transition: --glaze-hi 600ms, --glaze-base 600ms, --glaze-lo 600ms ease - Cart state lives in a CartContext (src/state/CartContext.tsx) using useReducer. Persist to localStorage key 'kiln-cart-v1' and rehydrate on load. Line items are keyed by productId + glazeId - SVG product pieces are React components in src/render/ (Dripper.tsx, Server.tsx, Cup.tsx, SetScene.tsx, GlazeMacro.tsx, ScaleDrawing.tsx, Crate.tsx, Defs.tsx). They read color from var(--glaze-*), or from an explicit glaze prop when drawn in the cart - Render <Defs /> once at the top of <body> as a hidden 0×0 SVG that holds the shared gradients and filters (glazeGrad, footGrad, speckle, grain, softShadow), referenced by id - index.html <title> is '[BRAND] — [PRODUCT_NAME]'. The favicon is public/favicon.svg: a 32×32 terracotta #B4532F circle with an inner bone #F4EFE6 ring stroke of 2px at radius 9 - Add ASSETS.md at the project root listing the Fontsource fonts and Lucide icons with source URL, author and license, and stating that all product art is original inline SVG ## Variables - [BRAND] — Studio / brand name (default: "Ollan Ceramics"). Invented maker or shop name; used in header wordmark, title, footer and copy. - [PRODUCT_NAME] — Product name (default: "The Ridgeline Pour-Over Set"). The single product the page sells. - [PRODUCT_KIND] — Product kind (default: "handmade stoneware pour-over coffee set"). Short description used in the eyebrow, intro and story copy. - [SET_PIECES] — Pieces in the set (default: "dripper, 600 ml server, two 180 ml cups"). Comma-separated list; drives the 'What's in the set' cards and which SVG pieces are drawn. - [PRICE] — Price (USD, number only) (default: "148"). Keep below the $150 free-shipping threshold so the progress bar has something to show. - [STUDIO_PLACE] — Studio location (default: "Fernlow Valley"). Invented place name used in the announcement bar, story strip and footer. - [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/ceramics-shop-product-page in the footer (default: yes; delete this line to remove it) The copy under Pages & Sections is written for the default values. If your values differ, rewrite every headline, paragraph, label and image for them — same length, tone and structure. Layout, colors, type and motion stay as described. Keep all copy, image paths and links in one content file (for example `src/content.ts`), keyed by section, so the content can be swapped later without touching components. ## Design ### Colors - Bone `#F4EFE6` — Page background - Paper `#FBF8F3` — Cards, gallery stage, drawer, accordion panels - Sand `#E3D8C6` — Hairline borders (1px), dividers, announcement bar, rating bar tracks, thumbnail borders - Ink `#2B2420` — Primary text, footer background, selected-swatch ring, toast background - Muted `#6E625A` — Secondary text, captions, metadata - Terracotta `#B4532F` — Single accent: primary buttons, stars, progress fills, links on hover, cart badge - Terracotta Dark `#9A4426` — Primary button hover/active - Clay Foot `#C8A27C` — Unglazed foot band on every SVG piece (shadow side #A88560) - Coffee `#3B2418` — Liquid surface inside cups and server in SVG renders - Glaze Oat `#E6D9C2` — Glaze swatch: hi #F6EFE2, base #E6D9C2, lo #BFAE90 - Glaze Ember `#B4573A` — Glaze swatch (default selected): hi #D98A68, base #B4573A, lo #7E3622 - Glaze Moss `#7A8260` — Glaze swatch: hi #A3AA86, base #7A8260, lo #535A40 - Glaze Tide `#5B7380` — Glaze swatch: hi #8DA3AE, base #5B7380, lo #3C4F59 - Glaze Coal `#3A3330` — Glaze swatch: hi #6A5F59, base #3A3330, lo #1F1A18 ### Typography - Display: product name, section headings, prices, big rating number, story statement: Fraunces Variable (OFL), weights 400/500 - Text: body, UI labels, buttons, nav, captions: Inter Variable (OFL), weights 400/500/600 ### Layout & motion - Spacing: 8px base grid. Container max-width 1240px, centered, horizontal padding 24px on mobile and 40px from 1024px up. Section vertical padding 112px on desktop and 72px on mobile. Card padding 28px (20px on mobile). Grid gap 24px, hero column gap 64px. Type scale: H1 product name Fraunces 500 48px/1.05 desktop, 36px mobile, letter-spacing -0.02em, font-variation-settings 'opsz' 96, 'SOFT' 50. Section H2 Fraunces 400 40px/1.1 desktop, 30px mobile. Card titles Fraunces 500 22px. Body Inter 400 16px/1.65. Small labels Inter 500 12px uppercase with 0.12em tracking, in Muted. - Radius: Gallery stage 28px; cards, accordion panels and drawer line thumbnails 20px; thumbnails 14px; buttons, steppers, swatches, badges and toast fully rounded (9999px). The drawer has no radius on its outer edge. - Motion: Library: Motion (motion/react). Global easing [0.22, 1, 0.36, 1]. - Motion: Scroll reveal: every section's heading block and cards fade up from y 24px, opacity 0 to 1, over 700ms, whileInView with once: true and amount 0.2. Cards in a grid stagger by 80ms. - Motion: Glaze change: the --glaze-hi/base/lo custom properties transition over 600ms ease, so every render shifts color smoothly at the same time. The glaze name label beside 'Glaze —' crossfades over 200ms. - Motion: Gallery view change: AnimatePresence crossfade, opacity plus scale 0.98→1, 300ms. - Motion: Steam: three wavy SVG paths above the dripper and server (in the set and dripper views). Each rises translateY 0→-28px while opacity goes 0→0.55→0 over 6s, looping, with delays of 0s, 2s and 4s. Stroke #FFFFFF, width 6, linecap round, blurred by feGaussianBlur stdDeviation 2. - Motion: Hover lifts: cards translateY -4px and swap shadow-soft for shadow-lift over 200ms. Swatches scale to 1.08. Thumbnails raise their border to Ink at 40% opacity. - Motion: Add to cart: the button label swaps to a Check icon plus 'Added' for 1.4s (crossfade 150ms), then the drawer opens. - Motion: Cart drawer: the panel slides x 100%→0 over 380ms. The overlay fades to rgba(43,36,32,0.4) with backdrop-blur 2px over 250ms. New line items animate height and opacity in, and removed items collapse out (layout animation 250ms). - Motion: Free-shipping bar width animates 500ms whenever the subtotal changes. - Motion: Rating bars animate width from 0 to their value over 900ms when scrolled into view, staggered by 60ms. - Motion: Accordion: content height auto-animates 280ms, and the Plus icon rotates 45° to read as a close mark. - Motion: Toast: slides up 16px and fades in over 250ms at bottom center, stays 3s, then fades out. - Motion: prefers-reduced-motion: reduce (check with useReducedMotion and the CSS media query): no translate or scale animations, steam paths hidden, glaze and gallery changes are instant, the drawer appears with an opacity-only fade of 150ms, and rating bars render at full width. - Imagery: No bitmaps at all. Every product image is an original inline SVG (viewBox 0 0 800 800) built the same way. Each piece is a simple silhouette path filled with url(#glazeGrad), a horizontal linearGradient going var(--glaze-hi) at 0%, var(--glaze-base) at 45% and var(--glaze-lo) at 100%. The glaze stops about 82% down each piece at a hand-drawn wavy 'dip line', and below it a band of unglazed foot shows in #C8A27C with a #A88560 shadow side. A 'speckle' filter overlays tiny dark iron flecks: feTurbulence fractalNoise baseFrequency 0.85, numOctaves 2, then feColorMatrix to a sparse alpha threshold, colored #3A2A20, at 35% opacity, clipped to the glazed area. A white rim highlight runs along each lip (1.5px stroke, 50% opacity), with a narrow vertical highlight streak (white, 18% opacity, blurred). Each piece sits on a soft ground shadow ellipse (Ink at 18%, blurred 14px). The forms are generic and original. The dripper is a smooth, slightly convex cone with a rolled rim, a flat round base flange and a small half-round loop handle on the right, with no ribs or signature details. The server is a round-bellied carafe with a short pulled spout and a narrowing neck. The cups are low, unhandled tumblers with a slight taper. The gallery stage background is a radial gradient from #FBF8F3 at the center to #EFE7DA at the edges. A fixed full-screen paper-grain overlay (feTurbulence baseFrequency 0.9, numOctaves 2, mix-blend-mode multiply, opacity 0.05, pointer-events none) covers the whole page. Review avatars are initials in circles tinted with their glaze color. There are no faces, people, product photos or logos of any kind. ## Pages & Sections ### [BRAND] — [PRODUCT_NAME] (`index.html`) 1. **Announcement bar** — One line, centered: 'Free shipping on orders over $150 · Every set thrown by hand in Fernlow Valley'. Inter 500 13px, Ink. Layout: Full-width bar 36px tall, Sand background, text centered. On mobile, show only 'Free shipping over $150'. 2. **Header** — Left: the logo mark (a 22px SVG of an Ink ring with a 2px stroke around a small Terracotta filled circle of radius 5), then the wordmark 'Ollan Ceramics' in Fraunces 500 22px. Center: anchor links 'The set' (#the-set), 'Care' (#care), 'Reviews' (#reviews), 'FAQ' (#faq) in Inter 500 14px, Muted, turning Ink on hover with a 1px underline that grows from the left. Right: a 44px round cart button with the Lucide ShoppingBag icon (20px). A Terracotta badge (18px circle, white Inter 600 11px) shows the total item count and pops with scale 1→1.25→1 over 300ms when it changes. Layout: Sticky at top 0, height 72px, Bone background at 85% opacity with backdrop-blur 8px, and a 1px Sand bottom border that appears only after scrolling 8px. Below 768px the center links are hidden, leaving only the logo and cart. The cart button opens the drawer. 3. **Product hero** — Gallery: five views from content.views, labelled 'The set', 'Dripper', 'Cup', 'Glaze close-up', 'Scale'. (1) The set: the dripper sits on top of the server left of center, and two cups stand to the right, overlapping slightly, with steam. (2) Dripper: the dripper large at a 3/4 angle with the interior visible as an ellipse rim and a darker inner gradient, plus steam. (3) Cup: one cup large with a coffee surface ellipse in #3B2418 and a small white specular arc. (4) Glaze close-up: a full-frame macro of the glaze gradient with dense speckle, a wavy dip line crossing the lower third, and raw clay below. (5) Scale: line drawings of all pieces with 1.5px Ink strokes, the glaze fill at 30% opacity, and dimension lines with labels in Inter 500 14px: 'Dripper 11 cm', 'Server 14 cm · 600 ml', 'Cup 7.5 cm · 180 ml'. Buy panel, top to bottom: eyebrow 'HAND-THROWN STONEWARE · SMALL BATCH'. H1 'The Ridgeline Pour-Over Set'. A rating row of five 16px Lucide Star icons filled Terracotta, then '4.9 · 128 reviews' as a link to #reviews. Price '$148' in Fraunces 500 30px, with 'Free shipping over $150' beside it in Muted 14px. The paragraph: 'A dripper, a server and two cups, thrown from the same clay and dipped in the same glaze bath. Made for one slow pour in the morning and a second one you share.' A 1px Sand divider. The label 'Glaze — Ember' (the name updates). Five 36px round swatches (Oat, Ember, Moss, Tide, Coal), each filled with a radial gradient from its hi color at 30% 30% to its base color, with a 1px inset Ink ring at 10%. The selected swatch has a 2px Ink ring offset 3px. Swatches have role radiogroup and arrow-key support, and the native title attribute shows the glaze name. Below them in Muted 14px: 'Each glaze breaks differently in the kiln. No two sets match exactly.' Then a row with a quantity stepper (pill, 1px Sand border, 52px tall, Lucide Minus and Plus buttons, a number between 1 and 10, aria-live) and the 'Add to cart · $148' button (fills the remaining width, 52px tall, Terracotta background, Bone Inter 600 15px text, hover Terracotta Dark; the price in the label multiplies by quantity). Under that, three perk rows with 18px Lucide icons in Muted: Truck 'Ships in 3–5 business days', RotateCcw '30-day returns, label on us', PackageCheck 'Breakage in transit fully covered'. Layout: 12-column grid at 1024px and up. The gallery spans columns 1–7 and the buy panel columns 8–12 with a 64px gap. The buy panel is position: sticky at top 96px. Gallery stage: aspect-ratio 1/1, Paper background with the radial gradient, radius 28px, shadow-soft, overflow hidden. Round 40px prev/next buttons (Lucide ChevronLeft and ChevronRight, Paper background at 90%) sit 16px from the left and right edges at vertical center. A view caption pill sits in the bottom-left: Paper at 90%, Inter 500 12px, showing e.g. 'The set · 1/5'. Below the stage is a row of five 1:1 thumbnails, each 20% wide minus gaps (12px gap), showing mini versions of the views. The active thumbnail has a 2px Ink border, the others a 1px Sand border. Left and right arrow keys change the view when the gallery is focused. Zoom on devices with (hover: hover) and (pointer: fine): hovering the stage shows a 180px circular lens (2px Paper border, shadow-lift) that follows the cursor and shows the same SVG at 2.5× scale, offset so the area under the cursor is centered, and the cursor becomes none. Zoom on touch: tapping the stage scales the SVG to 2× with transform-origin at the tap point, dragging pans it, and a second tap resets it. A small Lucide ZoomIn hint chip sits at the top right of the stage. Below 1024px the hero stacks: the gallery comes first at full width, then the buy panel without sticky. On mobile, once the main Add to cart button scrolls out of view (IntersectionObserver), a fixed bottom bar slides up. It is 72px tall, Paper background, with a 1px Sand top border and safe-area padding, and shows the product name in Fraunces 16px, the price, and a compact 'Add to cart' pill. Motion: The buy panel fades up on load (staggered children 60ms). The gallery crossfades between views. Glaze transitions take 600ms. Steam loops in views 1 and 2. The swatch hover scale is 1.08. 4. **Story strip** — An eyebrow 'FROM THE STUDIO'. The statement in Fraunces 400 40px/1.15: 'Thrown on a kick wheel in Fernlow Valley, one set at a time.' The paragraph: 'We use an iron-rich stoneware, mix five glazes by hand in the studio and fire every set twice. The dripper's single hole keeps the flow slow and even, so the cup tastes of the beans, not of the rush.' Three stats, each a large Fraunces 500 56px number with an Inter 14px Muted caption: '38 h', 'from wet clay to packed crate'; '2', 'firings, the last at 1240 °C'; '5', 'glazes mixed in-house'. Layout: Full-bleed Paper band with 1px Sand top and bottom borders. Inside the container, a 12-column grid: the statement and paragraph span columns 1–6 (paragraph max-width 52ch), and the three stats sit in columns 8–12 as a vertical list separated by 1px Sand dividers, 24px vertical padding each. On mobile everything stacks and the stats become a 3-column row with 28px numbers. Motion: Fade-up reveal. Stat numbers count up from 0 over 1.2s when they come into view (instant under reduced motion). 5. **What's in the set** — id 'the-set'. Eyebrow 'IN THE CRATE'. H2 'What's in the set'. Four cards, each with an SVG illustration of the piece in the currently selected glaze, a Fraunces title and an Inter 14px Muted spec line: 'Dripper', 'Single-hole cone · fits #2 filters · 11 cm tall'; 'Server', '600 ml · pulled spout · 14 cm tall'; 'Two cups', '180 ml each · unhandled · 7.5 cm tall'; 'The crate', 'Molded-pulp crate with 40 unbleached filters and a care card'. The crate card shows a code-drawn box in #C8A27C and #A88560 tones with grain, not glaze. Layout: Heading block left-aligned and max-width 640px, 48px above the grid. 4-column grid on desktop, 2 columns from 640px to 1023px, 2 columns on mobile with a 16px gap. Each card is Paper with radius 20px and a 1px Sand border. Its illustration area is aspect 4/5 with the radial stage gradient, and title and spec sit below with 20px padding. Motion: Cards stagger fade-up by 80ms, hover lift, and the illustration scales to 1.03 on hover over 400ms. 6. **Care** — id 'care'. Left column: eyebrow 'CARE', H2 'Care for it like you plan to keep it.', and the paragraph 'Stoneware is tough, but it remembers sudden heat. A few habits keep the glaze bright for years.' Right column: an accordion with four items. 'Washing': 'Dishwasher-safe on the top rack. Washing by hand keeps the glaze glossy longer.' 'Heat': 'Warm the pieces with hot tap water before pouring boiling water. Never move a piece straight from the fridge to the stove.' 'Microwave': 'Safe for reheating. The unglazed foot can get hot, so lift by the rim.' 'Patina and crazing': 'Fine lines can appear in lighter glazes over time. They are normal for stoneware and do not affect use.' The first item is open by default. Layout: Two columns on desktop: the left spans 5 columns and is sticky at top 120px, the right spans 7 columns. Accordion items are Paper with radius 20px, a 1px Sand border and 12px gaps. The header row is a full-width button in Inter 600 16px with a 20px Lucide Plus on the right, and has aria-expanded and aria-controls. Panels have 28px horizontal padding. Several items can be open at once. Stacks on mobile. Motion: Height auto-animation 280ms. Plus rotates 45° when open. Section fades up. 7. **Shipping and returns** — Eyebrow 'DELIVERY'. H2 'Shipping and returns'. Three cards, each with a 24px Lucide icon in Terracotta inside a 48px Sand circle, a Fraunces 22px title and body text. Truck 'Shipping': 'Free over $150, otherwise $9 flat. Packed in molded pulp with no plastic. Ships in 3–5 business days.' RotateCcw 'Returns': 'You have 30 days to return an unused set. We email you a prepaid label.' PackageCheck 'Breakage': 'If anything arrives chipped or cracked, send us a photo and we will ship a replacement piece the same week.' Layout: 3-column grid on desktop and stacked on mobile. Paper cards with radius 20px, a 1px Sand border and 28px padding. The heading block sits above the grid with a 48px gap. Motion: Cards stagger fade-up by 80ms, with hover lift. 8. **Reviews** — id 'reviews'. Eyebrow 'REVIEWS'. H2 'What people pour with it'. Summary column: '4.9' in Fraunces 500 80px, five Terracotta stars, then 'Based on 128 reviews' in Muted. Five rating bars for 5 to 1 stars with counts 112, 12, 3, 1, 0: a label like '5★' in Inter 500 13px, an 8px fully rounded Sand track with a Terracotta fill sized to count/128, and the count on the right. Review cards each show a 44px initials circle (glaze base color at 25% opacity, Ink Inter 600 14px initials), the name, 'Verified buyer · Glaze: <glaze>' in Muted 13px, the stars, a Fraunces 500 18px title and a body paragraph. Six reviews: (1) Maren A., Moss, 5★, 'The pour is slower, in a good way', 'The single hole makes me wait, and I have stopped rushing my mornings. Moss has tiny iron flecks that catch the window light.' (2) Theo R., Oat, 5★, 'Heavier than it looks', 'It holds heat far better than my old glass carafe. The raw clay foot feels great in the hand.' (3) Priya K., Tide, 5★, 'Used the same day it arrived', 'I bought it for my sister. She sent me a photo of her first cup an hour after opening the crate. Packed very well.' (4) Jonah L., Coal, 4★, 'Lovely, one small note', 'Beautiful set. The cups are smaller than I expected at 180 ml, so check the scale view before you order.' (5) Ines V., Ember, 5★, 'Even better in person', 'Ember shifts from rust to almost pink where the glaze thins at the rim.' (6) Sam O., Oat, 5★, 'A second set for the office', 'The first one lives at home. Now I have the same quiet ritual at my desk.' Only the first four show at first. A 'Show more reviews' button (pill, 1px Ink border, Ink text, 48px tall) reveals the other two and then hides itself. Layout: 12-column grid on desktop: the summary is sticky in columns 1–4 at top 120px, and the reviews fill columns 6–12 in a 2-column masonry-free grid of equal-height Paper cards (radius 20px, 1px Sand border, 24px padding, 16px gap). On mobile the summary sits on top and the reviews form a single column. The button is centered under the grid with a 32px gap. Motion: Rating bars grow into view with a 60ms stagger. Cards fade up. Revealed cards fade up with an 80ms stagger. 9. **FAQ** — id 'faq'. Eyebrow 'QUESTIONS'. H2 'Before you order'. Five items: 'Will my set look exactly like the pictures?', 'No two sets match. Glazes pool and break differently in every firing, so expect small shifts in tone and speckle.' 'What filters does the dripper take?', 'Standard #2 cone filters. We include 40 unbleached ones to start.' 'Is the glaze food-safe?', 'Yes. All five glazes are lead-free and fired to about 1240 °C.' 'Can I buy pieces separately?', 'Not yet. We sell complete sets so every piece comes out of the same firing.' 'How long until it ships?', 'Sets in stock ship in 3–5 business days. Around the holidays, allow up to 10.' Layout: A single centered column, max-width 760px, with the heading centered above it. The accordion uses the same component as Care, but only one item can be open at a time and all start closed. Items are separated by 1px Sand dividers, with no card backgrounds and 24px vertical padding. Motion: Same accordion motion as Care, plus a section fade-up. 10. **Footer** — The wordmark 'Ollan Ceramics' with the logo mark in Bone, and the line 'Small-batch stoneware for slow mornings.' in Bone at 70%. Three link columns, all pointing to anchors on this page: Shop ('The set' #the-set, 'Glazes' #top, 'Reviews' #reviews); Studio ('Our process' #story, 'Care' #care); Help ('Shipping' #shipping, 'FAQ' #faq). A bottom row separated by a 1px rule in Bone at 15%: '© 2026 Ollan Ceramics. Thrown in Fernlow Valley.' on the left and 'This is a demo store. Nothing here is for sale.' on the right, both Inter 13px in Bone at 60%. Layout: Full-bleed Ink #2B2420 background with Bone text, 80px top and 40px bottom padding. On desktop a 12-column grid: the brand block spans 5 columns and the three link columns span 2 each starting at column 7. On mobile the brand block stacks above a 2-column link grid. Give the story strip id 'story' and the shipping section id 'shipping' so the links resolve. Motion: Link hover underline only. 11. **Cart drawer and toast (global overlays)** — Drawer header: 'Your cart (n)' in Fraunces 500 22px, with a close button (Lucide X) on the right. A free-shipping block with the line 'You're $2 away from free shipping' (computed as 150 − subtotal), which changes to 'Free shipping unlocked' with a Lucide Check icon once the subtotal is $150 or more, above an 8px Sand track with a Terracotta fill of min(subtotal/150, 1). Line items show a 72px Paper thumbnail with a mini SetScene in that line's glaze (passed as an explicit glaze prop), the product name in Inter 600 15px, 'Glaze: Ember' in Muted 13px, a compact quantity stepper (36px tall, minimum 1, maximum 10), the line price on the right, and a 'Remove' text button in Muted 13px underlined on hover. Adding the same glaze again increases that line's quantity, while a different glaze creates a new line. Below the items is an add-on row in a dashed 1px Sand box: a small code-drawn folded linen cloth SVG in #E6DCCB, 'Linen pour cloth', '$12' and an 'Add' pill button. The row is hidden once the cloth is in the cart. Footer: 'Subtotal' with the amount in Fraunces 500 22px, the note 'Shipping and taxes calculated at checkout.' in Muted 13px, then a full-width 'Checkout' button (Terracotta, 52px, fully rounded, Lucide Lock icon 16px). Clicking it only shows the toast 'This is a demo store. Checkout is turned off.' Empty state: an 80px outline SVG cup drawn with Ink strokes at 40%, 'Your cart is empty' in Fraunces 22px, and a 'Keep browsing' outline pill that closes the drawer. Toast: an Ink pill with Bone Inter 500 14px text and a Lucide Info icon, max-width 90vw. Layout: The drawer is fixed to the right, full height, 440px wide on desktop and 100vw on mobile, with a Paper background, a 1px Sand left border and shadow-lift. Inside it is a flex column: a 72px header with a bottom border; the shipping block with 24px padding; a scrollable items list with 24px padding and a 1px Sand divider between items; the add-on row; and a footer pinned to the bottom with a top border, 24px padding and safe-area padding. The overlay covers the page, and clicking it closes the drawer. The drawer has role dialog, aria-modal true and a focus trap. Focus moves to the close button on open and returns to the trigger on close. Esc closes it, and body scroll is locked while it is open. The toast is fixed at bottom center, 24px from the bottom (96px on mobile when the sticky bar shows), with z-index above the drawer. Motion: The drawer slides in with the overlay fade, and line items use layout animations, as listed under Motion. The toast slides up and fades in. Under reduced motion everything uses opacity only. ## Assets - font: Fraunces Variable and Inter Variable, self-hosted through @fontsource-variable/fraunces and @fontsource-variable/inter (OFL-1.1), imported in main.tsx and bundled by Vite. List both in ASSETS.md with source https://fontsource.org, the authors (Undercase Type for Fraunces, Rasmus Andersson for Inter) and the license. - icon: lucide-react (ISC) icons only: ShoppingBag, Star, Minus, Plus, Truck, RotateCcw, PackageCheck, ChevronLeft, ChevronRight, ZoomIn, X, Check, Lock, Info. Tree-shaken from the npm package and listed in ASSETS.md with source https://lucide.dev and the ISC license. - image: No bitmap images. Every product view, piece card, cart thumbnail, crate, linen cloth, empty-cart cup, logo mark and favicon is original inline SVG drawn in code under src/render/ and public/favicon.svg. The stoneware speckle and the paper grain are SVG filters (feTurbulence). Note in ASSETS.md that all illustrations are original and code-drawn. ## Don'ts - No backend: no server code, API routes, databases, auth, analytics or third-party API calls. The cart lives only in React state and localStorage. - No working checkout, payment form, card input or payment widget. The Checkout button only shows the demo toast. - No forms that submit anywhere. There is no newsletter signup. - No real payment-provider logos or badges, and no real ceramic or coffee brand names, logos, slogans or product names. - Don't copy a real brand's signature dripper silhouette or trademark shapes. Draw the generic original forms described above: a smooth cone, a rolled rim, a flat flange and a loop handle, with no spiral ribs or distinctive cut-outs. - No product photos, stock images or placeholder-image services. All art is inline SVG drawn in code. - No real people's faces or likeness. Reviewers appear only as initials in glaze-tinted circles, with invented names. - Don't copy copy from existing shops. Use only the invented copy in src/content.ts. - Don't load fonts from fonts.googleapis.com, fonts.gstatic.com or any CDN. Self-host Fraunces and Inter through Fontsource. No commercial or custom brand typefaces. - No CDN <script> or <link> tags. Everything ships locally in dist/. - Don't use Aceternity UI, Tailwind Plus / Tailwind UI or purchased template source. Build every component from scratch. - Don't change the stack (Vite 5 + React 18 + TypeScript, Tailwind CSS 3.4, Motion, lucide-react) unless the user asks. - No source maps in the production build, and don't copy src/ into dist/. - Use relative asset paths (Vite base './'). In-page navigation uses #anchors only, and any other internal link must point to a file name such as ./index.html, never a bare directory. - Keep dist/ under 20 MB. - No console errors or warnings at 1440×900 or 390×844, and no horizontal scroll on mobile. - Respect prefers-reduced-motion: no steam, no transforms, and instant glaze and gallery changes. - No SEO extras: no meta descriptions, Open Graph tags, JSON-LD or sitemap. Just the <title> and the favicon. - Don't mention VibeFather anywhere in the site except an optional credit link in the footer. --- — Prompt by VibeFather · https://vibefather.ai/t/ceramics-shop-product-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 陶瓷商店产品页 完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。 ## 简介 为 [BRAND] 打造一个平静、极简的单品电商页面。[BRAND] 是位于 [STUDIO_PLACE] 的一家虚构小型陶艺工作室,只售卖一件商品:[PRODUCT_NAME],一件由 [SET_PIECES] 组成的 [PRODUCT_KIND],售价 $[PRICE]。页面以双栏产品主视觉为核心:左侧是五张代码绘制的 SVG 视图组成的大图库,支持缩放;右侧是粘性购买面板,带有圆形釉色色块。选择色块会平滑地重新着色页面上产品的每一张 SVG 渲染图。购买流程完全在浏览器中运行:数量步进器、带行项目的滑入式购物车抽屉、一个附加商品、一个免运费进度条,以及一个只显示 toast 提示的模拟结账。主视觉下方依次为:故事条、套装内容、护理手风琴、配送与退货、带评分条的评论、FAQ 和页脚。没有照片。所有产品图均为内联 SVG,带有 SVG 滤镜的炻器斑点效果和纸张纹理叠加层。以下所有文案均按默认变量值撰写。如果变量不同,请重写每一个标题、段落、商品名称、评论、FAQ 和护理条目,使其符合新的品牌和产品,同时保持相同的长度、语气和结构。将所有文案和产品数据放在一个文件中:src/content.ts。 - 受众:陶艺师、手作人、销售单一主打产品多种饰面的小型 DTC 和手作品牌,以及希望获得一个精致静态单品商店来改编的开发者。 - 目标:让访客选择一种釉色,立即看到产品变色,查看详情(件数、护理、配送、评论),并将套装加入购物车。一切必须感觉像一家真实的商店,同时以静态文件运行。 - 语气:安静、温暖、平实,像陶艺师在集市摊位上描述自己的作品。短句,具体数字(ml、cm、°C、天),不用炒作词汇,不用感叹号。 ## 技术栈 - 框架:Vite 5 + React 18 + TypeScript - 样式:Tailwind CSS 3.4 - 库:react(MIT)、react-dom(MIT)、motion(MIT)、lucide-react(ISC)、@fontsource-variable/fraunces(OFL-1.1)、@fontsource-variable/inter(OFL-1.1)、tailwindcss(MIT)、postcss(MIT)、autoprefixer(MIT)、typescript(Apache-2.0)、vite(MIT) - 构建:`npm run build` → 静态文件输出到 `dist/`。无后端、无服务端代码、无外部 API。 - 设置: - 使用以下命令搭建脚手架:npm create vite@latest kiln -- --template react-ts - 安装:npm i motion lucide-react @fontsource-variable/fraunces @fontsource-variable/inter - 安装开发依赖:npm i -D [email protected] postcss autoprefixer,然后执行 npx tailwindcss init -p - 在 vite.config.ts 中设置 base: './' 和 build: { sourcemap: false, outDir: 'dist' } - 在 main.tsx 中,于 index.css 之前导入 '@fontsource-variable/fraunces' 和 '@fontsource-variable/inter' - 在 tailwind.config.js 中将 content 设置为 ./index.html 和 ./src/**/*.{ts,tsx}。扩展 colors,加入 bone #F4EFE6、paper #FBF8F3、sand #E3D8C6、ink #2B2420、muted #6E625A、clay #B4532F、clayDark #9A4426、foot #C8A27C。扩展 fontFamily,加入 display ['Fraunces Variable', 'Georgia', 'serif'] 和 sans ['Inter Variable', 'system-ui', 'sans-serif']。扩展 boxShadow,加入 soft: '0 1px 2px rgba(43,36,32,0.04), 0 12px 32px -12px rgba(43,36,32,0.18)' 和 lift: '0 2px 4px rgba(43,36,32,0.05), 0 20px 40px -14px rgba(43,36,32,0.24)' - src/content.ts 保存所有字符串、GLAZES 数组、views 数组、pieces、care、shipping、reviews、FAQ、附加项、FREE_SHIPPING_THRESHOLD = 150 和 FLAT_SHIPPING = 9 - src/index.css 保存 Tailwind 指令、--glaze-hi、--glaze-base 和 --glaze-lo 的 @property 注册(syntax '<color>',inherits: true)、steam 关键帧,以及一个禁用 steam 和所有过渡的 prefers-reduced-motion 块 - 釉色状态位于 GlazeContext(src/state/GlazeContext.tsx)中。所选釉色的 hi/base/lo 十六进制值作为 CSS 自定义属性设置在 <body> 上,并且 body 具有 transition: --glaze-hi 600ms, --glaze-base 600ms, --glaze-lo 600ms ease - 购物车状态位于使用 useReducer 的 CartContext(src/state/CartContext.tsx)中。持久化到 localStorage 键 'kiln-cart-v1',并在加载时重新水合。行项目以 productId + glazeId 为键 - SVG 产品部件是 src/render/ 中的 React 组件(Dripper.tsx、Server.tsx、Cup.tsx、SetScene.tsx、GlazeMacro.tsx、ScaleDrawing.tsx、Crate.tsx、Defs.tsx)。它们从 var(--glaze-*) 读取颜色,或在购物车中绘制时从显式的 glaze prop 读取颜色 - 在 <body> 顶部渲染一次 <Defs />,作为一个隐藏的 0×0 SVG,其中保存共享的渐变和滤镜(glazeGrad、footGrad、speckle、grain、softShadow),通过 id 引用 - index.html 的 <title> 是 '[BRAND] — [PRODUCT_NAME]'。favicon 是 public/favicon.svg:一个 32×32 的陶土色 #B4532F 圆形,内部有一个 bone #F4EFE6 的环形描边,描边宽度为 2px,半径为 9 - 在项目根目录添加 ASSETS.md,列出 Fontsource 字体和 Lucide 图标及其来源 URL、作者和许可证,并说明所有产品图稿均为原创内联 SVG ## 变量 - [BRAND] — 工作室/品牌名称(默认:"Ollan Ceramics")。虚构的制作者或店铺名称;用于页眉字标、标题、页脚和文案中。 - [PRODUCT_NAME] — 产品名称(默认:"The Ridgeline Pour-Over Set")。页面所销售的单一产品。 - [PRODUCT_KIND] — 产品类型(默认:"handmade stoneware pour-over coffee set")。用于眉题、引言和故事文案的简短描述。 - [SET_PIECES] — 套装内含件数(默认:"dripper, 600 ml server, two 180 ml cups")。逗号分隔列表;驱动"套装内含"卡片以及绘制哪些 SVG 部件。 - [PRICE] — 价格(美元,仅数字)(默认:"148")。保持在 $150 免运费门槛以下,以便进度条有内容可显示。 - [STUDIO_PLACE] — 工作室所在地(默认:"Fernlow Valley")。虚构地名,用于公告栏、故事条和页脚。 - [CREDIT] — 在页脚保留一个小型"Template by VibeFather"链接,指向 https://vibefather.ai/t/ceramics-shop-product-page(默认:是;删除此行即可移除) 页面与区块下的文案是按默认值撰写的。如果你的值不同,请为它们重写每一个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。 将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便日后无需改动组件即可替换内容。 ## 设计 ### 颜色(Colors) - Bone `#F4EFE6` — 页面背景 - Paper `#FBF8F3` — 卡片、画廊舞台、抽屉、手风琴面板 - Sand `#E3D8C6` — 细线边框(1px)、分隔线、公告栏、评分条轨道、缩略图边框 - Ink `#2B2420` — 主文本、页脚背景、选中色板圆环、toast 背景 - Muted `#6E625A` — 次要文本、说明文字、元数据 - Terracotta `#B4532F` — 唯一强调色:主按钮、星星、进度填充、悬停链接、购物车徽标 - Terracotta Dark `#9A4426` — 主按钮悬停/激活 - Clay Foot `#C8A27C` — 每个 SVG 器物上的无釉底足带(阴影侧 #A88560) - Coffee `#3B2418` — SVG 渲染中杯子和分享壶内的液面 - Glaze Oat `#E6D9C2` — 釉色色板:高光 #F6EFE2,基色 #E6D9C2,暗部 #BFAE90 - Glaze Ember `#B4573A` — 釉色色板(默认选中):高光 #D98A68,基色 #B4573A,暗部 #7E3622 - Glaze Moss `#7A8260` — 釉色色板:高光 #A3AA86,基色 #7A8260,暗部 #535A40 - Glaze Tide `#5B7380` — 釉色色板:高光 #8DA3AE,基色 #5B7380,暗部 #3C4F59 - Glaze Coal `#3A3330` — 釉色色板:高光 #6A5F59,基色 #3A3330,暗部 #1F1A18 ### 字体排印(Typography) - 展示字体:产品名称、区块标题、价格、大号评分数字、故事陈述:Fraunces Variable(OFL),字重 400/500 - 正文字体:正文、UI 标签、按钮、导航、说明文字:Inter Variable(OFL),字重 400/500/600 ### 布局与动效(Layout & motion) - 间距:8px 基础网格。容器最大宽度 1240px,居中,移动端水平内边距 24px,1024px 及以上为 40px。区块垂直内边距桌面端 112px、移动端 72px。卡片内边距 28px(移动端 20px)。网格间距 24px,主视觉列间距 64px。字号比例:H1 产品名称 Fraunces 500 48px/1.05 桌面端、36px 移动端,字距 -0.02em,font-variation-settings 'opsz' 96、'SOFT' 50。区块 H2 Fraunces 400 40px/1.1 桌面端、30px 移动端。卡片标题 Fraunces 500 22px。正文 Inter 400 16px/1.65。小标签 Inter 500 12px 大写,字距 0.12em,使用 Muted 色。 - 圆角:画廊舞台 28px;卡片、手风琴面板和抽屉行缩略图 20px;缩略图 14px;按钮、步进器、色板、徽标和 toast 全圆角(9999px)。抽屉外缘无圆角。 - 动效:库:Motion(motion/react)。全局缓动 [0.22, 1, 0.36, 1]。 - 动效:滚动显现:每个区块的标题块和卡片从 y 24px、opacity 0 淡入上移到 1,历时 700ms,whileInView 配合 once: true 和 amount 0.2。网格中的卡片以 80ms 错峰。 - 动效:釉色切换:--glaze-hi/base/lo 自定义属性以 600ms ease 过渡,因此每个渲染同时平滑变色。'Glaze —' 旁的釉色名称标签以 200ms 交叉淡入淡出。 - 动效:画廊视图切换:AnimatePresence 交叉淡入淡出,opacity 加 scale 0.98→1,300ms。 - 动效:蒸汽:滴滤器和分享壶上方三条波浪形 SVG 路径(在套装和滴滤器视图中)。每条上升 translateY 0→-28px,同时 opacity 从 0→0.55→0,历时 6s,循环,延迟分别为 0s、2s 和 4s。Stroke #FFFFFF,宽度 6,linecap round,经 feGaussianBlur stdDeviation 2 模糊。 - 动效:悬停抬升:卡片 translateY -4px,并在 200ms 内将 shadow-soft 换成 shadow-lift。色板缩放至 1.08。缩略图边框提升为 Ink、40% 不透明度。 - 动效:加入购物车:按钮标签切换为 Check 图标加 'Added',持续 1.4s(交叉淡入淡出 150ms),然后抽屉打开。 - 动效:购物车抽屉:面板以 380ms 从 x 100%→0 滑入。遮罩以 250ms 淡入至 rgba(43,36,32,0.4),带 backdrop-blur 2px。新行项目以高度和透明度动画进入,移除的项目折叠退出(布局动画 250ms)。 - 动效:免运费进度条在每次小计变化时以 500ms 动画改变宽度。 - 动效:评分条在滚动进入视图时以 900ms 从 0 动画到其数值,错峰 60ms。 - 动效:手风琴:内容高度以 280ms 自动动画,Plus 图标旋转 45° 以读作关闭标记。 - 动效:Toast:在底部居中上滑 16px 并以 250ms 淡入,停留 3s,然后淡出。 - 动效:prefers-reduced-motion: reduce(用 useReducedMotion 和 CSS 媒体查询检查):无位移或缩放动画,蒸汽路径隐藏,釉色和画廊切换即时完成,抽屉以仅 opacity 的 150ms 淡入出现,评分条以全宽渲染。 - 图像:完全不用位图。每个产品图都是原创内联 SVG(viewBox 0 0 800 800),构建方式相同。每个器物是一个简单轮廓路径,填充 url(#glazeGrad),即水平 linearGradient,0% 处 var(--glaze-hi)、45% 处 var(--glaze-base)、100% 处 var(--glaze-lo)。釉面在每个器物约 82% 处沿手绘波浪形“浸釉线”停止,其下方一条无釉底足带以 #C8A27C 显示,阴影侧为 #A88560。'speckle' 滤镜叠加细小深色铁斑:feTurbulence fractalNoise baseFrequency 0.85、numOctaves 2,然后 feColorMatrix 到稀疏 alpha 阈值,着色 #3A2A20,35% 不透明度,裁剪到釉面区域。每条唇边有白色边缘高光(1.5px 描边,50% 不透明度),并有一条窄的垂直高光条纹(白色,18% 不透明度,模糊)。每个器物位于柔和的接地阴影椭圆上(Ink 18%,模糊 14px)。造型通用且原创。滴滤器是光滑、略凸的锥形,带卷边、扁平圆形底座法兰和右侧一个小半圆环把手,无棱纹或签名细节。分享壶是圆腹卡拉夫瓶,带短拉嘴和收窄的瓶颈。杯子是低矮、无柄的平底杯,略有收分。画廊舞台背景是从中心 #FBF8F3 到边缘 #EFE7DA 的径向渐变。固定的全屏纸张颗粒叠加层(feTurbulence baseFrequency 0.9、numOctaves 2、mix-blend-mode multiply、opacity 0.05、pointer-events none)覆盖整个页面。评论头像为圆圈中的首字母,以其釉色着色。没有任何面孔、人物、产品照片或任何形式的标志。 ## 页面与区块 ### [BRAND] — [PRODUCT_NAME] (`index.html`) 1. **公告栏** — 一行,居中:'Free shipping on orders over $150 · Every set thrown by hand in Fernlow Valley'。Inter 500 13px,Ink。 布局:全宽栏,高 36px,Sand 背景,文字居中。移动端仅显示 'Free shipping over $150'。 2. **页头** — 左侧:logo 标记(一个 22px 的 SVG,Ink 圆环,2px 描边,环绕一个半径 5 的小 Terracotta 实心圆),然后是字标 'Ollan Ceramics',Fraunces 500 22px。中间:锚点链接 'The set'(#the-set)、'Care'(#care)、'Reviews'(#reviews)、'FAQ'(#faq),Inter 500 14px,Muted,悬停时变为 Ink,并有一条从左侧生长的 1px 下划线。右侧:一个 44px 圆形购物车按钮,内含 Lucide ShoppingBag 图标(20px)。一个 Terracotta 徽标(18px 圆形,白色 Inter 600 11px)显示商品总数,变化时以 scale 1→1.25→1 在 300ms 内弹跳。 布局:粘性定位 top 0,高 72px,Bone 背景 85% 不透明度,backdrop-blur 8px,滚动 8px 后才出现 1px Sand 底边框。低于 768px 时中间链接隐藏,仅保留 logo 和购物车。购物车按钮打开抽屉。 3. **产品主视觉** — 画廊:来自 content.views 的五个视图,标注为 'The set'、'Dripper'、'Cup'、'Glaze close-up'、'Scale'。(1) The set:滤杯位于分享壶上方偏左,两个杯子在右侧,略微重叠,带蒸汽。(2) Dripper:滤杯以 3/4 角度放大,内部可见为椭圆边缘和较暗的内渐变,外加蒸汽。(3) Cup:一个杯子放大,咖啡液面为 #3B2418 椭圆,带一小段白色高光弧。(4) Glaze close-up:全画幅微距釉面渐变,带密集斑点,下三分之一处有一条波浪形浸釉线,下方为素坯。(5) Scale:所有部件的线稿,1.5px Ink 描边,釉面填充 30% 不透明度,尺寸线标注为 Inter 500 14px:'Dripper 11 cm'、'Server 14 cm · 600 ml'、'Cup 7.5 cm · 180 ml'。购买面板,从上到下:眉标 'HAND-THROWN STONEWARE · SMALL BATCH'。H1 'The Ridgeline Pour-Over Set'。评分行:五个 16px Lucide Star 图标填充 Terracotta,然后 '4.9 · 128 reviews' 作为指向 #reviews 的链接。价格 '$148',Fraunces 500 30px,旁边 'Free shipping over $150' 为 Muted 14px。段落:'A dripper, a server and two cups, thrown from the same clay and dipped in the same glaze bath. Made for one slow pour in the morning and a second one you share.' 一条 1px Sand 分隔线。标签 'Glaze — Ember'(名称会更新)。五个 36px 圆形色板(Oat、Ember、Moss、Tide、Coal),每个填充从其 hi 色在 30% 30% 到其 base 色的径向渐变,带 1px 内嵌 Ink 圆环 10%。选中的色板有 2px Ink 圆环偏移 3px。色板具有 role radiogroup 和方向键支持,原生 title 属性显示釉面名称。其下方 Muted 14px:'Each glaze breaks differently in the kiln. No two sets match exactly.' 然后一行:数量步进器(胶囊形,1px Sand 边框,高 52px,Lucide Minus 和 Plus 按钮,1 到 10 之间的数字,aria-live)和 'Add to cart · $148' 按钮(填充剩余宽度,高 52px,Terracotta 背景,Bone Inter 600 15px 文字,悬停 Terracotta Dark;标签中的价格乘以数量)。其下三行卖点,18px Lucide 图标为 Muted:Truck 'Ships in 3–5 business days'、RotateCcw '30-day returns, label on us'、PackageCheck 'Breakage in transit fully covered'。 布局:1024px 及以上为 12 列网格。画廊占第 1–7 列,购买面板占第 8–12 列,间距 64px。购买面板 position: sticky,top 96px。画廊舞台:aspect-ratio 1/1,Paper 背景带径向渐变,圆角 28px,shadow-soft,overflow hidden。圆形 40px 上一张/下一张按钮(Lucide ChevronLeft 和 ChevronRight,Paper 背景 90%)距左右边缘 16px,垂直居中。视图说明胶囊位于左下角:Paper 90%,Inter 500 12px,显示如 'The set · 1/5'。舞台下方是一行五个 1:1 缩略图,每个宽 20% 减去间隙(12px 间隙),显示各视图的迷你版本。活动缩略图有 2px Ink 边框,其余为 1px Sand 边框。画廊聚焦时左右方向键切换视图。在 (hover: hover) 和 (pointer: fine) 的设备上缩放:悬停舞台显示一个 180px 圆形镜头(2px Paper 边框,shadow-lift),跟随光标并以 2.5× 比例显示同一 SVG,偏移使光标下区域居中,光标变为 none。触摸缩放:点击舞台将 SVG 缩放到 2×,transform-origin 在点击点,拖动平移,再次点击重置。舞台右上角有一个小的 Lucide ZoomIn 提示芯片。低于 1024px 时主视觉堆叠:画廊在前全宽,然后购买面板不粘性。移动端,一旦主 Add to cart 按钮滚出视野(IntersectionObserver),一个固定底栏滑上来。它高 72px,Paper 背景,带 1px Sand 顶边框和安全区内边距,显示产品名称 Fraunces 16px、价格和一个紧凑的 'Add to cart' 胶囊按钮。 动效:购买面板加载时淡入上移(子元素错开 60ms)。画廊视图之间交叉淡入淡出。釉面过渡 600ms。视图 1 和 2 中蒸汽循环。色板悬停缩放 1.08。 4. **故事条** — 眉标 'FROM THE STUDIO'。陈述句 Fraunces 400 40px/1.15:'Thrown on a kick wheel in Fernlow Valley, one set at a time.' 段落:'We use an iron-rich stoneware, mix five glazes by hand in the studio and fire every set twice. The dripper's single hole keeps the flow slow and even, so the cup tastes of the beans, not of the rush.' 三个统计,每个为大号 Fraunces 500 56px 数字加 Inter 14px Muted 说明:'38 h'、'from wet clay to packed crate';'2'、'firings, the last at 1240 °C';'5'、'glazes mixed in-house'。 布局:全出血 Paper 带,上下 1px Sand 边框。容器内 12 列网格:陈述和段落占第 1–6 列(段落 max-width 52ch),三个统计位于第 8–12 列,为垂直列表,以 1px Sand 分隔线分隔,每个上下内边距 24px。移动端全部堆叠,统计变为 3 列行,数字 28px。 动效:淡入上移显现。统计数字进入视野时从 0 计数到目标值,历时 1.2s(减少动态效果下即时)。 5. **套装内容** — id 'the-set'。眉标 'IN THE CRATE'。H2 'What's in the set'。四张卡片,每张含当前所选釉面的部件 SVG 插图、Fraunces 标题和 Inter 14px Muted 规格行:'Dripper'、'Single-hole cone · fits #2 filters · 11 cm tall';'Server'、'600 ml · pulled spout · 14 cm tall';'Two cups'、'180 ml each · unhandled · 7.5 cm tall';'The crate'、'Molded-pulp crate with 40 unbleached filters and a care card'。木箱卡片显示代码绘制的箱子,色调 #C8A27C 和 #A88560,带木纹,非釉面。 布局:标题块左对齐,max-width 640px,网格上方 48px。桌面 4 列网格,640px 到 1023px 为 2 列,移动端 2 列,间隙 16px。每张卡片为 Paper,圆角 20px,1px Sand 边框。插图区 aspect 4/5,带径向舞台渐变,标题和规格在下方,内边距 20px。 动效:卡片错开淡入上移 80ms,悬停上浮,插图悬停缩放到 1.03,历时 400ms。 6. **保养** — id 'care'。左列:眉标 'CARE',H2 'Care for it like you plan to keep it.',段落 'Stoneware is tough, but it remembers sudden heat. A few habits keep the glaze bright for years.' 右列:手风琴四项。'Washing':'Dishwasher-safe on the top rack. Washing by hand keeps the glaze glossy longer.' 'Heat':'Warm the pieces with hot tap water before pouring boiling water. Never move a piece straight from the fridge to the stove.' 'Microwave':'Safe for reheating. The unglazed foot can get hot, so lift by the rim.' 'Patina and crazing':'Fine lines can appear in lighter glazes over time. They are normal for stoneware and do not affect use.' 第一项默认展开。 布局:桌面两列:左列占 5 列,sticky top 120px,右列占 7 列。手风琴项为 Paper,圆角 20px,1px Sand 边框,间隙 12px。标题行为全宽按钮,Inter 600 16px,右侧 20px Lucide Plus,具有 aria-expanded 和 aria-controls。面板水平内边距 28px。可同时展开多项。移动端堆叠。 动效:高度自动动画 280ms。展开时 Plus 旋转 45°。区块淡入上移。 7. **Shipping and returns(配送与退货)** — 眉题 'DELIVERY'。H2 'Shipping and returns'。三张卡片,每张包含一个 24px 的 Lucide 图标,图标为 Terracotta(陶土色),置于 48px 的 Sand(沙色)圆形内,配有 Fraunces 22px 标题和正文。Truck 'Shipping':'Free over $150, otherwise $9 flat. Packed in molded pulp with no plastic. Ships in 3–5 business days.' RotateCcw 'Returns':'You have 30 days to return an unused set. We email you a prepaid label.' PackageCheck 'Breakage':'If anything arrives chipped or cracked, send us a photo and we will ship a replacement piece the same week.' 布局:桌面端为 3 列网格,移动端堆叠。Paper(纸色)卡片,圆角 20px,1px Sand 边框,28px 内边距。标题块位于网格上方,间距 48px。 动效:卡片以 80ms 错峰淡入上移,悬停时上浮。 8. **Reviews(评价)** — id 'reviews'。眉题 'REVIEWS'。H2 'What people pour with it'。摘要栏:'4.9' 使用 Fraunces 500 80px,五颗 Terracotta 星星,然后 'Based on 128 reviews' 使用 Muted(弱化色)。五条评分条对应 5 到 1 星,计数为 112、12、3、1、0:标签如 '5★' 使用 Inter 500 13px,8px 全圆角 Sand 轨道,Terracotta 填充按 count/128 比例,计数在右侧。评价卡片各显示一个 44px 首字母圆形(釉色基色 25% 不透明度,Ink Inter 600 14px 首字母)、姓名、'Verified buyer · Glaze: <glaze>' 使用 Muted 13px、星星、Fraunces 500 18px 标题和正文段落。六条评价:(1) Maren A., Moss, 5★, 'The pour is slower, in a good way', 'The single hole makes me wait, and I have stopped rushing my mornings. Moss has tiny iron flecks that catch the window light.' (2) Theo R., Oat, 5★, 'Heavier than it looks', 'It holds heat far better than my old glass carafe. The raw clay foot feels great in the hand.' (3) Priya K., Tide, 5★, 'Used the same day it arrived', 'I bought it for my sister. She sent me a photo of her first cup an hour after opening the crate. Packed very well.' (4) Jonah L., Coal, 4★, 'Lovely, one small note', 'Beautiful set. The cups are smaller than I expected at 180 ml, so check the scale view before you order.' (5) Ines V., Ember, 5★, 'Even better in person', 'Ember shifts from rust to almost pink where the glaze thins at the rim.' (6) Sam O., Oat, 5★, 'A second set for the office', 'The first one lives at home. Now I have the same quiet ritual at my desk.' 初始只显示前四条。一个 'Show more reviews' 按钮(胶囊形,1px Ink 边框,Ink 文字,48px 高)显示其余两条,然后隐藏自身。 布局:桌面端为 12 列网格:摘要栏在 1–4 列粘性定位,top 120px,评价填充 6–12 列,为 2 列等高 Paper 卡片网格(非瀑布流)(圆角 20px,1px Sand 边框,24px 内边距,16px 间距)。移动端摘要栏在顶部,评价为单列。按钮居中于网格下方,间距 32px。 动效:评分条以 60ms 错峰增长进入视图。卡片淡入上移。展开的卡片以 80ms 错峰淡入上移。 9. **FAQ(常见问题)** — id 'faq'。眉题 'QUESTIONS'。H2 'Before you order'。五项:'Will my set look exactly like the pictures?','No two sets match. Glazes pool and break differently in every firing, so expect small shifts in tone and speckle.' 'What filters does the dripper take?','Standard #2 cone filters. We include 40 unbleached ones to start.' 'Is the glaze food-safe?','Yes. All five glazes are lead-free and fired to about 1240 °C.' 'Can I buy pieces separately?','Not yet. We sell complete sets so every piece comes out of the same firing.' 'How long until it ships?','Sets in stock ship in 3–5 business days. Around the holidays, allow up to 10.' 布局:单个居中列,max-width 760px,标题居中于上方。手风琴使用与 Care 相同的组件,但一次只能打开一项,且全部初始关闭。各项之间用 1px Sand 分隔线隔开,无卡片背景,24px 垂直内边距。 动效:与 Care 相同的手风琴动效,外加区块淡入上移。 10. **Footer(页脚)** — 字标 'Ollan Ceramics' 配 Bone(骨色)标志图形,以及一行 'Small-batch stoneware for slow mornings.' 使用 Bone 70% 不透明度。三个链接列,均指向本页锚点:Shop('The set' #the-set、'Glazes' #top、'Reviews' #reviews);Studio('Our process' #story、'Care' #care);Help('Shipping' #shipping、'FAQ' #faq)。底部一行由 1px Bone 15% 不透明度的分隔线隔开:左侧 '© 2026 Ollan Ceramics. Thrown in Fernlow Valley.',右侧 'This is a demo store. Nothing here is for sale.',均为 Inter 13px,Bone 60% 不透明度。 布局:全宽 Ink #2B2420 背景配 Bone 文字,顶部 80px、底部 40px 内边距。桌面端为 12 列网格:品牌块跨 5 列,三个链接列各跨 2 列,从第 7 列开始。移动端品牌块堆叠在 2 列链接网格上方。给故事条带设置 id 'story',给配送区块设置 id 'shipping',以便链接解析。 动效:仅链接悬停下划线。 11. **Cart drawer and toast(购物车抽屉与提示条,全局覆盖层)** — 抽屉头部:'Your cart (n)' 使用 Fraunces 500 22px,右侧关闭按钮(Lucide X)。免运费区块包含一行 'You're $2 away from free shipping'(计算为 150 − 小计),当小计达到 $150 或以上时变为 'Free shipping unlocked' 并配 Lucide Check 图标,上方为 8px Sand 轨道,Terracotta 填充为 min(subtotal/150, 1)。行项目显示 72px Paper 缩略图,内含该行釉色的迷你 SetScene(作为显式 glaze prop 传入)、产品名 Inter 600 15px、'Glaze: Ember' 使用 Muted 13px、紧凑数量步进器(36px 高,最小 1,最大 10)、右侧行价格,以及一个 'Remove' 文字按钮,Muted 13px,悬停时下划线。再次添加相同釉色会增加该行数量,不同釉色则创建新行。项目下方是虚线 1px Sand 框中的加购行:一个小型代码绘制的折叠亚麻布 SVG,颜色 #E6DCCB,'Linen pour cloth'、'$12' 和一个 'Add' 胶囊按钮。一旦布巾加入购物车,该行隐藏。页脚:'Subtotal' 配金额 Fraunces 500 22px,注释 'Shipping and taxes calculated at checkout.' 使用 Muted 13px,然后是全宽 'Checkout' 按钮(Terracotta,52px,全圆角,Lucide Lock 图标 16px)。点击仅显示提示条 'This is a demo store. Checkout is turned off.' 空状态:一个 80px 轮廓 SVG 杯子,用 Ink 描边 40% 不透明度绘制,'Your cart is empty' 使用 Fraunces 22px,以及一个 'Keep browsing' 轮廓胶囊按钮关闭抽屉。提示条:Ink 胶囊配 Bone Inter 500 14px 文字和 Lucide Info 图标,max-width 90vw。 布局:抽屉固定于右侧,全高,桌面端 440px 宽,移动端 100vw,Paper 背景,1px Sand 左边框和 shadow-lift。内部为 flex 列:72px 头部带底部边框;免运费区块 24px 内边距;可滚动项目列表 24px 内边距,项目间 1px Sand 分隔线;加购行;以及固定于底部的页脚,带顶部边框、24px 内边距和安全区内边距。遮罩覆盖页面,点击关闭抽屉。抽屉具有 role dialog、aria-modal true 和焦点陷阱。打开时焦点移至关闭按钮,关闭时返回触发元素。Esc 关闭,打开时锁定 body 滚动。提示条固定于底部居中,距底部 24px(移动端显示粘性栏时为 96px),z-index 高于抽屉。 动效:抽屉滑入伴随遮罩淡入,行项目使用布局动画,如 Motion 下所列。提示条上滑并淡入。在减少动态效果下,一切仅使用不透明度。 ## 资产 - 字体:Fraunces Variable 和 Inter Variable,通过 @fontsource-variable/fraunces 和 @fontsource-variable/inter(OFL-1.1)自托管,在 main.tsx 中导入并由 Vite 打包。在 ASSETS.md 中列出两者,注明来源 https://fontsource.org、作者(Fraunces 为 Undercase Type,Inter 为 Rasmus Andersson)以及许可证。 - 图标:仅使用 lucide-react(ISC)图标:ShoppingBag、Star、Minus、Plus、Truck、RotateCcw、PackageCheck、ChevronLeft、ChevronRight、ZoomIn、X、Check、Lock、Info。从 npm 包中进行 tree-shaking,并在 ASSETS.md 中列出,注明来源 https://lucide.dev 以及 ISC 许可证。 - 图像:不使用位图图像。每个产品视图、单品卡片、购物车缩略图、板条箱、亚麻布、空购物车杯子、徽标标记和 favicon 都是在 src/render/ 和 public/favicon.svg 下用代码绘制的原创内联 SVG。炻器斑点(stoneware speckle)和纸张纹理(paper grain)是 SVG 滤镜(feTurbulence)。在 ASSETS.md 中注明所有插图均为原创且由代码绘制。 ## 禁止事项 - 无后端:不写服务器代码、API 路由、数据库、认证、分析或第三方 API 调用。购物车只存在于 React state 和 localStorage 中。 - 无可用结账、支付表单、卡号输入或支付组件。Checkout 按钮只显示演示 toast。 - 无任何会提交到某处的表单。没有 newsletter 注册。 - 不使用真实支付服务商的 logo 或徽章,也不使用真实陶瓷或咖啡品牌名称、logo、口号或产品名称。 - 不要复制真实品牌标志性的滤杯轮廓或商标形状。绘制上文描述的通用原创形态:光滑锥体、卷边、平法兰和环形手柄,不带螺旋肋条或独特开孔。 - 不使用产品照片、图库图片或占位图服务。所有图形均为代码内联 SVG 绘制。 - 不使用真实人物面孔或肖像。评价者仅以釉色圆圈中的首字母出现,姓名均为虚构。 - 不要复制现有店铺的文案。仅使用 src/content.ts 中的虚构文案。 - 不要从 fonts.googleapis.com、fonts.gstatic.com 或任何 CDN 加载字体。通过 Fontsource 自托管 Fraunces 和 Inter。不使用商业或自定义品牌字体。 - 不使用 CDN 的 <script> 或 <link> 标签。所有内容均本地打包在 dist/ 中。 - 不要使用 Aceternity UI、Tailwind Plus / Tailwind UI 或购买的模板源码。每个组件都从零构建。 - 除非用户要求,不要更改技术栈(Vite 5 + React 18 + TypeScript、Tailwind CSS 3.4、Motion、lucide-react)。 - 生产构建中不生成 source map,且不要将 src/ 复制到 dist/。 - 使用相对资源路径(Vite base './')。页内导航仅使用 #anchors,任何其他内部链接必须指向文件名,如 ./index.html,绝不能指向裸目录。 - 保持 dist/ 在 20 MB 以下。 - 在 1440×900 或 390×844 下无控制台错误或警告,移动端无横向滚动。 - 尊重 prefers-reduced-motion:无蒸汽、无变换,釉色和画廊切换即时完成。 - 无 SEO 附加项:无 meta 描述、Open Graph 标签、JSON-LD 或 sitemap。仅保留 <title> 和 favicon。 - 除页脚中可选的 credit 链接外,不要在网站任何位置提及 VibeFather。 --- — Prompt by VibeFather · https://vibefather.ai/t/ceramics-shop-product-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
个人项目可免费使用(CC BY-NC 4.0)。 商业用途需要 Pro.
DESIGN.md
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
name: "Ceramics Shop Product Page"
colors:
bone: "#F4EFE6"
paper: "#FBF8F3"
sand: "#E3D8C6"
ink: "#2B2420"
muted: "#6E625A"
terracotta: "#B4532F"
terracotta_dark: "#9A4426"
clay_foot: "#C8A27C"
coffee: "#3B2418"
glaze_oat: "#E6D9C2"
glaze_ember: "#B4573A"
glaze_moss: "#7A8260"
glaze_tide: "#5B7380"
glaze_coal: "#3A3330"
typography:
display_product_name_section_headings_prices_big_rating_number_story_statement: { family: "Fraunces Variable", weights: [400, 500] }
text_body_ui_labels_buttons_nav_captions: { family: "Inter Variable", weights: [400, 500, 600] }
spacing: "8px base grid. Container max-width 1240px, centered, horizontal padding 24px on mobile and 40px from 1024px up. Section vertical padding 112px on desktop and 72px on mobile. Card padding 28px (20px on mobile). Grid gap 24px, hero column gap 64px. Type scale: H1 product name Fraunces 500 48px/1.05 desktop, 36px mobile, letter-spacing -0.02em, font-variation-settings 'opsz' 96, 'SOFT' 50. Section H2 Fraunces 400 40px/1.1 desktop, 30px mobile. Card titles Fraunces 500 22px. Body Inter 400 16px/1.65. Small labels Inter 500 12px uppercase with 0.12em tracking, in Muted."
radius: "Gallery stage 28px; cards, accordion panels and drawer line thumbnails 20px; thumbnails 14px; buttons, steppers, swatches, badges and toast fully rounded (9999px). The drawer has no radius on its outer edge."
---
# Ceramics Shop Product Page — Design System
Apply this design system to an existing project. It describes the look and feel only; for the full site, use prompt.md.
## Colors
- **Bone** `#F4EFE6` — Page background
- **Paper** `#FBF8F3` — Cards, gallery stage, drawer, accordion panels
- **Sand** `#E3D8C6` — Hairline borders (1px), dividers, announcement bar, rating bar tracks, thumbnail borders
- **Ink** `#2B2420` — Primary text, footer background, selected-swatch ring, toast background
- **Muted** `#6E625A` — Secondary text, captions, metadata
- **Terracotta** `#B4532F` — Single accent: primary buttons, stars, progress fills, links on hover, cart badge
- **Terracotta Dark** `#9A4426` — Primary button hover/active
- **Clay Foot** `#C8A27C` — Unglazed foot band on every SVG piece (shadow side #A88560)
- **Coffee** `#3B2418` — Liquid surface inside cups and server in SVG renders
- **Glaze Oat** `#E6D9C2` — Glaze swatch: hi #F6EFE2, base #E6D9C2, lo #BFAE90
- **Glaze Ember** `#B4573A` — Glaze swatch (default selected): hi #D98A68, base #B4573A, lo #7E3622
- **Glaze Moss** `#7A8260` — Glaze swatch: hi #A3AA86, base #7A8260, lo #535A40
- **Glaze Tide** `#5B7380` — Glaze swatch: hi #8DA3AE, base #5B7380, lo #3C4F59
- **Glaze Coal** `#3A3330` — Glaze swatch: hi #6A5F59, base #3A3330, lo #1F1A18
## Typography
- **Display: product name, section headings, prices, big rating number, story statement** — Fraunces Variable (OFL), weights 400/500. Self-host the font files.
- **Text: body, UI labels, buttons, nav, captions** — Inter Variable (OFL), weights 400/500/600. Self-host the font files.
## Spacing & shape
- Spacing: 8px base grid. Container max-width 1240px, centered, horizontal padding 24px on mobile and 40px from 1024px up. Section vertical padding 112px on desktop and 72px on mobile. Card padding 28px (20px on mobile). Grid gap 24px, hero column gap 64px. Type scale: H1 product name Fraunces 500 48px/1.05 desktop, 36px mobile, letter-spacing -0.02em, font-variation-settings 'opsz' 96, 'SOFT' 50. Section H2 Fraunces 400 40px/1.1 desktop, 30px mobile. Card titles Fraunces 500 22px. Body Inter 400 16px/1.65. Small labels Inter 500 12px uppercase with 0.12em tracking, in Muted.
- Radius: Gallery stage 28px; cards, accordion panels and drawer line thumbnails 20px; thumbnails 14px; buttons, steppers, swatches, badges and toast fully rounded (9999px). The drawer has no radius on its outer edge.
## Motion
- Library: Motion (motion/react). Global easing [0.22, 1, 0.36, 1].
- Scroll reveal: every section's heading block and cards fade up from y 24px, opacity 0 to 1, over 700ms, whileInView with once: true and amount 0.2. Cards in a grid stagger by 80ms.
- Glaze change: the --glaze-hi/base/lo custom properties transition over 600ms ease, so every render shifts color smoothly at the same time. The glaze name label beside 'Glaze —' crossfades over 200ms.
- Gallery view change: AnimatePresence crossfade, opacity plus scale 0.98→1, 300ms.
- Steam: three wavy SVG paths above the dripper and server (in the set and dripper views). Each rises translateY 0→-28px while opacity goes 0→0.55→0 over 6s, looping, with delays of 0s, 2s and 4s. Stroke #FFFFFF, width 6, linecap round, blurred by feGaussianBlur stdDeviation 2.
- Hover lifts: cards translateY -4px and swap shadow-soft for shadow-lift over 200ms. Swatches scale to 1.08. Thumbnails raise their border to Ink at 40% opacity.
- Add to cart: the button label swaps to a Check icon plus 'Added' for 1.4s (crossfade 150ms), then the drawer opens.
- Cart drawer: the panel slides x 100%→0 over 380ms. The overlay fades to rgba(43,36,32,0.4) with backdrop-blur 2px over 250ms. New line items animate height and opacity in, and removed items collapse out (layout animation 250ms).
- Free-shipping bar width animates 500ms whenever the subtotal changes.
- Rating bars animate width from 0 to their value over 900ms when scrolled into view, staggered by 60ms.
- Accordion: content height auto-animates 280ms, and the Plus icon rotates 45° to read as a close mark.
- Toast: slides up 16px and fades in over 250ms at bottom center, stays 3s, then fades out.
- prefers-reduced-motion: reduce (check with useReducedMotion and the CSS media query): no translate or scale animations, steam paths hidden, glaze and gallery changes are instant, the drawer appears with an opacity-only fade of 150ms, and rating bars render at full width.
## Imagery
No bitmaps at all. Every product image is an original inline SVG (viewBox 0 0 800 800) built the same way. Each piece is a simple silhouette path filled with url(#glazeGrad), a horizontal linearGradient going var(--glaze-hi) at 0%, var(--glaze-base) at 45% and var(--glaze-lo) at 100%. The glaze stops about 82% down each piece at a hand-drawn wavy 'dip line', and below it a band of unglazed foot shows in #C8A27C with a #A88560 shadow side. A 'speckle' filter overlays tiny dark iron flecks: feTurbulence fractalNoise baseFrequency 0.85, numOctaves 2, then feColorMatrix to a sparse alpha threshold, colored #3A2A20, at 35% opacity, clipped to the glazed area. A white rim highlight runs along each lip (1.5px stroke, 50% opacity), with a narrow vertical highlight streak (white, 18% opacity, blurred). Each piece sits on a soft ground shadow ellipse (Ink at 18%, blurred 14px). The forms are generic and original. The dripper is a smooth, slightly convex cone with a rolled rim, a flat round base flange and a small half-round loop handle on the right, with no ribs or signature details. The server is a round-bellied carafe with a short pulled spout and a narrowing neck. The cups are low, unhandled tumblers with a slight taper. The gallery stage background is a radial gradient from #FBF8F3 at the center to #EFE7DA at the edges. A fixed full-screen paper-grain overlay (feTurbulence baseFrequency 0.9, numOctaves 2, mix-blend-mode multiply, opacity 0.05, pointer-events none) covers the whole page. Review avatars are initials in circles tinted with their glaze color. There are no faces, people, product photos or logos of any kind.
## Tone
Quiet, warm and plain-spoken, like a potter describing their work at a market stall. Short sentences, concrete numbers (ml, cm, °C, days), no hype words, no exclamation marks.
---
— Prompt by VibeFather · https://vibefather.ai/t/ceramics-shop-product-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 一个蜡烛工作室:将 BRAND 和 PRODUCT_NAME 设置为你的香型,用 SET_PIECES 表示罐子和盖子,并将釉料色板映射到蜡的颜色。
- 一个花盆制作者:将 PRODUCT_KIND 改为粗陶花盆,在 SET_PIECES 中列出花盆和托盘,并重写保养折叠面板以涵盖排水和防冻。
- 一个茶具卖家:保留釉料选择器,将产品重命名为茶具,并围绕你的 STUDIO_PLACE 和烧制方法重做故事条。
- 一个独立制作者的发布页:为限量发售设置 PRICE,将评价和 FAQ 指向你自己的工作室,并保留免运费进度条作为购物车激励。
陶瓷商店产品页:常见问题
陶瓷商店产品页上的釉料选择器是如何工作的?
陶瓷商店产品页模板在粘性购买面板中显示一排釉料色板。选择一个色板会将所选釉料的高光、底色和阴影颜色设置为页面 body 上的 CSS 自定义属性,产品的每一张 SVG 渲染图都会在 600ms 内过渡到该颜色。画廊视图、单品卡片和购物车缩略图都会一起重新着色,因此整个页面都会反映你所选的饰面。
怎么用 AI 做一个陶瓷商店产品页?
复制本页的提示词,或者运行 npx vibefather add ceramics-shop-product-page,把 [BRAND]、[PRICE]、[SET_PIECES]、[PRODUCT_KIND] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。