关于这个模板
一个交互式天体物理科普页面,打开即呈现实时 GLSL 光线步进渲染的黑洞,带引力透镜效应、多普勒集束的橙金色吸积盘、清晰的光子环和拖拽环绕控制。向下滚动可浏览六个动手章节:事件视界、光子球光线弯曲、交互式时间膨胀双时钟实验室、潮汐意大利面化拉伸、地球尺寸 VLBI 虚拟望远镜基线模拟器,以及对数尺度的恒星到超大质量黑洞大小比较器——所有内容均明确标注为简化的教学用相对论物理。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Black Hole Interactive Explainer
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
Build an interactive astrophysics explainer for [OBSERVATORY_NAME] showcasing rotating black hole specimen [OBJECT_NAME] ([MASS_LABEL], [DISTANCE_LABEL]). Frame 1 opens directly on a real-time GLSL ray-marched Three.js black hole rendered in deep cosmic black (#050508) with hot disk orange (#FF8A2A), incandescent gold (#FFD27A), and cool starlight blue (#9DB8FF). Visitors can orbit 360° around the gravitationally lensed accretion disk, toggle Doppler beaming, adjust inclination presets and plasma glow, and then scroll through six interactive chapters: (01) Event Horizon escape-velocity probe, (02) Photon Sphere curved light-ray impact-parameter lab, (03) Time Dilation Dual Clocks comparing distant observer vs infalling traveler clocks as radius r/rs approaches 1.01, (04) Tidal Spaghettification gradient simulator comparing stellar vs supermassive horizons, (05) Earth-sized VLBI Virtual Telescope linking 7 global radio dishes to sharpen a live synthetic shadow ring, and (06) Stellar-to-Supermassive cosmic size comparator. Clearly label all models as simplified educational physics and keep zero calendar dates or 4-digit years on the frontend.
- Audience: Curious readers, physics students, educators, and astronomy enthusiasts.
- Goal: Turn general relativity concepts—gravitational lensing, relativistic time dilation, tidal stretching, and Earth-scale interferometry—into immediate visual and tactile intuition.
- Tone: Awe-inspired scientific clarity—precise observatory instrumentation paired with lucid plain-English explanations.
## Stack
- Framework: Vite 6 + React 18 + TypeScript
- Styling: Tailwind CSS 4
- Libraries: three (MIT), @types/three (MIT), 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 (500, 600, 700), @fontsource/inter (400, 500, 600), and @fontsource/jetbrains-mono (400, 500, 600) in src/main.tsx.
- Render the real-time ray-marched gravitational-lensing black hole in a full-viewport-width Three.js ShaderMaterial canvas (preserveDrawingBuffer: true) that renders frame 1 synchronously before RAF.
- Keep all 6 interactive relativity chapters and data in src/data/blackHoleData.ts and modular interactive widgets in src/components/RelativityLabs.tsx.
## Variables
- [OBSERVATORY_NAME] — Publication Name (default: "Event Horizon Atlas"). Name of the interactive science publication
- [OBJECT_NAME] — Featured Specimen (default: "Aurelia-X1"). Catalog designation of the featured black hole
- [MASS_LABEL] — Featured Mass (default: "6.5 Billion Solar Masses"). Mass label displayed in hero telemetry
- [DISTANCE_LABEL] — Distance Readout (default: "55 Million Light-Years"). Distance label displayed in hero telemetry
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/black-hole-interactive-explainer 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
- Deep Space `#050508` — Primary background canvas
- Obsidian Instrument `#0E1019` — Lab cards and telemetry panels
- Hot Disk Orange `#FF8A2A` — Accretion plasma and primary interactive accent
- Incandescent Gold `#FFD27A` — Innermost stable orbit photon ring highlight
- Cool Starlight Blue `#9DB8FF` — Relativistic Doppler approach shift and data metrics
### Typography
- Display Title & Chapter Headings: Space Grotesk (OFL), weights 500/600/700
- Explanatory Prose: Inter (OFL), weights 400/500/600
- Equations, Clocks & Telemetry: JetBrains Mono (OFL), weights 400/500/600
### Layout & motion
- Spacing: Full-bleed interactive ray-marched WebGL hero with docked glass HUD, followed by centered 1152px max-width alternating chapter sections with generous vertical rhythm.
- Radius: 16px precision obsidian instrument panels with 1px starlight-tinted borders.
- Motion: Continuous real-time ray-marched swirling accretion plasma and relativistic Doppler glow with 360° drag orbit.
- Motion: Live ticking dual clocks driven by gravitational time dilation sqrt(1 - rs/r).
- Motion: Smooth interactive sliders for light-ray impact parameter, infall tidal gradient, VLBI dish toggling, and cosmic mass scale.
- Motion: Respect prefers-reduced-motion by pausing auto-orbit rotation while keeping drag orbit and all lab sliders fully responsive.
- Imagery: 100% procedural GLSL fragment shader black hole, starfield, and code-drawn interactive SVG/Canvas physics instruments.
## Pages & Sections
### [OBSERVATORY_NAME] · Black Hole Interactive Explainer (`#/explainer`)
1. **Frame-1 Ray-Marched Black Hole Hero** — Immediate full-beauty gravitationally lensed black hole [OBJECT_NAME] ([MASS_LABEL], [DISTANCE_LABEL]) with glowing orange-gold accretion disk arching over and beneath the shadow, bright photon ring, subtle Doppler beaming, and starfield. Includes drag-to-orbit hint, preset camera angles (Lensed Overlook, Edge-On Disk, Polar View), Spin/Doppler toggle, Disk Glow slider, Auto-Orbit toggle, chapter jump nav, and a clear 'Simplified educational physics model' badge.
Layout: Full-bleed dark cosmic hero stage (min-h-[680px] desktop, clean stacked HUD on 390px mobile) with zero splash delay.
Motion: Real-time GLSL ray-marched geodesic bending and plasma turbulence.
2. **Six Interactive Relativity Chapters** — (01) Event Horizon escape-velocity probe showing escape speed crossing c at r = rs; (02) Photon Sphere & Lensing interactive impact-parameter ray bender; (03) Time-Dilation Dual Clocks with live distant vs traveler clocks and r/rs slider; (04) Tidal Forces & Spaghettification comparing 10 M☉ stellar vs 6.5B M☉ supermassive stretching; (05) Earth-Sized VLBI Virtual Telescope with 7 toggleable radio stations updating baseline coverage and live shadow sharpness; (06) Stellar-to-Supermassive Cosmic Scale comparator against recognizable solar-system landmarks.
Layout: Asymmetric 12-column cards pairing concise plain-English astrophysics copy with tactile interactive SVG/Canvas lab instruments.
Motion: Responsive real-time vector updates and live relativistic clock hands.
## Assets
- font: Install @fontsource/space-grotesk, @fontsource/inter, and @fontsource/jetbrains-mono via npm.
## Don'ts
- Never show a black empty first frame or loading gate before the ray-marched black hole appears.
- Never present simplified physics approximations without clearly labelling them as simplified educational models.
- Never include calendar dates or 4-digit years anywhere on the frontend.
- Never fetch external images or CDN fonts.
---
— Prompt by VibeFather · https://vibefather.ai/t/black-hole-interactive-explainer · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 黑洞交互式讲解器
完全按照以下描述构建此网站。将 [VARIABLES] 替换为您自己的值;其余内容保持不变。
## 简介
为 [OBSERVATORY_NAME] 构建一个交互式天体物理科普讲解页面,展示旋转黑洞样本 [OBJECT_NAME]([MASS_LABEL],[DISTANCE_LABEL])。第 1 帧直接呈现一个实时 GLSL 光线步进 Three.js 黑洞,渲染于深邃宇宙黑(#050508)之中,配以炽热吸积盘橙(#FF8A2A)、白炽金(#FFD27A)与冷星光蓝(#9DB8FF)。访客可围绕引力透镜化的吸积盘进行 360° 环绕,切换多普勒集束效应,调整倾角预设与等离子体辉光,然后滚动浏览六个交互章节:(01) 事件视界逃逸速度探针,(02) 光子球弯曲光线碰撞参数实验室,(03) 时间膨胀双时钟,比较远处观测者与自由下落旅行者的时钟,当半径 r/rs 趋近 1.01 时,(04) 潮汐面条化梯度模拟器,比较恒星质量与超大质量视界,(05) 地球尺度 VLBI 虚拟望远镜,连接 7 个全球射电天线以锐化实时合成阴影环,(06) 恒星到超大质量宇宙尺度比较器。将所有模型明确标注为简化教学物理,并确保前端不出现任何日历日期或 4 位年份。
- 受众:好奇的读者、物理学生、教育工作者和天文爱好者。
- 目标:将广义相对论概念——引力透镜、相对论时间膨胀、潮汐拉伸和地球尺度干涉测量——转化为即时的视觉与触觉直觉。
- 语气:敬畏启发的科学清晰度——精确的天文台仪器感搭配清晰易懂的平实英文解释。
## 技术栈
- 框架:Vite 6 + React 18 + TypeScript
- 样式:Tailwind CSS 4
- 库:three(MIT)、@types/three(MIT)、lucide-react(ISC)、@fontsource/space-grotesk(OFL-1.1)、@fontsource/inter(OFL-1.1)、@fontsource/jetbrains-mono(OFL-1.1)
- 构建:`npm run build` → `dist/` 中的静态文件。无后端、无服务器代码、无外部 API。
- 设置:
- 在 vite.config.ts 中设置 base: './' 和 build: { sourcemap: false }。
- 在 src/main.tsx 中导入 @fontsource/space-grotesk(500、600、700)、@fontsource/inter(400、500、600)和 @fontsource/jetbrains-mono(400、500、600)。
- 在全视口宽度的 Three.js ShaderMaterial 画布(preserveDrawingBuffer: true)中渲染实时 ray-marched 引力透镜黑洞,该画布在 RAF 之前同步渲染第 1 帧。
- 将所有 6 个交互式相对论章节和数据保留在 src/data/blackHoleData.ts 中,并将模块化交互式小部件保留在 src/components/RelativityLabs.tsx 中。
## 变量
- [OBSERVATORY_NAME] — 出版物名称(默认:“Event Horizon Atlas”)。交互式科学出版物的名称
- [OBJECT_NAME] — 精选样本(默认:“Aurelia-X1”)。精选黑洞的目录编号
- [MASS_LABEL] — 精选质量(默认:“6.5 Billion Solar Masses”)。主视觉遥测中显示的质量标签
- [DISTANCE_LABEL] — 距离读数(默认:“55 Million Light-Years”)。主视觉遥测中显示的距离标签
- [CREDIT] — 在页脚保留一个小型“Template by VibeFather”链接,指向 https://vibefather.ai/t/black-hole-interactive-explainer(默认:是;删除此行即可移除)
“页面与区块”下的文案是按默认值编写的。如果你的取值不同,请为它们重写每一个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便之后无需改动组件即可替换内容。
## 设计
### 颜色
- 深空(Deep Space)`#050508` — 主背景画布
- 黑曜仪器(Obsidian Instrument)`#0E1019` — 实验卡片与遥测面板
- 炽盘橙(Hot Disk Orange)`#FF8A2A` — 吸积等离子体与主交互强调色
- 白炽金(Incandescent Gold)`#FFD27A` — 最内稳定轨道光子环高亮
- 冷星光蓝(Cool Starlight Blue)`#9DB8FF` — 相对论多普勒接近频移与数据指标
### 字体排印
- 展示标题与章节标题:Space Grotesk(OFL),字重 500/600/700
- 说明性正文:Inter(OFL),字重 400/500/600
- 方程、时钟与遥测:JetBrains Mono(OFL),字重 400/500/600
### 布局与动效
- 间距:全出血交互式光线步进 WebGL 主视觉区,配停靠式玻璃 HUD,其后为居中、最大宽度 1152px 的交替章节区块,垂直节奏宽松。
- 圆角:16px 精密黑曜仪器面板,配 1px 星光色调边框。
- 动效:持续实时光线步进的旋涡吸积等离子体与相对论多普勒辉光,支持 360° 拖拽环绕。
- 动效:由引力时间膨胀 sqrt(1 - rs/r) 驱动的实时滴答双时钟。
- 动效:用于光线碰撞参数、下落潮汐梯度、VLBI 天线切换与宇宙质量尺度的平滑交互滑块。
- 动效:遵循 prefers-reduced-motion,暂停自动环绕旋转,同时保持拖拽环绕与所有实验滑块完全响应。
- 图像:100% 程序化 GLSL 片段着色器黑洞、星场,以及代码绘制的交互式 SVG/Canvas 物理仪器。
## 页面与区块
### [OBSERVATORY_NAME] · 黑洞互动讲解页(`#/explainer`)
1. **Frame-1 光线步进黑洞主视觉** — 即时呈现完整精美的引力透镜黑洞 [OBJECT_NAME]([MASS_LABEL]、[DISTANCE_LABEL]),发光的橙金色吸积盘从阴影上方和下方拱起,明亮的光子环、细微的多普勒集束效应与星空。包含拖拽环绕提示、预设相机角度(Lensed Overlook、Edge-On Disk、Polar View)、Spin/Doppler 开关、Disk Glow 滑块、Auto-Orbit 开关、章节跳转导航,以及清晰的 'Simplified educational physics model' 徽标。
布局:全出血深色宇宙主视觉舞台(桌面端 min-h-[680px],390px 移动端为整洁的堆叠式 HUD),零启动延迟。
动效:实时 GLSL 光线步进测地线弯曲与等离子体湍流。
2. **六个互动相对论章节** — (01)事件视界逃逸速度探针,展示在 r = rs 处逃逸速度越过 c;(02)光子球与透镜效应互动碰撞参数光线弯曲器;(03)时间膨胀双时钟,带实时远方时钟与旅行者时钟及 r/rs 滑块;(04)潮汐力与意面化,对比 10 M☉ 恒星级与 6.5B M☉ 超大质量级的拉伸;(05)地球大小 VLBI 虚拟望远镜,带 7 个可切换射电站,更新基线覆盖与实时阴影锐度;(06)恒星到超大质量宇宙尺度比较器,对照可识别的太阳系地标。
布局:非对称 12 列卡片,将简洁的通俗天体物理文案与可触控的互动 SVG/Canvas 实验仪器配对。
动效:响应式实时矢量更新与实时相对论时钟指针。
## 资产
- 字体:通过 npm 安装 @fontsource/space-grotesk、@fontsource/inter 和 @fontsource/jetbrains-mono。
## 禁止事项
- 绝不要在光线步进(ray-marched)黑洞出现之前显示黑色空白首帧或加载门。
- 绝不要在不明确标注为简化教学模型的情况下呈现简化的物理近似。
- 绝不要在前端任何位置包含日历日期或 4 位年份。
- 绝不要获取外部图片或 CDN 字体。
---
— Prompt by VibeFather · https://vibefather.ai/t/black-hole-interactive-explainer · 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: "Black Hole Interactive Explainer"
colors:
deep_space: "#050508"
obsidian_instrument: "#0E1019"
hot_disk_orange: "#FF8A2A"
incandescent_gold: "#FFD27A"
cool_starlight_blue: "#9DB8FF"
typography:
display_title_chapter_headings: { family: "Space Grotesk", weights: [500, 600, 700] }
explanatory_prose: { family: "Inter", weights: [400, 500, 600] }
equations_clocks_telemetry: { family: "JetBrains Mono", weights: [400, 500, 600] }
spacing: "Full-bleed interactive ray-marched WebGL hero with docked glass HUD, followed by centered 1152px max-width alternating chapter sections with generous vertical rhythm."
radius: "16px precision obsidian instrument panels with 1px starlight-tinted borders."
---
# Black Hole Interactive Explainer — 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
- **Deep Space** `#050508` — Primary background canvas
- **Obsidian Instrument** `#0E1019` — Lab cards and telemetry panels
- **Hot Disk Orange** `#FF8A2A` — Accretion plasma and primary interactive accent
- **Incandescent Gold** `#FFD27A` — Innermost stable orbit photon ring highlight
- **Cool Starlight Blue** `#9DB8FF` — Relativistic Doppler approach shift and data metrics
## Typography
- **Display Title & Chapter Headings** — Space Grotesk (OFL), weights 500/600/700. Self-host the font files.
- **Explanatory Prose** — Inter (OFL), weights 400/500/600. Self-host the font files.
- **Equations, Clocks & Telemetry** — JetBrains Mono (OFL), weights 400/500/600. Self-host the font files.
## Spacing & shape
- Spacing: Full-bleed interactive ray-marched WebGL hero with docked glass HUD, followed by centered 1152px max-width alternating chapter sections with generous vertical rhythm.
- Radius: 16px precision obsidian instrument panels with 1px starlight-tinted borders.
## Motion
- Continuous real-time ray-marched swirling accretion plasma and relativistic Doppler glow with 360° drag orbit.
- Live ticking dual clocks driven by gravitational time dilation sqrt(1 - rs/r).
- Smooth interactive sliders for light-ray impact parameter, infall tidal gradient, VLBI dish toggling, and cosmic mass scale.
- Respect prefers-reduced-motion by pausing auto-orbit rotation while keeping drag orbit and all lab sliders fully responsive.
## Imagery
100% procedural GLSL fragment shader black hole, starfield, and code-drawn interactive SVG/Canvas physics instruments.
## Tone
Awe-inspired scientific clarity—precise observatory instrumentation paired with lucid plain-English explanations.
---
— Prompt by VibeFather · https://vibefather.ai/t/black-hole-interactive-explainer · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 大学物理系:将 [OBSERVATORY_NAME] 设为你的实验室或课程名称,[OBJECT_NAME] 设为真实星表天体,并根据你的教学大纲重写章节文案。
- 天文馆或科学博物馆:保留光线步进主视觉作为展台开场,将 [OBJECT_NAME] 设为你的节目主题,并将章节跳转导航指向你的展品站点。
- 天文 YouTuber 或新闻通讯作者:将模板用作某期节目的配套页面,让 [OBJECT_NAME] 和 [MASS_LABEL] 与视频一致,并将 VLBI 实验室作为交互式附加内容。
- 学生作品集或课程项目:保留六个章节,将 [OBSERVATORY_NAME] 设为你的名字,并将宇宙尺度地标替换为你用自己的话解释的示例。
黑洞交互式科普:常见问题
如何更改黑洞交互式科普中的黑洞、天文台名称和距离?
黑洞交互式科普模板使用四个变量:[OBSERVATORY_NAME] 表示发布机构名称,[OBJECT_NAME] 表示展示的天体,[MASS_LABEL] 表示主视觉质量读数,[DISTANCE_LABEL] 表示距离。在提示词要求的内容文件中设置这些变量,然后重写所有提及默认值的标题、段落和标签,使文案与你自己的天体保持一致。
有没有可以用 AI 构建的免费交互式黑洞网站模板?
是的。黑洞交互式科普是 VibeFather 上的免费模板,其提示词和 DESIGN.md 在 CC BY-NC 4.0 许可下可免费用于个人非商业用途。商业或客户项目需要 Pro 许可。你可以在 Claude Code、Codex、Cursor 或 Gemini CLI 等 AI 编程代理中运行提示词,或使用 npx vibefather add black-hole-interactive-explainer 命令添加模板。