用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
面向单场黑客松的单页网站:首屏展示活动名称、指向 [DATE] 变量的实时倒计时和报名按钮;三张奖项赛道卡片,含示例金额和简介;紧凑的 36 小时日程,按区块标注(构建 / 餐饮 / 演示);一行四位评委,使用 AI 生成的虚构人像并标注角色;一条赞助商展示条,由绘制的通用分级文字块组成(不含 logo);五问 FAQ;以及报名表单(仅客户端,如实说明),含团队人数和赛道选择器。整体是通宵能量感:近黑底色、终端感等宽字体点缀、代码括号图案、一抹电光青柠色。倒计时指向 [DATE] 变量;页面不出现其他日期或年份。所有内容本地运行。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Hackathon Event Page
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
A single-page site for [EVENT], a 36-hour hackathon about [SCENE], starting [DATE]: a live countdown, three prize tracks, the schedule, four judges, a sponsor strip, an FAQ and a registration form (client-side only). One page, index.html; everything runs in the browser.
- Audience: Students and early-career builders deciding in one tab whether to give up a weekend: they want the tracks, the rules that matter (teams, hardware, sleep), and a two-minute registration.
- Goal: Registrations. Within ten seconds the visitor sees the countdown and 'Register'; within two minutes they've picked a track and submitted the form.
- Tone: Overnight-caffeinated but kind: terminal shorthand, zero corporate. One joke about调试 at 3 AM.
## 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/space-grotesk (OFL-1.1), @fontsource-variable/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:
- Scaffold with npm create vite@latest using the react-ts template (pin the version if the latest template targets newer majors), then keep one real HTML page: index.html (entry src/main.tsx).
- vite.config.ts: base './', plugins [react()], build { outDir 'dist', sourcemap false, assetsInlineLimit 0 }. Do not copy src/ into dist/.
- Tailwind 3.4 through PostCSS, content ['./index.html', './src/**/*.{ts,tsx}']. In tailwind.config.ts add every color under Design to theme.extend.colors with kebab-case keys (shell, panel, panel-2, line, bone, mist, lime, lime-deep, lime-mist, amber, violet, slateink, good) and fontFamily display ['Space Grotesk Variable', 'system-ui', 'sans-serif'], sans ['Inter Variable', 'system-ui', 'sans-serif'], mono ['JetBrains Mono', 'ui-monospace', 'monospace']. Set borderRadius DEFAULT to 8px and add maxWidth { container: '1160px' }.
- In src/fonts.ts import '@fontsource-variable/space-grotesk', '@fontsource-variable/inter' and '@fontsource/jetbrains-mono/400.css' plus '500.css'; import src/fonts.ts and src/index.css from the entry file.
- File layout: src/content.ts (event name, scene phrase, date string, tracks, schedule blocks, judges, sponsor tiers, FAQ rows and every string, typed), src/lib/brand.ts (eventSlug = [EVENT] lowercased with every run of non-alphanumeric characters replaced by '-', emailDomain = eventSlug without hyphens + '.dev'), src/lib/countdown.ts (parse [DATE]; timeLeft(target) → { days, hours, minutes, seconds, done }), src/lib/storage.ts (safe localStorage get/set wrapped in try/catch, key eventSlug + ':reg').
- State: src/store/reg.ts is a tiny external store (useSyncExternalStore) holding { name, email, track, teamSize, sent } persisted to localStorage; a clock hook ticks each second (information — continues under reduced motion).
- Components in src/components/: Header.tsx (Wordmark, RegisterButton), Countdown.tsx (CountCell.tsx), Hero.tsx (BracketTitle.tsx — the title wrapped in mono brackets), Tracks.tsx (TrackCard.tsx), Schedule.tsx (BlockRow.tsx), Judges.tsx (JudgeCard.tsx), Sponsors.tsx (TierRow.tsx, TileChip.tsx), Register.tsx (TrackSelect.tsx, TeamSizeSelect.tsx, Field.tsx), Faq.tsx (FaqRow.tsx), Footer.tsx. src/pages/Event.tsx composes them.
- The countdown's done-state swaps the hero line to 'We're live — the wifi password is on the whiteboard (sample).' and the register button to 'Join the recap list'.
- Registration form: name, email, TrackSelect (the three tracks), TeamSizeSelect (solo / 2 / 3 / 4); validation inline on blur (Amber text under fields); success crossfades to a Good panel: 'You're in — saved in this browser only; a real event would confirm from hello@' + emailDomain + '.'
- Before the first build, download every image listed under Assets into public/images/ with curl -L -o using the exact file names given. The build itself never fetches anything.
- public/favicon.svg as described under Assets. index.html: lang en, <meta name='theme-color' content='#0A0F0C'>, <link rel='icon' href='./favicon.svg' type='image/svg+xml'>, <title>[EVENT] — a 36-hour hackathon</title>.
- Write ASSETS.md at the project root as described under Assets.
- dist/ holds index.html, hashed JS/CSS, the woff2 fonts, favicon.svg and four portraits. Keep it under 8 MB.
## Variables
- [EVENT] — Event name (default: "Nightcompile"). The invented hackathon's name, one word. Used in the wordmark, title, brackets and email (hello@ + eventSlug without hyphens + '.dev'). Never a real event.
- [DATE] — Start date (default: "February 19, 2027"). The full future date the countdown runs to, written like 'February 19, 2027'. Keep it in the future; the date itself is never printed on the page.
- [SCENE] — Scene phrase (default: "tools that make student life slightly less chaotic"). One lowercase phrase naming what gets built. Rewrites the H1, track briefs, schedule demos and FAQ so the event reads true. Keep it concrete.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/hackathon-event-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.
## Design
### Colors
- Shell `#0A0F0C` — Page background — near-black with a green cast.
- Panel `#101812` — Cards, schedule rows, form panel.
- Panel 2 `#16211A` — Hover fills, raised panels, selects.
- Line `#23322A` — 1px hairlines: borders, table rows, dividers.
- Bone `#ECF2EC` — Primary text, headings.
- Mist `#8FA093` — Secondary text, eyebrows, schedule times.
- Lime `#A8E63C` — The one electric accent: countdown digits, primary buttons, track prize figures, focus ring, active states.
- Lime Deep `#7FB92A` — Hover and pressed primary.
- Lime Mist `#1D2A16` — Chip fills, selected track, tier-1 tile tint.
- Amber `#E0A93C` — Validation hints and the 'sleep' schedule block.
- Violet `#8A7BE8` — The 'food' schedule block and one judge-role accent — used sparingly.
- Slate Ink `#0C1408` — Text on lime fills.
- Good `#7FBF6A` — Success panel, registered state.
### Typography
- Display: H1, track titles, judge names, wordmark — Space Grotesk: Space Grotesk (OFL), weights 500/700
- Text and UI: body, forms, FAQ — Inter: Inter (OFL), weights 400/500/600
- Mono: countdown, schedule times, brackets, chips — JetBrains Mono: JetBrains Mono (OFL), weights 400/500
### Layout & motion
- Spacing: 8px base unit. Container max-width 1160px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. Section vertical padding 96px desktop, 72px under 1024px, 56px under 640px. Type scale: H1 clamp(44px, 7vw, 84px) Space Grotesk 700 line-height 1.02; H2 clamp(26px, 3.6vw, 40px) Space Grotesk 700; countdown digits JetBrains 500 48px tabular with 11px uppercase Mist labels; track titles Space Grotesk 700 22px; prize figures Space Grotesk 700 30px; body 15.5px / 1.7; eyebrows mono 12px uppercase letter-spacing 0.14em Mist; schedule times mono 13px. Buttons: height 48px, Inter 600 14px; primary Lime fill with Slate Ink text, secondary 1px Line border with Bone text. Inputs/selects: height 48px, Panel 2 fill, 1px Line border, focus Lime border + 2px offset ring. Focus everywhere: 2px Lime outline, 3px offset.
- Radius: 8px on cards, panels, buttons, inputs; 4px on schedule rows; 999px for chips and pills.
- Motion: Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1). Terminal-quick: nothing over 400ms except section reveals.
- Motion: Reveal: sections rise 10px over 500ms at 15% viewport (Motion whileInView, once); siblings stagger 60ms.
- Motion: Hero: the title's mono brackets draw in first (each bracket translates 8px, 240ms), then the title settles; a thin lime rule under the eyebrow pulses once.
- Motion: Countdown: digits swap instantly (information, tabular width held); at zero the row crossfades to the live line (300ms).
- Motion: Track cards: hover lifts 3px with the prize figure turning full Lime; the recommended track carries a persistent Lime 1.5px border.
- Motion: Schedule: rows reveal staggered 40ms; block-type chips (BUILD/FOOD/SLEEP/DEMOS) tint per color; hover fills Panel 2.
- Motion: Judges: portraits settle from scale 1.04 with an 80ms stagger.
- Motion: Register: field errors fade 160ms; the success crossfade is 260ms; the submit button's lime fill deepens on hover.
- Motion: Links: .link-draw grows a 1px currentColor underline over 240ms on hover and focus-visible.
- Motion: prefers-reduced-motion: reduce — no reveals, no bracket drawing, no portrait scale; the countdown still ticks; color hovers stay. Use CSS @media in index.css plus Motion's useReducedMotion.
- Imagery: Four judge portraits, all AI-generated fictional people in one consistent style: low-key lighting with a lime-rim light against near-black, hoodies and tees with blazers mixed, confident calm expressions, varied in age and ethnicity (a Latina woman in her 30s, a white man around 50, a South Asian man in his 20s, a Black woman around 40), not resembling any real individuals. No readable text, no logos, no lanyards or badges. Portraits object-fit cover, 8px corners, 1px Line outline. The sponsor strip is drawn-generic: wordmark-style text tiles in three tiers (no logos — invented names set as type). Icons: lucide-react only, stroke width 1.75. The favicon is drawn SVG.
## Pages & Sections
### Event page (`index.html`)
1. **Content file and copy rules** — All copy below is written for the defaults ([EVENT] = Nightcompile, [DATE] = February 19, 2027, [SCENE] = tools that make student life slightly less chaotic). Put every string, track, block, judge, tier and FAQ row in src/content.ts and render from it. If any variable differs, rewrite the H1, track briefs, schedule demo names, judge one-liners and FAQ so they fit that scene, keeping the counts (3 tracks, 12 schedule blocks, 4 judges, 3 sponsor tiers, 5 FAQ rows). Tracks (name · brief · prize sample): 'Campus life' 'timetables, laundry, and the group-chat chaos' '$1,500 (sample)'; 'Study better' 'notes that index themselves and flashcards that care' '$1,500 (sample)'; 'Wildcards' 'anything that makes a student laugh — judged loudest' '$500 (sample)' [recommended chip: 'most fun']. Schedule (time · title · type): 'FRI 18:00' 'Doors, wifi, lies about sleeping bags' FOOD; 'FRI 19:00' 'Kickoff + track pitches' BUILD; 'FRI 20:00' 'Teams form; snacks attack' BUILD; 'FRI 22:00' 'Mentor rounds begin' BUILD; 'SAT 00:00' 'Midnight checkpoint; coffee diplomacy' FOOD; 'SAT 03:00' 'The quiet hour ( debugging in the dark )' BUILD; 'SAT 08:00' 'Breakfast; stand-up stretch' FOOD; 'SAT 12:00' 'Mentor rounds; demo-drills' BUILD; 'SAT 16:00' 'Recommended nap window' SLEEP; 'SAT 20:00' 'Practice pitch gym' BUILD; 'SUN 09:00' 'Hard commit; slides from scraps' BUILD; 'SUN 12:00' 'Demos, judges, loud applause' DEMOS. Judges (name · role · one-liner): 'Rosa Delgado' 'Staff engineer, tools team' 'ships CLI tools people actually keep'; 'Hendrik Vos' 'CS professor (retired-ish)' 'grades gently, asks one brutal question'; 'Arjun Mehta' 'Nightcompile alum, cohort one' 'won with a laundry app; now builds fintech'; 'Tessa Boateng' 'Founder, campus software studio' 'funds what she demos twice'. Sponsor tiers: Tier 1 'Coldbrew Cloud' 'Keystone'; Tier 2 'Snackstack' 'Kettle' + 'Gitmind' 'Kettle'; Tier 3 'Papertrail Press' 'Brew' + 'Cyclops Lenses' 'Brew' + 'Hallmate' 'Brew' — all invented names set as type tiles, no logos. FAQ: 'Team size?' 'One to four; solo heroes welcome.'; 'Hardware?' 'Bring what you like; we loan arduino-ish kits at the desk (sample).'; 'Sleep?' 'There is a sanctioned nap room and a Saturday window; use both.'; 'Who owns the code?' 'You do — fully; we just cheer.'; 'Cost?' 'Free, including food; registration helps us count sandwiches.' All names, prizes and policies are invented sample content.
Layout: n/a
Motion: n/a
2. **Header** — Left: the wordmark '[EVENT]' (Space Grotesk 700 19px Bone) in mono brackets; over '36-HOUR HACKATHON' (10px mono uppercase Mist). Right nav (Inter 500 14px): 'Tracks' → #tracks, 'Schedule' → #schedule, and a compact primary 'Register' → #register. Under 720px: wordmark + register.
Layout: Sticky top, 64px, Shell at 92% with backdrop blur, Line bottom border.
3. **Hero** — BracketTitle: the H1 '[EVENT]' set with oversized mono brackets in Lime around the display name; standfirst 'Thirty-six hours to build [SCENE]. Mentors at 22:00, demos at noon Sunday, sandwiches counted (sample).' The Countdown (four CountCells — DAYS/HOURS/MINUTES/SECONDS — Lime digits with thin Line separators). CTA row: primary 'Register for [EVENT]' → #register, secondary 'See the tracks' → #tracks. Under, one mono status line '> doors open FRI 18:00 · fully in-person · sample event' with a blinking terminal cursor (cursor blink off under reduced motion).
Layout: Shell background with a soft lime radial glow at 12% behind the countdown; centered column max-width 760px; 120px top padding.
4. **Tracks** — Section id='tracks'. Eyebrow 'THREE TRACKS'; H2 'Pick a lane, or make one.' Three TrackCards: title, brief, the prize figure ('(sample)' appended in Mist), a chip row ('mentored', 'beginner-safe' — and the Wildcards' 'most fun' Lime chip). Cards hover-lift; Wildcards carries the recommended Lime border.
Layout: 3 columns 24px gap (1 under 860px).
5. **Schedule** — Section id='schedule'. Eyebrow 'THE 36 HOURS'; H2 'Coffee diplomacy included.' Twelve BlockRows on Panel: time (mono 13px Mist, fixed 96px), title (Inter 500 15px Bone), and a type chip (BUILD Lime-mist/Line; FOOD Violet-tinted; SLEEP Amber-tinted; DEMOS Lime fill with Slate Ink). A caption under: 'Times are the sample schedule — doors really do open at 18:00 (sample).'
Layout: Reading column max-width 820px; rows 8px radius, 10px padding; single column.
6. **Judges** — Section id='judges'. Eyebrow 'THE JUDGES'; H2 'Four people who ship.' Four JudgeCards: portrait (3:4), name (Space Grotesk 700 18px), role (13px Lime), one-liner (Inter 14.5px Mist). Caption: 'Placeholder portraits — AI-generated fictional people.'
Layout: 4 columns 24px gap (2 under 1024px, 1 under 640px).
7. **Sponsors** — Section id='sponsors'. Eyebrow 'BACKED BY (SAMPLE)'; H2 'Names, not logos.' Three TierRows: a mono tier label (KEYSTONE / KETTLE / BREW) and the tiles — invented names set as Space Grotesk wordmark-style type on Panel chips (tier 1 on Lime Mist, larger). Caption: 'Invented sponsors; real ones would go here with their marks.'
Layout: Reading column max-width 860px; tiers stacked, tiles centered in rows.
8. **Register** — Section id='register'. A wide Panel card with a Lime 1px top rail: left — eyebrow 'REGISTRATION'; H2 'Two minutes, then build.'; body 'Name, email, track, team size — that's the whole form. Free, food included, code stays yours (sample policy).'; the honest note 'This demo saves your registration in this browser only.' Right — the form per Setup with primary 'Count me in'. Success: the Good panel with the recap-list line when the countdown is done.
Layout: Shell background; card max-width 1040px, two columns 40px padding (stacked under 900px).
9. **FAQ and footer** — Five FaqRows (plus rotates to cross) on Panel rows. Footer: left wordmark + 'hello@' + emailDomain; right '© [EVENT]. A fictional hackathon; the sandwiches are real (in spirit).' and 'Built with a VibeFather template' linking https://vibefather.ai.
Layout: FAQ single column max-width 760px; footer 72px, Line top border.
## Assets
- image: Template portraits made for this design (free to redistribute with the template), all AI-generated fictional people, not resembling any real individual. Download each with curl -L -o into public/images/: https://media.vibefather.ai/assets/2ec629bd-055b-454e-9791-702acdfa3995/judge-rosa.webp → public/images/judge-rosa.webp (Judge 1; alt 'Portrait of judge Rosa Delgado'); https://media.vibefather.ai/assets/2ec629bd-055b-454e-9791-702acdfa3995/judge-hendrik.webp → public/images/judge-hendrik.webp (Judge 2; alt 'Portrait of judge Hendrik Vos'); https://media.vibefather.ai/assets/2ec629bd-055b-454e-9791-702acdfa3995/judge-arjun.webp → public/images/judge-arjun.webp (Judge 3; alt 'Portrait of judge Arjun Mehta'); https://media.vibefather.ai/assets/2ec629bd-055b-454e-9791-702acdfa3995/judge-tessa.webp → public/images/judge-tessa.webp (Judge 4; alt 'Portrait of judge Tessa Boateng'). Four files in total.
- image: Write ASSETS.md at the project root with a table: path, source URL, author, license — one row per portrait (source 'media.vibefather.ai, made for this template', author 'VibeFather', license 'Distributed with the template'), plus rows for @fontsource-variable/space-grotesk, @fontsource-variable/inter and @fontsource/jetbrains-mono (OFL-1.1) and lucide-react (ISC). State that portraits are AI-generated fictional placeholders and sponsor names are invented.
- icon: lucide-react only: ArrowRight, Check, Coffee, Cpu, MoonStar, Plus, Users. Stroke width 1.75, 14–20px, color inherits. public/favicon.svg: viewBox 0 0 32 32, a 32x32 rounded square filled #0A0F0C with a 1.5px #A8E63C border, a lime terminal chevron '>' centered. No brand logos.
- font: Install @fontsource-variable/space-grotesk, @fontsource-variable/inter and @fontsource/jetbrains-mono and import them in src/fonts.ts as listed in Setup. Vite bundles the woff2 files into dist/.
## Don'ts
- No backend, no form submission, no fetch to API: registration saves in localStorage only and the copy says so; every 'sample' label stays honest.
- Every internal link points to a file name or anchor (./index.html, #tracks, #register) — never to a bare directory; there is exactly one page.
- No real hackathons, sponsors, platforms (MLH, Devpost) or their marks: the event, sponsors, prizes and judges are invented; sponsor tiles are wordmark-style type, never logos.
- Judges are AI-generated fictional people, varied in age and ethnicity, not resembling any real individuals; no lanyards or badges in portraits.
- No real prize amounts presented as fact — '(sample)' rides along; the FAQ's cost answer stays free-but-fictional.
- The countdown targets the [DATE] variable only; no other dates, times as claims, or years appear beyond the sample schedule's weekday-pattern labels.
- Self-host everything: fonts through Fontsource, icons as npm packages or inline SVG, portraits downloaded into public/images/. No CDN <script> or <link> tags, no Google Fonts, no analytics.
- Production build: minified, no source maps, no src/ copied into dist/, single command npm run build, output in dist/ under 8 MB.
- Never mention VibeFather inside the site except the footer credit link; all copy is invented US English.
- Respect prefers-reduced-motion: no reveals, no bracket drawing, no cursor blink; the countdown keeps ticking and everything stays usable.
- The page must work at 1440x900 desktop and 390x844 mobile with zero console errors; nav, countdown, form, FAQ and buttons work with keyboard only and visible focus rings.
---
— Prompt by VibeFather · https://vibefather.ai/t/hackathon-event-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 黑客松活动页面
完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。
## 简介
为 [EVENT] 打造的单页网站,这是一个为期 36 小时、围绕 [SCENE] 的黑客松,于 [DATE] 开始:包含实时倒计时、三个奖项赛道、日程安排、四位评委、赞助商展示条、常见问题解答(FAQ)以及一个注册表单(仅客户端)。单页,index.html;一切都在浏览器中运行。
- 受众:学生和早期职业开发者,他们在一个标签页里决定是否要牺牲一个周末:他们想看到赛道、真正重要的规则(团队、硬件、睡眠),以及两分钟即可完成的注册。
- 目标:注册量。访客在十秒内看到倒计时和“Register”;在两分钟内选定一个赛道并提交表单。
- 语气:通宵咖啡因十足但友善:终端式简写,零企业腔。一个关于凌晨 3 点调试的笑话。
## 技术栈(Stack)
- 框架(Framework):Vite 5 + React 18 + TypeScript
- 样式(Styling):Tailwind CSS 3.4
- 库(Libraries):react(MIT)、react-dom(MIT)、motion(motion.dev,从 'motion/react' 导入)(MIT)、lucide-react(ISC)、tailwindcss(MIT)、postcss(MIT)、autoprefixer(MIT)、vite(MIT)、@vitejs/plugin-react(MIT)、typescript(Apache-2.0)、@fontsource-variable/space-grotesk(OFL-1.1)、@fontsource-variable/inter(OFL-1.1)、@fontsource/jetbrains-mono(OFL-1.1)
- 构建(Build):`npm run build` → 静态文件输出到 `dist/`。无后端、无服务端代码、无外部 API。
- 初始化(Setup):
- 使用 npm create vite@latest 并选择 react-ts 模板进行脚手架搭建(如果最新模板面向更新的主版本,则固定版本),然后保留一个真实的 HTML 页面:index.html(入口 src/main.tsx)。
- vite.config.ts:base './',plugins [react()],build { outDir 'dist', sourcemap false, assetsInlineLimit 0 }。不要将 src/ 复制到 dist/。
- 通过 PostCSS 使用 Tailwind 3.4,content ['./index.html', './src/**/*.{ts,tsx}']。在 tailwind.config.ts 中,将设计(Design)下的所有颜色以 kebab-case 键添加到 theme.extend.colors(shell、panel、panel-2、line、bone、mist、lime、lime-deep、lime-mist、amber、violet、slateink、good),并设置 fontFamily display ['Space Grotesk Variable', 'system-ui', 'sans-serif']、sans ['Inter Variable', 'system-ui', 'sans-serif']、mono ['JetBrains Mono', 'ui-monospace', 'monospace']。将 borderRadius 的 DEFAULT 设为 8px,并添加 maxWidth { container: '1160px' }。
- 在 src/fonts.ts 中导入 '@fontsource-variable/space-grotesk'、'@fontsource-variable/inter' 和 '@fontsource/jetbrains-mono/400.css' 以及 '500.css';从入口文件导入 src/fonts.ts 和 src/index.css。
- 文件布局:src/content.ts(活动名称、场景短语、日期字符串、赛道、日程区块、评委、赞助层级、FAQ 行以及所有字符串,带类型),src/lib/brand.ts(eventSlug = [EVENT] 转为小写,并将每段连续的非字母数字字符替换为 '-',emailDomain = eventSlug 去掉连字符 + '.dev'),src/lib/countdown.ts(解析 [DATE];timeLeft(target) → { days, hours, minutes, seconds, done }),src/lib/storage.ts(安全的 localStorage get/set,包裹在 try/catch 中,键为 eventSlug + ':reg')。
- 状态(State):src/store/reg.ts 是一个小型外部 store(useSyncExternalStore),持有 { name, email, track, teamSize, sent } 并持久化到 localStorage;一个时钟 hook 每秒滴答(信息性——在减少动态效果下继续运行)。
- 组件位于 src/components/:Header.tsx(Wordmark、RegisterButton)、Countdown.tsx(CountCell.tsx)、Hero.tsx(BracketTitle.tsx——标题包裹在等宽括号中)、Tracks.tsx(TrackCard.tsx)、Schedule.tsx(BlockRow.tsx)、Judges.tsx(JudgeCard.tsx)、Sponsors.tsx(TierRow.tsx、TileChip.tsx)、Register.tsx(TrackSelect.tsx、TeamSizeSelect.tsx、Field.tsx)、Faq.tsx(FaqRow.tsx)、Footer.tsx。src/pages/Event.tsx 组合它们。
- 倒计时的完成状态将 hero 行替换为 'We're live — the wifi password is on the whiteboard (sample).',并将注册按钮替换为 'Join the recap list'。
- 注册表单:姓名、邮箱、TrackSelect(三个赛道)、TeamSizeSelect(单人 / 2 / 3 / 4);在失焦时内联验证(字段下方 Amber 文本);成功时交叉淡入到 Good 面板:'You're in — saved in this browser only; a real event would confirm from hello@' + emailDomain + '.'
- 在首次构建之前,使用 curl -L -o 将资源(Assets)下列出的每张图片下载到 public/images/,并使用给定的确切文件名。构建本身从不获取任何内容。
- public/favicon.svg 如资源(Assets)下所述。index.html:lang en,<meta name='theme-color' content='#0A0F0C'>,<link rel='icon' href='./favicon.svg' type='image/svg+xml'>,<title>[EVENT] — a 36-hour hackathon</title>。
- 在项目根目录编写 ASSETS.md,如资源(Assets)下所述。
- dist/ 包含 index.html、带哈希的 JS/CSS、woff2 字体、favicon.svg 和四张肖像。保持在 8 MB 以下。
## 变量
- [EVENT] — 活动名称(默认:“Nightcompile”)。虚构黑客松的名称,一个单词。用于字标、标题、方括号和电子邮件(hello@ + 不含连字符的 eventSlug + '.dev')。绝不是真实活动。
- [DATE] — 开始日期(默认:“February 19, 2027”)。倒计时所指向的完整未来日期,写作 'February 19, 2027'。保持它在未来;日期本身永远不会印在页面上。
- [SCENE] — 场景短语(默认:“tools that make student life slightly less chaotic”)。一个小写短语,命名所构建的内容。重写 H1、赛道简介、日程演示和 FAQ,使活动读起来真实。保持具体。
- [CREDIT] — 在页脚保留一个小型“Template by VibeFather”链接到 https://vibefather.ai/t/hackathon-event-page(默认:是;删除此行以移除它)
页面与章节下的文案是为默认值编写的。如果你的值不同,请为它们重写每个标题、段落、标签和图像——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图像路径和链接放在一个内容文件中(例如 `src/content.ts`),按章节键控,以便以后可以交换内容而无需触碰组件。
## 设计
### 颜色(Colors)
- Shell `#0A0F0C` — 页面背景 — 接近黑色,带绿色调。
- Panel `#101812` — 卡片、日程行、表单面板。
- Panel 2 `#16211A` — 悬停填充、抬升面板、下拉选择。
- Line `#23322A` — 1px 细线:边框、表格行、分隔线。
- Bone `#ECF2EC` — 主文本、标题。
- Mist `#8FA093` — 次要文本、眉题、日程时间。
- Lime `#A8E63C` — 唯一的电光强调色:倒计时数字、主按钮、赛道奖金数字、焦点环、激活状态。
- Lime Deep `#7FB92A` — 悬停和按下状态的主按钮。
- Lime Mist `#1D2A16` — 标签填充、选中赛道、一级磁贴底色。
- Amber `#E0A93C` — 校验提示和“sleep”日程块。
- Violet `#8A7BE8` — “food”日程块和一个评委角色强调色 — 谨慎使用。
- Slate Ink `#0C1408` — Lime 填充上的文本。
- Good `#7FBF6A` — 成功面板、已注册状态。
### 字体排印(Typography)
- 展示字体:H1、赛道标题、评委姓名、字标 — Space Grotesk:Space Grotesk (OFL),字重 500/700
- 文本与 UI:正文、表单、FAQ — Inter:Inter (OFL),字重 400/500/600
- 等宽字体:倒计时、日程时间、括号、标签 — JetBrains Mono:JetBrains Mono (OFL),字重 400/500
### 布局与动效(Layout & motion)
- 间距:8px 基准单位。容器最大宽度 1160px,居中,桌面端侧边内边距 48px,平板端 32px,640px 以下 20px。区块垂直内边距桌面端 96px,1024px 以下 72px,640px 以下 56px。字号比例:H1 clamp(44px, 7vw, 84px) Space Grotesk 700 行高 1.02;H2 clamp(26px, 3.6vw, 40px) Space Grotesk 700;倒计时数字 JetBrains 500 48px 等宽数字,配 11px 大写 Mist 标签;赛道标题 Space Grotesk 700 22px;奖金数字 Space Grotesk 700 30px;正文 15.5px / 1.7;眉题等宽 12px 大写 字距 0.14em Mist;日程时间等宽 13px。按钮:高度 48px,Inter 600 14px;主按钮 Lime 填充配 Slate Ink 文本,次按钮 1px Line 边框配 Bone 文本。输入框/下拉选择:高度 48px,Panel 2 填充,1px Line 边框,聚焦时 Lime 边框 + 2px 偏移环。全局焦点:2px Lime 轮廓,3px 偏移。
- 圆角:卡片、面板、按钮、输入框 8px;日程行 4px;标签和胶囊 999px。
- 动效:缓动:--ease-out cubic-bezier(0.22, 0.61, 0.36, 1)。终端般迅捷:除区块显现外,任何动效不超过 400ms。
- 动效:显现:区块在视口 15% 处用 500ms 上升 10px(Motion whileInView,仅一次);同级元素错开 60ms。
- 动效:首屏:标题的等宽括号先绘制进入(每个括号位移 8px,240ms),然后标题落定;眉题下方一条细 Lime 线脉冲一次。
- 动效:倒计时:数字即时切换(信息性,保持等宽宽度);归零时该行交叉淡入到直播行(300ms)。
- 动效:赛道卡片:悬停上浮 3px,奖金数字变为全 Lime;推荐赛道带有常驻的 Lime 1.5px 边框。
- 动效:日程:行以 40ms 错开显现;块类型标签(BUILD/FOOD/SLEEP/DEMOS)按颜色着色;悬停填充 Panel 2。
- 动效:评委:肖像从 scale 1.04 落定,错开 80ms。
- 动效:注册:字段错误淡出 160ms;成功交叉淡入 260ms;提交按钮的 Lime 填充在悬停时加深。
- 动效:链接:.link-draw 在悬停和 focus-visible 时用 240ms 生长出 1px currentColor 下划线。
- 动效:prefers-reduced-motion: reduce — 无显现、无括号绘制、无肖像缩放;倒计时仍然跳动;颜色悬停保留。在 index.css 中使用 CSS @media,外加 Motion 的 useReducedMotion。
- 图像:四张评委肖像,全部为 AI 生成的虚构人物,风格统一:低调光配 Lime 轮廓光,背景接近黑色,连帽衫和 T 恤混搭西装外套,自信平静的表情,年龄和族裔多样(一位 30 多岁的拉丁裔女性、一位约 50 岁的白人男性、一位 20 多岁的南亚男性、一位约 40 岁的黑人女性),不似任何真实个人。无可读文本、无标志、无挂绳或徽章。肖像 object-fit cover,8px 圆角,1px Line 轮廓。赞助商条为绘制式通用样式:字标风格文本磁贴分三档(无标志 — 虚构名称以字体排版呈现)。图标:仅 lucide-react,描边宽度 1.75。favicon 为绘制式 SVG。
## 页面与区块
### 活动页(`index.html`)
1. **内容文件与文案规则** — 以下所有文案均按默认值编写([EVENT] = Nightcompile,[DATE] = February 19, 2027,[SCENE] = tools that make student life slightly less chaotic)。将每个字符串、赛道、区块、评委、层级和 FAQ 行都放入 src/content.ts 并从中渲染。若任何变量不同,请重写 H1、赛道简介、日程演示名称、评委一句话介绍和 FAQ 以适配该场景,同时保持数量不变(3 个赛道、12 个日程区块、4 位评委、3 个赞助层级、5 行 FAQ)。赛道(名称 · 简介 · 奖金示例):'Campus life' 'timetables, laundry, and the group-chat chaos' '$1,500 (sample)';'Study better' 'notes that index themselves and flashcards that care' '$1,500 (sample)';'Wildcards' 'anything that makes a student laugh — judged loudest' '$500 (sample)' [推荐标签:'most fun']。日程(时间 · 标题 · 类型):'FRI 18:00' 'Doors, wifi, lies about sleeping bags' FOOD;'FRI 19:00' 'Kickoff + track pitches' BUILD;'FRI 20:00' 'Teams form; snacks attack' BUILD;'FRI 22:00' 'Mentor rounds begin' BUILD;'SAT 00:00' 'Midnight checkpoint; coffee diplomacy' FOOD;'SAT 03:00' 'The quiet hour ( debugging in the dark )' BUILD;'SAT 08:00' 'Breakfast; stand-up stretch' FOOD;'SAT 12:00' 'Mentor rounds; demo-drills' BUILD;'SAT 16:00' 'Recommended nap window' SLEEP;'SAT 20:00' 'Practice pitch gym' BUILD;'SUN 09:00' 'Hard commit; slides from scraps' BUILD;'SUN 12:00' 'Demos, judges, loud applause' DEMOS。评委(姓名 · 职位 · 一句话介绍):'Rosa Delgado' 'Staff engineer, tools team' 'ships CLI tools people actually keep';'Hendrik Vos' 'CS professor (retired-ish)' 'grades gently, asks one brutal question';'Arjun Mehta' 'Nightcompile alum, cohort one' 'won with a laundry app; now builds fintech';'Tessa Boateng' 'Founder, campus software studio' 'funds what she demos twice'。赞助层级:层级 1 'Coldbrew Cloud' 'Keystone';层级 2 'Snackstack' 'Kettle' + 'Gitmind' 'Kettle';层级 3 'Papertrail Press' 'Brew' + 'Cyclops Lenses' 'Brew' + 'Hallmate' 'Brew' — 所有名称均为虚构,以字体块形式呈现,无徽标。FAQ:'Team size?' 'One to four; solo heroes welcome.';'Hardware?' 'Bring what you like; we loan arduino-ish kits at the desk (sample).';'Sleep?' 'There is a sanctioned nap room and a Saturday window; use both.';'Who owns the code?' 'You do — fully; we just cheer.';'Cost?' 'Free, including food; registration helps us count sandwiches.' 所有名称、奖金和政策均为虚构示例内容。
布局:不适用
动效:不适用
2. **页头** — 左侧:字标 '[EVENT]'(Space Grotesk 700 19px Bone),置于等宽括号内;上方为 '36-HOUR HACKATHON'(10px 等宽大写 Mist)。右侧导航(Inter 500 14px):'Tracks' → #tracks,'Schedule' → #schedule,以及紧凑的主按钮 'Register' → #register。720px 以下:字标 + 注册按钮。
布局:顶部粘性定位,64px 高,Shell 宽度 92%,背景模糊,底部 Line 边框。
3. **首屏** — BracketTitle:H1 '[EVENT]' 以超大等宽括号包裹展示名称,括号为 Lime 色;导语 'Thirty-six hours to build [SCENE]. Mentors at 22:00, demos at noon Sunday, sandwiches counted (sample).' 倒计时(四个 CountCell — DAYS/HOURS/MINUTES/SECONDS — Lime 数字配细 Line 分隔线)。CTA 行:主按钮 'Register for [EVENT]' → #register,次按钮 'See the tracks' → #tracks。下方一行等宽状态文字 '> doors open FRI 18:00 · fully in-person · sample event',带闪烁终端光标(减少动效模式下光标闪烁关闭)。
布局:Shell 背景,倒计时后方 12% 处柔和 Lime 径向光晕;居中列最大宽度 760px;顶部内边距 120px。
4. **赛道** — Section id='tracks'。眉题 'THREE TRACKS';H2 'Pick a lane, or make one.' 三张 TrackCard:标题、简介、奖金数字('(sample)' 以 Mist 色附加)、标签行('mentored'、'beginner-safe' — 以及 Wildcards 的 'most fun' Lime 标签)。卡片悬停上浮;Wildcards 带推荐 Lime 边框。
布局:3 列,24px 间距(860px 以下 1 列)。
5. **日程** — Section id='schedule'。眉题 'THE 36 HOURS';H2 'Coffee diplomacy included.' 十二个 BlockRow 置于 Panel 上:时间(等宽 13px Mist,固定 96px)、标题(Inter 500 15px Bone)、类型标签(BUILD Lime-mist/Line;FOOD 紫罗兰色调;SLEEP 琥珀色调;DEMOS Lime 填充配 Slate Ink)。下方说明:'Times are the sample schedule — doors really do open at 18:00 (sample).'
布局:阅读列最大宽度 820px;行圆角 8px,内边距 10px;单列。
6. **评委** — Section id='judges'。眉题 'THE JUDGES';H2 'Four people who ship.' 四张 JudgeCard:肖像(3:4)、姓名(Space Grotesk 700 18px)、职位(13px Lime)、一句话介绍(Inter 14.5px Mist)。说明:'Placeholder portraits — AI-generated fictional people.'
布局:4 列,24px 间距(1024px 以下 2 列,640px 以下 1 列)。
7. **赞助商** — Section id='sponsors'。眉题 'BACKED BY (SAMPLE)';H2 'Names, not logos.' 三个 TierRow:等宽层级标签(KEYSTONE / KETTLE / BREW)和字块 — 虚构名称以 Space Grotesk 字标风格呈现于 Panel 标签上(层级 1 为 Lime Mist,更大)。说明:'Invented sponsors; real ones would go here with their marks.'
布局:阅读列最大宽度 860px;层级堆叠,字块在行内居中。
8. **注册** — Section id='register'。宽 Panel 卡片,顶部 Lime 1px 轨道线:左侧 — 眉题 'REGISTRATION';H2 'Two minutes, then build.';正文 'Name, email, track, team size — that's the whole form. Free, food included, code stays yours (sample policy).';诚实提示 'This demo saves your registration in this browser only.' 右侧 — 按 Setup 的表单,主按钮 'Count me in'。成功:倒计时结束时显示 Good 面板及 recap-list 行。
布局:Shell 背景;卡片最大宽度 1040px,两列,40px 内边距(900px 以下堆叠)。
9. **FAQ 与页脚** — 五个 FaqRow(加号旋转为叉号)置于 Panel 行上。页脚:左侧字标 + 'hello@' + emailDomain;右侧 '© [EVENT]. A fictional hackathon; the sandwiches are real (in spirit).' 和 'Built with a VibeFather template' 链接至 https://vibefather.ai。
布局:FAQ 单列最大宽度 760px;页脚 72px,顶部 Line 边框。
## 资源
- 图片:为本设计制作的模板肖像(可随模板自由再分发),全部为 AI 生成的虚构人物,与任何真实个人无关。用 curl -L -o 将每个文件下载到 public/images/:https://media.vibefather.ai/assets/2ec629bd-055b-454e-9791-702acdfa3995/judge-rosa.webp → public/images/judge-rosa.webp(法官 1;alt 'Portrait of judge Rosa Delgado');https://media.vibefather.ai/assets/2ec629bd-055b-454e-9791-702acdfa3995/judge-hendrik.webp → public/images/judge-hendrik.webp(法官 2;alt 'Portrait of judge Hendrik Vos');https://media.vibefather.ai/assets/2ec629bd-055b-454e-9791-702acdfa3995/judge-arjun.webp → public/images/judge-arjun.webp(法官 3;alt 'Portrait of judge Arjun Mehta');https://media.vibefather.ai/assets/2ec629bd-055b-454e-9791-702acdfa3995/judge-tessa.webp → public/images/judge-tessa.webp(法官 4;alt 'Portrait of judge Tessa Boateng')。共四个文件。
- 图片:在项目根目录写入 ASSETS.md,包含一个表格:路径、来源 URL、作者、许可证——每张肖像一行(来源 'media.vibefather.ai, made for this template',作者 'VibeFather',许可证 'Distributed with the template'),另加 @fontsource-variable/space-grotesk、@fontsource-variable/inter 和 @fontsource/jetbrains-mono(OFL-1.1)以及 lucide-react(ISC)的行。说明肖像是 AI 生成的虚构占位图,赞助商名称是虚构的。
- 图标:仅使用 lucide-react:ArrowRight、Check、Coffee、Cpu、MoonStar、Plus、Users。描边宽度 1.75,14–20px,颜色继承。public/favicon.svg:viewBox 0 0 32 32,一个 32x32 的圆角方块,填充 #0A0F0C,带 1.5px #A8E63C 边框,居中一个青柠色终端尖角符号 '>'。不使用品牌标志。
- 字体:安装 @fontsource-variable/space-grotesk、@fontsource-variable/inter 和 @fontsource/jetbrains-mono,并按 Setup 中所列在 src/fonts.ts 中导入它们。Vite 会将 woff2 文件打包进 dist/。
## 禁止事项(Don'ts)
- 无后端、无表单提交、无 API 请求:注册仅保存在 localStorage 中,文案也如实说明;每个“sample”标签都保持诚实。
- 每个内部链接都指向文件名或锚点(./index.html、#tracks、#register)——绝不指向裸目录;只有一个页面。
- 不使用真实的黑客松、赞助商、平台(MLH、Devpost)或其标识:活动、赞助商、奖品和评委均为虚构;赞助商方块采用字标风格字体,绝不使用 logo。
- 评委是 AI 生成的虚构人物,年龄和族裔多样,不 resemblance 任何真实个人;肖像中无挂绳或徽章。
- 不以事实形式呈现真实奖金金额——“(sample)”随之出现;FAQ 的费用回答保持免费但虚构。
- 倒计时仅针对 [DATE] 变量;除示例日程的星期模式标签外,不出现其他日期、作为声明的时间或年份。
- 一切自托管:字体通过 Fontsource,图标作为 npm 包或内联 SVG,肖像下载到 public/images/。无 CDN <script> 或 <link> 标签,无 Google Fonts,无分析。
- 生产构建:压缩、无 source map、不将 src/ 复制到 dist/,单命令 npm run build,输出在 dist/ 下小于 8 MB。
- 除页脚署名链接外,绝不在站内提及 VibeFather;所有文案为虚构的美式英语。
- 尊重 prefers-reduced-motion:无显现、无括号绘制、无光标闪烁;倒计时继续走动,一切保持可用。
- 页面必须在 1440x900 桌面和 390x844 移动端零控制台错误;导航、倒计时、表单、FAQ 和按钮仅用键盘即可操作,并有可见焦点环。
---
— Prompt by VibeFather · https://vibefather.ai/t/hackathon-event-page · 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: "Hackathon Event Page"
colors:
shell: "#0A0F0C"
panel: "#101812"
panel_2: "#16211A"
line: "#23322A"
bone: "#ECF2EC"
mist: "#8FA093"
lime: "#A8E63C"
lime_deep: "#7FB92A"
lime_mist: "#1D2A16"
amber: "#E0A93C"
violet: "#8A7BE8"
slate_ink: "#0C1408"
good: "#7FBF6A"
typography:
display_h1_track_titles_judge_names_wordmark_space_grotesk: { family: "Space Grotesk", weights: [500, 700] }
text_and_ui_body_forms_faq_inter: { family: "Inter", weights: [400, 500, 600] }
mono_countdown_schedule_times_brackets_chips_jetbrains_mono: { family: "JetBrains Mono", weights: [400, 500] }
spacing: "8px base unit. Container max-width 1160px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. Section vertical padding 96px desktop, 72px under 1024px, 56px under 640px. Type scale: H1 clamp(44px, 7vw, 84px) Space Grotesk 700 line-height 1.02; H2 clamp(26px, 3.6vw, 40px) Space Grotesk 700; countdown digits JetBrains 500 48px tabular with 11px uppercase Mist labels; track titles Space Grotesk 700 22px; prize figures Space Grotesk 700 30px; body 15.5px / 1.7; eyebrows mono 12px uppercase letter-spacing 0.14em Mist; schedule times mono 13px. Buttons: height 48px, Inter 600 14px; primary Lime fill with Slate Ink text, secondary 1px Line border with Bone text. Inputs/selects: height 48px, Panel 2 fill, 1px Line border, focus Lime border + 2px offset ring. Focus everywhere: 2px Lime outline, 3px offset."
radius: "8px on cards, panels, buttons, inputs; 4px on schedule rows; 999px for chips and pills."
---
# Hackathon Event 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
- **Shell** `#0A0F0C` — Page background — near-black with a green cast.
- **Panel** `#101812` — Cards, schedule rows, form panel.
- **Panel 2** `#16211A` — Hover fills, raised panels, selects.
- **Line** `#23322A` — 1px hairlines: borders, table rows, dividers.
- **Bone** `#ECF2EC` — Primary text, headings.
- **Mist** `#8FA093` — Secondary text, eyebrows, schedule times.
- **Lime** `#A8E63C` — The one electric accent: countdown digits, primary buttons, track prize figures, focus ring, active states.
- **Lime Deep** `#7FB92A` — Hover and pressed primary.
- **Lime Mist** `#1D2A16` — Chip fills, selected track, tier-1 tile tint.
- **Amber** `#E0A93C` — Validation hints and the 'sleep' schedule block.
- **Violet** `#8A7BE8` — The 'food' schedule block and one judge-role accent — used sparingly.
- **Slate Ink** `#0C1408` — Text on lime fills.
- **Good** `#7FBF6A` — Success panel, registered state.
## Typography
- **Display: H1, track titles, judge names, wordmark — Space Grotesk** — Space Grotesk (OFL), weights 500/700. Self-host the font files.
- **Text and UI: body, forms, FAQ — Inter** — Inter (OFL), weights 400/500/600. Self-host the font files.
- **Mono: countdown, schedule times, brackets, chips — JetBrains Mono** — JetBrains Mono (OFL), weights 400/500. Self-host the font files.
## Spacing & shape
- Spacing: 8px base unit. Container max-width 1160px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. Section vertical padding 96px desktop, 72px under 1024px, 56px under 640px. Type scale: H1 clamp(44px, 7vw, 84px) Space Grotesk 700 line-height 1.02; H2 clamp(26px, 3.6vw, 40px) Space Grotesk 700; countdown digits JetBrains 500 48px tabular with 11px uppercase Mist labels; track titles Space Grotesk 700 22px; prize figures Space Grotesk 700 30px; body 15.5px / 1.7; eyebrows mono 12px uppercase letter-spacing 0.14em Mist; schedule times mono 13px. Buttons: height 48px, Inter 600 14px; primary Lime fill with Slate Ink text, secondary 1px Line border with Bone text. Inputs/selects: height 48px, Panel 2 fill, 1px Line border, focus Lime border + 2px offset ring. Focus everywhere: 2px Lime outline, 3px offset.
- Radius: 8px on cards, panels, buttons, inputs; 4px on schedule rows; 999px for chips and pills.
## Motion
- Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1). Terminal-quick: nothing over 400ms except section reveals.
- Reveal: sections rise 10px over 500ms at 15% viewport (Motion whileInView, once); siblings stagger 60ms.
- Hero: the title's mono brackets draw in first (each bracket translates 8px, 240ms), then the title settles; a thin lime rule under the eyebrow pulses once.
- Countdown: digits swap instantly (information, tabular width held); at zero the row crossfades to the live line (300ms).
- Track cards: hover lifts 3px with the prize figure turning full Lime; the recommended track carries a persistent Lime 1.5px border.
- Schedule: rows reveal staggered 40ms; block-type chips (BUILD/FOOD/SLEEP/DEMOS) tint per color; hover fills Panel 2.
- Judges: portraits settle from scale 1.04 with an 80ms stagger.
- Register: field errors fade 160ms; the success crossfade is 260ms; the submit button's lime fill deepens on hover.
- Links: .link-draw grows a 1px currentColor underline over 240ms on hover and focus-visible.
- prefers-reduced-motion: reduce — no reveals, no bracket drawing, no portrait scale; the countdown still ticks; color hovers stay. Use CSS @media in index.css plus Motion's useReducedMotion.
## Imagery
Four judge portraits, all AI-generated fictional people in one consistent style: low-key lighting with a lime-rim light against near-black, hoodies and tees with blazers mixed, confident calm expressions, varied in age and ethnicity (a Latina woman in her 30s, a white man around 50, a South Asian man in his 20s, a Black woman around 40), not resembling any real individuals. No readable text, no logos, no lanyards or badges. Portraits object-fit cover, 8px corners, 1px Line outline. The sponsor strip is drawn-generic: wordmark-style text tiles in three tiers (no logos — invented names set as type). Icons: lucide-react only, stroke width 1.75. The favicon is drawn SVG.
## Tone
Overnight-caffeinated but kind: terminal shorthand, zero corporate. One joke about调试 at 3 AM.
---
— Prompt by VibeFather · https://vibefather.ai/t/hackathon-event-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 大学计算机社团:把 EVENT 设为社团黑客松名称,SCENE 设为学生主题,然后把三个奖项赛道换成真实的赞助商奖项和规则。
- 气候科技社区:把 SCENE 指向你想让大家构建的气候问题,按气候数据集重写赛道简介,并把报名表单接到社区邮件列表。
- 举办发布冲刺的开发者工具公司:把 EVENT 设为冲刺名称,把评委行换成内部导师,把赞助商模块改造成生态合作伙伴分级。
- 举办周末创作营的设计或产品学校:保留倒计时和日程,把区块类型改成设计、餐饮、休息和演示,并为没有硬件的团队重写 FAQ。
黑客松活动页:常见问题
黑客松活动页模板包含哪些板块?
黑客松活动页模板是一个单页,包含:首屏展示活动名称、指向 DATE 变量的实时倒计时和报名按钮;三张奖项赛道卡片,含示例金额和简介;36 小时日程,按构建、餐饮、休息和演示区块排列;四张评委卡片,使用 AI 生成的虚构人像;一条分级文字块组成的赞助商展示条;五问 FAQ;以及含团队人数和赛道选择器的报名表单。所有内容都在浏览器本地运行。
不用 Pro 也能用黑客松活动页模板吗?
个人非商业用途可以:免费版黑客松活动页模板的提示词和每一份 DESIGN.md 都按 CC BY-NC 4.0 免费提供,页面也公开展示简介、技术栈和变量。商业或客户项目需要 Pro,Pro 还会解锁完整提示词和演示的源代码。模板内部没有价格或付费墙;它是一个你自己构建的静态站点。
怎么用 AI 做一个黑客松活动页?
复制本页的提示词,或者运行 npx vibefather add hackathon-event-page,把 [DATE]、[EVENT]、[SCENE] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。