用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
一个锐利、工业设计风格的消费电子店面,展示在一组统一影棚拍摄中拍摄的无品牌虚构设备。通过可展开的品类大型菜单浏览手机、笔记本电脑、音频、相机和智能家居;按价格、虚构系列名称、屏幕尺寸、电池续航和外观颜色筛选产品;探索带规格表和评价的变体驱动产品页;并排对比最多三件产品;在滑出式购物车抽屉中添加可选的 2 年延保计划;走完多步模拟结账流程;查询订单追踪码;浏览限时优惠。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 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 仍然免费。
$9/月起 · 年付和终身正在黑五特惠
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
改成你自己的
- 相机和镜头零售商:保留 Optic 系列的框架,将 STORE_NAME 设置为你的店铺,并将规格筛选替换为传感器尺寸和镜头卡口。
- 翻新手机卖家:使用“手机”品类,将电池续航设为首要筛选条件,并根据你的保修条款重写延保计划文案。
- 智能家居安装商:将“智能家居”品类重命名为你的服务套餐,并将支持邮箱链接到你的安装帮助台。
- 音频设备商店:依托 Acoustic 系列,保留用于驱动单元尺寸的对比表,并将优惠页面改为季节性套餐优惠。
消费电子商店:常见问题
如何为用 AI 构建的电子产品商店添加产品对比功能?
消费电子商店模板包含一个对比路由,购物者最多可固定三件产品,并查看一个并排表格,其中最佳规格会高亮显示。要使用它,请在品类目录上添加“+ 对比”固定项,然后调整对比表中显示哪些规格行。对比 ID 会保存在 localStorage 中,因此选择在页面重新加载后仍然保留。
我可以用这个模板销售产品,还是它只是一个目录?
消费电子商店模板是一个店面,包含购物车抽屉、变体定价、可选延保计划以及一个三步模拟结账流程,会生成可追踪的订单码。它不连接支付处理商或后端,因此真实销售需要单独的结账集成。它可作为零售商和电商团队的产品目录和演示店面。