跳到正文
VibeFather
免费注册

用这个模板做的 2 个案例

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

关于这个模板

纸灯笼节页面是一个围绕夜间插画河景构建的单页互动仪式。访客写下心愿,看着一张纸折叠成发光的灯笼,再将它放飞到柔和氛围光点组成的夜空中。个人画廊会把每个已放飞的心愿保存在同一台设备上,并提供再次放飞或移除的控制按钮。

整个场景完全用 Canvas 2D、SVG 和 CSS 绘制。深靛蓝色的山丘、缓慢的薄雾、暖色纸面板、河流倒影,以及一个固定种子的灯笼阵列,无需下载图片或使用 3D 引擎就能营造出纵深感。一个紧凑的风力控件可改变水平漂移;指针视差只会让风景移动几个像素。三步式创作器在桌面端位于场景旁边,在移动端位于场景下方,始终保持为普通的 DOM 界面,因此核心仪式从不只依赖指针操作。

这个模板适合创作者、设计师、教育工作者、社区项目,以及任何构建反思性数字活动或小型互动礼物的人。变量涵盖项目名称、节日标题、欢迎主标题、虚构河流、受众和心愿主题。备选案例将同一互动变成一场关于友谊、勇气和归乡的港口聚会。所有辅助文案和氛围心愿都作为可编辑内容指定,而不是散落在各个组件中。

构建使用 Vite、React、TypeScript、原生 CSS,以及本地打包的字体和图标。心愿存储是经过验证、带版本号的 localStorage,并明确披露仅限本地;没有公开信息流,也不假装有实时访客。固定的灯笼数量、受限的像素密度、可用键盘操作的控制,以及完整的减少动态效果模式,让这个静态站点保持实用。无需生成图片,也不需要后端、账户、外部 API、分析服务或远程资源托管。

模板提示词

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

# Paper Lantern Festival Page

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

## Brief
Build [BRAND], an original single-page paper-lantern festival called [FESTIVAL_NAME] above the fictional [RIVER_NAME]. The welcome headline is [HEADLINE], written for [AUDIENCE], with original ambient wishes shaped by [WISH_THEMES]. A full-width living Canvas 2D river scene carries the first screen. Beside it, a three-step DOM composer lets each visitor write a private wish, fold an SVG paper lantern, and release it into the animated sky. Released wishes persist in a personal local gallery with Release again and Remove actions. Use only procedural Canvas 2D, local SVG, CSS, and original copy; do not reproduce an existing event or lantern website.

- Audience: Write the welcome, wish prompts, helper text, and ambient wishes for [AUDIENCE]. The experience should feel understandable to a first-time visitor without instructions or an account. Keep the core write-fold-release workflow available through ordinary labeled buttons and fields on desktop, touch screens, and keyboards; canvas movement and pointer parallax are decorative enhancements, never required input.
- Goal: Within five seconds, show a richly layered night river, many warm lanterns, and an obvious place to write a wish. Make the transition from text to folded paper to released light feel coherent and rewarding, then make the saved wish easy to find after a reload. Preserve the draft through folding, keep up to 24 released wishes locally, and deliver the entire experience as static files with no external data request.
- Tone: Tender, quiet, secular, and lightly poetic rather than mystical or sentimental. Use concise US English and concrete interaction feedback. Treat lanterns as original paper-craft objects, not as sacred symbols or a claim of cultural authenticity. Never promise that a wish will come true. Be explicit that ambient wishes are invented, visitor wishes stay in the current browser, and there is no live public feed.

