跳到正文
VibeFather
免费注册

用这个模板做的 2 个案例

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

关于这个模板

火箭发射倒计时页是一个为虚构飞行任务打造的单页活动网站。首屏是用 WebGL 绘制的夜间发射台:一枚两级火箭和一座开放式塔架立在混凝土平台上,暖色钠灯照亮,天空近乎纯黑。压缩数字倒数至你设定的日期。拖拽画布可环绕观察火箭,缓慢的待机旋转会在首次触摸时停止。

一个飞行时钟驱动其余一切。播放会在同一模型上运行压缩版升空过程:发动机点火、起飞、爬升、级间分离、整流罩打开、入轨,镜头全程跟随。进度条和任务时间线可跳转到相同节点,也能让火箭返回发射台。高度、速度、射程和一行状态文字都读取该时钟,因此面板与模型保持同步。截止时间过后,数字显示窗口期已过的时间,页面以回放为主。

再往下,页面承载一家小型发射公司的文书信息:高度、质量、泊位价格、靶场地址和办公时间、四位具名人员,以及一个观礼派对表单。表单会校验邮箱、在页面内确认,并可将地址存入浏览器。不会发送任何数据。没有网络直播,也没有账户。

它适合工作室、俱乐部或产品团队策划首映活动。更改公司、火箭、任务、靶场、载荷和截止时间后,相关句子会围绕新值重写。发射台、铜色带、青色读数以及代码构建的火箭保持不变。火箭为原创几何体:每级三片朴素尾翼和一个发动机喷管。在手机上,画布堆叠在倒计时上方,遥测数据变为一条横带。减少动态效果模式下使用四张带标签的静帧,待机旋转保持关闭。

模板提示词

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

# Rocket Launch Countdown Page

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

## Brief
A single-page night launch for [BRAND]. The first screen is a code-built rocket and tower on a lit pad, with a live countdown to [LAUNCH_AT] and drag-to-orbit. One shared flight clock replays liftoff, ascent, stage separation, shell opening, and orbit insertion on that same model, and drives the telemetry strip and the mission timeline. A watch-party form confirms on the page and can store the email in localStorage.

- Audience: People following [MISSION], [BRAND]'s flight of [VEHICLE] from [RANGE], and teams who will reuse the page for another premiere by changing the variables.
- Goal: Let the visitor watch the countdown, orbit the vehicle, replay the ascent, and save a watch-party email on this page. Nothing is sent to a server.
- Tone: Calm and concrete, like a small range console. Short sentences, named people, real figures. No slogans, no hype, no webcast catchphrases.

