用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
这是一个温暖、柔和光线的智能家居新品牌落地页,用 React、Tailwind CSS 和 Motion 构建,完全用代码绘制——里面没有一张照片。首屏用一座可交互的剖面房屋来卖点:手写的 SVG 两层住宅,带一个附属车库。点击或按 Tab 键选中客厅、厨房、卧室或车库,该房间会以平静的青色高亮,旁边的卡片列出里面的设备和该房间运行的一项自动化。产品阵容区将六张设备卡片与第二张简化房屋地图配对:悬停卡片,设备所在位置的圆点会脉冲。两个 CSS 手机模型展示应用,第二部手机播放标志性场景——离家——依次勾选四个设备,并带一个重播按钮。事实条、三个示例定价套装、一个 FAQ 和一个预留套件的邮件订阅带收尾。
它适合硬件创始人和独立开发者发布设备套件、传感器套装或任何需要展示而非描述的平静消费产品。外观是暖白色搭配圆润友好的卡片、大圆角和恰好一个青色强调色,专用于交互、高亮和主按钮。动效保持轻柔:房间交叉淡入、设备图钉轻柔弹出和平静的滚动显现,在减少动态效果模式下全部静止且完整。
要适配它,请更改品牌、产品、受众和标志性场景的名称;提示词要求构建者重写每个标题、设备、自动化和 FAQ 以匹配,而房屋、手机和布局保持不变。房间内容由一个内容文件驱动,因此更换每个房间里的东西只需几分钟,而不是重新设计。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Smart Home Product Landing Page
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
A one-page, warm-white landing page for [BRAND], [PRODUCT]. The hero is anchored by a large interactive cutaway SVG house: clicking a room (living, kitchen, bedroom, garage) highlights it in the single teal accent and shows that room's devices and its one automation in an info card. Below: a four-fact strip, a six-device lineup paired with a simplified house mini-map that pulses where each device lives, two CSS phone mockups (app dashboard and the [SIGNATURE_SCENE] scene playing device by device), three bundles with sample pricing and a quiet starter note, an FAQ, and a reserve-your-kit email band. Every visual is drawn in code — SVG house, device glyphs, phones, logo, favicon. No photographs anywhere.
- Audience: [AUDIENCE] shopping for their first smart home kit, and hardware founders or indie makers launching a device or sensor product who need a landing page that demonstrates rather than describe.
- Goal: Let visitors feel how the system behaves in two clicks — explore rooms in the cutaway house, watch the [SIGNATURE_SCENE] scene run in the phone — then move them to a bundle and the reserve-email band.
- Tone: Warm, calm and specific. Short sentences, plain verbs, real numbers (lumens, battery months, sample prices). Gently playful but never cute-obsessive; no hype words, no exclamation stacking.
## Stack
- Framework: Vite 5 + React 18 + TypeScript
- Styling: Tailwind CSS 3.4
- Libraries: react (MIT), react-dom (MIT), motion (motion.dev, import from motion/react) (MIT), lucide-react (ISC), tailwindcss (MIT), postcss (MIT), autoprefixer (MIT), vite (MIT), @vitejs/plugin-react (MIT), typescript (Apache-2.0), @fontsource-variable/nunito (OFL-1.1), @fontsource-variable/figtree (OFL-1.1), @fontsource/ibm-plex-mono (OFL-1.1)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
- Scaffold with npm create vite@latest using the react-ts template. One page: index.html at the project root with entry src/main.tsx. package.json scripts: dev 'vite', build 'tsc -b && vite build', preview 'vite preview'.
- vite.config.ts: base './', plugins [react()], build { outDir 'dist', sourcemap false, assetsInlineLimit 0 }. No images ship in this template, so dist/ is JS, CSS, woff2 and favicon only; keep it under 3 MB.
- Tailwind 3.4 through PostCSS (tailwindcss + postcss + autoprefixer), content ['./index.html', './src/**/*.{ts,tsx}']. In tailwind.config.ts extend colors with kebab-case keys (cream, shell, panel, sand, line, line-strong, ink, muted, faint, teal, teal-deep, teal-tint), fontFamily display ['Nunito Variable', 'system-ui', 'sans-serif'], sans ['Figtree Variable', 'system-ui', 'sans-serif'], mono ['IBM Plex Mono', 'ui-monospace', 'monospace'], borderRadius { card: '24px', inner: '16px', chip: '10px', house: '28px' }, maxWidth { container: '1160px' }, boxShadow { soft: '0 24px 60px -30px rgba(44,38,32,0.28)', lift: '0 16px 36px -20px rgba(44,38,32,0.22)' }.
- src/fonts.ts imports @fontsource-variable/nunito (weights 600,700,800), @fontsource-variable/figtree (400,500,600,700) and @fontsource/ibm-plex-mono (400,500,600, weight files 400.css/500.css/600.css); src/main.tsx imports src/fonts.ts and src/index.css. index.css holds the Tailwind layers, body background #FAF6EF and color #2C2620, and a @media (prefers-reduced-motion: reduce) block that shortens CSS animations and transitions to 0.01ms.
- File layout: src/content.ts (all copy, room data, device data, bundles, FAQ — typed, no copy in components), src/lib/brand.ts (brandSlug, emailDomain, companyName), src/components/houseGeometry.ts (SVG coordinates for the cutaway house and mini map), src/components/ (Header.tsx, MobileMenu.tsx, Hero.tsx, CutawayHouse.tsx, RoomInfo.tsx, FactsStrip.tsx, DeviceLineup.tsx, MiniMap.tsx, AppPreview.tsx, PhoneDashboard.tsx, PhoneScene.tsx, Bundles.tsx, Faq.tsx, CtaBand.tsx, Footer.tsx, Button.tsx, Reveal.tsx), src/App.tsx composing them in page order.
- src/components/CutawayHouse.tsx renders the geometry described in the Hero section from the ROOMS array in content.ts; it never hard-codes copy. Room selection lives in Hero state (default 'living'); selecting a room (click, Enter or Space) updates the highlight, pins and RoomInfo together.
- Reveal.tsx wraps sections in Motion whileInView fade-up (opacity 0 -> 1, y 20 -> 0, duration 0.6, ease [0.22, 1, 0.36, 1], viewport once with amount 0.2) and renders children unanimated when reduced motion is on. Wrap the app in MotionConfig reducedMotion='user'.
- index.html: lang en, <meta name='theme-color' content='#FAF6EF'>, <link rel='icon' href='./favicon.svg' type='image/svg+xml'>, <title>[BRAND] — A home that handles itself, gently</title>. public/favicon.svg is the logo mark (teal rounded square with the white cutaway-house glyph).
- Write ASSETS.md at the project root: state that every visual (house, mini map, device glyphs, phone mockups, logo, favicon) is drawn in code for this project, and list the Fontsource packages (OFL-1.1, https://fontsource.org) and lucide-react (Lucide contributors, ISC, https://lucide.dev). There are no image files.
## Variables
- [BRAND] — Brand name (default: "Hearthlane"). Invented product name. Used in the wordmark, page title, hero subhead, app UI, FAQ, CTA and the email domain. Never a real smart home brand, ecosystem or voice assistant.
- [PRODUCT] — What the product is (default: "a starter smart home system of six small, calm devices"). One lowercase phrase that completes '[BRAND] is ...'. Drives the hero subhead, lineup intro, app copy and FAQ. Any small-device kit fits: sensors, cameras-free security, lighting.
- [AUDIENCE] — Who it is for (default: "first-time homeowners and young families"). Plural noun phrase. Used in the hero subhead, bundles note and footer line; FAQ answers adapt to it.
- [SIGNATURE_SCENE] — Flagship automation name (default: "Leaving Home"). Title case scene name shown in the second phone, the hero ghost button and the app copy. Pick a short named routine (Away Mode, Night Watch) that fits the new brand.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/smart-home-product-landing-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.Pro 模板
解锁完整提示词和源码
- 完整提示词:设计、版块、动效、素材
- 每个在线演示的源码
- 商用授权
在线演示和 DESIGN.md 仍然免费。
DESIGN.md
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
name: "Smart Home Product Landing Page"
colors:
cream: "#FAF6EF"
shell: "#F4EDE2"
panel: "#FFFFFF"
sand: "#EFE7DA"
line: "#E5DACB"
line_strong: "#D6C7B0"
ink: "#2C2620"
muted: "#6E655A"
faint: "#9C9184"
teal: "#0F8A85"
teal_deep: "#0B6B67"
teal_tint: "#DCEFEC"
typography:
display_h1_clamp_38px_4_6vw_62px_line_height_1_08_letter_spacing_0_02em_weight_800_h2_clamp_30px_3_4vw_44px_weight_800_card_titles_20_22px_weight_700: { family: "Nunito Variable", weights: [600, 700, 800] }
text_body_16px_1_65_subheads_17_18px_nav_14px_buttons_15px_weight_600: { family: "Figtree Variable", weights: [400, 500, 600, 700] }
mono_device_chips_spec_chips_section_labels_11_12px_letter_spacing_0_12em_uppercase_prices_house_caption: { family: "IBM Plex Mono", weights: [400, 500, 600] }
spacing: "8px base. Container max-width 1160px with 24px side padding (20px below 640px). Sections 104px vertical padding on desktop, 72px on mobile. Section headers have 48px below them. Cards pad 24-28px; the house card pads 20px."
radius: "House card 28px; cards and bundle cards 24px; inner panels and phone app cards 16px; chips 10px; inputs 12px; every button and toggle is a full pill (999px); phone mockup 44px with 34px screen corners."
---
# Smart Home Product Landing 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
- **cream** `#FAF6EF` — Page background, warm white
- **shell** `#F4EDE2` — Alternate section background, phone screen base
- **panel** `#FFFFFF` — Cards, house card, bundle cards
- **sand** `#EFE7DA` — Chips, inset panels, furniture fills in the house SVG
- **line** `#E5DACB` — Hairline borders and dividers
- **line-strong** `#D6C7B0` — House SVG walls, ground line, stronger borders
- **ink** `#2C2620` — Primary text, phone body
- **muted** `#6E655A` — Body copy, nav links
- **faint** `#9C9184` — Captions, mono labels, footnotes
- **teal** `#0F8A85` — The single accent: room highlights, pins, primary buttons, active toggles, check icons
- **teal-deep** `#0B6B67` — Hover and pressed states of teal elements
- **teal-tint** `#DCEFEC` — Selected-room fill, soft highlight backgrounds
## Typography
- **Display: H1 clamp(38px, 4.6vw, 62px) line-height 1.08 letter-spacing -0.02em weight 800; H2 clamp(30px, 3.4vw, 44px) weight 800; card titles 20-22px weight 700** — Nunito Variable (OFL), weights 600/700/800. Self-host the font files.
- **Text: body 16px/1.65, subheads 17-18px, nav 14px, buttons 15px weight 600** — Figtree Variable (OFL), weights 400/500/600/700. Self-host the font files.
- **Mono: device chips, spec chips, section labels (11-12px, letter-spacing 0.12em, uppercase), prices, house caption** — IBM Plex Mono (OFL), weights 400/500/600. Self-host the font files.
## Spacing & shape
- Spacing: 8px base. Container max-width 1160px with 24px side padding (20px below 640px). Sections 104px vertical padding on desktop, 72px on mobile. Section headers have 48px below them. Cards pad 24-28px; the house card pads 20px.
- Radius: House card 28px; cards and bundle cards 24px; inner panels and phone app cards 16px; chips 10px; inputs 12px; every button and toggle is a full pill (999px); phone mockup 44px with 34px screen corners.
## Motion
- Room selection: the selected room's fill crossfades to teal-tint over 300ms; the newly selected room's pins pop in (scale 0.8 -> 1, spring stiffness 320 damping 22, staggered 60ms); other rooms' pins settle to 45% opacity.
- Device lineup: hovering or focusing a card pulses its dots in the mini map (scale 1 -> 1.35, 900ms ease-in-out loop) and fades other dots to 35%.
- Phone scene: four steps check off in sequence (500ms apart) when 60% in view, progress bar fills to match, header status swaps from RUNNING to ALL SET; a Run again chip replays it.
- Scroll reveals: fade up 20px, 0.6s, ease [0.22, 1, 0.36, 1], once, stagger 0.06-0.1s.
- Hover lifts: cards rise 3px with the lift shadow over 220ms; toggles slide their knob 180ms.
- prefers-reduced-motion: no pops, pulses, sequences or reveals; the scene phone shows all steps checked, states static, full contrast everywhere.
## Imagery
Everything drawn in code: the cutaway house, mini map, device glyphs, phone mockups, logo mark and favicon are SVG/CSS built from the coordinates in this spec; no photographs, no people, no external image files of any kind. Warm whites and sand tones carry the house; teal appears only as the interactive accent (pins, highlights, primary buttons).
## Tone
Warm, calm and specific. Short sentences, plain verbs, real numbers (lumens, battery months, sample prices). Gently playful but never cute-obsessive; no hype words, no exclamation stacking.
---
— Prompt by VibeFather · https://vibefather.ai/t/smart-home-product-landing-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 传感器初创公司:将 BRAND 和 PRODUCT 设置为你的传感器套件,将 SIGNATURE_SCENE 重命名为你的旗舰例程,并重写每个房间的设备列表为你的传感器及其触发的自动化。
- 照明制造商:保留剖面房屋,但将六张阵容卡片换成你的灯泡和灯带,并将房间自动化设置为适合你应用的调光和唤醒场景。
- 家庭安全品牌:将 SIGNATURE_SCENE 指向你的离家或夜间例程,将车库房间内容替换为门禁传感器,并将套装重写为你的入门套件。
- 独立硬件创始人:将 AUDIENCE 设置为你的支持者,使用预留套件邮件订阅带作为等候名单,并将三个套装重写为你的预购层级及示例价格。
智能家居产品落地页:常见问题
智能家居产品落地页上的可交互剖面房屋是什么,它是如何工作的?
智能家居产品落地页的首屏以手写的 SVG 两层住宅为中心,带一个附属车库。访客点击或按 Tab 键选中客厅、厨房、卧室或车库,该房间会以青色高亮,旁边的卡片列出里面的设备和该房间运行的一项自动化。房间内容来自一个内容文件,因此更换什么放在哪里是数据编辑,而不是重新设计。
怎么用 AI 做一个智能家居产品落地页?
复制本页的完整提示词(Pro),或者运行 npx vibefather add smart-home-product-landing-page,把 [BRAND]、[PRODUCT]、[AUDIENCE]、[SIGNATURE_SCENE] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。