## Stack
- Framework: Vite 6 + React 18 + TypeScript
- Styling: Vanilla CSS with custom properties
- Libraries: react and react-dom (MIT), vite (MIT), typescript (Apache-2.0), lucide-react (ISC), @fontsource/fraunces (OFL-1.1), @fontsource/manrope (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:
  - Create package.json with scripts dev = vite, build = tsc --noEmit && vite build, and preview = vite preview. Configure vite.config.ts with base './', build.outDir 'dist', build.sourcemap false, build.target 'es2020', and minification enabled. Use one index.html entry, no router, and no backend.
  - Organize the project as src/content.ts for variable values, all visible copy, and the twelve ambient wishes; src/types.ts for lantern and saved-wish records; src/lib/random.ts for seeded generation; src/lib/storage.ts for validated persistence; src/components/FestivalCanvas.tsx for rendering and simulation; src/components/WishComposer.tsx for the ritual and SVG folding preview; src/components/LanternGallery.tsx; src/App.tsx for shared state; and src/styles.css for tokens and responsive rules. When variables change, rewrite every dependent wish, label, storage namespace, and instruction to fit the new values; leave no default-brand or default-festival remnants.
  - Self-host Fraunces 400, 500, and 600, Manrope 400, 500, 600, and 700, and IBM Plex Mono 400 and 500 through the listed Fontsource Latin packages. Set lang en, a plain document title '[BRAND] — [FESTIVAL_NAME]', theme-color #070C18, and an original local favicon.svg showing the same simple six-panel lantern geometry used in the scene. No font CDN or remote favicon.
  - Represent each scene lantern with id, kind ambient or personal, wishId when personal, normalized x and y, depth from 0.35 to 1, scale from 0.55 to 1.18, phase, sway, rotation, cycle, and releaseAge. Represent each saved wish with id, text, ordinal, and paperTone only; do not store a timestamp, location, visitor identity, or analytics data. Keep the composer draft in React state and active per-frame lantern data in refs.
  - Use a local mulberry32 generator seeded 291129 for the initial scene. Create 42 ambient lanterns at desktop widths and 24 at widths below 760px. Distribute normalized x from 0.04 to 0.96 and y from 0.09 to 0.68, with depth and scale ranges above, phase from 0 to 2π, and sway from 0.6 to 1.4. Assign the twelve default wishes cyclically but never paint their paragraphs onto the canvas. Add 96 faint stars with the same stable seed, rejecting any star within 44 CSS pixels of the moon center.
  - Render in this order: sky gradient; 96 stars and a plain moon; two far hill layers; two translucent mist bands; distant shoreline; river gradient and fine current lines; lantern reflection streaks; ambient lanterns sorted by depth; active personal lanterns and release trails; then near-bank silhouettes and a small unoccupied wooden dock. Use a horizon at 64% of canvas height, moon center at 18% × 19% with radius 30 CSS pixels, and water occupying the bottom 36%. Keep all text and controls in DOM rather than painting labels into the canvas.
  - Draw each lantern from original geometry at a 28 × 42 CSS-pixel base size multiplied by depth and scale: a shallow curved top shoulder, gently tapered six-panel body, darker open base, four fine vertical paper ribs, a warm inner gradient, a soft radial halo, and no writing, emblem, character, or religious symbol. Use Paper cream #F7EAC8 and Lantern amber #F6B85F for the paper, Lantern core #FFE6A3 for the center, and Copper line #8A6848 at low opacity for ribs. Limit halo radius to 2.2 times lantern width so text and silhouettes remain crisp. Mirror each lantern over water as three short low-alpha vertical streaks rather than a sharp duplicate.
  - Run a fixed 1/60-second simulation with at most three catch-up steps, rendered through requestAnimationFrame at a maximum of 30 frames per second during ambient drift and 60 frames per second for the 1.4-second personal release. Ambient vertical speed is 4 + depth × 7 CSS pixels per second upward. Horizontal velocity is wind × (3 + depth × 5) + sin(elapsed × 0.35 + phase) × sway × 1.8 pixels per second. Rotation is sin(elapsed × 0.5 + phase) × 0.055 radians and brightness varies by at most 7%. Wrap an ambient lantern to just below the river horizon when it exits the top or side, incrementing cycle and deriving its replacement x deterministically from id and cycle; never allocate random values every frame.
  - The wind range input has integer values 0, 1, and 2 labeled Still, Gentle, and Brisk, defaulting to Gentle. Map these to wind multipliers 0, 1, and 1.85. Pause ambient motion freezes simulation time without clearing lanterns; Resume continues from the same positions. Hide the canvas motion when document.hidden and resume without a large delta. Cap device pixel ratio at 1.75 desktop and 1.5 mobile, use ResizeObserver without resetting wishes or ambient positions, and clean up observers, listeners, and animation frames.
  - Implement subtle pointer parallax only on devices with a fine pointer: stars move at most 2 CSS pixels, far hills 4, mist 7, and near bank/dock 10 opposite the normalized pointer position, eased over 200ms. Personal lanterns do not follow the pointer. Disable parallax for touch and reduced motion, never use scroll-jacking or a custom cursor, and do not make ambient lanterns required click targets.
  - Model the composer as a finite state machine: write, folded, releasing, released. Write requires a trimmed wish of 3–120 UTF-16 characters and keeps the exact user text intact. Fold my lantern enters folded and plays the SVG sequence once. Back to wish returns to write without losing text. Release lantern enters releasing, creates one personal lantern at normalized x 0.48 and y 0.78, and saves exactly one gallery record. After 1.4 seconds it enters released and joins normal upward simulation. Write another clears only the composer; the gallery remains. Release again in the gallery creates a personal lantern for the existing wishId at x 0.48 and y 0.78 without adding a duplicate record.
  - Build the folding preview as a local inline SVG with a 160 × 160 viewBox and six named polygon groups. Start with a flat 104 × 104 diamond and four visible crease lines; over 1100ms fold the four corners inward at 0–420ms, close the side panels at 300–760ms, raise the base and illuminate the center at 680–1100ms. Finish on the same six-panel lantern silhouette used on canvas. Use transforms and opacity only, with no 3D library and no text on the paper. Under reduced motion, show the completed lantern immediately.
  - During releasing, draw a short amber trail and interpolate the personal lantern from y 0.78 to y 0.60 with easeOutCubic over 1.4 seconds while scale moves from 0.72 to 1. Afterward, apply the normal personal ascent speed of 9 + depth × 5 CSS pixels per second and the same wind rule. A personal lantern that leaves the viewport stays saved but becomes visually dormant; Release again resets its scene position. Reduced-motion release skips travel and trail, places the lantern immediately at y 0.58, announces success, and leaves the scene static.
  - Persist released wishes in localStorage under a versioned key derived from a lowercase hyphenated slug of [BRAND] plus '-lantern-wishes-v1'. Store at most 24 records in release order, assigning ordinals sequentially from 1 and storing no real dates. At 24 records, disable Release lantern for a new wish and show 'Your gallery holds 24 wishes. Remove one before releasing another.'; Release again remains available because it adds no record. Validate restored JSON for version, id, 3–120 character text, ordinal, and allowed paperTone; discard malformed records and recover silently from unavailable storage with an inline 'This browser could not save your gallery; this session still works.' message. Remove requires one inline confirmation, renumbers surviving records sequentially in release order, hides active personal lanterns with that wishId, and never contacts a server.
  - Use semantic DOM controls for the entire ritual: labeled textarea, three wish-prompt buttons, step buttons, native wind range, Pause or Resume, gallery Release again and Remove, and a Reset scene button that resets only camera/parallax and wind, not saved wishes. The canvas has an accessible summary naming [FESTIVAL_NAME], the current wind, and the number of released personal lanterns; it is not the only way to perform any action. Use visible focus, aria-current on the active composer step, aria-live polite for fold/release/save feedback, and do not announce animation frames.
  - For prefers-reduced-motion, render the initial stars, hills, river, and all lanterns as a complete static tableau; do not run ambient ascent, flicker, parallax, folding travel, release trails, or autonomous UI movement. Preserve write, fold, release, gallery, wind-label, and removal functions with immediate state changes. Listen for preference changes and stop or restart rendering appropriately without losing state.
  - Write ASSETS.md at the project root covering the original procedural scene and lantern geometry, original SVG folding preview and favicon, Lucide ISC, and all three Fontsource packages with OFL-1.1 licenses. Keep every runtime request local and dist/ below 20 MB. No generated, stock, downloaded, or placeholder image files are required for this template.

## Variables
- [BRAND] — Project name (default: "Avelume"). An invented short name for the wordmark, document title, footer, and local-storage namespace; never a real event or organization.
- [FESTIVAL_NAME] — Festival title (default: "The Stillwater Ascent"). A short invented gathering title used in the eyebrow, canvas description, gallery introduction, and footer.
- [HEADLINE] — Welcome headline (default: "Let your wish find the sky."). A clear five-to-nine-word invitation; adapt the supporting sentence if its meaning changes.
- [RIVER_NAME] — Fictional river or inlet (default: "River Elian"). An invented waterfront place used in the welcome and festival note; never a real landmark.
- [AUDIENCE] — Audience (default: "dreamers, friends, and quiet night wanderers"). A plain-language phrase used to shape the welcome, wish prompts, and guide copy.
- [WISH_THEMES] — Wish themes (default: "hope, gratitude, and new beginnings"). Three broad themes used to rewrite the twelve ambient wishes and three prompt suggestions without predictions or advice.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/paper-lantern-festival-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
- Night ink `#070C18` — Page background, deepest sky, and modal scrims.
- River indigo `#0D1830` — Sky transition, header, and primary raised surfaces.
- Composer navy `#111D33` — Wish composer, gallery cards, and control surfaces.
- Mist teal `#24424B` — Far hills, atmospheric bands, and quiet scenic depth.
- Paper cream `#F7EAC8` — Primary text, lantern paper, and warm highlights.
- Muted blue `#AAB6CB` — Secondary copy and inactive controls with readable contrast.
- Lantern amber `#F6B85F` — Primary action, active steps, focus rings, and lantern edges.
- Lantern core `#FFE6A3` — Lantern illumination and tiny warm glints only.
- Copper line `#8A6848` — Paper ribs, warm dividers, and secondary ornamental rules.
- Amber ink `#261808` — Text on Lantern amber buttons.
- Water glint `#7EA4B8` — Fine current lines and cool river reflections.
- Night line `#2A3850` — Borders, input outlines, stepper tracks, and card separators.

### Typography
- Wordmark, welcome H1, festival note, gallery title, and released-wish text: Fraunces (OFL), weights 400/500/600
- Body, composer, buttons, fields, gallery actions, and status messages: Manrope (OFL), weights 400/500/600/700
- Step numbers, wind labels, wish counts, and small privacy labels: IBM Plex Mono (OFL), weights 400/500

### Layout & motion
- Spacing: Use an 8px base unit. The desktop shell is max-width 1600px with 24px side padding; header is 68px high. The desktop festival hero is height calc(100svh - 92px), minimum 680px and maximum 840px, with 48–56px overlay padding. The composer is 380px wide with 24px padding and 16px group gaps. Gallery and ritual sections use a 1280px inner shell, 96px desktop and 64px mobile vertical padding. At 390 × 844 use a 56px header, 16px side padding, a 430px scene, a normal-flow composer below it, and single-column gallery cards. All interactive targets are at least 44 by 44px, and page content never causes horizontal overflow.
- Radius: Use 20px for the festival stage, 16px for the composer and gallery cards, 10px for fields and primary buttons, 8px for small controls, and 999px only for the three-step indicator and compact scene-status pills. Use 1px Night line borders and restrained shadows. The scene and paper lanterns supply the organic curves; avoid nesting every control inside a rounded floating card.
- Motion: Render the complete landscape, first ambient lantern field, headline, and write form immediately, with no splash, loading gate, or blocking intro. Ambient lanterns drift only after the first painted tableau is visible.
- Motion: Lantern ascent, wind sway, tiny rotation, and 7% brightness variation follow the exact fixed-step simulation. Pointer parallax is limited to 2, 4, 7, and 10 CSS pixels by layer and never moves interface panels.
- Motion: The folding preview is one coherent 1100ms sequence: corners, side panels, base, then inner light. It does not loop, bounce, or require the user to drag paper.
- Motion: Personal release uses a 1400ms easeOutCubic rise from the dock with a short fading trail, then joins the same wind and ascent system. Composer success crossfades over 180ms without shifting the panel width.
- Motion: Wish prompts, wind settings, buttons, and gallery actions use 120–180ms color, opacity, or at most 4px movement transitions. Reduced motion removes ambient drift, flicker, parallax, folding travel, release travel, and nonessential transforms while retaining immediate state feedback.
- Imagery: The high-craft procedural Canvas 2D river festival is the visual anchor; use no photographs, generated bitmap images, downloaded landscapes, paper textures, video, or external lantern art. Layer an indigo sky, 96 stable stars, a plain moon, teal hill silhouettes, translucent mist, fine water currents, warm six-panel lanterns, soft halos, broken reflections, and an unoccupied dock. The SVG folding preview and favicon reuse the same original paper geometry. No people, faces, mascots, sacred emblems, recognizable landmarks, real event signage, or branded lantern imagery.

## Pages & Sections
### [BRAND] — [FESTIVAL_NAME] (`index.html`)
1. **Content model and exact default wishes** — Keep every visible string and all ambient wishes in src/content.ts. Default festival eyebrow is '[FESTIVAL_NAME] · [RIVER_NAME]'; H1 is '[HEADLINE]'; welcome body is 'A small imagined festival for [AUDIENCE]. Write one private wish, fold it into light, and let it drift above the water.' The theme line is 'Twelve imagined wishes inspired by [WISH_THEMES]. Yours stays only in this browser.' Default ambient wishes in order are: 01 'May I notice the good while it is here.'; 02 'For the courage to begin before I feel ready.'; 03 'A little more time with the people I love.'; 04 'May the next chapter feel like my own.'; 05 'For softer days after a difficult year.'; 06 'May I make something worth sharing.'; 07 'A safe journey home for someone dear.'; 08 'For gratitude that outlasts the moment.'; 09 'May I forgive myself for taking time.'; 10 'For work that leaves the world a little kinder.'; 11 'May an old friendship find its way back.'; 12 'For a home filled with unhurried mornings.' The three composer prompt buttons are 'A fresh start', 'Someone I miss', and 'A little courage'; activating one inserts respectively 'May I welcome a fresh start with an open heart.', 'May someone I miss feel how often they are in my thoughts.', or 'May I find a little courage for the next small step.' The visitor can edit inserted text before folding. For alternate variables, rewrite all twelve wishes and three prompt suggestions around the supplied WISH_THEMES and AUDIENCE at similar lengths; do not retain these default texts.
   Layout: This section defines the content model rather than a separate visible marketing block. Each ambient record supplies id and text only; no author, location, timestamp, or simulated visitor name. Personal wishes use the visitor's exact trimmed text. The paperTone cycles through cream, honey, and pale apricot using ordinal modulo 3 while staying inside the declared warm palette.
   Motion: Ambient wishes are not displayed as moving text on the canvas. Announce completed fold, release, save, relaunch, and removal actions once through a polite status region, never individual animation frames.
2. **Header and festival welcome** — Header left contains the original six-panel lantern SVG mark and [BRAND] in Fraunces 500 at 23px. Header right contains anchor links Festival and Your lanterns, plus a small outlined How it works button that moves to the ritual notes without opening a modal. The festival welcome overlays the upper-left of the scene and contains the eyebrow, H1, body, and theme line exactly as defined above. Do not add accounts, pricing, testimonials, a newsletter, a public counter, or a separate marketing hero before the interactive scene.
   Layout: The header spans the shell with a bottom Night line border. On desktop the welcome occupies at most 520px at left 56px and top 48px within the hero, with 16px text-group gaps and H1 at clamp(48px, 4.5vw, 72px) with 0.98 line height. On mobile the header keeps brand and Your lanterns visible and hides only the Festival and How it works links; the welcome sits left 20px, right 20px, and top 24px over a darkening sky scrim with H1 at 40px and the body limited to three lines. The theme line moves below the scene on mobile if space is tight; never cover it with the composer.
   Motion: Welcome copy is present at first paint. Only links, buttons, and focus rings animate; no headline reveal, floating text, typewriter effect, or moving eyebrow.
3. **Living river stage and scene controls** — The full-bleed canvas illustrates [FESTIVAL_NAME] above [RIVER_NAME], using the exact renderer and lantern counts from Setup. A small upper-center pill reads 'AN IMAGINED FESTIVAL · LOCAL ONLY'; do not call ambient lanterns live visitors. Bottom-left controls are a labeled Wind range with Still, Gentle, and Brisk and a Pause motion or Resume motion button. Bottom-right contains a RotateCcw Reset scene button and the quiet caption 'Procedural paper, water, wind & light'. The canvas accessible description summarizes the scene and directs users to the labeled wind controls and wish composer. Ambient lanterns create atmosphere but are not buttons and expose no fake public feed.
   Layout: On desktop the canvas fills the entire rounded festival hero behind the welcome and composer, with dark left and right readability scrims that leave the central sky visible. Scene controls occupy 48px-high solid Night-ink-at-88% strips at the bottom corners, clear of the dock. On mobile the canvas is 430px high, the center pill shortens to 'IMAGINED · LOCAL ONLY', the wind and pause controls form one bottom row, Reset scene remains labeled, and the procedural caption is omitted. Set touch-action pan-y on the canvas so vertical page scrolling remains natural; no dragging is needed.
   Motion: Implement the exact seeded drift, wind, pause, release, parallax, frame caps, and reduced-motion behavior from Setup. Wind changes affect velocity without jumping positions. Pause and preference changes never reset the gallery or draft. Avoid layout movement when control labels change.
4. **Three-step wish composer** — The composer title is 'Make a little light' with the privacy line 'Your wish is stored only in this browser.' A three-item stepper reads 01 Write, 02 Fold, 03 Release. In write state show label 'Your wish', a 120-character textarea with placeholder 'What would you like to send into the night?', live '{n}/120' count, and the three prompt buttons from the content model. Primary button Fold my lantern is disabled until the trimmed wish has at least three characters; helper reads '3–120 characters · nothing is uploaded'. In folded state show the completed SVG lantern, the exact wish in a readable cream paper excerpt, Back to wish, and primary Release lantern. In releasing state disable duplicate submission and show 'Folding the light into the sky…'. In released state show Check icon, 'Your wish is drifting.', the wish excerpt, primary View my lanterns linking to the gallery, and secondary Write another. Do not clear the textarea until Write another.
   Layout: On desktop the 380px composer sits right 40px and top 40px within the hero, using Composer navy at 96% opacity, a 1px Night line border, 20px radius, and 24px padding. The stepper is a single three-column row with a fine track and amber active number. Textarea is 112px high; prompt buttons wrap without overflow; primary actions are full width and 48px high. The folding SVG is 160px square centered above the wish excerpt. On mobile the composer leaves the canvas overlay and follows it in normal flow at full width with 20px padding, no negative margin, and no fixed height. Every field and action remains at least 44px high.
   Motion: Use the finite state machine, 1100ms fold, 1400ms release, and reduced-motion alternatives from Setup. The stepper updates with aria-current rather than color alone. Success uses a 180ms opacity transition, never a confetti burst, toast library, automatic scroll, or automatic second lantern.
5. **Personal lantern gallery** — Section eyebrow is 'YOUR LANTERNS'; title is 'Wishes you have set afloat.' The local-only note reads 'Saved on this device, not online. Clearing browser storage will remove them.' Empty state contains a small unlit six-panel SVG, 'No wishes released yet.', and a Write a wish anchor back to the composer. Nonempty gallery cards show 'LANTERN {ordinal padded to two digits}', the full wish in Fraunces 400, a small paperTone lantern thumbnail, Release again with Send icon, and Remove with Trash2 icon. Remove first changes to an inline 'Remove this wish?' with Keep it and Remove actions. Release again announces 'This wish is drifting again' and does not duplicate or reorder the card. Show a count of '1 saved wish' or '{n} saved wishes'; never show dates, locations, or public viewer counts.
   Layout: The section sits on Night ink within the 1280px inner shell. Its header is a two-column title/count row with the privacy note below. Cards form a three-column grid at 1200px and above, two columns at tablet, and one column on mobile, with 16px gaps. Each card uses Composer navy, 16px radius, 20px padding, a 72px lantern illustration column beside flexible wish text, and a bottom hairline action row. Long wishes wrap naturally without truncation or fixed-height clipping; the grid uses align-items start. Empty state spans the grid with 48px padding and a centered action.
   Motion: Release again uses the standard personal release without scrolling away from the gallery. Removal collapses the card over 160ms only when reduced motion is off; focus moves to the next card's Release again button or the empty-state action. Saving and errors use inline text rather than layout-shifting toasts.
6. **Ritual notes and footer** — A compact editorial band titled 'A wish, in three small movements' presents: 01 Write — 'Choose a prompt or begin with your own words. There is no account and no public submission.'; 02 Fold — 'Watch six paper panels close around the light. You can return and edit before release.'; 03 Release — 'Send the lantern above [RIVER_NAME], adjust the wind, then find the wish waiting in your gallery.' Beside it, a quiet note titled 'Private by design' reads 'The other wishes are invented for this imagined festival. Your words never leave this browser, and no one can see them here unless you show them.' Footer contains [BRAND], 'An imagined gathering shaped by [WISH_THEMES].', 'No public feed · no account · no uploaded wishes', and the optional [CREDIT] link. No copyright year.
   Layout: The ritual band uses a 5/7 grid: title and privacy note on the left, three numbered steps on the right separated by horizontal hairlines. On mobile it becomes one column with steps after the privacy note. Footer is a quiet flex row with top Night line border, 24px vertical padding, and 13px Muted blue text, stacked with 12px gaps on mobile. Anchor targets have scroll-margin-top 24px and no extra route.
   Motion: The section and footer are static except for 120ms link color changes. Smooth anchor scrolling is allowed only when reduced motion is not requested; otherwise jump immediately. No scroll-triggered scene pinning or reveal dependency can hide this content.

## Assets
- image: Use no external or generated image files. Author the river, hills, mist, moon, stars, dock, water currents, six-panel lanterns, halos, reflections, folding preview, brand mark, and favicon entirely with local Canvas 2D, SVG, and CSS from the declared original geometry. Record this original procedural authorship in ASSETS.md; no downloaded maps, textures, photographs, or placeholder images.
- icon: Bundle lucide-react locally for Check, Send, Trash2, RotateCcw, Pause, Play, Wind, ArrowDown, ArrowUp, and PenLine at 18–20px with currentColor. Use only familiar utility meanings; do not import brand, event, religious, or third-party lantern icons. Record Lucide's ISC license in ASSETS.md.
- font: Install and self-host @fontsource/fraunces, importing only Latin woff2 files for weights 400, 500, and 600. Record package path, source, author, and OFL-1.1 license in ASSETS.md; no font CDN.
- font: Install and self-host @fontsource/manrope, importing only Latin woff2 files for weights 400, 500, 600, and 700. Record package path, source, author, and OFL-1.1 license in ASSETS.md; no font CDN.
- font: Install and self-host @fontsource/ibm-plex-mono, importing only Latin woff2 files for weights 400 and 500. Record package path, source, author, and OFL-1.1 license in ASSETS.md; no font CDN.

## Don'ts
- Do not copy, trace, recolor, or closely imitate an existing lantern festival, event website, wish wall, or interactive lantern experience, including its code, prompt text, layout composition, illustrations, icons, copy, slogans, names, logos, mascots, or signature animation assets. The procedural scene and interaction here must remain original.
- Do not use real festival names, logos, branded lanterns, real people's likenesses, licensed characters, recognizable landmark skylines, culturally specific sacred symbols, religious iconography, or claims of cultural authenticity. Keep the river and event fictional and the paper craft generic.
- Do not copy wishes, ceremony copy, illustrations, textures, code, or animation assets from another source. The twelve ambient wishes, prompt suggestions, interface copy, and alternate-theme content must be newly written and kept in the content module.
- Do not present ambient lanterns as live visitors, wishes as public submissions, or the gallery as an online community. Never promise that wishes come true. Keep the imagined-festival and local-only disclosures visible and never request a name, email, location, account, or social profile.
- No backend, server code, API routes, database, authentication, remote form submission, analytics, third-party API, runtime fetch, tracking pixel, social widget, or public sharing service. Saved wishes stay in validated localStorage and contain only the declared id, text, ordinal, and paperTone fields.
- No CDN scripts or styles, Google Fonts URLs, hotlinked assets, externally hosted icons, placeholder-image services, Unsplash, Pexels, Pixabay, Google Images, or assets with unclear, noncommercial, or share-alike licenses. Use Vite base './', relative paths, locally bundled packages, and self-hosted Fontsource fonts.
- Do not add image generation, photographs, video, WebGL, Three.js, a canvas helper library, a state-management library, an animation framework, a router, or an external physics service. Native Canvas 2D, SVG, CSS, React state, and the declared packages are sufficient.
- Do not hard-code default brand, festival, headline, river, audience, wish themes, ambient wishes, prompt suggestions, or storage namespace outside src/content.ts. Alternate values must produce coherent new copy and twelve theme-appropriate wishes with no default remnants or unresolved [VARIABLE] placeholders.
- Do not bypass the write-fold-release state machine, allow duplicate submissions during release, save before Release lantern is activated, erase a draft when moving Back to wish, duplicate gallery records on Release again, or reset saved wishes with Reset scene. Follow the storage cap and validation rules exactly.
- Do not attach touch-action none to the canvas or page, require dragging to fold paper, make ambient lanterns mandatory click targets, use pointer-only controls, autoplay audio, scroll-jack, pin sections, use a custom cursor, or hide content behind scroll reveals. The complete ritual must work with keyboard and touch.
- Do not run unbounded lantern counts, per-frame React rendering, per-frame random or star-array allocation, uncapped device pixel ratio, animation while hidden, autonomous camera movement, or motion that ignores prefers-reduced-motion. Keep the fixed counts, frame caps, cleanup, and static reduced-motion tableau.
- Do not use excessive bloom, moving wish paragraphs, fake visitor counts, public usernames, timestamps, pricing, testimonials, newsletter forms, marketing sections, splash screens, or confetti. The festival scene and composer are the first screen and primary experience.
- Do not add extra pages, bare-directory links, SEO markup, structured data, Open Graph work, sitemap code, or metadata beyond the plain title, theme color, and original favicon. The only page is index.html and all navigation uses local anchors.
- Production npm run build must emit minified static dist/ below 20 MB with no source maps and no src/ copied into dist/. It must run without console errors at 1440 × 900 and 390 × 844, keep all tap targets at least 44px, preserve long wishes without clipping, and leave no horizontal page overflow.
- Use visible focus, semantic buttons and form labels, an accessible canvas summary, polite status messages, aria-current on steps, and selected states that do not rely on color alone. Removal confirmation and gallery focus handling must work without a pointer, and local-storage failures must not break the session.
- Never mention VibeFather in the rendered site except the optional [CREDIT] link, and never use VibeFather or a real brand as a variable default. All copy, labels, sample wishes, and accessible text must be US English.

---
— Prompt by VibeFather · https://vibefather.ai/t/paper-lantern-festival-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 纸灯笼节页面

完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。

## 简介
构建 [BRAND],一个原创的单页纸灯笼节,名为 [FESTIVAL_NAME],位于虚构的 [RIVER_NAME] 之上。欢迎标题为 [HEADLINE],为 [AUDIENCE] 而写,配有由 [WISH_THEMES] 塑造的原创环境祝愿。一个全宽的活动 Canvas 2D 河流场景承载首屏。其旁,一个三步 DOM 组合器让每位访客写下私人心愿、折叠一盏 SVG 纸灯笼,并将其释放到动画天空中。已释放的心愿会保存在个人本地画廊中,带有“再次释放”和“移除”操作。仅使用程序化 Canvas 2D、本地 SVG、CSS 和原创文案;不要复制现有活动或灯笼网站。

- 受众:为 [AUDIENCE] 撰写欢迎语、心愿提示、辅助文本和环境祝愿。体验应让首次访客无需说明或账户即可理解。在桌面、触摸屏和键盘上,通过普通带标签的按钮和字段保持核心的写-折-放工作流可用;画布移动和指针视差是装饰性增强,绝不是必需的输入。
- 目标:在五秒内,展示一个层次丰富的夜晚河流、许多温暖的灯笼,以及一个明显的写心愿之处。让从文字到折叠纸张再到释放光芒的过渡感觉连贯且有回报,然后让保存的心愿在重新加载后易于找到。在折叠过程中保留草稿,本地最多保留 24 个已释放的心愿,并将整个体验作为静态文件交付,不发起外部数据请求。
- 语气:温柔、安静、世俗,略带诗意,而非神秘或感伤。使用简洁的美式英语和具体的交互反馈。将灯笼视为原创纸艺物件,而非神圣象征或对文化真实性的主张。绝不要承诺心愿会成真。明确说明环境祝愿是虚构的,访客心愿保留在当前浏览器中,且没有实时公共信息流。

## 技术栈
- 框架:Vite 6 + React 18 + TypeScript
- 样式:原生 CSS 配合自定义属性
- 库:react 和 react-dom(MIT)、vite(MIT)、typescript(Apache-2.0)、lucide-react(ISC)、@fontsource/fraunces(OFL-1.1)、@fontsource/manrope(OFL-1.1)、@fontsource/ibm-plex-mono(OFL-1.1)
- 构建:`npm run build` → `dist/` 中的静态文件。无后端、无服务器代码、无外部 API。
- 设置:
  - 创建 package.json,脚本为 dev = vite、build = tsc --noEmit && vite build、preview = vite preview。配置 vite.config.ts,设置 base './'、build.outDir 'dist'、build.sourcemap false、build.target 'es2020',并启用压缩。使用单个 index.html 入口,无路由,无后端。
  - 按如下方式组织项目:src/content.ts 存放变量值、所有可见文案和十二条环境愿望;src/types.ts 存放灯笼和已保存愿望的记录;src/lib/random.ts 存放种子生成逻辑;src/lib/storage.ts 存放经过校验的持久化逻辑;src/components/FestivalCanvas.tsx 负责渲染和模拟;src/components/WishComposer.tsx 负责仪式流程和 SVG 折叠预览;src/components/LanternGallery.tsx;src/App.tsx 负责共享状态;src/styles.css 存放设计令牌和响应式规则。当变量变化时,重写所有依赖的愿望、标签、存储命名空间和说明文字以匹配新值;不得残留默认品牌或默认节日的痕迹。
  - 通过所列的 Fontsource Latin 包自托管 Fraunces 400、500 和 600,Manrope 400、500、600 和 700,以及 IBM Plex Mono 400 和 500。设置 lang en、纯文本文档标题 '[BRAND] — [FESTIVAL_NAME]'、theme-color #070C18,以及一个原创的本地 favicon.svg,展示与场景中相同的简单六面板灯笼几何形状。不使用字体 CDN 或远程 favicon。
  - 用 id、kind(ambient 或 personal)、personal 时的 wishId、归一化 x 和 y、0.35 到 1 的 depth、0.55 到 1.18 的 scale、phase、sway、rotation、cycle 和 releaseAge 表示每个场景灯笼。每个已保存愿望仅用 id、text、ordinal 和 paperTone 表示;不存储时间戳、位置、访客身份或分析数据。将编辑器草稿保存在 React state 中,将每帧活跃的灯笼数据保存在 refs 中。
  - 使用本地 mulberry32 生成器,种子为 291129,用于初始场景。在桌面宽度下创建 42 个环境灯笼,在宽度低于 760px 时创建 24 个。归一化 x 分布在 0.04 到 0.96,y 分布在 0.09 到 0.68,depth 和 scale 使用上述范围,phase 从 0 到 2π,sway 从 0.6 到 1.4。循环分配十二条默认愿望,但绝不将其段落绘制到画布上。使用相同稳定种子添加 96 颗暗淡星星,拒绝任何距离月亮中心 44 CSS 像素以内的星星。
  - 按以下顺序渲染:天空渐变;96 颗星星和一轮素月;两层远山;两条半透明雾带;远处海岸线;河流渐变和细流线;灯笼倒影光带;按 depth 排序的环境灯笼;活跃的个人灯笼和释放轨迹;然后是近岸剪影和一座小型空置木码头。地平线位于画布高度的 64%,月亮中心位于 18% × 19%,半径 30 CSS 像素,水面占据底部 36%。将所有文本和控件保留在 DOM 中,不要将标签绘制到画布中。
  - 以 28 × 42 CSS 像素的基础尺寸乘以 depth 和 scale,用原创几何形状绘制每个灯笼:浅弧形顶部肩线、轻微收窄的六面板主体、较暗的开放式底座、四条细竖纸肋、温暖的内渐变、柔和的径向光晕,且无文字、徽记、字符或宗教符号。纸张使用 Paper cream #F7EAC8 和 Lantern amber #F6B85F,中心使用 Lantern core #FFE6A3,肋条使用低透明度的 Copper line #8A6848。将光晕半径限制为灯笼宽度的 2.2 倍,以保持文本和剪影清晰。将每个灯笼在水面上镜像为三条短的低透明度垂直光带,而不是清晰的副本。
  - 运行固定的 1/60 秒模拟,最多三个追赶步骤,通过 requestAnimationFrame 渲染,环境漂移期间最高 30 帧每秒,1.4 秒的个人释放期间为 60 帧每秒。环境垂直速度为向上 4 + depth × 7 CSS 像素每秒。水平速度为 wind × (3 + depth × 5) + sin(elapsed × 0.35 + phase) × sway × 1.8 像素每秒。旋转为 sin(elapsed × 0.5 + phase) × 0.055 弧度,亮度变化最多 7%。当环境灯笼从顶部或侧边离开时,将其环绕到河流地平线正下方,递增 cycle 并根据 id 和 cycle 确定性地推导其替代 x;绝不在每帧分配随机值。
  - 风力范围输入具有整数值 0、1 和 2,分别标记为 Still、Gentle 和 Brisk,默认为 Gentle。将这些映射为风力乘数 0、1 和 1.85。暂停环境运动冻结模拟时间而不清除灯笼;继续从相同位置恢复。当 document.hidden 时隐藏画布运动,并在没有大时间差的情况下恢复。桌面端设备像素比上限为 1.75,移动端为 1.5,使用 ResizeObserver 而不重置愿望或环境位置,并清理观察器、监听器和动画帧。
  - 仅在具有精细指针的设备上实现微妙的指针视差:星星最多移动 2 CSS 像素,远山 4,雾 7,近岸/码头 10,方向与归一化指针位置相反,在 200ms 内缓动。个人灯笼不跟随指针。为触摸和减少运动禁用视差,绝不使用滚动劫持或自定义光标,不要将环境灯笼设为必需的点击目标。
  - 将编辑器建模为有限状态机:write、folded、releasing、released。Write 要求修剪后的愿望为 3–120 个 UTF-16 字符,并保持用户文本完全不变。Fold my lantern 进入 folded 并播放一次 SVG 序列。Back to wish 返回 write 而不丢失文本。Release lantern 进入 releasing,在归一化 x 0.48 和 y 0.78 处创建一个个人灯笼,并保存恰好一条画廊记录。1.4 秒后进入 released 并加入正常向上模拟。Write another 仅清除编辑器;画廊保留。在画廊中 Release again 为现有 wishId 在 x 0.48 和 y 0.78 处创建一个个人灯笼,而不添加重复记录。
  - 将折叠预览构建为本地内联 SVG,具有 160 × 160 viewBox 和六个命名多边形组。从扁平的 104 × 104 菱形和四条可见折线开始;在 1100ms 内,在 0–420ms 将四个角向内折叠,在 300–760ms 关闭侧面板,在 680–1100ms 抬起底座并照亮中心。最终呈现与画布上相同的六面板灯笼剪影。仅使用变换和透明度,不使用 3D 库,纸上无文字。在减少运动下,立即显示完成的灯笼。
  - 在 releasing 期间,绘制一条短的琥珀色轨迹,并在 1.4 秒内以 easeOutCubic 将个人灯笼从 y 0.78 插值到 y 0.60,同时 scale 从 0.72 移动到 1。之后,应用正常的个人上升速度 9 + depth × 5 CSS 像素每秒和相同的风力规则。离开视口的个人灯笼保持已保存但变为视觉休眠;Release again 重置其场景位置。减少运动的释放跳过移动和轨迹,立即将灯笼放置在 y 0.58,宣布成功,并保持场景静止。
  - 将已释放的愿望持久化在 localStorage 中,键为从 [BRAND] 的小写连字符 slug 加上 '-lantern-wishes-v1' 派生的版本化键。按释放顺序最多存储 24 条记录,从 1 开始顺序分配序号,不存储真实日期。达到 24 条记录时,为新愿望禁用 Release lantern 并显示 'Your gallery holds 24 wishes. Remove one before releasing another.';Release again 仍然可用,因为它不添加记录。验证恢复的 JSON 的 version、id、3–120 字符文本、ordinal 和允许的 paperTone;丢弃格式错误的记录,并在存储不可用时静默恢复,显示内联消息 'This browser could not save your gallery; this session still works.'。Remove 需要一次内联确认,按释放顺序顺序重新编号幸存记录,隐藏具有该 wishId 的活跃个人灯笼,并且绝不联系服务器。
  - 为整个仪式使用语义化 DOM 控件:带标签的 textarea、三个愿望提示按钮、步骤按钮、原生风力范围、Pause 或 Resume、画廊的 Release again 和 Remove,以及一个 Reset scene 按钮,仅重置相机/视差和风力,不重置已保存的愿望。画布具有可访问的摘要,命名 [FESTIVAL_NAME]、当前风力和已释放个人灯笼的数量;它不是执行任何操作的唯一方式。使用可见焦点、在活跃编辑器步骤上使用 aria-current、对折叠/释放/保存反馈使用 aria-live polite,并且不要宣布动画帧。
  - 对于 prefers-reduced-motion,将初始的星星、山丘、河流和所有灯笼渲染为完整的静态画面;不要运行环境上升、闪烁、视差、折叠旅行、释放轨迹或自主 UI 移动。保留写入、折叠、释放、画廊、风标签和移除功能,并立即改变状态。监听偏好变化,并适当地停止或重新启动渲染,而不丢失状态。
  - 在项目根目录写入 ASSETS.md,涵盖原始程序化场景和灯笼几何、原始 SVG 折叠预览和 favicon、Lucide ISC,以及所有三个带有 OFL-1.1 许可证的 Fontsource 包。保持每个运行时请求为本地,且 dist/ 低于 20 MB。此模板不需要生成的、库存的、下载的或占位图像文件。

## 变量
- [BRAND] — 项目名称(默认:"Avelume")。一个为字标、文档标题、页脚和本地存储命名空间编造的短名称;绝不是真实的活动或组织。
- [FESTIVAL_NAME] — 节日标题(默认:"The Stillwater Ascent")。一个用于眉题、画布描述、画廊介绍和页脚的简短编造聚会标题。
- [HEADLINE] — 欢迎标题(默认:"Let your wish find the sky.")。一个清晰的五到九词邀请语;如果其含义发生变化,请调整支持句。
- [RIVER_NAME] — 虚构的河流或水湾(默认:"River Elian")。一个用于欢迎语和节日注释的编造滨水地点;绝不是真实的地标。
- [AUDIENCE] — 受众(默认:"dreamers, friends, and quiet night wanderers")。一个用于塑造欢迎语、愿望提示和指南文案的通俗语言短语。
- [WISH_THEMES] — 愿望主题(默认:"hope, gratitude, and new beginnings")。三个宽泛的主题,用于重写十二条环境愿望和三条提示建议,不包含预测或建议。
- [CREDIT] — 在页脚保留一个小的 "Template by VibeFather" 链接指向 https://vibefather.ai/t/paper-lantern-festival-page(默认:是;删除此行以移除它)

页面与区块下的文案是为默认值编写的。如果你的值不同,请为它们重写每个标题、段落、标签和图像——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图像路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块键控,以便之后无需触碰组件即可替换内容。

## 设计
### 颜色
- 夜墨(Night ink)`#070C18` — 页面背景、最深天空和模态遮罩。
- 河靛(River indigo)`#0D1830` — 天空过渡、页眉和主要凸起表面。
- 作曲器藏青(Composer navy)`#111D33` — 愿望作曲器、画廊卡片和控制表面。
- 雾青(Mist teal)`#24424B` — 远山、大气带和安静的场景纵深。
- 纸奶油(Paper cream)`#F7EAC8` — 主要文本、灯笼纸和暖色高光。
- 柔和蓝(Muted blue)`#AAB6CB` — 次要文案和非活动控件,具有可读对比度。
- 灯笼琥珀(Lantern amber)`#F6B85F` — 主要操作、活动步骤、焦点环和灯笼边缘。
- 灯笼核心(Lantern core)`#FFE6A3` — 仅用于灯笼照明和微小暖色闪光。
- 铜线(Copper line)`#8A6848` — 纸肋、暖色分隔线和次要装饰规则。
- 琥珀墨(Amber ink)`#261808` — Lantern amber 按钮上的文本。
- 水光(Water glint)`#7EA4B8` — 细流线和冷色河流倒影。
- 夜线(Night line)`#2A3850` — 边框、输入轮廓、步进器轨道和卡片分隔线。

### 排版
- 字标、欢迎 H1、节日注记、画廊标题和已释放愿望文本:Fraunces (OFL),字重 400/500/600
- 正文、作曲器、按钮、字段、画廊操作和状态消息:Manrope (OFL),字重 400/500/600/700
- 步骤编号、风标签、愿望计数和小型隐私标签:IBM Plex Mono (OFL),字重 400/500

### 布局与动效
- 间距:使用 8px 基准单位。桌面外壳最大宽度 1600px,侧边内边距 24px;页眉高 68px。桌面节日主视觉高度为 calc(100svh - 92px),最小 680px、最大 840px,叠加内边距 48–56px。作曲器宽 380px,内边距 24px,组间距 16px。画廊和仪式区块使用 1280px 内部外壳,桌面垂直内边距 96px、移动端 64px。在 390 × 844 下使用 56px 页眉、16px 侧边内边距、430px 场景、位于其下方的正常流作曲器,以及单列画廊卡片。所有交互目标至少 44 × 44px,页面内容绝不导致水平溢出。
- 圆角:节日舞台使用 20px,作曲器和画廊卡片使用 16px,字段和主要按钮使用 10px,小型控件使用 8px,仅三步指示器和紧凑场景状态胶囊使用 999px。使用 1px Night line 边框和克制的阴影。场景和纸灯笼提供有机曲线;避免将每个控件都嵌套在圆角浮动卡片内。
- 动效:立即渲染完整景观、第一环境灯笼场、标题和书写表单,无启动画面、加载门或阻塞式介绍。环境灯笼仅在第一个绘制画面可见后才漂移。
- 动效:灯笼上升、风摆、微小旋转和 7% 亮度变化遵循精确的固定步长模拟。指针视差按层限制为 2、4、7 和 10 CSS 像素,且绝不移动界面面板。
- 动效:折叠预览是一个连贯的 1100ms 序列:角、侧板、底座,然后内部光。它不循环、不弹跳,也不要求用户拖动纸张。
- 动效:个人释放使用 1400ms easeOutCubic 从码头升起,带短暂渐隐轨迹,然后加入相同的风和上升系统。作曲器成功在 180ms 内交叉淡入淡出,不改变面板宽度。
- 动效:愿望提示、风设置、按钮和画廊操作使用 120–180ms 的颜色、不透明度或最多 4px 移动过渡。减少动效会移除环境漂移、闪烁、视差、折叠行程、释放行程和非必要变换,同时保留即时状态反馈。
- 图像:高工艺程序化 Canvas 2D 河流节日是视觉锚点;不使用照片、生成的位图图像、下载的风景、纸张纹理、视频或外部灯笼艺术。分层叠加靛蓝天空、96 颗稳定星星、朴素月亮、青色山丘剪影、半透明薄雾、细水流、暖色六面板灯笼、柔和光晕、破碎倒影和空置码头。SVG 折叠预览和 favicon 复用相同的原创纸张几何。无人物、面孔、吉祥物、神圣徽记、可识别地标、真实活动标牌或品牌灯笼图像。

## 页面与区块
### [BRAND] — [FESTIVAL_NAME] (`index.html`)
1. **内容模型与精确默认文案** — 将所有可见字符串和全部氛围心愿保留在 src/content.ts 中。默认节日眉题为 '[FESTIVAL_NAME] · [RIVER_NAME]';H1 为 '[HEADLINE]';欢迎正文为 'A small imagined festival for [AUDIENCE]. Write one private wish, fold it into light, and let it drift above the water.' 主题行为 'Twelve imagined wishes inspired by [WISH_THEMES]. Yours stays only in this browser.' 默认氛围心愿按顺序为:01 'May I notice the good while it is here.';02 'For the courage to begin before I feel ready.';03 'A little more time with the people I love.';04 'May the next chapter feel like my own.';05 'For softer days after a difficult year.';06 'May I make something worth sharing.';07 'A safe journey home for someone dear.';08 'For gratitude that outlasts the moment.';09 'May I forgive myself for taking time.';10 'For work that leaves the world a little kinder.';11 'May an old friendship find its way back.';12 'For a home filled with unhurried mornings.' 三个撰写提示按钮为 'A fresh start'、'Someone I miss' 和 'A little courage';激活其中一个会分别插入 'May I welcome a fresh start with an open heart.'、'May someone I miss feel how often they are in my thoughts.' 或 'May I find a little courage for the next small step.' 访客可在折叠前编辑插入的文本。对于替代变量,围绕所提供的 WISH_THEMES 和 AUDIENCE 以相近长度重写全部十二个心愿和三个提示建议;不要保留这些默认文本。
   布局:本节定义内容模型,而非单独可见的营销区块。每条氛围记录仅提供 id 和 text;不包含作者、位置、时间戳或模拟访客姓名。个人心愿使用访客精确修剪后的文本。paperTone 通过序数对 3 取模在 cream、honey 和 pale apricot 之间循环,同时保持在声明的暖色调色板内。
   动效:氛围心愿不会作为移动文本显示在画布上。通过礼貌状态区域一次性播报完成折叠、释放、保存、重新启动和移除操作,绝不播报单个动画帧。
2. **页眉与节日欢迎** — 页眉左侧包含原始六面板灯笼 SVG 标记和 Fraunces 500、23px 的 [BRAND]。页眉右侧包含锚点链接 Festival 和 Your lanterns,以及一个小型描边 How it works 按钮,该按钮移动到仪式说明处而不打开模态框。节日欢迎层叠在场景左上方,包含上文精确定义的眉题、H1、正文和主题行。不要在交互场景之前添加账户、定价、推荐语、新闻通讯、公开计数器或单独的营销主视觉。
   布局:页眉横跨外壳,底部有 Night 线边框。桌面端欢迎区在 hero 内最多占据 520px,位于 left 56px 和 top 48px,文本组间距 16px,H1 为 clamp(48px, 4.5vw, 72px),行高 0.98。移动端页眉保持品牌和 Your lanterns 可见,仅隐藏 Festival 和 How it works 链接;欢迎区位于 left 20px、right 20px 和 top 24px,覆盖在变暗的天空遮罩上,H1 为 40px,正文限制为三行。如果空间紧张,主题行在移动端移动到场景下方;绝不要让撰写器覆盖它。
   动效:欢迎文案在首次绘制时即存在。仅链接、按钮和焦点环有动画;不要标题显现、浮动文本、打字机效果或移动眉题。
3. **活河舞台与场景控制** — 全出血画布描绘 [RIVER_NAME] 上方的 [FESTIVAL_NAME],使用 Setup 中精确的渲染器和灯笼数量。上方中央的小胶囊标签显示 'AN IMAGINED FESTIVAL · LOCAL ONLY';不要称氛围灯笼为实时访客。左下控制是一个带标签的 Wind 范围控件,包含 Still、Gentle 和 Brisk,以及 Pause motion 或 Resume motion 按钮。右下包含 RotateCcw Reset scene 按钮和安静说明文字 'Procedural paper, water, wind & light'。画布的可访问描述概括场景,并引导用户前往带标签的风控制和心愿撰写器。氛围灯笼营造氛围,但不是按钮,也不暴露虚假的公开信息流。
   布局:桌面端画布填满整个圆角节日 hero,位于欢迎区和撰写器后方,左右有深色可读性遮罩,保持中央天空可见。场景控制占据底部两角 48px 高的实心 Night-ink-at-88% 条带,避开 dock。移动端画布高 430px,中央胶囊缩短为 'IMAGINED · LOCAL ONLY',风和暂停控制形成一行底部行,Reset scene 保持带标签,程序化说明文字省略。在画布上设置 touch-action pan-y,使垂直页面滚动保持自然;无需拖动。
   动效:实现 Setup 中精确的种子漂移、风、暂停、释放、视差、帧上限和减少动效行为。风变化影响速度而不跳变位置。暂停和偏好变化绝不重置画廊或草稿。避免控制标签变化时发生布局移动。
4. **三步心愿撰写器** — 撰写器标题为 'Make a little light',隐私行为 'Your wish is stored only in this browser.' 三项步骤条显示 01 Write、02 Fold、03 Release。在写入状态显示标签 'Your wish'、一个 120 字符的 textarea,占位符为 'What would you like to send into the night?'、实时 '{n}/120' 计数,以及内容模型中的三个提示按钮。主按钮 Fold my lantern 在修剪后的心愿至少有 3 个字符前禁用;辅助文本为 '3–120 characters · nothing is uploaded'。在折叠状态显示完成的 SVG 灯笼、可读奶油纸摘录中的精确心愿、Back to wish 和主按钮 Release lantern。在释放状态禁用重复提交并显示 'Folding the light into the sky…'。在已释放状态显示 Check 图标、'Your wish is drifting.'、心愿摘录、链接到画廊的主按钮 View my lanterns,以及次按钮 Write another。在 Write another 之前不要清空 textarea。
   布局:桌面端 380px 撰写器位于 hero 内 right 40px 和 top 40px,使用 96% 不透明度的 Composer navy、1px Night 线边框、20px 圆角和 24px 内边距。步骤条是单行三列,带有细轨道和琥珀色活动数字。Textarea 高 112px;提示按钮换行而不溢出;主操作全宽且高 48px。折叠 SVG 为 160px 正方形,居中于心愿摘录上方。移动端撰写器离开画布覆盖层,以全宽、20px 内边距、无负边距和无固定高度跟随在正常流中。每个字段和操作保持至少 44px 高。
   动效:使用 Setup 中的有限状态机、1100ms 折叠、1400ms 释放和减少动效替代方案。步骤条使用 aria-current 更新,而非仅靠颜色。成功使用 180ms 不透明度过渡,绝不使用彩纸爆发、toast 库、自动滚动或自动第二个灯笼。
5. **个人灯笼画廊** — 区块眉题为 'YOUR LANTERNS';标题为 'Wishes you have set afloat.' 仅本地说明为 'Saved on this device, not online. Clearing browser storage will remove them.' 空状态包含一个小型未点亮六面板 SVG、'No wishes released yet.',以及一个返回撰写器的 Write a wish 锚点。非空画廊卡片显示 'LANTERN {ordinal padded to two digits}'、Fraunces 400 的完整心愿、小型 paperTone 灯笼缩略图、带 Send 图标的 Release again,以及带 Trash2 图标的 Remove。Remove 首先变为内联 'Remove this wish?',带有 Keep it 和 Remove 操作。Release again 播报 'This wish is drifting again',且不复制或重排卡片。显示 '1 saved wish' 或 '{n} saved wishes' 的计数;绝不显示日期、位置或公开查看者计数。
   布局:该区块位于 1280px 内壳内的 Night ink 上。其页眉是两列标题/计数行,隐私说明在下方。卡片在 1200px 及以上形成三列网格,平板两列,移动端一列,间距 16px。每张卡片使用 Composer navy、16px 圆角、20px 内边距、72px 灯笼插图列位于灵活心愿文本旁,以及底部细线操作行。长心愿自然换行,不截断或固定高度裁剪;网格使用 align-items start。空状态跨网格,48px 内边距和居中操作。
   动效:Release again 使用标准个人释放,不滚动离开画廊。仅在减少动效关闭时,移除以 160ms 折叠卡片;焦点移动到下一张卡片的 Release again 按钮或空状态操作。保存和错误使用内联文本,而非导致布局移动的 toast。
6. **仪式说明与页脚** — 一条紧凑的编辑式横带,标题为 'A wish, in three small movements',呈现:01 书写 — 'Choose a prompt or begin with your own words. There is no account and no public submission.';02 折叠 — 'Watch six paper panels close around the light. You can return and edit before release.';03 释放 — 'Send the lantern above [RIVER_NAME], adjust the wind, then find the wish waiting in your gallery.' 在其旁边,一则安静的小注标题为 'Private by design',内容为 'The other wishes are invented for this imagined festival. Your words never leave this browser, and no one can see them here unless you show them.' 页脚包含 [BRAND]、'An imagined gathering shaped by [WISH_THEMES].'、'No public feed · no account · no uploaded wishes',以及可选的 [CREDIT] 链接。无版权年份。
   布局:仪式横带采用 5/7 网格:标题与隐私说明在左侧,三个编号步骤在右侧,以水平细线分隔。移动端变为单列,步骤位于隐私说明之后。页脚为安静的 flex 行,顶部有 Night 色细线边框,24px 垂直内边距,13px Muted blue 文字,移动端以 12px 间距堆叠。锚点目标具有 scroll-margin-top 24px,且无额外路由。
   动效:该区块与页脚为静态,仅链接颜色有 120ms 变化。仅当未请求减少动效时才允许平滑锚点滚动;否则立即跳转。任何滚动触发的场景固定或显现依赖都不得隐藏此内容。

## 资产
- 图像:不使用任何外部或生成的图像文件。河流、山丘、薄雾、月亮、星星、码头、水流、六角灯笼、光晕、倒影、折叠预览、品牌标识和 favicon 全部使用本地 Canvas 2D、SVG 和 CSS,基于声明的原始几何图形自行创作。在 ASSETS.md 中记录这一原创的程序化创作;不得使用下载的地图、纹理、照片或占位图像。
- 图标:本地打包 lucide-react,用于 Check、Send、Trash2、RotateCcw、Pause、Play、Wind、ArrowDown、ArrowUp 和 PenLine,尺寸 18–20px,使用 currentColor。仅使用常见的工具性含义;不要导入品牌、事件、宗教或第三方灯笼图标。在 ASSETS.md 中记录 Lucide 的 ISC 许可证。
- 字体:安装并自托管 @fontsource/fraunces,仅导入字重 400、500 和 600 的拉丁 woff2 文件。在 ASSETS.md 中记录包路径、来源、作者和 OFL-1.1 许可证;不使用字体 CDN。
- 字体:安装并自托管 @fontsource/manrope,仅导入字重 400、500、600 和 700 的拉丁 woff2 文件。在 ASSETS.md 中记录包路径、来源、作者和 OFL-1.1 许可证;不使用字体 CDN。
- 字体:安装并自托管 @fontsource/ibm-plex-mono,仅导入字重 400 和 500 的拉丁 woff2 文件。在 ASSETS.md 中记录包路径、来源、作者和 OFL-1.1 许可证;不使用字体 CDN。

## 不要
- 不要复制、描摹、重新着色或 closely imitate 现有的灯笼节、活动网站、许愿墙或互动灯笼体验,包括其代码、提示词文本、布局构图、插画、图标、文案、标语、名称、标志、吉祥物或标志性动画素材。此处的程序化场景和交互必须保持原创。
- 不要使用真实的节日名称、标志、品牌灯笼、真实人物肖像、授权角色、可识别的地标天际线、具有文化特定性的神圣符号、宗教图像或文化真实性的宣称。保持河流和活动为虚构,纸艺为通用。
- 不要从其他来源复制愿望、仪式文案、插画、纹理、代码或动画素材。十二条氛围愿望、提示建议、界面文案和替代主题内容必须新撰写并保留在内容模块中。
- 不要将氛围灯笼呈现为实时访客、将愿望呈现为公开提交、或将画廊呈现为在线社区。绝不要承诺愿望会成真。保持想象节日和仅本地存储的披露可见,并且绝不请求姓名、电子邮件、位置、账户或社交资料。
- 不要后端、服务器代码、API 路由、数据库、身份验证、远程表单提交、分析、第三方 API、运行时获取、跟踪像素、社交小部件或公开分享服务。保存的愿望保留在经验证的 localStorage 中,并且仅包含声明的 id、text、ordinal 和 paperTone 字段。
- 不要 CDN 脚本或样式、Google Fonts URL、热链接资源、外部托管的图标、占位图服务、Unsplash、Pexels、Pixabay、Google Images 或具有不明确、非商业或相同方式共享许可证的资源。使用 Vite base './'、相对路径、本地捆绑包和自托管 Fontsource 字体。
- 不要添加图像生成、照片、视频、WebGL、Three.js、canvas 辅助库、状态管理库、动画框架、路由器或外部物理服务。原生 Canvas 2D、SVG、CSS、React 状态和声明的包已足够。
- 不要在 src/content.ts 之外硬编码默认品牌、节日、标题、河流、受众、愿望主题、氛围愿望、提示建议或存储命名空间。替代值必须产生连贯的新文案和十二条主题适当的愿望,没有默认残留或未解析的 [VARIABLE] 占位符。
- 不要绕过写入-折叠-释放状态机、在释放期间允许重复提交、在 Release lantern 激活前保存、在返回愿望时擦除草稿、在再次释放时重复画廊记录、或用 Reset scene 重置已保存的愿望。严格遵循存储上限和验证规则。
- 不要将 touch-action none 附加到 canvas 或页面、要求拖动来折叠纸张、使氛围灯笼成为强制点击目标、使用仅指针控件、自动播放音频、滚动劫持、固定区域、使用自定义光标或将内容隐藏在滚动显示后面。完整的仪式必须通过键盘和触摸工作。
- 不要运行无界灯笼数量、每帧 React 渲染、每帧随机或星形数组分配、无上限设备像素比、隐藏时动画、自主相机移动或忽略 prefers-reduced-motion 的运动。保持固定数量、帧上限、清理和静态减少运动画面。
- 不要使用过度泛光、移动愿望段落、虚假访客计数、公开用户名、时间戳、定价、推荐语、新闻通讯表单、营销部分、启动屏幕或彩纸。节日场景和作曲器是第一屏幕和主要体验。
- 不要添加额外页面、裸目录链接、SEO 标记、结构化数据、Open Graph 工作、站点地图代码或超出纯标题、主题颜色和原始 favicon 的元数据。唯一页面是 index.html,所有导航使用本地锚点。
- 生产 npm run build 必须输出压缩的静态 dist/,低于 20 MB,无源映射,且不将 src/ 复制到 dist/。它必须在 1440 × 900 和 390 × 844 下运行无控制台错误,保持所有点击目标至少 44px,保留长愿望而不裁剪,并且不留水平页面溢出。
- 使用可见焦点、语义按钮和表单标签、可访问的 canvas 摘要、礼貌的状态消息、步骤上的 aria-current,以及不依赖颜色 alone 的选中状态。移除确认和画廊焦点处理必须无需指针即可工作,并且本地存储失败不得中断会话。
- 除了可选的 [CREDIT] 链接外,绝不要在渲染的网站中提及 VibeFather,并且绝不要使用 VibeFather 或真实品牌作为变量默认值。所有文案、标签、示例愿望和可访问文本必须为美式英语。

---
— Prompt by VibeFather · https://vibefather.ai/t/paper-lantern-festival-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: "Paper Lantern Festival Page"
colors:
  night_ink: "#070C18"
  river_indigo: "#0D1830"
  composer_navy: "#111D33"
  mist_teal: "#24424B"
  paper_cream: "#F7EAC8"
  muted_blue: "#AAB6CB"
  lantern_amber: "#F6B85F"
  lantern_core: "#FFE6A3"
  copper_line: "#8A6848"
  amber_ink: "#261808"
  water_glint: "#7EA4B8"
  night_line: "#2A3850"
typography:
  wordmark_welcome_h1_festival_note_gallery_title_and_released_wish_text: { family: "Fraunces", weights: [400, 500, 600] }
  body_composer_buttons_fields_gallery_actions_and_status_messages: { family: "Manrope", weights: [400, 500, 600, 700] }
  step_numbers_wind_labels_wish_counts_and_small_privacy_labels: { family: "IBM Plex Mono", weights: [400, 500] }
spacing: "Use an 8px base unit. The desktop shell is max-width 1600px with 24px side padding; header is 68px high. The desktop festival hero is height calc(100svh - 92px), minimum 680px and maximum 840px, with 48–56px overlay padding. The composer is 380px wide with 24px padding and 16px group gaps. Gallery and ritual sections use a 1280px inner shell, 96px desktop and 64px mobile vertical padding. At 390 × 844 use a 56px header, 16px side padding, a 430px scene, a normal-flow composer below it, and single-column gallery cards. All interactive targets are at least 44 by 44px, and page content never causes horizontal overflow."
radius: "Use 20px for the festival stage, 16px for the composer and gallery cards, 10px for fields and primary buttons, 8px for small controls, and 999px only for the three-step indicator and compact scene-status pills. Use 1px Night line borders and restrained shadows. The scene and paper lanterns supply the organic curves; avoid nesting every control inside a rounded floating card."
---

# Paper Lantern Festival 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
- **Night ink** `#070C18` — Page background, deepest sky, and modal scrims.
- **River indigo** `#0D1830` — Sky transition, header, and primary raised surfaces.
- **Composer navy** `#111D33` — Wish composer, gallery cards, and control surfaces.
- **Mist teal** `#24424B` — Far hills, atmospheric bands, and quiet scenic depth.
- **Paper cream** `#F7EAC8` — Primary text, lantern paper, and warm highlights.
- **Muted blue** `#AAB6CB` — Secondary copy and inactive controls with readable contrast.
- **Lantern amber** `#F6B85F` — Primary action, active steps, focus rings, and lantern edges.
- **Lantern core** `#FFE6A3` — Lantern illumination and tiny warm glints only.
- **Copper line** `#8A6848` — Paper ribs, warm dividers, and secondary ornamental rules.
- **Amber ink** `#261808` — Text on Lantern amber buttons.
- **Water glint** `#7EA4B8` — Fine current lines and cool river reflections.
- **Night line** `#2A3850` — Borders, input outlines, stepper tracks, and card separators.

## Typography
- **Wordmark, welcome H1, festival note, gallery title, and released-wish text** — Fraunces (OFL), weights 400/500/600. Self-host the font files.
- **Body, composer, buttons, fields, gallery actions, and status messages** — Manrope (OFL), weights 400/500/600/700. Self-host the font files.
- **Step numbers, wind labels, wish counts, and small privacy labels** — IBM Plex Mono (OFL), weights 400/500. Self-host the font files.

## Spacing & shape
- Spacing: Use an 8px base unit. The desktop shell is max-width 1600px with 24px side padding; header is 68px high. The desktop festival hero is height calc(100svh - 92px), minimum 680px and maximum 840px, with 48–56px overlay padding. The composer is 380px wide with 24px padding and 16px group gaps. Gallery and ritual sections use a 1280px inner shell, 96px desktop and 64px mobile vertical padding. At 390 × 844 use a 56px header, 16px side padding, a 430px scene, a normal-flow composer below it, and single-column gallery cards. All interactive targets are at least 44 by 44px, and page content never causes horizontal overflow.
- Radius: Use 20px for the festival stage, 16px for the composer and gallery cards, 10px for fields and primary buttons, 8px for small controls, and 999px only for the three-step indicator and compact scene-status pills. Use 1px Night line borders and restrained shadows. The scene and paper lanterns supply the organic curves; avoid nesting every control inside a rounded floating card.

## Motion
- Render the complete landscape, first ambient lantern field, headline, and write form immediately, with no splash, loading gate, or blocking intro. Ambient lanterns drift only after the first painted tableau is visible.
- Lantern ascent, wind sway, tiny rotation, and 7% brightness variation follow the exact fixed-step simulation. Pointer parallax is limited to 2, 4, 7, and 10 CSS pixels by layer and never moves interface panels.
- The folding preview is one coherent 1100ms sequence: corners, side panels, base, then inner light. It does not loop, bounce, or require the user to drag paper.
- Personal release uses a 1400ms easeOutCubic rise from the dock with a short fading trail, then joins the same wind and ascent system. Composer success crossfades over 180ms without shifting the panel width.
- Wish prompts, wind settings, buttons, and gallery actions use 120–180ms color, opacity, or at most 4px movement transitions. Reduced motion removes ambient drift, flicker, parallax, folding travel, release travel, and nonessential transforms while retaining immediate state feedback.

## Imagery
The high-craft procedural Canvas 2D river festival is the visual anchor; use no photographs, generated bitmap images, downloaded landscapes, paper textures, video, or external lantern art. Layer an indigo sky, 96 stable stars, a plain moon, teal hill silhouettes, translucent mist, fine water currents, warm six-panel lanterns, soft halos, broken reflections, and an unoccupied dock. The SVG folding preview and favicon reuse the same original paper geometry. No people, faces, mascots, sacred emblems, recognizable landmarks, real event signage, or branded lantern imagery.

## Tone
Tender, quiet, secular, and lightly poetic rather than mystical or sentimental. Use concise US English and concrete interaction feedback. Treat lanterns as original paper-craft objects, not as sacred symbols or a claim of cultural authenticity. Never promise that a wish will come true. Be explicit that ambient wishes are invented, visitor wishes stay in the current browser, and there is no live public feed.

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

改成你自己的

  • 学校或图书馆工作坊:将 BRAND 设为你的项目,将 AUDIENCE 设为学生和家庭,并选择诸如“对今年的期望”之类的 WISH_THEMES,让创作器对初次访客来说容易上手。
  • 纪念或追思聚会:使用港口备选案例,将 FESTIVAL_NAME 设为该场合,围绕记忆和归乡选择 WISH_THEMES,同时保持仅限本地存储的心愿披露可见。
  • 设计师的节日问候:将 HEADLINE 设为简短的个人留言,命名一个虚构的 RIVER_NAME,并调整 WISH_THEMES,让放飞的灯笼读起来像一份小型互动礼物,而不是一场活动。
  • 社区协会的新年页面:将 BRAND 和 AUDIENCE 设为居民,选择关于来年的 WISH_THEMES,并使用风力控件标签“静止”、“轻柔”和“劲风”来设定氛围。

纸灯笼节页面:常见问题

在纸灯笼节页面放飞灯笼后,心愿会怎样?

已放飞的心愿会保存在同一台设备的个人画廊中,以经过验证、带版本号的 localStorage 存储。模板最多在本地保留 24 个已放飞的心愿,每个都提供再次放飞和移除操作。不会向服务器发送任何内容,没有公开信息流,页面会明确说明心愿保留在当前浏览器中。

纸灯笼节页面在没有图片或 3D 库的情况下是什么样子?

纸灯笼节页面用 Canvas 2D、SVG 和 CSS 绘制整个场景:深靛蓝色的山丘、两条雾带、带有水流线和倒影光痕的河流、固定种子的灯笼阵列、96 颗微弱的星星和一轮素月。灯笼是原创的六面板纸形状,呈奶油色和琥珀色,带有柔和光晕,因此页面无需下载图片,也无需远程资源托管。

怎么用 AI 做一个纸灯笼节页面?

复制本页的提示词,或者运行 npx vibefather add paper-lantern-festival-page,把 [BRAND]、[AUDIENCE]、[HEADLINE]、[RIVER_NAME] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。