关于这个模板
一个锐利、工业设计风格的消费电子产品店面,展示在统一影棚拍摄的无品牌虚构设备。通过可展开的品类巨型菜单浏览手机、笔记本电脑、音频、相机和智能家居;按价格、虚构系列名称、屏幕尺寸、电池续航和外观颜色筛选产品;探索带规格表和评价的变体驱动产品页;并排对比最多三款设备;在滑出式购物车抽屉中添加可选的 2 年保障计划;逐步完成多步模拟结账;查询订单追踪码;并浏览限时优惠。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Consumer Electronics Store
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
Build a multi-category consumer electronics store for [STORE_NAME] ([TAGLINE]; support: [SUPPORT_EMAIL]) in pure crisp white (#FFFFFF), graphite (#1C1F24), electric blue (#2D6BFF), and sale red (#FF3B30). All devices are invented, brand-free industrial hardware across five series (Core, Air, Studio, Optic, Echo-free Acoustic) photographed in one uniform light-grey studio shoot with zero logos or readable text. Sync seven hash routes bidirectionally with window.location.hash: (1) #/home — Editorial hardware showcase hero featuring flagship matte laptop & phone, quick category tiles, Deals spotlight, and top-rated picks; (2) #/category — Multi-category catalog with interactive Mega Menu dropdown plus spec filters (Category, Price Ceiling, Series Name, Screen/Driver Size, Minimum Battery Hours, Finish Color) and '+ Compare' pins; (3) #/product — Full Product Detail page with studio gallery, Finish Color swatches, Storage/Tier variants updating price live, Add to Cart + optional 2-Year Care+ Protection Plan checkbox, structured Spec Table, and customer reviews; (4) #/compare — Side-by-side comparison table supporting up to 3 selected products with highlighted best-in-class specs and quick Add to Cart buttons; (5) #/deals — Curated Deals page with red (#FF3B30) savings pills, stock meters, and instant bundle discounts; (6) #/checkout — Three-step Mock Checkout flow (Shipping → Delivery Speed → Review & Place Demo Order, clearly labelled no real payment) that automatically creates a real trackable order code; (7) #/track — Order Tracking lookup pre-seeded with two sample order IDs ('VG-84210' and 'VG-91045') plus any newly placed mock order showing a 4-stage fulfillment stepper. Include a persistent slide-over Cart Drawer accessible from every page with quantity steppers and per-item 2-Year Protection Plan add-on toggles. Zero calendar dates or 4-digit years anywhere.
- Audience: Everyday shoppers, creatives, hardware enthusiasts, and e-commerce teams.
- Goal: Make technical hardware comparison, variant selection, protection add-ons, and mock checkout effortless and trustworthy.
- Tone: Precision industrial design—uncluttered, technical specs presented cleanly with crisp visual restraint.
## Stack
- Framework: Vite 6 + React 18 + TypeScript
- Styling: Tailwind CSS 4
- Libraries: lucide-react (ISC), @fontsource/space-grotesk (OFL-1.1), @fontsource/inter (OFL-1.1), @fontsource/jetbrains-mono (OFL-1.1)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
- Set base: './' and build: { sourcemap: false } in vite.config.ts.
- Import @fontsource/space-grotesk (600, 700), @fontsource/inter (400, 500, 600), and @fontsource/jetbrains-mono (500, 600) in src/main.tsx.
- Bundle all 5 generated brand-free studio product WebP photos locally under public/images/ and document them in ASSETS.md.
- Persist cart items, protection plan selections, compare IDs, and placed mock orders in localStorage; sync all routes bidirectionally with window.location.hash.
## Variables
- [STORE_NAME] — Storefront Name (default: "VoltGrid Hardware"). Fictional consumer electronics store name
- [TAGLINE] — Storefront Tagline (default: "Engineered Essentials. Zero Brand Markup."). Short industrial-design headline tagline
- [SUPPORT_EMAIL] — Support Email (default: "[email protected]"). Sample RFC-2606 .example support address
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/consumer-electronics-store 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.Pro 模板
解锁完整提示词和源码
- 完整提示词:设计、版块、动效、素材
- 每个在线演示的源码
- 商用授权
在线演示和 DESIGN.md 仍然免费。
DESIGN.md
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
name: "Consumer Electronics Store"
colors:
studio_white: "#FFFFFF"
graphite_chassis: "#1C1F24"
electric_blue: "#2D6BFF"
sale_red: "#FF3B30"
cyclorama_grey: "#F3F5F8"
typography:
product_names_headlines: { family: "Space Grotesk", weights: [600, 700] }
body_reviews_filters: { family: "Inter", weights: [400, 500, 600] }
prices_skus_specs: { family: "JetBrains Mono", weights: [500, 600] }
spacing: "Crisp top utility strip + expandable Mega Menu header + 1280px structured product grids with generous studio breathing room."
radius: "16px clean hardware cards on #F3F5F8 studio plinths with sharp 1px borders."
---
# Consumer Electronics Store — 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
- **Studio White** `#FFFFFF` — Primary storefront background
- **Graphite Chassis** `#1C1F24` — Primary typography, dark spec headers, and structural contrast
- **Electric Blue** `#2D6BFF` — Primary Add-to-Cart, active filters, and compare highlights
- **Sale Red** `#FF3B30` — Deals savings badges and low-stock indicators
- **Cyclorama Grey** `#F3F5F8` — Product studio card staging backdrop
## Typography
- **Product Names & Headlines** — Space Grotesk (OFL), weights 600/700. Self-host the font files.
- **Body, Reviews & Filters** — Inter (OFL), weights 400/500/600. Self-host the font files.
- **Prices, SKUs & Specs** — JetBrains Mono (OFL), weights 500/600. Self-host the font files.
## Spacing & shape
- Spacing: Crisp top utility strip + expandable Mega Menu header + 1280px structured product grids with generous studio breathing room.
- Radius: 16px clean hardware cards on #F3F5F8 studio plinths with sharp 1px borders.
## Motion
- Smooth Mega Menu hover/click panel, slide-over Cart Drawer with instant subtotal + protection-plan math, and live spec filtering.
## Imagery
Five brand-free invented industrial hardware products (matte smartphone, ultra-slim aluminum laptop, over-ear studio headphones, compact rangefinder camera, cylindrical woven smart speaker) photographed in one clean neutral-grey studio shoot with zero logos or readable text.
## Tone
Precision industrial design—uncluttered, technical specs presented cleanly with crisp visual restraint.
---
— Prompt by VibeFather · https://vibefather.ai/t/consumer-electronics-store · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 相机和镜头零售商:将 STORE_NAME 设为你的店铺,保留 Optic 系列命名用于你的机身,并使用屏幕和驱动单元尺寸筛选器来筛选传感器和镜头规格。
- 音频设备专家:将 TAGLINE 设为你以音质为先的承诺,围绕耳机和音箱重命名系列,并让对比表高亮电池小时数和驱动单元尺寸。
- 翻新手机卖家:使用外观颜色和存储变体来表示成色和容量,并将保障计划开关替换为你自己的保修措辞。
- 智能家居安装商:保留智能家居品类,将影棚照片替换为安装场景,并将支持邮箱链接到你的预约收件箱。
消费电子产品商店:常见问题
消费电子产品商店模板的规格筛选和三设备对比是如何工作的?
消费电子产品商店模板按品类、价格上限、系列名称、屏幕或驱动单元尺寸、最低电池小时数和外观颜色筛选商品目录,每个产品都有“+ 对比”固定按钮。对比页面并排展示最多三款已固定的产品,高亮每一行中同类最佳规格,并在每台设备旁保留快捷“加入购物车”按钮。选择会保存在 localStorage 中,因此购物者可以离开后再回来查看同一对比。
2 年保障计划和购物车抽屉是如何工作的?
消费电子产品商店模板在每个页面都可以打开一个滑出式购物车抽屉,带有数量步进器和可选的 2 年 Care+ 保障计划逐项开关。同一计划也可以从产品页复选框添加。购物车商品、计划选择和已下的模拟订单都保存在 localStorage 中,因此购物者在首页、品类页、产品页、对比页、优惠页、结账页和追踪页之间切换时,抽屉会保持其状态。
怎么用 AI 做一个消费电子产品商店?
复制本页的完整提示词(Pro),或者运行 npx vibefather add consumer-electronics-store,把 [TAGLINE]、[STORE_NAME]、[SUPPORT_EMAIL] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。