用这个模板做的 3 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
这是一个夏日音乐节的三页式网站,核心是能响应真实声音的首屏。第一屏展示一张日落时分音乐节场地的宽幅照片,上面叠加着缓慢生成的太阳。按下播放,项目中的一个小脚本通过 Web Audio API 生成的一段原创八小节循环开始播放;太阳及其环形条柱随后跟随实时频率数据变化。在访客主动请求之前不会发出任何声音,暂停和静音始终触手可及。
首页接着呈现海报风格的阵容,字号按演出层级递减,筛选日期时名字会重新排列。悬停名字会显示艺人照片、小型实时波形和一段简短的合成片段;在手机上轻点即可实现同样效果。随后是平铺在黄色背景上的密集三日日程。地图页面是一个插画风格的内联 SVG,包含舞台、餐饮、露营、饮水和急救点,配有图例筛选和详情面板。票务页面用带吸顶表头的表格对比四种通行证,在移动端变为可滑动的卡片,并附有一个不含结账流程的价格计算器。
它适合主办方、场馆、城市周末活动和社区音乐活动,这些用户想要一个比售票页面更有性格的网站;也适合想要了解频率分析和交互式 SVG 地图实际示例的开发者。配色刻意张扬:黄到红的日落渐变,一种电光绿搭配深紫墨色,以及高挑的窄体海报字体。要适配它,请更改音乐节名称、日期、地点、音乐类型和基础价格;演出阵容、地图标签和票价会被重写以匹配,而布局、颜色和动效保持不变。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Music Festival Website Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else. ## Brief A three-page website (index.html, map.html, tickets.html) for [BRAND], an invented three-day summer music festival on [EVENT_DATES] at [LOCATION]. It looks like a saturated festival poster that came alive: a hot sunset gradient and one electric accent over deep violet ink, oversized condensed type, and real outdoor photography. The home hero carries a Canvas 2D visualizer that runs on a designed idle animation until the visitor presses play, then follows real frequency data from an original loop generated by a script in this project. The site also has a poster-wall line-up with day filters and hover previews, an illustrated inline SVG site map, and a tier comparison with a price calculator and no checkout. Every act, stage, vendor and place is invented. - Audience: People deciding whether to go to the festival and which pass to buy, on a phone as often as on a laptop; they want the line-up, the schedule, how the grounds work and the price without hunting. - Goal: Make the visitor want to be there within one screen, then get them to the right ticket tier. The ticket call to action is visible at every scroll position on every page. - Tone: Loud, warm, specific and a little funny, like a poster written by people who run the event. Short sentences and real logistics. Never corporate. ## Stack - Framework: Vite 5 multi-page + vanilla TypeScript - Styling: Tailwind CSS 3.4 - Libraries: vite@5 (MIT), typescript@5 (Apache-2.0), [email protected] (MIT), postcss (MIT), autoprefixer (MIT), gsap@3 (core, ScrollTrigger, Flip) (GSAP Standard License, free including commercial use), lucide (ISC), @fontsource/anton (OFL-1.1), @fontsource-variable/instrument-sans (OFL-1.1), @fontsource/dm-mono (OFL-1.1) - Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs. - Setup: - package.json scripts: "gen:audio": "node scripts/make-loop.mjs"; "dev": "npm run gen:audio && vite"; "build": "npm run gen:audio && tsc --noEmit && vite build". - vite.config.ts: base './', build.sourcemap false, build.rollupOptions.input lists index.html, map.html and tickets.html at the project root, so all three are real files in dist/. - tailwind.config.ts: content covers ./*.html and ./src/**/*.ts. Extend colors with ink, raised, line, flare, tangerine, sun, volt, paper, haze and lake from Design. Extend fontFamily with display (Anton), sans (Instrument Sans Variable) and mono (DM Mono). - src/styles.css: import @fontsource/anton/400.css, @fontsource-variable/instrument-sans, @fontsource/dm-mono/400.css and @fontsource/dm-mono/500.css, then the Tailwind layers. Define the --sunset gradient, the marquee keyframes and font-synthesis: none here. Set overflow-x: clip on html and body. - File layout: src/content.ts (all copy, acts, zones, tiers, image paths and links); src/shell.ts (header, marquee, footer, mobile bar, page wipe, scroll reveals); src/pages/home.ts, src/pages/map.ts, src/pages/tickets.ts; src/audio/engine.ts (AudioContext, loop, master gain, ducking); src/audio/visualizer.ts (hero canvas); src/audio/previews.ts (act snippets); scripts/make-loop.mjs. TypeScript strict mode is on. - scripts/make-loop.mjs uses only Node built-ins and writes public/audio/loop.wav: 44,100 Hz, 16-bit PCM, mono, 124 BPM, 8 bars of 4/4 (length = round(32 * 60 / 124 * 44100) samples, about 1.4 MB). Mix into a circular buffer so every tail wraps past the end and the loop is seamless. - Loop voices. Roots per bar: A2, F2, C3, G2, A2, F2, D2, E2. Kick on every beat: sine sweeping 130 to 48 Hz over 90 ms, exponential decay 240 ms, gain 0.95. Clap on beats 2 and 4: seeded white noise, band-limited as the difference of two one-pole filters, decay 120 ms, gain 0.35. Hat on off-beat eighths: high-passed seeded noise, decay 35 ms, gain 0.16. Bass in eighths on the bar root: sawtooth through a 420 Hz one-pole low-pass, gain 0.42. Pad: three sawtooths detuned by -7, 0 and +7 cents on the bar's minor or major triad through a 1,200 Hz low-pass, total gain 0.12, 300 ms attack. Pluck on a sixteenth grid: seeded mulberry32(7017), 62% chance per step, picks a note from A minor pentatonic between 220 and 880 Hz, triangle wave, exponential decay 180 ms, gain 0.22. - Loop mix: multiply every non-kick voice by a sidechain of 0.55 + 0.45 * (1 - exp(-secondsSinceKick / 0.12)), pass the sum through tanh(1.2x), then normalize the peak to 0.89. - src/audio/engine.ts: create the AudioContext only inside a user gesture. Fetch import.meta.env.BASE_URL + 'audio/loop.wav', decodeAudioData, and play with an AudioBufferSourceNode with loop = true. Graph: source -> loopGain -> analyser -> masterGain -> destination. AnalyserNode: fftSize 2048, smoothingTimeConstant 0.78. Pause stops the source and stores the offset; resume makes a new source at that offset. Mute sets masterGain only, so the visuals keep moving. If the fetch or decode fails, show the inline note 'Audio could not load. The visuals keep running.' and log nothing to the console as an error. - src/audio/previews.ts: each act gets a 16-step snippet from mulberry32(actIndex + 1). Notes come from minor pentatonic offsets [0,3,5,7,10,12] on a root between 110 and 220 Hz; wave type cycles sawtooth, square, triangle by act index; step length is 125 to 190 ms, chosen by the seeded generator. Each note runs through a low-pass at 1,800 Hz, Q 6, with a short gain envelope, then a preview analyser (fftSize 512) into masterGain. While a snippet plays, duck loopGain to 0.18 over 150 ms and restore it afterward. Stop with a 120 ms fade on pointer leave. - Reference images from code as import.meta.env.BASE_URL + 'images/<file>' and in HTML as ./images/<file>. Add public/favicon.svg: a half sun in the sunset gradient on ink. Set the title of each page to a plain <title> containing [BRAND]. - Write ASSETS.md at the project root listing every image with path, source URL, author and license, every font and icon package with its license, and public/audio/loop.wav as 'original, generated by scripts/make-loop.mjs in this project'. ## Variables - [BRAND] — Festival name (default: "Sunspill"). Invented, one or two words. It fills the hero headline at full width, so the headline is sized by script to fit. - [EVENT_DATES] — Festival dates (default: "July 16–18, 2027"). Three consecutive days. The day tabs and schedule labels (Fri Jul 16, Sat Jul 17, Sun Jul 18) are derived from it. - [LOCATION] — Site and town (default: "Cinder Meadows, Port Alder, WA"). An invented place. Map labels such as the lake name follow it. - [LINEUP_GENRES] — Genres on the bill (default: "indie, disco and warm electronics"). Rewrite the invented act names and genre labels to fit. Never use real artists. - [GA_PRICE] — 3-Day General pass price (default: "$189"). Sets the currency symbol and the other prices: Day Pass about 42%, Camp Weekend about 142%, Golden Hour VIP about 238%, each rounded to the nearest number ending in 9. - [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/music-festival-website 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: "Music Festival Website"
colors:
ink: "#12072B"
raised: "#1F0F45"
line: "#3B2470"
flare: "#FF2D55"
tangerine: "#FF6A13"
sun: "#FFC800"
volt: "#19F5C1"
paper: "#FFF6E5"
haze: "#C9BEE8"
lake: "#2438C9"
sunset_gradient: "linear-gradient(100deg, #FFC800 0%, #FF6A13 45%, #FF2D55 100%)"
typography:
display_hero_headline_act_names_section_headings_prices_map_labels_uppercase_line_height_0_92_letter_spacing_0_005em: { family: "Anton", weights: [400] }
text_body_buttons_table_cells_16px_base_line_height_1_55: { family: "Instrument Sans Variable", weights: [400, 500, 600, 700] }
mono_times_stages_dates_small_uppercase_labels_at_12_to_13px_with_0_06em_tracking: { family: "DM Mono", weights: [400, 500] }
spacing: "8px base. Gutter 32px desktop, 16px mobile. Section padding 96px desktop, 64px mobile. Content runs nearly full width up to a 1600px cap, because this is a poster and not a centered column. Dense information gets 8 to 12px row gaps."
radius: "0 on every block, photo, panel and table. 9999px only on buttons, tabs and legend chips."
---
# Music Festival Website — 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
- **Ink** `#12072B` — Page background, deep violet ink, and text on gradient, Sun and Volt surfaces
- **Raised** `#1F0F45` — Panels, table rows, map ground
- **Line** `#3B2470` — 1px borders, map contours, inactive tracks
- **Flare** `#FF2D55` — Hot end of the sunset gradient, stage zones on the map, Friday tint
- **Tangerine** `#FF6A13` — Middle of the sunset gradient, food zones, schedule accents, Saturday tint
- **Sun** `#FFC800` — Bright end of the gradient, full-bleed schedule section, second-tier act names, camping zones
- **Volt** `#19F5C1` — The one electric accent: play button, active filters, selected states, focus rings, water zones, Sunday tint
- **Paper** `#FFF6E5` — Primary text on ink, first-aid zones
- **Haze** `#C9BEE8` — Secondary text and metadata on ink
- **Lake** `#2438C9` — The lake on the map only
- **Sunset gradient** `linear-gradient(100deg, #FFC800 0%, #FF6A13 45%, #FF2D55 100%)` — Hero headline fill, marquee band, primary ticket button, headliner names, closing band. Text on it is always Ink
## Typography
- **Display: hero headline, act names, section headings, prices, map labels. Uppercase, line-height 0.92, letter-spacing 0.005em** — Anton (OFL), weights 400. Self-host the font files.
- **Text: body, buttons, table cells. 16px base, line-height 1.55** — Instrument Sans Variable (OFL), weights 400/500/600/700. Self-host the font files.
- **Mono: times, stages, dates, small uppercase labels at 12 to 13px with 0.06em tracking** — DM Mono (OFL), weights 400/500. Self-host the font files.
## Spacing & shape
- Spacing: 8px base. Gutter 32px desktop, 16px mobile. Section padding 96px desktop, 64px mobile. Content runs nearly full width up to a 1600px cap, because this is a poster and not a centered column. Dense information gets 8 to 12px row gaps.
- Radius: 0 on every block, photo, panel and table. 9999px only on buttons, tabs and legend chips.
## Motion
- Page wipe on load: a full-viewport sunset gradient panel shrinks with scaleY from 1 to 0, transform origin top, over 0.7s with power4.inOut, then is removed. It never blocks pointer events.
- Scroll reveals with GSAP ScrollTrigger: elements with data-reveal animate from y 28 and opacity 0.2 to their final state over 0.6s with power3.out, once, staggered 0.05s. Content must never start fully invisible, so still captures stay legible.
- Marquee: CSS translateX from 0 to -50% on a duplicated track, 28s linear infinite, paused on hover.
- Line-up filter: GSAP Flip, 0.6s power3.inOut, stagger 0.012s. Leaving names fade and scale to 0.8; entering names fade in from 0.8.
- Map: paths draw in with stroke-dashoffset over 1.2s on load, zones pop with back.out(1.6), stagger 0.04s.
- Prices in the ticket summary count to the new value over 0.35s using a GSAP tween on a number.
- prefers-reduced-motion: no page wipe, no reveals, marquee static, Flip replaced by an instant swap, map appears complete, and the hero idle state renders one still frame. When the visitor presses play the bars still follow the audio, but the disc pulse and embers stay off.
## Imagery
One shoot: warm 35mm documentary film photographs at golden hour under a saturated orange and magenta sky, with light haze and fine grain. Wide scenes show no identifiable faces. Performers are backlit, with faces in shadow. Act photos are shown as duotones: CSS grayscale(1) contrast(1.15) with a day-colored layer in mix-blend-mode multiply (Friday Flare, Saturday Tangerine, Sunday Volt) and a per-act object-position cycling 20%, 50%, 80%, so three photos read as many. Icons come from Lucide. The map is drawn entirely in code.
## Tone
Loud, warm, specific and a little funny, like a poster written by people who run the event. Short sentences and real logistics. Never corporate.
---
— Prompt by VibeFather · https://vibefather.ai/t/music-festival-website · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 城市周末活动主办方:将 BRAND 设为活动名称,EVENT_DATES 设为三天,LOCATION 设为市中心街区,然后重写地图区域为广场和交通站点。
- 社区音乐节:使用 LINEUP_GENRES 设置为本地民谣和铜管演出,调低 GA_PRICE 为家庭日票价,并将露营区重新标记为野餐草坪。
- 举办夏季系列演出的场馆:保留海报阵容和日程,将地图舞台替换为房间和酒吧,并将票务表格指向你的售票处。
- 低音和俱乐部周末活动:将 LINEUP_GENRES 设为演出阵容,为 Camp Weekend 通行证调高 GA_PRICE,并重命名地图区域为深夜舞台和饮水点。
音乐节网站:常见问题
音乐节网站上的声音响应首屏是如何工作的?
音乐节网站模板附带一段由项目中小脚本生成的原创八小节循环,通过 Web Audio API 播放。在访客按下播放之前不会发出任何声音;随后太阳及其环形条柱跟随分析器传来的实时频率数据变化。暂停和静音始终可用,如果音频无法加载,视觉效果会继续运行。
怎么用 AI 做一个音乐节网站?
复制本页的完整提示词(Pro),或者运行 npx vibefather add music-festival-website,把 [BRAND]、[GA_PRICE]、[LOCATION]、[EVENT_DATES] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。