## Stack
- Framework: Vite 5 + React 18 + TypeScript
- Styling: Tailwind CSS 3.4
- Libraries: [email protected] + [email protected] (MIT), [email protected] (MIT), @react-three/[email protected] (v8 line, React 18) (MIT), @react-three/[email protected] (OrbitControls only) (MIT), lucide-react (ISC), [email protected] + postcss + autoprefixer (MIT), vite@5 + @vitejs/plugin-react (MIT), typescript (Apache-2.0), @fontsource/big-shoulders-display (OFL-1.1), @fontsource/outfit (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 only: index.html at the project root, entry src/main.tsx. The document title is '[MISSION] — [BRAND]' (default: Wick Line 4 — Quillharbor Launch). Link the favicon with a relative href ./favicon.svg. Include charset and viewport meta only: no description, Open Graph, Twitter, or JSON-LD tags.
  - Install exactly [email protected], [email protected], [email protected], @react-three/[email protected], and @react-three/[email protected]. Keep Vite 5, TypeScript, and Tailwind CSS 3.4 from the scaffold. Do not upgrade React to 19, Tailwind to 4, fiber to 9, or drei to 10. Do not install GSAP, Motion, Lenis, zustand, postprocessing, or any UI kit.
  - vite.config.ts: base './', plugins [react()], build { outDir 'dist', sourcemap false, chunkSizeWarningLimit 1600 }. Do not copy src/ into dist/. package.json scripts: dev is vite, build is tsc -b && vite build, preview is vite preview. If the scaffold's tsconfig has no solution references, use tsc --noEmit && vite build instead, but the command the user runs stays npm run build.
  - Tailwind 3.4 via PostCSS, content ['./index.html', './src/**/*.{ts,tsx}']. In tailwind.config.ts extend colors with sky #07080C, ink #E7E4DC, muted #9A9488, panel #12141A, line #2A2E36, sodium #E7A04A, cyan #7EE0E6, copper #C4895A. fontFamily display ['Big Shoulders Display', 'Arial Narrow', 'sans-serif'], sans ['Outfit', 'system-ui', 'sans-serif'], mono ['IBM Plex Mono', 'ui-monospace', 'monospace'].
  - src/index.css: Tailwind layers, color-scheme dark, body margin 0, background #07080C, color #E7E4DC, font-family Outfit, -webkit-font-smoothing antialiased. html scroll-behavior smooth. A prefers-reduced-motion block sets scroll-behavior auto and disables the status-dot pulse and the drag-chip fade. Inputs use a 1000px inset box-shadow of #12141A on autofill so the field does not flash white. Focus-visible outline is 2px solid #7EE0E6 with 2px offset. Selection background #7EE0E6, color #07080C.
  - src/fonts.ts imports @fontsource/big-shoulders-display/500.css, 700.css, and 800.css; @fontsource/outfit/400.css, 500.css, and 600.css; @fontsource/ibm-plex-mono/400.css and 500.css. Import fonts.ts first in src/main.tsx. Do not add a fonts.googleapis.com or fonts.gstatic.com link.
  - File layout: src/content.ts (every string, phase, stat, person, and question), src/flight.ts (pure pose, camera, and telemetry functions of t), src/hooks/useReducedMotion.ts, src/hooks/useCountdown.ts, src/scene/LaunchCanvas.tsx, src/scene/Vehicle.tsx, src/scene/Pad.tsx, src/scene/Stars.tsx, src/components/Header.tsx, Countdown.tsx, Telemetry.tsx, FlightControls.tsx, Timeline.tsx, Facts.tsx, Team.tsx, WatchParty.tsx, Questions.tsx, Footer.tsx, and src/App.tsx. The flight clock t and playing live in React state in App.tsx and are passed down. Do not keep a second clock inside the canvas.
  - public/favicon.svg is a 32 viewBox: a rounded rect rx 6 filled #07080C and a circle cx 16 cy 16 r 4 filled #7EE0E6. No letters, no rocket silhouette, no badge.
  - Write ASSETS.md at the project root listing the three Fontsource packages (OFL-1.1, authors as published on the package) and lucide-react (ISC). State that the rocket, pad, tower, plume, stars, and favicon are original code and that the site ships no third-party images or 3D files.

## Variables
- [BRAND] — Launch company (default: "Quillharbor Launch"). Invented company. Header wordmark, footer, watch-party storage key, and the page title. Never a real launch provider.
- [VEHICLE] — Vehicle name (default: "Lodestone"). Invented rocket name. Used in the deck, facts, and status lines. The mesh does not change with this name.
- [MISSION] — Mission name (default: "Wick Line 4"). Invented flight name. It is the H1 and the document title. Keep it short, two or three words plus a number.
- [RANGE] — Range name (default: "Gannet Spit"). Invented coastal range. Eyebrow, address, and deck. Not a real launch-site name.
- [PAYLOAD] — Payload name (default: "Harbor Glass"). Invented instrument name, a proper noun. Deck, facts, and two status lines. Rewrite those sentences if the grammar needs it.
- [LAUNCH_AT] — Window opening (default: "2027-08-21T04:12:00Z"). ISO-8601 UTC instant. Leave the string as written. If a visitor arrives after it, the page leads with replay instead of changing the date.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/rocket-launch-countdown-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 仍然免费。

$9/月起 · 年付和终身正在上线特惠

DESIGN.md

单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。

---
name: "Rocket Launch Countdown Page"
colors:
  sky: "#07080C"
  ink: "#E7E4DC"
  muted: "#9A9488"
  panel: "#12141A"
  line: "#2A2E36"
  sodium: "#E7A04A"
  cyan: "#7EE0E6"
  copper: "#C4895A"
  rocket: "#243044"
  shell: "#C9CDD4"
  pad: "#3C3832"
  ground: "#100E0C"
typography:
  display_countdown_numerals_h1_h2_stat_values_wordmark: { family: "Big Shoulders Display", weights: [500, 700, 800] }
  text_body_buttons_deck_faq_form: { family: "Outfit", weights: [400, 500, 600] }
  mono_eyebrows_telemetry_timeline_times_unit_labels_status: { family: "IBM Plex Mono", weights: [400, 500] }
spacing: "8px base. Header 56px. Flight section min-height calc(100vh - 56px). Aside padding 28px 32px on desktop and 20px 20px 8px under 1024px. Lower sections use a 1120px container, 40px side padding on desktop, 20px on mobile, and 96px vertical padding on desktop (64px on mobile). Gap between aside blocks is 14px."
radius: "2px on buttons, inputs, timeline rows, the drag chip, and cards. Countdown cells and the header are square. No pills."
---

# Rocket Launch Countdown 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
- **Sky** `#07080C` — Page background, canvas clear color, fog, primary-button text, footer
- **Ink** `#E7E4DC` — Headings, countdown numerals, body text, scrubber thumb
- **Muted** `#9A9488` — Secondary text, unit labels, inactive timeline rows, placeholders
- **Panel** `#12141A` — Inputs, active timeline row, drag chip, watch card, fact cells
- **Line** `#2A2E36` — 1px borders, countdown rules, telemetry dividers, header border
- **Sodium** `#E7A04A` — Tower lamps, plume outer color, form error text. The warm practical light
- **Cyan** `#7EE0E6` — The single cold accent: links, focus, primary button, active phase, replay kicker, payload lamp
- **Copper** `#C4895A` — The one band on the first stage, the fin edge, and the umbilical
- **Rocket** `#243044` — First-stage body and the three fins
- **Shell** `#C9CDD4` — Second stage and the ogive shell
- **Pad** `#3C3832` — Concrete square under the vehicle
- **Ground** `#100E0C` — The ground disc around the pad

## Typography
- **Display: countdown numerals, H1, H2, stat values, wordmark** — Big Shoulders Display (OFL), weights 500/700/800. Self-host the font files.
- **Text: body, buttons, deck, FAQ, form** — Outfit (OFL), weights 400/500/600. Self-host the font files.
- **Mono: eyebrows, telemetry, timeline times, unit labels, status** — IBM Plex Mono (OFL), weights 400/500. Self-host the font files.

## Spacing & shape
- Spacing: 8px base. Header 56px. Flight section min-height calc(100vh - 56px). Aside padding 28px 32px on desktop and 20px 20px 8px under 1024px. Lower sections use a 1120px container, 40px side padding on desktop, 20px on mobile, and 96px vertical padding on desktop (64px on mobile). Gap between aside blocks is 14px.
- Radius: 2px on buttons, inputs, timeline rows, the drag chip, and cards. Countdown cells and the header are square. No pills.

## Motion
- One flight clock t in seconds, from 0 to 64, lives in React state. While playing, a requestAnimationFrame loop adds min(0.05, dt) and stops at 64 by setting playing false. Telemetry, the timeline, the scrubber, and the 3D pose are all pure functions of that same t. Do not simulate gravity.
- Idle spin: while t is 0, playing is false, the pointer has not interacted, and reduced motion is off, the vehicle group's yaw increases at 0.12 rad/s. The pad and tower do not spin. The first pointerdown on the canvas sets interacted and the spin stays off until Replay, which zeros yaw and clears interacted.
- Drag: drei OrbitControls, enabled only when t is 0 and playing is false. enablePan false, enableDamping true, dampingFactor 0.08, rotateSpeed 0.7, zoomSpeed 0.6, minDistance 14, maxDistance 34, minPolarAngle 0.5, maxPolarAngle 1.2, target [0, 6.4, 0]. Do not call listenToKeyEvents. The canvas wrapper uses touch-action: none. On OrbitControls start, set interacted.
- Scripted camera, linear interpolation between knots (t, position xyz, lookAt xyz). Clamp outside the ends. Snap; do not ease from the orbit pose. Knots: 0 → pos [8.8, 4.8, 22] look [0, 6.4, 0]; 12 → [9.2, 5.6, 22] / [0, 7.4, 0]; 18 → [11, 8, 21] / [0.2, 10, -1.5]; 36 → [13, 9.5, 18] / [1.2, 12.4, -3]; 44 → [12, 9, 18] / [0.2, 13.2, -4]; 52 → [13, 8.5, 20] / [0, 14.6, -4.5]; 60 and 64 → [15, 9, 22] / [0, 15.4, -5]. While scripted, OrbitControls enabled is false and controls.update is not called.
- Vehicle pose is a diorama. Telemetry kilometers are not the model's height. Climb from t 12 to 36: u = clamp((t-12)/24, 0, 1), s = u*u*(3-2*u), y = s*6, z = s*-3, pitch = s*0.16. Before t 12 the stack is at the origin. After t 36 the upper stage continues: u2 = clamp((t-36)/24, 0, 1), s2 = u2*u2*(3-2*u2), y = 6+s2*3, z = -3+s2*-2, pitch = 0.16+(0.05-0.16)*s2. The booster from t 36 to 50: p = clamp((t-36)/14, 0, 1), y = 6-p*4, x = p*2.8, z = -3, pitch 0.16, roll z = p*0.4, opacity 1-p, hidden at t >= 50.
- Plume, arm, shell, puff, all functions of t: stage-1 plume visible for 8 <= t < 36; stage-2 plume for 37.5 <= t < 54. While playing and not reduced, plume scale.y = 1 + sin(t*40)*0.06 + sin(t*17)*0.03; otherwise scale.y is 1. Umbilical rotation.z goes from 0 to -0.8 linearly across t 8 to 11. Shell halves swing from 0 to 1.15 rad across t 44 to 48 and hold. A sodium puff sphere sits at world [0, 13.75, -3], visible only for 36 <= t < 38, scale lerps 0.6 to 2.4 and opacity 0.45 to 0.
- UI motion is short. The drag chip fades over 300ms after the first interaction. The FAQ answer uses grid-template-rows 0fr to 1fr over 200ms. The primary button scales to 0.98 on active. The status dot pulses opacity 1 to 0.4 over 1.6s only while playing. No scroll-jacking, no page transitions, no marquee, no custom cursor.
- prefers-reduced-motion: no idle spin, no plume flicker, no dot pulse, no chip fade, FAQ snaps open, button does not scale. Playback does not interpolate. Hide the scrubber. The play control becomes Next still and cycles t through 0, 12, 36, 52, then back to 0, snapping the pose. Timeline clicks snap to that phase start. If reduced motion turns on mid-play, pause and snap to the greatest of those four times that is still <= t. Do not autoplay the flight when reduced motion is on. Camera and model pose still follow pose(t); they just do not animate between values.

## Imagery
No photographs, no HDRIs, no downloaded models, and no texture URLs. The first screen is the code-built rocket: it fills the canvas, which is the full height under the header on desktop and 62vh on mobile. Night sky is the clear color #07080C plus THREE.Fog #07080C near 34 far 72 and 360 stars. Lighting is code only: hemisphere sky #1A3344 ground #3A2A18 intensity 0.35, ambient #8EA0B0 intensity 0.18, a cool directional #C9D7E0 intensity 0.35 at [-16, 22, 10] with a 1024 shadow map (orthographic bounds -20 to 20, near 0.5 far 80, bias -0.0004), and sodium point lights on the tower and pad (color #E7A04A, intensity about 10, distance about 12, decay 2, no shadow). The rocket body is slate #243044 with one copper band #C4895A, a fog-gray upper stage #C9CDD4, three plain triangular fins, and one bell per stage. The plume is two additive cones, core #FFF6E4 and outer #E7A04A. The only cyan in the 3D scene is a small emissive panel on the payload, #7EE0E6, revealed when the shell opens. No letters, flags, patches, or logos on any mesh. Tone mapping ACESFilmic, exposure 1.05, output SRGB. Canvas dpr [1, 1.5], antialias true, alpha false, fov 34, near 0.1, far 160.

## Tone
Calm and concrete, like a small range console. Short sentences, named people, real figures. No slogans, no hype, no webcast catchphrases.

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

改成你自己的

  • 游戏工作室策划揭晓:将 BRAND 设为工作室,MISSION 设为作品名,LAUNCH_AT 设为预告片发布时间,并将事实面板改写为平台和发行详情。
  • 卫星成像初创公司:用 RANGE 表示你的海岸站点,PAYLOAD 表示仪器,并将观礼派对表单改为在页面内确认的演示请求。
  • 大学火箭俱乐部:将 BRAND 设为团队名,VEHICLE 设为你的箭体名称,并将泊位价格和办公时间替换为比赛日期和会议详情。
  • 会议或节庆活动:将 MISSION 设为活动名,LAUNCH_AT 设为开门时间,将时间线节点改写为节目里程碑,同时保留回放升空动画。

火箭发射倒计时页:常见问题

如何更改火箭发射倒计时页的发射日期和任务名称?

火箭发射倒计时页从 LAUNCH_AT 变量读取时间窗口(ISO-8601 UTC 时刻),从 MISSION 读取标题。两者与 BRAND、RANGE、PAYLOAD 和 VEHICLE 一起放在内容文件中。请围绕新值重写标题和状态句子,确保文案仍然通顺。如果访客在窗口期之后到达,页面会显示窗口期已过的时间并以回放为主,而不会更改日期。

怎么用 AI 做一个火箭发射倒计时页?

复制本页的完整提示词(Pro),或者运行 npx vibefather add rocket-launch-countdown-page,把 [BRAND]、[RANGE]、[MISSION]、[PAYLOAD] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。