用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
生日派对邀请页把派对邀请中那些实用信息整合成一个欢快、可交互的页面。它面向朋友、家人,以及任何在家、租用场地或户外举办生日会的人。宾客可以一眼看到活动主题和场地,观看倒计时,查看到场须知和礼物偏好,然后提交一份仅保存在浏览器端的私密 RSVP,并注明来宾人数。
视觉方向将温暖的纸张背景与梅子色墨迹、珊瑚色、万寿菊色、淡紫色和薄荷绿混合在一起。一幅原创的大型派对餐桌插画和动态彩纸屑填满开场画面,而富有表现力的衬线字体和小巧的票券式标签让它感觉像一张活起来的印刷邀请函。布局在移动端保持可读性,偏好减少动态效果的访客会看到一个静态的庆祝场景。
页面包含由日期驱动的倒计时、三张活动详情票券、四站派对日程、三条温和的礼物建议、一个插画地图占位符,以及一个 RSVP 确认状态。RSVP 表单会验证姓名和电子邮件地址,允许宾客调整同行人数,并且只将回复存储在当前浏览器中。它从不声称会将信息发送给主办方或外部服务。
通过六个变量更改活动名称、寿星、派对日期、场地、主题和礼物备注。构建器会根据提供的日期推导出可见的日程和回复截止时间,然后为不同类型的生日重写周边文案,同时保留相同的布局。所有插图均使用 SVG、CSS 和 canvas 绘制,两套字体家族均在本地打包,因此成品页面没有远程资源依赖。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Birthday Party Invitation Page Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else. ## Brief Build an original single-page birthday invitation for [BRAND], with a large code-drawn party-table diorama, animated confetti, a date-driven countdown, practical event details, gift ideas, an illustrated map placeholder, and a local-only RSVP. - Audience: Friends and family invited to [HONOREE]'s celebration, using either a desktop or a phone; the template is for anyone creating a personal birthday invitation. - Goal: Make the occasion feel immediate and joyful, keep every practical detail easy to scan, and let guests record an attendance response and party size without any network request. - Tone: Warm, playful, inclusive, and lightly cheeky, like a beautifully printed invitation from a thoughtful friend; keep directions direct and never pressure guests to bring gifts. ## Stack - Framework: Vite 6 + TypeScript - Styling: Vanilla CSS - Libraries: @fontsource-variable/fraunces (OFL-1.1), @fontsource-variable/dm-sans (OFL-1.1) - Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs. - Setup: - Use Vite's vanilla TypeScript template with index.html, src/main.ts, src/content.ts, and src/styles.css; keep the implementation framework-free. - Set the package.json build script to tsc && vite build, set base: './' in vite.config.ts, and set build.sourcemap to false. - Import @fontsource-variable/fraunces and @fontsource-variable/dm-sans in src/main.ts so both fonts are bundled locally; use only the weights listed in Design. - Put every event value, headline, paragraph, label, schedule item, gift suggestion, map label, and link in src/content.ts, keyed by section. - Implement confetti on one canvas and all icons, the map, the favicon, and the party diorama as original inline SVG or CSS; add no runtime packages. - Use semantic HTML and small TypeScript modules for the countdown, confetti, scroll reveals, clipboard action, calendar download, and RSVP state. ## Variables - [BRAND] — Invitation name (default: "Maya's Garden Disco"). A short, invented name for the celebration. - [HONOREE] — Birthday honoree (default: "Maya"). Use a fictional first name for the default event. - [PARTY_DATE] — Party start date and time (default: "2027-06-20T16:00:00-07:00"). ISO 8601 date-time with a numeric timezone offset; derive the display date, countdown, schedule, and reply deadline from it. - [VENUE] — Venue and address (default: "The Sunroom · 18 Willow Lane, Portland, Oregon"). Use an invented venue and street address, never a real person's home address. - [PARTY_THEME] — Party theme (default: "Garden disco"). A concise activity or visual theme that can guide the rewritten copy. - [GIFT_NOTE] — Gift preference (default: "A favorite book, a small plant, or a handwritten note"). Keep gifts optional and adapt the three suggestion cards to this note. - [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/birthday-party-invitation-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 - Party Paper `#FFF7E8` — Main page background and light text on dark plum surfaces - Plum Ink `#2E2140` — Body copy, outlines, primary buttons, and countdown background - Confetti Coral `#FF6B6B` — Cake details, selected ticket, pin, and decorative accents; never small body text on paper - Marigold `#FFC83D` — Countdown digits, secondary buttons, stars, and highlight shapes - Lilac Wrapper `#B9A7FF` — Gift panels, map blocks, balloons, and alternating decorative surfaces - Mint Scoop `#8BD9B6` — Success states, foliage, schedule markers, and one detail ticket ### Typography - Display and countdown numerals: Fraunces Variable (OFL), weights 700/800/900 - Body, labels, buttons, and form controls: DM Sans Variable (OFL), weights 400/500/600/700 ### Layout & motion - Spacing: Use an 8px base unit, a 1200px maximum content width, 32px desktop page gutters, and 20px mobile gutters. Section padding is 104px desktop and 64px mobile. Keep text measures between 48 and 62 characters and card gaps at 24px. - Radius: Use 28px for major cards, 16px for inputs and small panels, and fully rounded pills for buttons and labels. Add 2px plum outlines, ticket perforations, and a few hand-cut SVG silhouettes rather than making every surface a rounded rectangle. - Motion: Run one lightweight confetti canvas only inside the hero: about 70 rectangles, circles, and short ribbons on desktop and 36 on mobile, with an initial cake-top burst followed by slow downward drift; pause when the hero is offscreen or the tab is hidden. - Motion: Reveal the hero copy with a 600ms upward fade in two short stages, then float the SVG balloons by no more than 8px over alternating 4.8s and 5.6s cycles. - Motion: Use IntersectionObserver for one-time section reveals of 16px vertical travel and 450ms opacity; content remains visible when JavaScript is unavailable. - Motion: Give countdown digits a brief 120ms vertical tick only when their value changes, and give buttons, gift cards, and the map pin short 160ms hover or focus responses. - Motion: Emit one small 24-piece confetti burst after a valid attending RSVP; do not autoplay sound, flash, scroll-jack, or attach motion to pointer movement. - Motion: Under prefers-reduced-motion, disable all drifting, bobbing, reveals, digit ticks, and bursts; render a static confetti arrangement and keep countdown text updates functional. - Imagery: Use no photographs or downloaded illustrations. The first screen's visual anchor is a large original inline SVG and CSS party-table diorama: an oval table viewed at a slight angle, a three-tier coral and cream cake, five lit candles, three wrapped gifts, six balloons, paper streamers, and small abstract flowers. Layer simple geometric shapes, subtle paper-grain patterns, and plum outlines for depth. No faces, people, characters, logos, or recognizable branded objects. Repeat the same visual language in the gift icons and not-to-scale map. ## Pages & Sections ### Birthday invitation (`index.html`) 1. **Invitation header** — Show a small original cake-slice mark and [BRAND] as the wordmark. Include anchor links labeled 'The plan', 'Gifts', and 'Find us', plus a plum pill button labeled 'RSVP' that moves to the form. Use a plain document title containing [BRAND] and an original cake-slice SVG favicon. Layout: Place an 80px-high non-sticky header inside the 1200px container with the wordmark left and navigation right. At 390px, use two rows: wordmark and RSVP first, then the three text links in an evenly spaced second row; do not hide navigation behind a hamburger. Motion: The RSVP button lifts 2px on hover or focus; no entrance animation. 2. **Confetti invitation hero** — Use the eyebrow '[PARTY_THEME] · YOU’RE INVITED'. Default headline: 'It’s Maya’s birthday. Let’s make it loud.' Replace Maya with [HONOREE] and rewrite the line naturally when the values change. Default support copy: 'An afternoon of garden games, cake, and dancing as the sun goes down. Bring your brightest shirt and your best moves.' Primary CTA: 'RSVP by June 13', derived as seven days before PARTY_DATE; secondary CTA: 'See the party plan'. Add the compact line 'Sunday, June 20 · 4–9 PM · The Sunroom', all derived from PARTY_DATE and VENUE. Fill the other half with the party-table diorama described in Imagery. Layout: Use a 12-column grid with copy spanning 5 columns and the diorama spanning 7. The hero is at least calc(100svh - 80px), with 64px top and 80px bottom padding. Set the headline in Fraunces 900 at clamp(56px, 6.2vw, 92px) with 0.94 line-height. Put both CTAs in one row and the event line below. On mobile, stack copy above a 340px-high diorama, use a 48px headline, and stack the CTAs full width. Keep the diorama large and visible within the first mobile screen rather than replacing it with a flat color block. Motion: Layer the confetti canvas above the background but below readable text and controls. Animate the headline, support copy, and CTAs once; balloons bob gently while the cake remains stable. 3. **Live countdown ribbon** — Label the strip 'COUNTING DOWN TO [BRAND]' and show Days, Hours, Minutes, and Seconds calculated from PARTY_DATE in the supplied timezone offset. Below the units, show the full localized start date and time. During the five-hour party window replace the numbers with 'The party is happening now'; afterward show 'What a night — thanks for celebrating.' Never show negative values. Layout: Use a full-bleed plum strip with a 1200px inner grid: label and date on the left, four equal countdown cells on the right. Use marigold Fraunces 800 numerals with tabular figures and small uppercase paper-colored labels. On mobile, center the heading above a four-column grid with narrow 8px gaps and digits no larger than 36px. Motion: Update once per second and apply only the short digit tick; reduced-motion mode updates text without transforms. 4. **Party detail tickets** — Heading: 'The need-to-knows'. Use three tickets. Date: 'Sunday, June 20', '4:00–9:00 PM', and 'Reply by June 13'. Place: 'The Sunroom', '18 Willow Lane, Portland, Oregon', and 'Look for the coral door'. Dress: 'Garden glam', 'Bright colors welcome', and 'Wear shoes made for dancing'. Derive all dates, times, and venue text from the variables; rewrite the theme-specific dress line for a new PARTY_THEME. Layout: Place the heading and a short wavy SVG underline above three equal cards. Give each card a punched-ticket edge with two small circular cutouts, a 2px plum outline, and a distinct coral, mint, or lilac surface. Rotate the outer cards by at most 1 degree on desktop only. Stack the cards at 16px gaps on mobile and keep all values left aligned. Motion: Reveal as a group; on hover or focus, each ticket straightens and rises 3px without shifting surrounding content. 5. **Party schedule** — Eyebrow: 'THE PARTY PLAN'. Heading: 'A little structure. Plenty of room to dance.' Use four default stops: '4:00 PM — Lemonade and hellos. Find your name tag and grab something cold.'; '5:00 PM — Garden games. Teams are optional; ridiculous victory dances are not.'; '6:30 PM — Cake and a sunset toast. Gather around the long table.'; '7:30 PM — Disco under the string lights. The playlist is open for requests.' Derive these times as offsets from PARTY_DATE and rewrite activities for PARTY_THEME. Layout: Use an asymmetric two-column layout: a sticky-on-desktop heading in 4 columns and a vertical timeline in 8 columns. Each stop has a marigold circular time marker, a bold time, and one sentence, separated by a 2px dotted plum line. Remove sticky behavior and stack the heading above the timeline on mobile. Motion: Reveal timeline stops in order with a 70ms stagger; no scroll-driven pinning or scrubbing. 6. **Gift ideas** — Heading: 'Bring a story, not a shopping bag.' Intro: 'No gifts are expected. If you would like to bring something, Maya’s short list is: [GIFT_NOTE].' Replace Maya with HONOREE. Default cards: 'A well-loved paperback — Add a note on the inside cover.'; 'A little green thing — A herb, succulent, or cutting for the kitchen window.'; 'A note for future Maya — Share a memory she can reread next year.' Adapt all three cards when GIFT_NOTE or HONOREE changes. Add no stores, prices, affiliate links, or purchase buttons. Layout: Put the heading and intro in a narrow left rail, with three stacked horizontal gift notes to the right. Each note has an original 72px SVG gift, book, plant, or envelope illustration, a bold title, and one sentence; alternate paper and lilac backgrounds. On mobile, keep the notes full width with the illustration above the text. Motion: A gift-note icon tilts up to 4 degrees on hover or keyboard focus; reveal the notes together. 7. **Illustrated venue map** — Heading: 'Meet at the coral door.' Show the full VENUE as selectable text. Default arrival notes: 'Street parking is available along Willow Lane. A bike rack sits by the side gate; come straight through the coral door when you arrive.' Add a button labeled 'Copy address' with a two-second 'Copied' success state and a selectable-text fallback if clipboard access fails. Label the drawing 'ILLUSTRATED MAP · NOT TO SCALE'. It is a location placeholder, not a live map or a claim of geographic accuracy. Layout: Use a two-column card with the map taking 7 columns and the address and arrival notes taking 5. Draw three curved plum roads, mint park blocks, lilac buildings, tiny abstract trees, and one coral pin labeled with the venue name using inline SVG. Rename street labels when VENUE changes. Stack the map above the text on mobile and keep the address button at least 48px tall. Motion: The pin makes one gentle 6px hop when the section enters; clipboard feedback fades without moving the layout. 8. **Browser-only RSVP** — Heading: 'Save your spot on the dance floor.' Supporting copy: 'Tell us who’s coming and whether anyone is joining you.' Form fields: attendance radio choices 'Yes, I’m in' and 'Can’t make it'; required 'Your name'; required 'Email address'; a guest-count stepper labeled 'Party size, including you' with minus and plus buttons and a range of 1–4; optional 'Dietary notes or a song request'. Show 'Demo RSVP: saved only in this browser. Nothing is sent.' beside the submit button 'Save my RSVP'. Validate name and email inline, disable the stepper and set party size to 0 for non-attendance, and never make a network request. On attending submission, show 'Your RSVP is saved, [name]!' with the party-size summary, 'Update RSVP', and 'Add to calendar'. On non-attendance, show 'Thanks for letting us know. You’ll be missed.' Persist the response in localStorage, preload it on return, and generate the calendar file locally from PARTY_DATE with a five-hour duration. Layout: Use a large plum section with a paper-colored RSVP card offset over a coral abstract shape. Split the card into a 5-column invitation message and 7-column form on desktop. Use 16px-radius inputs, visible labels, strong focus rings, 48px minimum controls, and inline errors tied with aria-describedby. The stepper is one horizontal control with the number centered. Replace the form in place with the confirmation panel and a mint success marker. Stack everything on mobile without horizontal overflow. Motion: Highlight the selected attendance pill, animate the guest number with a 120ms tick, and fire the small success burst only for an attending response; reveal all confirmation text immediately in reduced-motion mode. 9. **Invitation footer** — Repeat [BRAND], then show 'Come as you are. Leave with cake.' and 'Questions? Ask the friend who sent you this invitation.' Include a text link labeled 'Back to the top' and the optional CREDIT footer link; do not invent contact details or social accounts. Layout: Finish with a scalloped SVG top edge, a compact three-column row for event name, closing line, and links, and 40px vertical padding. Stack and left align the same content on mobile. Motion: No footer animation. ## Assets - image: No raster images or downloaded artwork. Create the hero diorama, confetti, gift illustrations, scalloped divider, and not-to-scale map as original inline SVG, CSS, and canvas geometry using the listed palette; no image manifest or remote image URL is needed. - icon: Draw the simple cake-slice favicon, calendar, pin, gift, arrow, plus, and minus icons as original inline SVG strokes and shapes. Do not import a branded icon set or copy another invitation's icons. - font: Self-host Fraunces Variable through @fontsource-variable/fraunces, importing only the required weights. In ASSETS.md record the bundled font path, source https://github.com/undercasetype/Fraunces, Undercase Type as author, and OFL-1.1. - font: Self-host DM Sans Variable through @fontsource-variable/dm-sans, importing only the required weights. In ASSETS.md record the bundled font path, source https://github.com/googlefonts/dm-fonts, DM Sans Project Authors as author, and OFL-1.1. ## Don'ts - Do not add a backend, server code, API routes, database, authentication, external form endpoint, third-party API, analytics, or live map embed. RSVP persistence and calendar generation must remain entirely in the browser, and the UI must never claim that a response was transmitted. - Do not hotlink or load remote scripts, styles, fonts, icons, images, maps, or placeholder-image services. Bundle all assets locally and use relative paths with Vite base './'. - Do not copy another invitation's code, copy, illustrations, icons, layout details, or slogans. Do not use logos, licensed characters, mascots, recognizable people's likenesses, real personal addresses, or real contact details. - Do not use commercial fonts, restricted component-library source, or any dependency outside the stated permissive licenses; use only the two listed self-hosted font families. - Do not replace the hero with typography on a flat background or a generic stock birthday photo; preserve the large original party-table diorama and layered confetti. - Do not hard-code Maya, the default venue, or the default date in runtime logic. Read content from src/content.ts and derive the visible date, countdown, five-hour schedule, and seven-day reply deadline from PARTY_DATE. - Do not add pages, bare-directory links, dead buttons, shopping links, or external direction services. Keep the single index.html and working same-page anchors. - Do not add meta descriptions, Open Graph tags, JSON-LD, sitemaps, keyword-stuffed text, or other SEO work; use only the plain title and favicon requested. - Do not emit source maps, copy src into dist, exceed 20MB in dist, or introduce a framework or animation library. - Do not use scroll-jacking, autoplay audio, flashing effects, or continuous motion under prefers-reduced-motion. Keep all controls keyboard and touch accessible with visible focus states. - Do not allow clipped text, overlapping confetti controls, or horizontal overflow at 1440×900 or 390×844; the finished static build must produce zero console errors. --- — Prompt by VibeFather · https://vibefather.ai/t/birthday-party-invitation-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 生日派对邀请页面 完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。 ## 简介 为 [BRAND] 打造一个原创的单页生日邀请函,包含一个大型代码绘制的派对餐桌立体场景、动画彩纸屑、由日期驱动的倒计时、实用活动详情、礼物创意、一个插画地图占位符,以及一个仅本地运行的 RSVP。 - 受众:受邀参加 [HONOREE] 庆祝活动的朋友和家人,使用桌面端或手机;该模板面向任何创建个人生日邀请函的人。 - 目标:让这个场合显得即时且欢乐,让每个实用细节都易于扫读,并让宾客在无需任何网络请求的情况下记录出席回复和派对人数。 - 语气:温暖、俏皮、包容,略带调侃,就像一位体贴的朋友精心印制的邀请函;指示保持直接,绝不施压宾客携带礼物。 ## 技术栈(Stack) - 框架(Framework):Vite 6 + TypeScript - 样式(Styling):Vanilla CSS - 库(Libraries):@fontsource-variable/fraunces(OFL-1.1)、@fontsource-variable/dm-sans(OFL-1.1) - 构建(Build):`npm run build` → `dist/` 中的静态文件。无后端、无服务器代码、无外部 API。 - 设置(Setup): - 使用 Vite 的 vanilla TypeScript 模板,包含 index.html、src/main.ts、src/content.ts 和 src/styles.css;保持实现不依赖框架。 - 将 package.json 的 build 脚本设置为 tsc && vite build,在 vite.config.ts 中设置 base: './',并将 build.sourcemap 设置为 false。 - 在 src/main.ts 中导入 @fontsource-variable/fraunces 和 @fontsource-variable/dm-sans,使两种字体都本地打包;仅使用设计(Design)中列出的字重。 - 将每个事件值、标题、段落、标签、日程项、礼物建议、地图标签和链接都放入 src/content.ts,按区块(section)作为键。 - 在一个 canvas 上实现彩纸效果(confetti),并将所有图标、地图、favicon 和派对立体模型(party diorama)实现为原创的内联 SVG 或 CSS;不添加任何运行时包。 - 使用语义化 HTML 和小型 TypeScript 模块来实现倒计时、彩纸效果、滚动显现、剪贴板操作、日历下载和 RSVP 状态。 ## 变量 - [BRAND] — 邀请函名称(默认:"Maya's Garden Disco")。一个简短的、虚构的庆祝活动名称。 - [HONOREE] — 生日主角(默认:"Maya")。默认活动使用虚构的名字。 - [PARTY_DATE] — 派对开始日期和时间(默认:"2027-06-20T16:00:00-07:00")。带数字时区偏移的 ISO 8601 日期时间;从中推导显示日期、倒计时、日程和回复截止时间。 - [VENUE] — 场地和地址(默认:"The Sunroom · 18 Willow Lane, Portland, Oregon")。使用虚构的场地和街道地址,绝不使用真实人物的家庭住址。 - [PARTY_THEME] — 派对主题(默认:"Garden disco")。一个简洁的活动或视觉主题,可用于指导重写的文案。 - [GIFT_NOTE] — 礼物偏好(默认:"A favorite book, a small plant, or a handwritten note")。保持礼物可选,并根据此说明调整三张建议卡片。 - [CREDIT] — 在页脚保留一个小型 "Template by VibeFather" 链接指向 https://vibefather.ai/t/birthday-party-invitation-page(默认:是;删除此行即可移除) Pages & Sections 下的文案是为默认值编写的。如果你的值不同,请为它们重写每个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。 将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便之后无需改动组件即可替换内容。 ## 设计 ### 颜色 - Party Paper `#FFF7E8` — 主页面背景,以及深梅色表面上的浅色文字 - Plum Ink `#2E2140` — 正文、轮廓、主按钮和倒计时背景 - Confetti Coral `#FF6B6B` — 蛋糕细节、选中的票券、图钉和装饰点缀;绝不用于纸色背景上的小号正文 - Marigold `#FFC83D` — 倒计时数字、次要按钮、星星和高亮形状 - Lilac Wrapper `#B9A7FF` — 礼物面板、地图区块、气球和交替使用的装饰表面 - Mint Scoop `#8BD9B6` — 成功状态、植物、日程标记和一张细节票券 ### 字体排印 - 展示文字和倒计时数字:Fraunces Variable(OFL),字重 700/800/900 - 正文、标签、按钮和表单控件:DM Sans Variable(OFL),字重 400/500/600/700 ### 布局与动效 - 间距:使用 8px 基础单位,内容最大宽度 1200px,桌面页面边距 32px,移动端边距 20px。区块内边距桌面为 104px、移动端为 64px。文本行宽保持在 48 到 62 个字符之间,卡片间距为 24px。 - 圆角:主要卡片使用 28px,输入框和小面板使用 16px,按钮和标签使用全圆角胶囊形。添加 2px 梅色轮廓、票券打孔线,以及少量手剪风格的 SVG 剪影,而不是让每个表面都变成圆角矩形。 - 动效:仅在 hero 区域内运行一个轻量级彩纸 canvas:桌面端约 70 个矩形、圆形和短丝带,移动端 36 个,先有蛋糕顶部的初始爆发,随后缓慢向下飘落;当 hero 离开屏幕或标签页隐藏时暂停。 - 动效:hero 文案以 600ms 的向上淡入分两个短阶段显现,然后让 SVG 气球以不超过 8px 的幅度、在 4.8s 和 5.6s 交替周期内浮动。 - 动效:使用 IntersectionObserver 实现一次性区块显现,垂直位移 16px、透明度过渡 450ms;当 JavaScript 不可用时内容保持可见。 - 动效:倒计时数字仅在数值变化时给予短暂的 120ms 垂直跳动,按钮、礼物卡片和地图图钉在悬停或聚焦时给予短暂的 160ms 响应。 - 动效:在有效的出席 RSVP 之后,发射一次小型 24 片彩纸爆发;不要自动播放声音、闪烁、滚动劫持,或将动效绑定到指针移动上。 - 动效:在 prefers-reduced-motion 下,禁用所有飘动、摇摆、显现、数字跳动和爆发;渲染静态彩纸排列,并保持倒计时文本更新功能正常。 - 图像:不使用照片或下载的插图。首屏的视觉锚点是一个大型原创内联 SVG 和 CSS 派对餐桌立体场景:一张以轻微角度观看的椭圆桌、一个三层珊瑚色和奶油色蛋糕、五支点燃的蜡烛、三个包装好的礼物、六个气球、纸彩带和小型抽象花朵。层叠简单的几何形状、微妙的纸张纹理图案和梅色轮廓以营造深度。不出现面孔、人物、角色、标志或可识别的品牌物体。在礼物图标和不按比例绘制的地图中重复相同的视觉语言。 ## 页面与区块 ### 生日邀请函(`index.html`) 1. **邀请函页眉** — 展示一个小巧的原创蛋糕切片标志,以及作为字标的 [BRAND]。包含标注为 'The plan'、'Gifts' 和 'Find us' 的锚点链接,外加一个标注为 'RSVP' 的梅子色胶囊按钮,点击后跳转到表单。使用包含 [BRAND] 的纯文本文档标题,以及一个原创的蛋糕切片 SVG favicon。 布局:在 1200px 容器内放置一个 80px 高的非粘性页眉,字标居左、导航居右。在 390px 宽度下使用两行:第一行为字标和 RSVP,第二行为三个文本链接且均匀分布;不要把导航隐藏在汉堡菜单后面。 动效:RSVP 按钮在悬停或聚焦时上浮 2px;无入场动画。 2. **彩纸邀请函主视觉** — 使用眉题 '[PARTY_THEME] · YOU’RE INVITED'。默认标题:'It’s Maya’s birthday. Let’s make it loud.' 当值变化时,将 Maya 替换为 [HONOREE] 并自然地改写该行。默认辅助文案:'An afternoon of garden games, cake, and dancing as the sun goes down. Bring your brightest shirt and your best moves.' 主 CTA:'RSVP by June 13',由 PARTY_DATE 前七天推导得出;次 CTA:'See the party plan'。添加紧凑行 'Sunday, June 20 · 4–9 PM · The Sunroom',全部由 PARTY_DATE 和 VENUE 推导得出。另一半填充 Imagery 中描述的派对餐桌立体模型。 布局:使用 12 列网格,文案占 5 列,立体模型占 7 列。主视觉至少为 calc(100svh - 80px),顶部内边距 64px、底部内边距 80px。标题使用 Fraunces 900,字号为 clamp(56px, 6.2vw, 92px),行高 0.94。两个 CTA 放在同一行,活动信息行放在下方。在移动端,将文案堆叠在 340px 高的立体模型上方,标题使用 48px,CTA 全宽堆叠。保持立体模型在移动端首屏内足够大且可见,而不是用纯色块替代它。 动效:将彩纸画布层叠在背景之上、可读文本和控件之下。标题、辅助文案和 CTA 只播放一次动画;气球轻轻摆动,蛋糕保持稳定。 3. **实时倒计时条** — 将条带标注为 'COUNTING DOWN TO [BRAND]',并显示根据 PARTY_DATE 在所提供的时区偏移下计算出的天、小时、分钟和秒。在单位下方,显示完整的本地化开始日期和时间。在五小时的派对时段内,将数字替换为 'The party is happening now';之后显示 'What a night — thanks for celebrating.' 永远不要显示负值。 布局:使用全出血梅子色条带,内部为 1200px 网格:标签和日期居左,四个等宽的倒计时单元格居右。使用万寿菊色 Fraunces 800 数字,采用表格数字(tabular figures)和小号大写纸色标签。在移动端,将标题居中置于四列网格上方,间隙为窄小的 8px,数字不超过 36px。 动效:每秒更新一次,仅应用短暂的数字跳动;减少动效模式下更新文本而不使用变换。 4. **派对详情票券** — 标题:'The need-to-knows'。使用三张票券。日期:'Sunday, June 20'、'4:00–9:00 PM' 和 'Reply by June 13'。地点:'The Sunroom'、'18 Willow Lane, Portland, Oregon' 和 'Look for the coral door'。着装:'Garden glam'、'Bright colors welcome' 和 'Wear shoes made for dancing'。所有日期、时间和场地文本均从变量推导得出;为新的 PARTY_THEME 改写主题相关的着装行。 布局:将标题和一条短波浪 SVG 下划线置于三张等宽卡片上方。为每张卡片设置打孔票券边缘,带两个小圆形切口、2px 梅子色轮廓,以及独特的珊瑚色、薄荷色或淡紫色表面。仅在桌面端将外侧卡片旋转最多 1 度。在移动端以 16px 间隙堆叠卡片,并保持所有值左对齐。 动效:作为一组一起显现;在悬停或聚焦时,每张票券变直并上浮 3px,不移动周围内容。 5. **派对日程** — 眉题:'THE PARTY PLAN'。标题:'A little structure. Plenty of room to dance.' 使用四个默认站点:'4:00 PM — Lemonade and hellos. Find your name tag and grab something cold.';'5:00 PM — Garden games. Teams are optional; ridiculous victory dances are not.';'6:30 PM — Cake and a sunset toast. Gather around the long table.';'7:30 PM — Disco under the string lights. The playlist is open for requests.' 将这些时间作为 PARTY_DATE 的偏移量推导得出,并为 PARTY_THEME 改写活动内容。 布局:使用非对称双列布局:桌面端粘性标题占 4 列,垂直时间线占 8 列。每个站点有一个万寿菊色圆形时间标记、一个加粗时间和一句话,由 2px 点状梅子色线分隔。在移动端移除粘性行为,将标题堆叠在时间线上方。 动效:时间线站点按顺序显现,错开 70ms;无滚动驱动的固定或擦洗效果。 6. **礼物创意** — 标题:'Bring a story, not a shopping bag.' 引言:'No gifts are expected. If you would like to bring something, Maya’s short list is: [GIFT_NOTE].' 将 Maya 替换为 HONOREE。默认卡片:'A well-loved paperback — Add a note on the inside cover.';'A little green thing — A herb, succulent, or cutting for the kitchen window.';'A note for future Maya — Share a memory she can reread next year.' 当 GIFT_NOTE 或 HONOREE 变化时调整全部三张卡片。不添加商店、价格、联盟链接或购买按钮。 布局:将标题和引言放在狭窄的左栏,右侧放置三个堆叠的水平礼物便签。每个便签有一个原创的 72px SVG 礼物、书本、植物或信封插图、一个加粗标题和一句话;交替使用纸色和淡紫色背景。在移动端,保持便签全宽,插图置于文本上方。 动效:礼物便签图标在悬停或键盘聚焦时倾斜最多 4 度;便签一起显现。 7. **插画场地地图** — 标题:'Meet at the coral door.' 将完整的 VENUE 显示为可选文本。默认到达说明:'Street parking is available along Willow Lane. A bike rack sits by the side gate; come straight through the coral door when you arrive.' 添加一个标注为 'Copy address' 的按钮,带两秒的 'Copied' 成功状态,以及在剪贴板访问失败时的可选文本回退方案。将绘图标注为 'ILLUSTRATED MAP · NOT TO SCALE'。它是位置占位符,不是实时地图,也不声称地理准确性。 布局:使用双列卡片,地图占 7 列,地址和到达说明占 5 列。使用内联 SVG 绘制三条弯曲的梅子色道路、薄荷色公园街区、淡紫色建筑、微小的抽象树木,以及一个标注场地名称的珊瑚色图钉。当 VENUE 变化时重命名街道标签。在移动端将地图堆叠在文本上方,并保持地址按钮至少 48px 高。 动效:当该区块进入时,图钉做一次轻柔的 6px 跳跃;剪贴板反馈淡出而不移动布局。 8. **仅浏览器端 RSVP** — 标题:'Save your spot on the dance floor.' 辅助文案:'Tell us who’s coming and whether anyone is joining you.' 表单字段:出席单选选项 'Yes, I’m in' 和 'Can’t make it';必填的 'Your name';必填的 'Email address';一个标注为 'Party size, including you' 的宾客人数步进器,带减号和加号按钮,范围为 1–4;可选的 'Dietary notes or a song request'。在提交按钮 'Save my RSVP' 旁显示 'Demo RSVP: saved only in this browser. Nothing is sent.'。内联验证姓名和邮箱,对不出席的情况禁用步进器并将派对人数设为 0,且绝不发起网络请求。出席提交后,显示 'Your RSVP is saved, [name]!' 以及派对人数摘要、'Update RSVP' 和 'Add to calendar'。不出席时,显示 'Thanks for letting us know. You’ll be missed.' 将响应持久化到 localStorage,返回时预加载,并根据 PARTY_DATE 以五小时时长在本地生成日历文件。 布局:使用大型梅子色区块,纸色 RSVP 卡片偏移叠放在珊瑚色抽象形状上。在桌面端将卡片分为 5 列的邀请信息和 7 列的表单。使用 16px 圆角输入框、可见标签、强聚焦环、最小 48px 的控件,以及通过 aria-describedby 关联的内联错误。步进器是一个水平控件,数字居中。用确认面板和薄荷色成功标记就地替换表单。在移动端堆叠所有内容,不出现水平溢出。 动效:高亮选中的出席胶囊,以 120ms 跳动动画化宾客人数,仅对出席响应触发小型成功爆发;在减少动效模式下立即显现所有确认文本。 9. **邀请函页脚** — 重复 [BRAND],然后显示 'Come as you are. Leave with cake.' 和 'Questions? Ask the friend who sent you this invitation.' 包含一个标注为 'Back to the top' 的文本链接和可选的 CREDIT 页脚链接;不要编造联系方式或社交账号。 布局:以扇贝形 SVG 顶边收尾,用紧凑的三列行分别放置活动名称、结束语和链接,并设置 40px 的垂直内边距。在移动端将相同内容堆叠并左对齐。 动效:页脚无动画。 ## 资产 - 图像:不使用任何位图图像或下载的艺术素材。使用所列调色板,以原创的内联 SVG、CSS 和 canvas 几何图形来创建主视觉立体场景(hero diorama)、彩纸屑、礼物插画、扇贝形分隔线和非等比例地图;无需图像清单或远程图像 URL。 - 图标:将简单的蛋糕切片 favicon、日历、图钉、礼物、箭头、加号和减号图标绘制为原创的内联 SVG 描边和形状。不要导入品牌图标集,也不要复制其他邀请函的图标。 - 字体:通过 @fontsource-variable/fraunces 自托管 Fraunces Variable,仅导入所需的字重。在 ASSETS.md 中记录打包字体的路径、来源 https://github.com/undercasetype/Fraunces、作者 Undercase Type 以及 OFL-1.1。 - 字体:通过 @fontsource-variable/dm-sans 自托管 DM Sans Variable,仅导入所需的字重。在 ASSETS.md 中记录打包字体的路径、来源 https://github.com/googlefonts/dm-fonts、作者 DM Sans Project Authors 以及 OFL-1.1。 ## 不要做 - 不要添加后端、服务器代码、API 路由、数据库、身份验证、外部表单端点、第三方 API、分析或实时地图嵌入。RSVP 持久化和日历生成必须完全在浏览器中进行,并且 UI 绝不能声称响应已发送。 - 不要热链接或加载远程脚本、样式、字体、图标、图像、地图或占位图像服务。将所有资源打包到本地,并使用相对路径和 Vite base './'。 - 不要复制其他邀请函的代码、文案、插图、图标、布局细节或标语。不要使用徽标、授权角色、吉祥物、可识别的人物肖像、真实个人地址或真实联系方式。 - 不要使用商业字体、受限组件库源代码或所述宽松许可证之外的任何依赖;仅使用列出的两个自托管字体家族。 - 不要用平面背景上的排版或通用库存生日照片替换主视觉;保留大型原始派对桌立体模型和分层五彩纸屑。 - 不要在运行时逻辑中硬编码 Maya、默认场地或默认日期。从 src/content.ts 读取内容,并从 PARTY_DATE 派生可见日期、倒计时、五小时日程和七天回复截止时间。 - 不要添加页面、裸目录链接、无效按钮、购物链接或外部路线服务。保持单个 index.html 和可用的同页锚点。 - 不要添加元描述、Open Graph 标签、JSON-LD、站点地图、关键词堆砌文本或其他 SEO 工作;仅使用请求的纯标题和 favicon。 - 不要生成源映射、将 src 复制到 dist、使 dist 超过 20MB,或引入框架或动画库。 - 不要在 prefers-reduced-motion 下使用滚动劫持、自动播放音频、闪烁效果或连续运动。保持所有控件可通过键盘和触摸访问,并具有可见的焦点状态。 - 不要在 1440×900 或 390×844 下允许文本被裁剪、五彩纸屑控件重叠或水平溢出;完成的静态构建必须产生零控制台错误。 --- — Prompt by VibeFather · https://vibefather.ai/t/birthday-party-invitation-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: "Birthday Party Invitation Page"
colors:
party_paper: "#FFF7E8"
plum_ink: "#2E2140"
confetti_coral: "#FF6B6B"
marigold: "#FFC83D"
lilac_wrapper: "#B9A7FF"
mint_scoop: "#8BD9B6"
typography:
display_and_countdown_numerals: { family: "Fraunces Variable", weights: [700, 800, 900] }
body_labels_buttons_and_form_controls: { family: "DM Sans Variable", weights: [400, 500, 600, 700] }
spacing: "Use an 8px base unit, a 1200px maximum content width, 32px desktop page gutters, and 20px mobile gutters. Section padding is 104px desktop and 64px mobile. Keep text measures between 48 and 62 characters and card gaps at 24px."
radius: "Use 28px for major cards, 16px for inputs and small panels, and fully rounded pills for buttons and labels. Add 2px plum outlines, ticket perforations, and a few hand-cut SVG silhouettes rather than making every surface a rounded rectangle."
---
# Birthday Party Invitation 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
- **Party Paper** `#FFF7E8` — Main page background and light text on dark plum surfaces
- **Plum Ink** `#2E2140` — Body copy, outlines, primary buttons, and countdown background
- **Confetti Coral** `#FF6B6B` — Cake details, selected ticket, pin, and decorative accents; never small body text on paper
- **Marigold** `#FFC83D` — Countdown digits, secondary buttons, stars, and highlight shapes
- **Lilac Wrapper** `#B9A7FF` — Gift panels, map blocks, balloons, and alternating decorative surfaces
- **Mint Scoop** `#8BD9B6` — Success states, foliage, schedule markers, and one detail ticket
## Typography
- **Display and countdown numerals** — Fraunces Variable (OFL), weights 700/800/900. Self-host the font files.
- **Body, labels, buttons, and form controls** — DM Sans Variable (OFL), weights 400/500/600/700. Self-host the font files.
## Spacing & shape
- Spacing: Use an 8px base unit, a 1200px maximum content width, 32px desktop page gutters, and 20px mobile gutters. Section padding is 104px desktop and 64px mobile. Keep text measures between 48 and 62 characters and card gaps at 24px.
- Radius: Use 28px for major cards, 16px for inputs and small panels, and fully rounded pills for buttons and labels. Add 2px plum outlines, ticket perforations, and a few hand-cut SVG silhouettes rather than making every surface a rounded rectangle.
## Motion
- Run one lightweight confetti canvas only inside the hero: about 70 rectangles, circles, and short ribbons on desktop and 36 on mobile, with an initial cake-top burst followed by slow downward drift; pause when the hero is offscreen or the tab is hidden.
- Reveal the hero copy with a 600ms upward fade in two short stages, then float the SVG balloons by no more than 8px over alternating 4.8s and 5.6s cycles.
- Use IntersectionObserver for one-time section reveals of 16px vertical travel and 450ms opacity; content remains visible when JavaScript is unavailable.
- Give countdown digits a brief 120ms vertical tick only when their value changes, and give buttons, gift cards, and the map pin short 160ms hover or focus responses.
- Emit one small 24-piece confetti burst after a valid attending RSVP; do not autoplay sound, flash, scroll-jack, or attach motion to pointer movement.
- Under prefers-reduced-motion, disable all drifting, bobbing, reveals, digit ticks, and bursts; render a static confetti arrangement and keep countdown text updates functional.
## Imagery
Use no photographs or downloaded illustrations. The first screen's visual anchor is a large original inline SVG and CSS party-table diorama: an oval table viewed at a slight angle, a three-tier coral and cream cake, five lit candles, three wrapped gifts, six balloons, paper streamers, and small abstract flowers. Layer simple geometric shapes, subtle paper-grain patterns, and plum outlines for depth. No faces, people, characters, logos, or recognizable branded objects. Repeat the same visual language in the gift icons and not-to-scale map.
## Tone
Warm, playful, inclusive, and lightly cheeky, like a beautifully printed invitation from a thoughtful friend; keep directions direct and never pressure guests to bring gifts.
---
— Prompt by VibeFather · https://vibefather.ai/t/birthday-party-invitation-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 为父母举办里程碑生日:将 HONOREE 和 PARTY_DATE 设置为真实场合,然后将日程和礼物备注改写为适合正式晚宴而非花园游戏的内容。
- 儿童化装派对:将 PARTY_THEME 设置为化装主题,并调整三张礼物建议卡片,让宾客知道欢迎化装且礼物可选。
- 惊喜派对策划者:将 BRAND 设置为掩护故事名称,在 VENUE 中保持场地模糊,并利用回复截止时间在揭晓前收集来宾人数。
- 户外夏季聚会:将 VENUE 设置为公园或租用房间,并改写活动详情票券中的到场须知,涵盖停车、遮阳和天气信息。
生日派对邀请页:常见问题
生日派对邀请页上的 RSVP 表单如何运作,它会通知主办方吗?
生日派对邀请页上的 RSVP 表单会验证姓名和电子邮件地址,允许宾客调整同行人数,并且只将回复存储在当前浏览器中。它从不将信息发送给主办方或外部服务,页面也从不声称会这样做。表单以带有小型彩纸屑爆发的确认状态结束,因此主办方需要另一种方式来收集真实回复。
不修改代码的情况下,我可以在生日派对邀请页上更改哪些内容?
六个变量控制生日派对邀请页:BRAND、HONOREE、VENUE、GIFT_NOTE、PARTY_DATE 和 PARTY_THEME。可见的日程、倒计时和回复截止时间均根据提供的日期推导,因此设置新的 PARTY_DATE 会同时更新显示日期、倒计时和 RSVP 截止时间。三张礼物建议卡片跟随 GIFT_NOTE。
如何为用 AI 构建的酒庄网站添加葡萄酒俱乐部注册?
这个问题属于酒庄模板,而不是生日派对邀请页。生日派对邀请页带有仅限浏览器端的 RSVP,包含来宾人数、礼物建议和由日期驱动的倒计时,因此它适合个人生日而非葡萄酒俱乐部。酒庄注册需要带有邮件列表表单和商业页面结构的模板。