用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
一个单页婚礼邀请网站:象牙色主视觉上以优雅衬线字体呈现新人姓名,并配有实时倒计时;四章爱情故事;以垂直时间线展示当日流程;宾客出行与住宿提示;含餐食选择和出席人数的 RSVP 表单;首次参加者的常见问题;以及礼物登记占位卡片。默认内容虚构了一对在哈德逊谷谷仓庄园结婚的新人,但结构适用于任何婚礼:更换新人、场地、城市和日期后,每个部分依然成立——倒计时、话题标签和故事都由这些信息生成。RSVP 收集是否出席、出席人数、餐食选择、饮食备注和一首点歌,然后在浏览器中保存一张感谢卡,并附上修改答案的链接——无需后端,不会提交任何内容。配色为象牙色与暖纸色,点缀鼠尾草绿和深橄榄绿,另有一抹腮红色用于爱心和高亮;Gilda Display 以沉稳的高对比衬线字体排布姓名和标题,Jost 排布正文,两者均自托管。植物细节、章节标记、场地草图和礼物登记卡片均以 SVG 绘制;摄影展示场地、花艺、文具和餐桌布置,任何地方都不出现人脸。要适配时,替换变量并在一个内容文件中重写文案;流程、酒店、常见问题和餐食都从该文件读取。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Wedding Invitation and RSVP Website
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
A single-page wedding invitation for [BRAND], marrying at [VENUE] in [CITY] on [DATE]. It must feel like a printed suite come alive: an ivory hero with the names in an elegant serif and a live countdown to [DATE], a four-chapter story, the schedule of the day as a vertical timeline, travel and stay notes with invented hotels, an RSVP form (attending, party size, meal choice, dietary notes, one song request) that saves a thank-you card client-side, a guest FAQ and drawn registry placeholder cards. One page: index.html with sections (#story, #day, #travel, #rsvp, #faq, #registry). Everything runs in the browser; nothing is submitted anywhere.
- Audience: The guest list: college friends, extended family, colleagues and plus-ones, ages 9 to 90, mostly opening the link from a group chat on a phone. They want to know where, when, what to wear, where to sleep and how to say yes — in under three minutes.
- Goal: Get every guest to a submitted RSVP and a booked hotel. Within ten seconds a visitor should know who, where and when, and see the countdown; within two minutes they should have answered the RSVP.
- Tone: Warm, personal and lightly funny, like the couple wrote it themselves on a good writing day. Short paragraphs, concrete details (times, walking minutes, menu names), no formal invitation clichés, no exclamation marks.
## Stack
- Framework: Vite 5 + React 18 + TypeScript
- Styling: Tailwind CSS 3.4
- Libraries: react (MIT), react-dom (MIT), motion (motion.dev, import from 'motion/react') (MIT), lucide-react (ISC), tailwindcss (MIT), postcss (MIT), autoprefixer (MIT), vite (MIT), @vitejs/plugin-react (MIT), typescript (Apache-2.0), @fontsource/gilda-display (OFL-1.1), @fontsource/jost (OFL-1.1)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
- Scaffold with npm create vite@latest using the react-ts template. One HTML page at the project root: index.html (entry src/main.tsx).
- vite.config.ts: base './', plugins [react()], build { outDir 'dist', sourcemap false, assetsInlineLimit 0 }. Do not copy src/ into dist/.
- Tailwind 3.4 through PostCSS (tailwindcss + postcss + autoprefixer), content ['./index.html', './src/**/*.{ts,tsx}']. In tailwind.config.ts add every color under Design to theme.extend.colors with kebab-case keys (ivory, paper, linen, sage, olive, blush, blush-deep, ink, stone, rule) and fontFamily display ['Gilda Display', 'Georgia', 'serif'], sans ['Jost', 'system-ui', 'sans-serif']. Set borderRadius DEFAULT to 14px and add maxWidth { container: '1080px' } — an invitation is narrower than a shop.
- In src/fonts.ts import '@fontsource/gilda-display/400.css' and '@fontsource/jost/300.css', '@fontsource/jost/400.css', '@fontsource/jost/500.css'; import src/fonts.ts and src/index.css from the entry file.
- File layout: src/content.ts (every string, number, chapter, timeline entry, hotel, meal, FAQ answer and registry card, typed), src/lib/brand.ts (brandSlug = [BRAND] lowercased with every run of non-alphanumeric characters replaced by '-', coupleInitials = first letter of each name of [BRAND] uppercased joined with '&' (E&M), hashtag = '#' + brandSlug without hyphens or spaces capitalized per word), src/lib/storage.ts (safe localStorage get/set wrapped in try/catch, keys prefixed with brandSlug + ':'), src/lib/countdown.ts (timeLeft(target) → { days, hours, minutes, seconds, done } from parsing [DATE]).
- State: src/store/rsvp.ts is a tiny external store (useSyncExternalStore) holding the draft { name, attending, party, meal, dietary, song } and the saved answer, persisted to localStorage key brandSlug + ':rsvp'. A saved answer renders the thank-you card; 'Change your answer' clears it back to the form with values pre-filled.
- Components in src/components/: Header.tsx (anchor nav), Reveal.tsx (Motion whileInView wrapper), Botanical.tsx (a corner sprig SVG, mirrored via transforms), Countdown.tsx (four cells), Heart.tsx (small drawn SVG heart), Footer.tsx; Hero.tsx, Story.tsx (ChapterCard.tsx), DaySchedule.tsx (TimelineRow.tsx), TravelStay.tsx (HotelCard.tsx, VenueSketch.tsx inline SVG), Rsvp.tsx (AttendingToggle.tsx, PartyStepper.tsx, MealPicker.tsx, ThankYouCard.tsx), Faq.tsx, Registry.tsx (RegistryCard.tsx drawn placeholder). src/pages/Home.tsx composes them.
- Before the first build, download every image listed under Assets into public/images/ with curl -L -o using the exact file names given. The build itself never fetches anything.
- public/favicon.svg as described under Assets. index.html: lang en, <meta name='theme-color' content='#F8F5EE'>, <link rel='icon' href='./favicon.svg' type='image/svg+xml'>, <title>[BRAND] — [VENUE], [CITY]</title>.
- Write ASSETS.md at the project root as described under Assets.
- dist/ holds index.html, hashed JS/CSS, the woff2 fonts, favicon.svg and the six images. Keep it under 10 MB.
## Variables
- [BRAND] — The couple (default: "Elena & Marcus"). The couple's names as they'll appear on the invitation, 'Name & Name'. Used in the hero wordmark, title, hashtag (from the slug), couple initials in the footer and the RSVP's saved key. Always invented people.
- [VENUE] — Venue (default: "Hollowbrook Barn"). The invented venue name. Used in the hero line, the venue sketch label, travel copy and hotel distances. Two common English words; never a real venue.
- [CITY] — City (default: "Hudson, New York"). Where the venue is. Used in the hero line, travel directions (train station, drive times) and the footer. Real towns are fine; streets and hotels stay invented.
- [DATE] — Wedding date (default: "June 12, 2027"). The full future date the countdown runs to, written like 'June 12, 2027'. Drives the countdown, the hero line and the story's last chapter. Always in the future so the countdown is live.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/wedding-invitation-and-rsvp-website in the footer (default: yes; delete this line to remove it)
The copy under Pages & Sections is written for the default values. If your values differ, rewrite every headline, paragraph, label and image for them — same length, tone and structure. Layout, colors, type and motion stay as described.
Keep all copy, image paths and links in one content file (for example `src/content.ts`), keyed by section, so the content can be swapped later without touching components.
## Design
### Colors
- Ivory `#F8F5EE` — Page background throughout.
- Paper `#FDFBF7` — Card surfaces (story chapters, hotels, RSVP panel, registry cards).
- Linen `#F0EBDF` — Alternate section background (Schedule, Registry), input fill, chip hover.
- Sage `#8A9B84` — Botanical line work, chapter markers, timeline dots, selected chips, eyebrows.
- Olive `#4E5A48` — Secondary text on light backgrounds, timeline times, captions, icon color.
- Blush `#C98D84` — The one warm accent: hearts, countdown numbers, the attending 'Joyfully accepts' state, focus ring.
- Blush Deep `#B26F66` — Blush hover state, primary button pressed, meal selected border.
- Ink `#32362F` — Names, headlines and body text, primary outline buttons.
- Stone `#6B6F63` — Muted body text, secondary buttons, disabled fields.
- Rule `#E2DCCF` — 1px hairlines, card borders, input borders, timeline base line.
### Typography
- Display: the couple's names, H1, H2, H3, chapter titles, timeline titles, countdown numbers, the wordmark: Gilda Display (OFL), weights 400
- Text and UI: body, eyebrows, buttons, nav, form fields, timeline times (font-variant-numeric tabular-nums), captions: Jost (OFL), weights 300/400/500
### Layout & motion
- Spacing: 8px base unit. Container max-width 1080px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. Section vertical padding 112px desktop, 80px under 1024px, 64px under 640px. Type scale: H1 (the names) clamp(56px, 9vw, 120px) Gilda Display 400, line-height 1.04, letter-spacing 0.01em; H2 clamp(32px, 4vw, 52px) Gilda 400; H3 24px Gilda 400; ampersand between names set in Sage italic via Cormorant-free fallback (Gilda has no italic — set '&' in Jost 300 italic instead); lead Jost 300 18px / 1.75 Ink at 85%; body Jost 400 16px / 1.8 (max-width 64ch); eyebrow Jost 500 12px uppercase letter-spacing 0.2em Olive with a 16px drawn sprig glyph before; caption Jost 400 13px Olive. Buttons: height 50px, padding 0 28px, Jost 500 14px letter-spacing 0.12em uppercase. Primary: Ink fill, Paper text. Secondary: 1px Olive border, Olive text. Inputs: height 50px, 1px Rule border, Paper fill, 16px Jost, focus border Sage. Focus ring everywhere: 2px Blush outline with 3px offset.
- Radius: 14px on cards, inputs, chips, photos and the RSVP panel. 999px only for chips, the party stepper buttons, timeline dots and the heart.
- Motion: Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1) for reveals and the countdown; --ease-io cubic-bezier(0.65, 0, 0.35, 1) for accordions and the RSVP swap. Slow and soft — this is paper, not software.
- Motion: Reveal: blocks wrapped in <Reveal> start at opacity 0, translateY(16px) and animate to rest over 900ms --ease-out when 15% visible (Motion whileInView, viewport once). Siblings stagger by 100ms (index prop).
- Motion: Hero: the two names fade and rise from translateY(20px) with 200ms stagger 400ms after load, then the ampersand sprig draws (stroke-dashoffset to 0) over 1200ms, then the countdown fades in. The hero photo (top half, photo hero-barn.webp) scales from 1.05 to 1.0 over 2600ms; scrolling translates it 0 to 8% (Motion useScroll, offset ['start start', 'end start']).
- Motion: Countdown: the four cells sit on one hairline; each tick crossfades only the changed digit (a 240ms y-slide), never a flip-clock. Under prefers-reduced-motion the digits swap instantly.
- Motion: Story chapters: each chapter card reveals with its marker dot filling Sage; the connecting hairline draws downward as the section scrolls (scaleY 0 to 1, transform-origin top, useScroll on the list).
- Motion: Timeline (schedule): rows reveal with 100ms stagger; each time crossfades when its row enters; the dot pops from scale 0.6 once.
- Motion: RSVP: the attending toggle slides a small drawn heart between 'Joyfully accepts' (Blush) and 'Regretfully declines' (Stone); meal chips fill Sage when selected; party stepper counts with a 200ms scale pulse; submitting slides the form out and the ThankYouCard in (16px rise, 320ms --ease-io, AnimatePresence mode 'wait'); the card's heart draws its outline over 700ms.
- Motion: FAQ accordions: height 0 to auto and opacity 0 to 1 over 340ms --ease-io; the Plus rotates 45 degrees into an X.
- Motion: Registry cards: hover lifts 4px and the drawn ribbon straightens (a tiny 6px rotate settles to 0).
- Motion: Header: transparent over the ivory page with Ink text; after 40px of scroll it gets Ivory at 92% opacity, backdrop-filter blur(8px) and a 1px Rule border, 250ms transition. Anchor nav always visible with .link-draw underlines.
- Motion: prefers-reduced-motion: reduce — disable the photo scale and parallax, name rise, sprig draws, count-ups, layout animations (render at rest; countdown digits swap instantly). Color and border hover changes stay. Use CSS @media in index.css plus Motion's useReducedMotion in components.
- Imagery: Real photography only, soft and romantic, all six made for this template in one consistent style: soft garden light, ivory and sage with blush accents, shallow depth of field, fine grain. Never a person: the venue, florals, stationery, table settings and candles — no faces, no hands, no rings on fingers. No readable text anywhere — stationery stays blank. Every photo uses object-fit cover with the object-position given under Assets, 14px corners, no shadow; photos on Ivory get a 1px Rule outline. Captions under photos in Jost 13px Olive. Drawn in code: the botanical corner sprigs, chapter markers, timeline dots, the heart, the venue sketch and the registry placeholder cards. Icons: lucide-react only, stroke width 1.5.
## Pages & Sections
### Invitation (`index.html`)
1. **Content file and copy rules** — All copy below is written for the default values ([BRAND] = Elena & Marcus, [VENUE] = Hollowbrook Barn, [CITY] = Hudson, New York, [DATE] = June 12, 2027). Put every string, number and list in src/content.ts and render from it. If any variable value differs, rewrite every headline, chapter, timeline entry, hotel, direction, meal, FAQ answer and registry card so it is specific and believable for the new couple, keeping the same structure and counts (4 chapters, 6 timeline entries, 2 hotels, 3 meals, 5 FAQs, 3 registry cards). All people, places, hotels and shops are invented. Facts used throughout: hashtag '#ElenaAndMarcus' from the slug; ceremony 3:00pm at [VENUE]; the venue is a restored 1880s dairy barn with gardens; arrivals from 2:30pm; train: Amtrak to Hudson station, 10 minutes by taxi; drive: two hours north of the city, parking in the meadow; shuttle bus from both hotels at 2:00pm and 2:20pm, back at 11:30pm; hotels: 'The Hollowbrook Inn' a five-minute stroll (link '#', placeholder), 'Riverside Lodge' ten minutes by car (link '#'); meals: 'Braised beef with roots', 'Roast salmon with fennel', 'Garden risotto'; dietary captured free-text; dress code 'garden formal, block heels sink in grass'; ceremony unplugged; kids welcome at the brunch, evening is adults-only; registry: three invented shops ('The Hearth Shop', 'Wander & Co', 'Kitchen Garden'), all links '#'.
Layout: n/a
Motion: n/a
2. **Header (anchor nav)** — Centered wordmark: the couple initials 'E & M' in Gilda Display 20px linking to ./index.html. Nav below (Jost 500 14px, letter-spacing 0.08em): 'Our story' → #story, 'The day' → #day, 'Travel & stay' → #travel, 'RSVP' → #rsvp, 'FAQ' → #faq, 'Registry' → #registry. On mobile the nav scrolls horizontally under the wordmark. The 'RSVP' link gets a small drawn heart after it in Blush.
Layout: Fixed top, Ivory/92% with blur after 40px of scroll, height 104px total (wordmark row 56px + nav row 48px), centered container. Body gets matching top padding.
3. **Hero** — Top half: photo hero-barn.webp (full container width, aspect 21:9 on desktop, 16:10 mobile) under a soft Ivory gradient at the bottom edge. Below it, centered on Ivory: eyebrow sprig line 'Together with their families'; the names 'Elena' and 'Marcus' on either side of a Jost 300 italic Sage ampersand at H1 size; then Jost 300 20px '[VENUE] · [CITY]'; then 'Save the afternoon of [DATE]' in Jost 400 16px Olive; then the hashtag '#ElenaAndMarcus' in Blush 500. Below, the countdown: four cells (Gilda Display 400 40px Ink numbers over Jost 500 11px uppercase letter-spacing 0.18em Olive labels) 'days · hours · minutes · seconds' counting to [DATE] 3:00pm local. Under the countdown, one primary button 'RSVP by April 1' → #rsvp and secondary 'See the day' → #day. Caption: 'Formal invitation to follow by post; this page is the one that updates.'
Layout: Hero photo 1px Rule outline, 14px radius, 32px margin under the header. Names row wraps under 640px with the ampersand centered on its own line. Countdown cells separated by 1px Rule verticals, 48px total height, on a single 1px Rule top and bottom border inset 20%. Buttons centered with 16px gap; caption 24px below.
4. **Our story** — Section id='story'. Eyebrow 'How we got here' and H2 'Four chapters, one barn.' Chapters on a vertical hairline: 1) marker '2019' — 'A borrowed umbrella' — 'Elena lent Marcus an umbrella outside a bookstore and got it back three weeks later, with a receipt for two coffees she never drank. He had done the math; she did the forgiving.' 2) '2021' — 'One apartment, two bookshelves' — 'A move across the city turned into a shared lease. The bookshelves merged badly; everything else merged easily.' 3) '2024' — 'The question' — 'On the bridge where the umbrella finally died, Marcus asked. Elena said yes before he finished the sentence, which he has never let her forget.' 4) '2027' — 'You are here' — 'A barn in [CITY], everyone we love, and a playlist that starts polite. Thank you for being chapter four.'
Layout: Ivory background. Header centered. Chapters: vertical hairline center-left on desktop (marker year in Gilda 28px Sage left of the line, card right), stacked under 768px. Cards on Paper 1px Rule border 28px padding, title Gilda 24px, body Jost 16px / 1.8.
5. **The day** — Section id='day'. Eyebrow 'June 12' and H2 'The shape of the day.' Vertical timeline: '2:30pm — Arrivals & lemonade' — 'Gates open; find a seat, find a friend, find the shade.'; '3:00pm — The ceremony' — 'In the garden. Unplugged — our photographer is quick, we promise.'; '4:00pm — Cocktails on the lawn' — ' Lawn games for the competitive, chairs for the wise.'; '6:00pm — Dinner in the barn' — 'Long tables, short speeches, three suppers to choose from.'; '8:00pm — Toasts & cake' — 'Speak now or forever hold your prosecco.'; '9:00pm — Dancing' — 'The band starts polite. It does not stay polite.'; '11:30pm — Last song & shuttles' — 'The shuttle loops to both hotels until everyone is home.'
Layout: Linen background. Centered header. Timeline: hairline at left 32px column with Sage dots, time Gilda 26px Ink (tabular-nums via Jost for the digits — set times in Jost 500 16px and the period label in Gilda; keep one style for all rows), title Gilda 24px, note Jost 15px Olive. Rows reveal with stagger; 1px Rule dividers. Photo strip after the timeline: three photos side by side (flowers-table.webp 'The palette', stationery.webp 'The suite', candles-evening.webp 'The evening') aspect 4:3, captions below.
6. **Travel and stay** — Section id='travel'. Eyebrow 'Getting there' and H2 'The barn, the beds, the way home.' Left column, the VenueSketch (inline SVG line drawing of a barn with gardens, labeled '[VENUE]' in Sage) and the venue paragraph: 'A restored 1880s dairy barn ten minutes outside town — gardens for the ceremony, string lights for the dancing, meadow parking for the practical. The ground is grass: block heels, not stilettos.' Getting-there rows with Lucide icons: TrainFront 'By train' — 'Amtrak to Hudson station; the venue is a 10-minute taxi. We'll post a shared-cab list closer to the day.'; Car 'By car' — 'About two hours north of the city. Turn at the farm stand with the giant pumpkins — that's the one. Parking in the meadow, follow the lights.'; Bus 'Shuttle' — 'A shuttle loops from both hotels at 2:00pm and 2:20pm, and back from the last song until everyone's home.' Right column, two HotelCards on Paper: 'The Hollowbrook Inn' — 'A five-minute stroll from the barn. Twelve rooms held under [hashtag] until March 1; mention the wedding for the rate.' — link '#' caption 'Placeholder link for the couple to fill in'; 'Riverside Lodge' — 'Ten minutes by car, breakfast worth the drive. Pet friendly, for the plus-ones with paws.' — link '#' same caption.
Layout: Ivory background. Two columns: venue + travel rows (7 cols), hotels (4 cols, offset 1) stacked with 24px gaps. Travel rows: icon in 44px Linen rounded square. Sketch SVG viewBox 0 0 480 360 width 100%, Rule strokes, Sage accents.
7. **RSVP** — Section id='rsvp'. Eyebrow 'RSVP' and H2 'Say yes (or no, gently).' A Paper panel: name input (placeholder 'Your name as the envelope spelled it'); attending toggle — two chips with a sliding heart, 'Joyfully accepts' (Blush when active) / 'Regretfully declines' (Stone when active); party stepper 'Seats in your party' 1–4 (stepper with Minus/Plus, count Gilda 28px); meal picker (three chips with one-line notes): 'Braised beef with roots' — 'short ribs, carrots, mash'; 'Roast salmon with fennel' — 'herb butter, new potatoes'; 'Garden risotto' — 'peas, mint, parmesan — the vegetarian plate'; dietary input (placeholder 'Allergies, aversions, strong feelings'); song input (placeholder 'One song that fills the floor'); primary button 'Send our answer' with caption 'Saved right here in this browser — nothing is posted anywhere; the couple checks the list by candlelight.' On submit (name + attending + meal required): ThankYouCard on Linen — drawn heart with its outline animating, 'Thank you, [NAME].' in Gilda 32px, summary lines ('2 seats · Roast salmon with fennel' or 'You'll be missed — we''ll raise a glass.' for declines, dietary and song echoed), buttons 'Change your answer' (returns to the form pre-filled) and 'Back to the day' → #day. Saved in localStorage.
Layout: Linen background. Panel max-width 680px centered, 32px padding, 1px Rule border, 14px radius. Inputs full width, 16px gaps; chips wrap; stepper centered. Under 480px the panel padding drops to 20px.
8. **FAQ** — Section id='faq'. Eyebrow 'Good questions' and H2 'Before you ask the mothers.' Five accordions: 1) 'What should I wear?' — 'Garden formal: linen, florals, a hat if you like. The ceremony is on grass — block heels forgive, stilettos do not.' 2) 'Can I bring my kids?' — 'To the Sunday-after brunch, absolutely and loudly. The evening is adults-only, except the two smallest ring bearers, who have contracts.' 3) 'What about photos?' — 'Unplugged ceremony — put the phones away and be in the pictures. After the kiss, shoot freely and tag [hashtag].' 4) 'Gifts?' — 'Your presence is the present; the registry below is for the stubborn. Three shops, no china, zero crystal.' 5) 'What if it rains?' — 'The barn holds everyone; the garden ceremony moves inside with the string lights on. Rain on a wedding is luck — mud is a shoe choice.'
Layout: Ivory background, accordion rows with 1px Rule dividers, question in Gilda 22px, answer Jost 16px / 1.8 max-width 64ch, Plus icon right. Container max-width 720px.
9. **Registry** — Section id='registry'. Eyebrow 'For the stubborn' and H2 'Three shops, no china.' Three drawn RegistryCards (SVG: a shopfront frontispiece in Rule lines with Sage accents, the shop name in Gilda): 'The Hearth Shop' — 'For the fireplace we don''t have yet and fully intend to earn.' — button 'Visit' (link '#', caption 'placeholder link'); 'Wander & Co' — 'Travel fund in shop form: contributions to a honeymoon we''ll actually take.' — 'Visit' ('#'); 'Kitchen Garden' — 'Seeds, tools and one absurdly good knife.' — 'Visit' ('#'). Below: 'Or bring a bottle — red, dry, and label-free. We''re building a cellar, not a display.'
Layout: Linen background. Three equal columns 24px gap; cards Paper 1px Rule border 28px padding, shopfront SVG 100% width aspect 4:3 top. Under 860px: stacked.
10. **Footer** — Ivory background with a 1px Rule top border. Centered: a Sage sprig, the initials 'E & M' in Gilda 24px, '[VENUE] · [CITY] · [DATE]' in Jost 400 14px Olive, the hashtag in Blush 500 14px, and the line 'Made with love and a shared spreadsheet.' in Jost 300 14px Stone. No social icons, no email — the couple is reachable by phone like it''s 2019.
Layout: Vertical padding 64px, centered stack, 16px gaps.
## Assets
- image: Template photos made for this design (free to redistribute with the template). Download each with curl -L -o into public/images/: https://media.vibefather.ai/assets/2364ee3f-9bc9-48a8-bff1-bcd52aa512d9/hero-barn.webp → public/images/hero-barn.webp (Hero; object-position 50% 55%; alt 'A restored barn with string lights and garden chairs ready for a ceremony'); https://media.vibefather.ai/assets/2364ee3f-9bc9-48a8-bff1-bcd52aa512d9/flowers-table.webp → public/images/flowers-table.webp (Day photo strip; alt 'Sage and blush flowers with eucalyptus on a linen table'); https://media.vibefather.ai/assets/2364ee3f-9bc9-48a8-bff1-bcd52aa512d9/stationery.webp → public/images/stationery.webp (Day photo strip; alt 'Blank ivory wedding stationery with a wax seal and sage ribbon'); https://media.vibefather.ai/assets/2364ee3f-9bc9-48a8-bff1-bcd52aa512d9/candles-evening.webp → public/images/candles-evening.webp (Day photo strip; alt 'Taper candles in glass holders along a barn dinner table at dusk'); https://media.vibefather.ai/assets/2364ee3f-9bc9-48a8-bff1-bcd52aa512d9/garden-path.webp → public/images/garden-path.webp (Story section side image between chapters 3 and 4 on desktop; alt 'A garden path with a simple birch arch'); https://media.vibefather.ai/assets/2364ee3f-9bc9-48a8-bff1-bcd52aa512d9/table-setting.webp → public/images/table-setting.webp (RSVP section, small side image above the panel; alt 'A single place setting with ivory linen and a sage napkin'). Six files in total.
- image: Write ASSETS.md at the project root with a table: path, source URL, author, license — one row for each photo (source 'media.vibefather.ai, made for this template', author 'VibeFather', license 'Distributed with the template'), plus rows for @fontsource/gilda-display and @fontsource/jost (OFL-1.1) and lucide-react (ISC). Never replace photos with stock sites (Unsplash, Pexels, Pixabay) or images with people, faces, hands, rings on fingers or readable writing on stationery.
- icon: lucide-react only: Heart, Minus, Plus, TrainFront, Car, Bus, Check, Clock, MapPin, GlassWater, Music. Stroke width 1.5, 16–24px, color inherits. public/favicon.svg hand-written: viewBox 0 0 32 32, a 32x32 rect rx 9 filled #F8F5EE with a 1px Sage (#8A9B84) border, a Blush (#C98D84) heart glyph centered. No other logo: the couple's initials are always set as type.
- font: Install @fontsource/gilda-display and @fontsource/jost and import them in src/fonts.ts as listed in Setup. Vite bundles the woff2 files into dist/.
- image: Drawn in code: the botanical corner sprigs and eyebrow glyphs, chapter markers, timeline dots, the RSVP heart, the venue sketch (barn line drawing) and the three registry shopfront placeholders. No other bitmaps, no illustrations, no map tiles.
## Don'ts
- No backend, no form submission, no fetch to any API: the RSVP and its thank-you card live in the browser only (localStorage); nothing is posted anywhere, and the form says so.
- All links on this single page are anchors (./index.html#story, #day, #travel, #rsvp, #faq, #registry); hotel and registry links are '#' placeholders the couple fills in — never real stores.
- Self-host everything: fonts through Fontsource, icons as npm packages or inline SVG, images downloaded into public/images/. No CDN <script> or <link> tags, no Google Fonts, no analytics.
- Production build: minified, no source maps, no src/ copied into dist/, single command npm run build, output in dist/ under 10 MB.
- No real venues, hotels, registry stores or real couples; no photos with faces, hands or people; stationery in photos stays blank — no readable writing.
- No dates of any real couple; the countdown targets the [DATE] variable only; the page shows no other dates (the RSVP deadline lives in copy, not a calendar).
- Never mention VibeFather or any other brand inside the site except the optional credit footer link; all copy is invented US English.
- Respect prefers-reduced-motion everywhere: disable parallax, the sprig and heart draws, digit slides and staggered reveals; keep color/border hovers.
- The site must work at 1440x900 desktop and 390x844 mobile with zero console errors; the RSVP works with keyboard only and every interactive element has a visible focus ring.
- Keep copy concrete and personal: no lorem, no invitation-website clichés ('welcome to our journey'); every time, shop and hotel comes from src/content.ts.
---
— Prompt by VibeFather · https://vibefather.ai/t/wedding-invitation-and-rsvp-website · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 婚礼邀请与 RSVP 网站
完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。
## 简介
为 [BRAND] 打造的单页婚礼邀请函,[BRAND] 将于 [DATE] 在 [CITY] 的 [VENUE] 举行婚礼。它必须像一套活起来的印刷请柬:象牙色(ivory)的主视觉区,名字用优雅的衬线字体呈现,并配有实时倒计时指向 [DATE];一个四章式的故事;当天日程以垂直时间线呈现;旅行与住宿须知,附虚构酒店;一个 RSVP 表单(是否出席、同行人数、餐食选择、饮食备注、一首点歌),提交后在客户端保存一张感谢卡;一个宾客 FAQ,以及手绘风格的礼物登记占位卡片。单页:index.html,包含各区块(#story、#day、#travel、#rsvp、#faq、#registry)。一切都在浏览器中运行;不会向任何地方提交。
- 受众:宾客名单:大学朋友、远亲、同事和携伴嘉宾,年龄从 9 岁到 90 岁,大多是在手机上从群聊里打开链接。他们想知道在哪里、什么时候、穿什么、住哪里,以及如何答复出席——在三分钟内完成。
- 目标:让每位宾客都提交 RSVP 并订好酒店。访客应在十秒内知道是谁、在哪里、什么时候,并看到倒计时;在两分钟内完成 RSVP 的填写。
- 语气:温暖、亲切、带点小幽默,就像这对新人状态好的时候自己写的一样。短段落,具体细节(时间、步行分钟数、菜单名称),不要正式的请柬套话,不要感叹号。
## 技术栈
- 框架:Vite 5 + React 18 + TypeScript
- 样式:Tailwind CSS 3.4
- 库:react(MIT)、react-dom(MIT)、motion(motion.dev,从 'motion/react' 导入)(MIT)、lucide-react(ISC)、tailwindcss(MIT)、postcss(MIT)、autoprefixer(MIT)、vite(MIT)、@vitejs/plugin-react(MIT)、typescript(Apache-2.0)、@fontsource/gilda-display(OFL-1.1)、@fontsource/jost(OFL-1.1)
- 构建:`npm run build` → 静态文件输出到 `dist/`。无后端、无服务端代码、无外部 API。
- 设置:
- 使用 npm create vite@latest 以 react-ts 模板搭建脚手架。项目根目录下只有一个 HTML 页面:index.html(入口 src/main.tsx)。
- vite.config.ts:base './',plugins [react()],build { outDir 'dist', sourcemap false, assetsInlineLimit 0 }。不要将 src/ 复制到 dist/ 中。
- 通过 PostCSS 使用 Tailwind 3.4(tailwindcss + postcss + autoprefixer),content ['./index.html', './src/**/*.{ts,tsx}']。在 tailwind.config.ts 中,将设计(Design)下的每种颜色以 kebab-case 键名添加到 theme.extend.colors 中(ivory、paper、linen、sage、olive、blush、blush-deep、ink、stone、rule),并设置 fontFamily display ['Gilda Display', 'Georgia', 'serif']、sans ['Jost', 'system-ui', 'sans-serif']。将 borderRadius DEFAULT 设为 14px,并添加 maxWidth { container: '1080px' } —— 邀请函比商店页面更窄。
- 在 src/fonts.ts 中导入 '@fontsource/gilda-display/400.css' 以及 '@fontsource/jost/300.css'、'@fontsource/jost/400.css'、'@fontsource/jost/500.css';从入口文件导入 src/fonts.ts 和 src/index.css。
- 文件布局:src/content.ts(所有字符串、数字、章节、时间线条目、酒店、餐食、FAQ 答案和礼物登记卡片,均带类型),src/lib/brand.ts(brandSlug = [BRAND] 转为小写,并将每一段连续的非字母数字字符替换为 '-',coupleInitials = [BRAND] 中每个名字的首字母转为大写后用 '&' 连接(E&M),hashtag = '#' + brandSlug 去掉连字符或空格后按单词首字母大写),src/lib/storage.ts(用 try/catch 包裹的安全 localStorage 读写,键名前缀为 brandSlug + ':'),src/lib/countdown.ts(timeLeft(target) → { days, hours, minutes, seconds, done },从解析 [DATE] 得出)。
- 状态:src/store/rsvp.ts 是一个小型外部 store(useSyncExternalStore),保存草稿 { name, attending, party, meal, dietary, song } 和已保存的答复,持久化到 localStorage 键 brandSlug + ':rsvp'。已保存的答复会渲染感谢卡片;'Change your answer' 会清除它并返回表单,且值已预填。
- src/components/ 中的组件:Header.tsx(锚点导航)、Reveal.tsx(Motion whileInView 包装器)、Botanical.tsx(角落小枝 SVG,通过变换镜像)、Countdown.tsx(四个单元格)、Heart.tsx(手绘小 SVG 心形)、Footer.tsx;Hero.tsx、Story.tsx(ChapterCard.tsx)、DaySchedule.tsx(TimelineRow.tsx)、TravelStay.tsx(HotelCard.tsx、VenueSketch.tsx 内联 SVG)、Rsvp.tsx(AttendingToggle.tsx、PartyStepper.tsx、MealPicker.tsx、ThankYouCard.tsx)、Faq.tsx、Registry.tsx(RegistryCard.tsx 绘制的占位符)。src/pages/Home.tsx 将它们组合起来。
- 在首次构建之前,使用 curl -L -o 将资源(Assets)下列出的每张图片下载到 public/images/ 中,并使用给定的确切文件名。构建本身从不获取任何内容。
- public/favicon.svg 如资源(Assets)下所述。index.html:lang en,<meta name='theme-color' content='#F8F5EE'>,<link rel='icon' href='./favicon.svg' type='image/svg+xml'>,<title>[BRAND] — [VENUE], [CITY]</title>。
- 如资源(Assets)下所述,在项目根目录写入 ASSETS.md。
- dist/ 包含 index.html、带哈希的 JS/CSS、woff2 字体、favicon.svg 和六张图片。保持在 10 MB 以下。
## 变量
- [BRAND] — 新人(默认值:"Elena & Marcus")。新人姓名在邀请函上的呈现形式,即 'Name & Name'。用于主视觉字标、标题、话题标签(由 slug 生成)、页脚的新人首字母缩写以及 RSVP 的保存键。始终为虚构人物。
- [VENUE] — 场地(默认值:"Hollowbrook Barn")。虚构的场地名称。用于主视觉文案行、场地手绘图的标签、交通文案和酒店距离。由两个常见英文单词组成;绝不使用真实场地。
- [CITY] — 城市(默认值:"Hudson, New York")。场地所在的城市。用于主视觉文案行、交通指引(火车站、驾车时间)和页脚。可以使用真实城镇;街道和酒店保持虚构。
- [DATE] — 婚礼日期(默认值:"June 12, 2027")。倒计时所指向的完整未来日期,写作 'June 12, 2027'。驱动倒计时、主视觉文案行和故事的最后章节。始终位于未来,以确保倒计时处于运行状态。
- [CREDIT] — 在页脚保留一个小型 "Template by VibeFather" 链接,指向 https://vibefather.ai/t/wedding-invitation-and-rsvp-website(默认值:是;删除此行即可移除)
Pages & Sections 下的文案是按默认值撰写的。如果你的取值不同,请为它们重写每一个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便之后无需改动组件即可替换内容。
## 设计
### 颜色
- Ivory(象牙白)`#F8F5EE` — 全站页面背景。
- Paper(纸白)`#FDFBF7` — 卡片表面(故事章节、酒店、RSVP 面板、礼物登记卡片)。
- Linen(亚麻色)`#F0EBDF` — 交替区块背景(日程、礼物登记)、输入框填充、chip 悬停。
- Sage(鼠尾草绿)`#8A9B84` — 植物线条、章节标记、时间线圆点、选中的 chip、eyebrow。
- Olive(橄榄绿)`#4E5A48` — 浅色背景上的次要文字、时间线时间、说明文字、图标颜色。
- Blush(腮红粉)`#C98D84` — 唯一的暖色点缀:爱心、倒计时数字、出席的 'Joyfully accepts' 状态、焦点环。
- Blush Deep(深腮红)`#B26F66` — Blush 悬停状态、主按钮按下、餐食选中边框。
- Ink(墨色)`#32362F` — 姓名、标题和正文、主描边按钮。
- Stone(石灰灰)`#6B6F63` — 弱化正文、次要按钮、禁用字段。
- Rule(分隔线色)`#E2DCCF` — 1px 细线、卡片边框、输入框边框、时间线基线。
### 字体排印
- Display:新人姓名、H1、H2、H3、章节标题、时间线标题、倒计时数字、字标:Gilda Display(OFL),字重 400
- 文本与 UI:正文、eyebrow、按钮、导航、表单字段、时间线时间(font-variant-numeric tabular-nums)、说明文字:Jost(OFL),字重 300/400/500
### 布局与动效
- 间距:8px 基准单位。容器最大宽度 1080px,居中,侧边内边距桌面端 48px、平板端 32px、640px 以下 20px。区块垂直内边距桌面端 112px、1024px 以下 80px、640px 以下 64px。字号阶梯:H1(姓名)clamp(56px, 9vw, 120px) Gilda Display 400,行高 1.04,字距 0.01em;H2 clamp(32px, 4vw, 52px) Gilda 400;H3 24px Gilda 400;姓名之间的 & 符号用 Sage 斜体,通过无 Cormorant 的回退方案设置(Gilda 没有斜体——改用 Jost 300 斜体设置 '&');lead Jost 300 18px / 1.75 Ink 85%;正文 Jost 400 16px / 1.8(最大宽度 64ch);eyebrow Jost 500 12px 大写 字距 0.2em Olive,前面带一个 16px 手绘小枝字形;说明文字 Jost 400 13px Olive。按钮:高度 50px,内边距 0 28px,Jost 500 14px 字距 0.12em 大写。主按钮:Ink 填充,Paper 文字。次按钮:1px Olive 边框,Olive 文字。输入框:高度 50px,1px Rule 边框,Paper 填充,16px Jost,聚焦边框 Sage。全局焦点环:2px Blush 轮廓,偏移 3px。
- 圆角:卡片、输入框、chip、照片和 RSVP 面板为 14px。仅 chip、party 步进按钮、时间线圆点和爱心使用 999px。
- 动效:缓动:--ease-out cubic-bezier(0.22, 0.61, 0.36, 1) 用于显现和倒计时;--ease-io cubic-bezier(0.65, 0, 0.35, 1) 用于手风琴和 RSVP 切换。缓慢而柔和——这是纸,不是软件。
- 动效:显现:包裹在 <Reveal> 中的区块从 opacity 0、translateY(16px) 开始,在 15% 可见时(Motion whileInView,viewport once)用 900ms --ease-out 动画到静止状态。同级元素错开 100ms(index prop)。
- 动效:Hero:两个姓名在加载后 400ms 以 200ms 错开从 translateY(20px) 淡入上升,然后 & 小枝绘制(stroke-dashoffset 到 0)历时 1200ms,然后倒计时淡入。Hero 照片(上半部分,照片 hero-barn.webp)在 2600ms 内从 1.05 缩放到 1.0;滚动时平移 0 到 8%(Motion useScroll,offset ['start start', 'end start'])。
- 动效:倒计时:四个单元格位于一条细线上;每次跳动只交叉淡化变化的数字(240ms y 轴滑动),绝不用翻页时钟。在 prefers-reduced-motion 下数字即时切换。
- 动效:故事章节:每个章节卡片显现时其标记圆点填充 Sage;连接细线随区块滚动向下绘制(scaleY 0 到 1,transform-origin top,对列表使用 useScroll)。
- 动效:时间线(日程):行以 100ms 错开显现;每行进入时其时间交叉淡化;圆点从 scale 0.6 弹出一次。
- 动效:RSVP:出席切换在 'Joyfully accepts'(Blush)和 'Regretfully declines'(Stone)之间滑动一个小手绘爱心;餐食 chip 选中时填充 Sage;party 步进器计数时带 200ms 缩放脉冲;提交时表单滑出、ThankYouCard 滑入(16px 上升,320ms --ease-io,AnimatePresence mode 'wait');卡片上的爱心在 700ms 内绘制其轮廓。
- 动效:FAQ 手风琴:高度 0 到 auto,opacity 0 到 1,历时 340ms --ease-io;Plus 旋转 45 度变成 X。
- 动效:礼物登记卡片:悬停上浮 4px,手绘丝带变直(一个微小的 6px 旋转归零)。
- 动效:页头:在象牙白页面上透明,Ink 文字;滚动 40px 后变为 Ivory 92% 不透明度、backdrop-filter blur(8px) 和 1px Rule 边框,250ms 过渡。锚点导航始终可见,带 .link-draw 下划线。
- 动效:prefers-reduced-motion: reduce — 禁用照片缩放和视差、姓名上升、小枝绘制、数字递增、布局动画(以静止状态渲染;倒计时数字即时切换)。颜色和边框悬停变化保留。在 index.css 中使用 CSS @media,并在组件中使用 Motion 的 useReducedMotion。
- 图像:仅使用真实摄影,柔和浪漫,全部六张为本模板以统一风格制作:柔和花园光线,象牙白和鼠尾草绿配腮红点缀,浅景深,细腻颗粒。绝不出现人物:场地、花艺、文具、餐桌布置和蜡烛——没有面孔、没有手、手指上没有戒指。任何地方都没有可读文字——文具保持空白。每张照片使用 object-fit cover,object-position 见 Assets 下说明,14px 圆角,无阴影;Ivory 上的照片加 1px Rule 轮廓。照片下方说明文字为 Jost 13px Olive。代码绘制:植物角落小枝、章节标记、时间线圆点、爱心、场地草图以及礼物登记占位卡片。图标:仅 lucide-react,描边宽度 1.5。
## 页面与区块
### 邀请函(`index.html`)
1. **内容文件与文案规则** — 以下所有文案均按默认值编写([BRAND] = Elena & Marcus,[VENUE] = Hollowbrook Barn,[CITY] = Hudson, New York,[DATE] = June 12, 2027)。将每个字符串、数字和列表放入 src/content.ts 并从中渲染。若任何变量值不同,请重写每个标题、章节、时间线条目、酒店、路线、餐食、FAQ 回答和礼物登记卡片,使其对新人有针对性且可信,同时保持相同结构和数量(4 个章节、6 个时间线条目、2 家酒店、3 种餐食、5 个 FAQ、3 张礼物登记卡片)。所有人物、地点、酒店和商店均为虚构。全篇使用的事实:话题标签 '#ElenaAndMarcus' 来自 slug;仪式下午 3:00 在 [VENUE];场地是一座修复的 1880 年代奶牛谷仓,带花园;下午 2:30 开始入场;火车:Amtrak 至 Hudson 站,出租车 10 分钟;驾车:城市以北两小时,草甸停车;接驳巴士从两家酒店分别于下午 2:00 和 2:20 发车,晚上 11:30 返回;酒店:'The Hollowbrook Inn' 步行五分钟(链接 '#',占位符),'Riverside Lodge' 驾车十分钟(链接 '#');餐食:'Braised beef with roots'、'Roast salmon with fennel'、'Garden risotto';饮食需求以自由文本记录;着装要求 'garden formal, block heels sink in grass';仪式不插电;孩子欢迎参加早午餐,晚间仅限成人;礼物登记:三家虚构商店('The Hearth Shop'、'Wander & Co'、'Kitchen Garden'),所有链接均为 '#'。
布局:不适用
动效:不适用
2. **页头(锚点导航)** — 居中字标:新人首字母 'E & M',Gilda Display 20px,链接至 ./index.html。下方导航(Jost 500 14px,letter-spacing 0.08em):'Our story' → #story,'The day' → #day,'Travel & stay' → #travel,'RSVP' → #rsvp,'FAQ' → #faq,'Registry' → #registry。移动端导航在字标下方横向滚动。'RSVP' 链接后加一个小手绘爱心,Blush 色。
布局:固定顶部,Ivory/92%,滚动 40px 后加模糊,总高 104px(字标行 56px + 导航行 48px),居中容器。Body 加对应顶部内边距。
3. **首屏** — 上半部分:照片 hero-barn.webp(容器全宽,桌面端 21:9,移动端 16:10),底部边缘覆盖柔和 Ivory 渐变。下方在 Ivory 上居中:眉题小枝线条 'Together with their families';名字 'Elena' 和 'Marcus' 分列 Jost 300 斜体 Sage 色 & 符号两侧,H1 字号;然后 Jost 300 20px '[VENUE] · [CITY]';然后 'Save the afternoon of [DATE]',Jost 400 16px Olive;然后话题标签 '#ElenaAndMarcus',Blush 500。下方倒计时:四个单元格(Gilda Display 400 40px Ink 数字,上方 Jost 500 11px 大写 letter-spacing 0.18em Olive 标签)'days · hours · minutes · seconds',倒计时至 [DATE] 下午 3:00 当地时间。倒计时下方,一个主按钮 'RSVP by April 1' → #rsvp 和次按钮 'See the day' → #day。说明文字:'Formal invitation to follow by post; this page is the one that updates.'
布局:首屏照片 1px Rule 描边,14px 圆角,页头下方 32px 外边距。名字行在 640px 以下换行,& 符号居中单独一行。倒计时单元格以 1px Rule 竖线分隔,总高 48px,上下各一条 1px Rule 边框内缩 20%。按钮居中,间距 16px;说明文字下方 24px。
4. **我们的故事** — 区块 id='story'。眉题 'How we got here' 和 H2 'Four chapters, one barn.' 章节位于垂直细线上:1)标记 '2019' — 'A borrowed umbrella' — 'Elena lent Marcus an umbrella outside a bookstore and got it back three weeks later, with a receipt for two coffees she never drank. He had done the math; she did the forgiving.' 2)'2021' — 'One apartment, two bookshelves' — 'A move across the city turned into a shared lease. The bookshelves merged badly; everything else merged easily.' 3)'2024' — 'The question' — 'On the bridge where the umbrella finally died, Marcus asked. Elena said yes before he finished the sentence, which he has never let her forget.' 4)'2027' — 'You are here' — 'A barn in [CITY], everyone we love, and a playlist that starts polite. Thank you for being chapter four.'
布局:Ivory 背景。页头居中。章节:桌面端垂直细线居中偏左(年份标记 Gilda 28px Sage 在左侧,卡片在右侧),768px 以下堆叠。卡片 Paper 背景 1px Rule 边框 28px 内边距,标题 Gilda 24px,正文 Jost 16px / 1.8。
5. **当天** — 区块 id='day'。眉题 'June 12' 和 H2 'The shape of the day.' 垂直时间线:'2:30pm — Arrivals & lemonade' — 'Gates open; find a seat, find a friend, find the shade.';'3:00pm — The ceremony' — 'In the garden. Unplugged — our photographer is quick, we promise.';'4:00pm — Cocktails on the lawn' — ' Lawn games for the competitive, chairs for the wise.';'6:00pm — Dinner in the barn' — 'Long tables, short speeches, three suppers to choose from.';'8:00pm — Toasts & cake' — 'Speak now or forever hold your prosecco.';'9:00pm — Dancing' — 'The band starts polite. It does not stay polite.';'11:30pm — Last song & shuttles' — 'The shuttle loops to both hotels until everyone is home.'
布局:Linen 背景。页头居中。时间线:左侧 32px 列细线带 Sage 圆点,时间 Gilda 26px Ink(数字用 Jost 的 tabular-nums — 时间设为 Jost 500 16px,时段标签用 Gilda;所有行保持一种样式),标题 Gilda 24px,注释 Jost 15px Olive。行以交错方式显现;1px Rule 分隔线。时间线后照片条:三张照片并排(flowers-table.webp 'The palette'、stationery.webp 'The suite'、candles-evening.webp 'The evening')4:3 比例,说明文字在下方。
6. **交通与住宿** — 区块 id='travel'。眉题 'Getting there' 和 H2 'The barn, the beds, the way home.' 左栏:VenueSketch(内联 SVG 线稿,谷仓带花园,标注 '[VENUE]' 为 Sage 色)和场地段落:'A restored 1880s dairy barn ten minutes outside town — gardens for the ceremony, string lights for the dancing, meadow parking for the practical. The ground is grass: block heels, not stilettos.' 交通行带 Lucide 图标:TrainFront 'By train' — 'Amtrak to Hudson station; the venue is a 10-minute taxi. We'll post a shared-cab list closer to the day.';Car 'By car' — 'About two hours north of the city. Turn at the farm stand with the giant pumpkins — that's the one. Parking in the meadow, follow the lights.';Bus 'Shuttle' — 'A shuttle loops from both hotels at 2:00pm and 2:20pm, and back from the last song until everyone's home.' 右栏:两张 HotelCard 在 Paper 上:'The Hollowbrook Inn' — 'A five-minute stroll from the barn. Twelve rooms held under [hashtag] until March 1; mention the wedding for the rate.' — 链接 '#' 说明 'Placeholder link for the couple to fill in';'Riverside Lodge' — 'Ten minutes by car, breakfast worth the drive. Pet friendly, for the plus-ones with paws.' — 链接 '#' 相同说明。
布局:Ivory 背景。两栏:场地 + 交通行(7 列),酒店(4 列,偏移 1)堆叠,间距 24px。交通行:图标在 44px Linen 圆角方块中。草图 SVG viewBox 0 0 480 360 宽度 100%,Rule 描边,Sage 点缀。
7. **RSVP** — 区块 id='rsvp'。眉题 'RSVP' 和 H2 'Say yes (or no, gently).' 一个 Paper 面板:姓名输入(占位符 'Your name as the envelope spelled it');出席切换 — 两个带滑动爱心的选项块,'Joyfully accepts'(激活时 Blush)/ 'Regretfully declines'(激活时 Stone);同行人数步进器 'Seats in your party' 1–4(步进器带 Minus/Plus,数字 Gilda 28px);餐食选择器(三个选项块带一行注释):'Braised beef with roots' — 'short ribs, carrots, mash';'Roast salmon with fennel' — 'herb butter, new potatoes';'Garden risotto' — 'peas, mint, parmesan — the vegetarian plate';饮食输入(占位符 'Allergies, aversions, strong feelings');歌曲输入(占位符 'One song that fills the floor');主按钮 'Send our answer' 带说明 'Saved right here in this browser — nothing is posted anywhere; the couple checks the list by candlelight.' 提交时(姓名 + 出席 + 餐食必填):ThankYouCard 在 Linen 上 — 手绘爱心轮廓动画,'Thank you, [NAME].' Gilda 32px,摘要行('2 seats · Roast salmon with fennel' 或拒绝时 'You'll be missed — we''ll raise a glass.',饮食和歌曲回显),按钮 'Change your answer'(返回表单并预填)和 'Back to the day' → #day。保存在 localStorage 中。
布局:Linen 背景。面板最大宽度 680px 居中,32px 内边距,1px Rule 边框,14px 圆角。输入全宽,间距 16px;选项块换行;步进器居中。480px 以下面板内边距降至 20px。
8. **FAQ** — 区块 id='faq'。眉题 'Good questions',H2 'Before you ask the mothers.' 五个手风琴:1) 'What should I wear?' — 'Garden formal: linen, florals, a hat if you like. The ceremony is on grass — block heels forgive, stilettos do not.' 2) 'Can I bring my kids?' — 'To the Sunday-after brunch, absolutely and loudly. The evening is adults-only, except the two smallest ring bearers, who have contracts.' 3) 'What about photos?' — 'Unplugged ceremony — put the phones away and be in the pictures. After the kiss, shoot freely and tag [hashtag].' 4) 'Gifts?' — 'Your presence is the present; the registry below is for the stubborn. Three shops, no china, zero crystal.' 5) 'What if it rains?' — 'The barn holds everyone; the garden ceremony moves inside with the string lights on. Rain on a wedding is luck — mud is a shoe choice.'
布局:象牙色(Ivory)背景,手风琴行以 1px Rule 分隔线分隔,问题用 Gilda 22px,答案用 Jost 16px / 1.8,最大宽度 64ch,右侧 Plus 图标。容器最大宽度 720px。
9. **Registry** — 区块 id='registry'。眉题 'For the stubborn',H2 'Three shops, no china.' 三张手绘 RegistryCards(SVG:以 Rule 线条绘制的店面卷首插图,带 Sage 点缀,店名用 Gilda):'The Hearth Shop' — 'For the fireplace we don''t have yet and fully intend to earn.' — 按钮 'Visit'(链接 '#',说明 'placeholder link');'Wander & Co' — 'Travel fund in shop form: contributions to a honeymoon we''ll actually take.' — 'Visit'('#');'Kitchen Garden' — 'Seeds, tools and one absurdly good knife.' — 'Visit'('#')。下方:'Or bring a bottle — red, dry, and label-free. We''re building a cellar, not a display.'
布局:亚麻色(Linen)背景。三个等宽列,24px 间距;卡片 Paper 背景,1px Rule 边框,28px 内边距,店面 SVG 宽度 100%,顶部宽高比 4:3。低于 860px:堆叠。
10. **Footer** — 象牙色(Ivory)背景,顶部 1px Rule 边框。居中:一枝 Sage 小枝,首字母 'E & M' 用 Gilda 24px,'[VENUE] · [CITY] · [DATE]' 用 Jost 400 14px Olive,话题标签用 Blush 500 14px,以及一行 'Made with love and a shared spreadsheet.' 用 Jost 300 14px Stone。没有社交图标,没有邮箱——这对新人像 2019 年那样通过电话联系。
布局:垂直内边距 64px,居中堆叠,16px 间距。
## 资源
- 图片:为本设计制作的模板照片(可随模板自由再分发)。用 curl -L -o 将每张图片下载到 public/images/:https://media.vibefather.ai/assets/2364ee3f-9bc9-48a8-bff1-bcd52aa512d9/hero-barn.webp → public/images/hero-barn.webp(首屏;object-position 50% 55%;alt 'A restored barn with string lights and garden chairs ready for a ceremony');https://media.vibefather.ai/assets/2364ee3f-9bc9-48a8-bff1-bcd52aa512d9/flowers-table.webp → public/images/flowers-table.webp(日间照片条;alt 'Sage and blush flowers with eucalyptus on a linen table');https://media.vibefather.ai/assets/2364ee3f-9bc9-48a8-bff1-bcd52aa512d9/stationery.webp → public/images/stationery.webp(日间照片条;alt 'Blank ivory wedding stationery with a wax seal and sage ribbon');https://media.vibefather.ai/assets/2364ee3f-9bc9-48a8-bff1-bcd52aa512d9/candles-evening.webp → public/images/candles-evening.webp(日间照片条;alt 'Taper candles in glass holders along a barn dinner table at dusk');https://media.vibefather.ai/assets/2364ee3f-9bc9-48a8-bff1-bcd52aa512d9/garden-path.webp → public/images/garden-path.webp(桌面端故事区块第 3 章与第 4 章之间的侧图;alt 'A garden path with a simple birch arch');https://media.vibefather.ai/assets/2364ee3f-9bc9-48a8-bff1-bcd52aa512d9/table-setting.webp → public/images/table-setting.webp(RSVP 区块,面板上方的小侧图;alt 'A single place setting with ivory linen and a sage napkin')。共六个文件。
- 图片:在项目根目录写入 ASSETS.md,包含一张表:path、source URL、author、license——每张照片一行(source 'media.vibefather.ai, made for this template',author 'VibeFather',license 'Distributed with the template'),另加 @fontsource/gilda-display 和 @fontsource/jost(OFL-1.1)以及 lucide-react(ISC)的行。绝不用图库网站(Unsplash、Pexels、Pixabay)或含人物、面孔、手、手指上的戒指或文具上可读文字的图像替换照片。
- 图标:仅使用 lucide-react:Heart、Minus、Plus、TrainFront、Car、Bus、Check、Clock、MapPin、GlassWater、Music。描边宽度 1.5,16–24px,颜色继承。public/favicon.svg 手写:viewBox 0 0 32 32,一个 32x32 的 rect,rx 9,填充 #F8F5EE,带 1px 鼠尾草绿(Sage,#8A9B84)边框,中央一个腮红粉(Blush,#C98D84)心形字形。无其他 logo:这对新人的首字母始终以文字排版呈现。
- 字体:安装 @fontsource/gilda-display 和 @fontsource/jost,并按“安装”部分所列在 src/fonts.ts 中导入它们。Vite 会将 woff2 文件打包进 dist/。
- 图片:以代码绘制:植物角枝和眉题字形、章节标记、时间线圆点、RSVP 心形、场地草图(谷仓线稿)以及三个礼物登记店铺门面占位图。无其他位图,无插画,无地图瓦片。
## 不要做的事
- 无后端、无表单提交、不向任何 API 发起 fetch 请求:RSVP 及其感谢卡片仅存在于浏览器中(localStorage);任何内容都不会被发送到任何地方,表单中也会说明这一点。
- 这个单页上的所有链接都是锚点(./index.html#story、#day、#travel、#rsvp、#faq、#registry);酒店和礼物登记链接是 '#' 占位符,由新人自行填写——绝不使用真实商店。
- 一切资源自托管:字体通过 Fontsource 引入,图标以 npm 包或内联 SVG 形式使用,图片下载到 public/images/。不使用 CDN 的 <script> 或 <link> 标签,不使用 Google Fonts,不使用分析工具。
- 生产构建:压缩、无 source map、不将 src/ 复制到 dist/、使用单一命令 npm run build、输出到 dist/ 且小于 10 MB。
- 不使用真实场地、酒店、礼物登记商店或真实情侣;不使用包含面部、手部或人物的照片;照片中的文具保持空白——无可读文字。
- 不使用任何真实情侣的日期;倒计时仅针对 [DATE] 变量;页面不显示其他日期(RSVP 截止日期存在于文案中,而非日历中)。
- 除可选的页脚署名链接外,绝不在网站内提及 VibeFather 或任何其他品牌;所有文案均为虚构的美式英语。
- 在所有地方尊重 prefers-reduced-motion:禁用视差、小枝和爱心绘制、数字滑动和交错显现;保留颜色/边框悬停效果。
- 网站必须在 1440x900 桌面端和 390x844 移动端正常工作,控制台零错误;RSVP 仅用键盘即可操作,每个交互元素都有可见的焦点环。
- 保持文案具体且个性化:不使用 lorem,不使用邀请网站的陈词滥调(“欢迎来到我们的旅程”);每个时间、商店和酒店都来自 src/content.ts。
---
— Prompt by VibeFather · https://vibefather.ai/t/wedding-invitation-and-rsvp-website · 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: "Wedding Invitation and RSVP Website"
colors:
ivory: "#F8F5EE"
paper: "#FDFBF7"
linen: "#F0EBDF"
sage: "#8A9B84"
olive: "#4E5A48"
blush: "#C98D84"
blush_deep: "#B26F66"
ink: "#32362F"
stone: "#6B6F63"
rule: "#E2DCCF"
typography:
display_the_couple_s_names_h1_h2_h3_chapter_titles_timeline_titles_countdown_numbers_the_wordmark: { family: "Gilda Display", weights: [400] }
text_and_ui_body_eyebrows_buttons_nav_form_fields_timeline_times_font_variant_numeric_tabular_nums_captions: { family: "Jost", weights: [300, 400, 500] }
spacing: "8px base unit. Container max-width 1080px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. Section vertical padding 112px desktop, 80px under 1024px, 64px under 640px. Type scale: H1 (the names) clamp(56px, 9vw, 120px) Gilda Display 400, line-height 1.04, letter-spacing 0.01em; H2 clamp(32px, 4vw, 52px) Gilda 400; H3 24px Gilda 400; ampersand between names set in Sage italic via Cormorant-free fallback (Gilda has no italic — set '&' in Jost 300 italic instead); lead Jost 300 18px / 1.75 Ink at 85%; body Jost 400 16px / 1.8 (max-width 64ch); eyebrow Jost 500 12px uppercase letter-spacing 0.2em Olive with a 16px drawn sprig glyph before; caption Jost 400 13px Olive. Buttons: height 50px, padding 0 28px, Jost 500 14px letter-spacing 0.12em uppercase. Primary: Ink fill, Paper text. Secondary: 1px Olive border, Olive text. Inputs: height 50px, 1px Rule border, Paper fill, 16px Jost, focus border Sage. Focus ring everywhere: 2px Blush outline with 3px offset."
radius: "14px on cards, inputs, chips, photos and the RSVP panel. 999px only for chips, the party stepper buttons, timeline dots and the heart."
---
# Wedding Invitation and RSVP Website — Design System
Apply this design system to an existing project. It describes the look and feel only; for the full site, use prompt.md.
## Colors
- **Ivory** `#F8F5EE` — Page background throughout.
- **Paper** `#FDFBF7` — Card surfaces (story chapters, hotels, RSVP panel, registry cards).
- **Linen** `#F0EBDF` — Alternate section background (Schedule, Registry), input fill, chip hover.
- **Sage** `#8A9B84` — Botanical line work, chapter markers, timeline dots, selected chips, eyebrows.
- **Olive** `#4E5A48` — Secondary text on light backgrounds, timeline times, captions, icon color.
- **Blush** `#C98D84` — The one warm accent: hearts, countdown numbers, the attending 'Joyfully accepts' state, focus ring.
- **Blush Deep** `#B26F66` — Blush hover state, primary button pressed, meal selected border.
- **Ink** `#32362F` — Names, headlines and body text, primary outline buttons.
- **Stone** `#6B6F63` — Muted body text, secondary buttons, disabled fields.
- **Rule** `#E2DCCF` — 1px hairlines, card borders, input borders, timeline base line.
## Typography
- **Display: the couple's names, H1, H2, H3, chapter titles, timeline titles, countdown numbers, the wordmark** — Gilda Display (OFL), weights 400. Self-host the font files.
- **Text and UI: body, eyebrows, buttons, nav, form fields, timeline times (font-variant-numeric tabular-nums), captions** — Jost (OFL), weights 300/400/500. Self-host the font files.
## Spacing & shape
- Spacing: 8px base unit. Container max-width 1080px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. Section vertical padding 112px desktop, 80px under 1024px, 64px under 640px. Type scale: H1 (the names) clamp(56px, 9vw, 120px) Gilda Display 400, line-height 1.04, letter-spacing 0.01em; H2 clamp(32px, 4vw, 52px) Gilda 400; H3 24px Gilda 400; ampersand between names set in Sage italic via Cormorant-free fallback (Gilda has no italic — set '&' in Jost 300 italic instead); lead Jost 300 18px / 1.75 Ink at 85%; body Jost 400 16px / 1.8 (max-width 64ch); eyebrow Jost 500 12px uppercase letter-spacing 0.2em Olive with a 16px drawn sprig glyph before; caption Jost 400 13px Olive. Buttons: height 50px, padding 0 28px, Jost 500 14px letter-spacing 0.12em uppercase. Primary: Ink fill, Paper text. Secondary: 1px Olive border, Olive text. Inputs: height 50px, 1px Rule border, Paper fill, 16px Jost, focus border Sage. Focus ring everywhere: 2px Blush outline with 3px offset.
- Radius: 14px on cards, inputs, chips, photos and the RSVP panel. 999px only for chips, the party stepper buttons, timeline dots and the heart.
## Motion
- Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1) for reveals and the countdown; --ease-io cubic-bezier(0.65, 0, 0.35, 1) for accordions and the RSVP swap. Slow and soft — this is paper, not software.
- Reveal: blocks wrapped in <Reveal> start at opacity 0, translateY(16px) and animate to rest over 900ms --ease-out when 15% visible (Motion whileInView, viewport once). Siblings stagger by 100ms (index prop).
- Hero: the two names fade and rise from translateY(20px) with 200ms stagger 400ms after load, then the ampersand sprig draws (stroke-dashoffset to 0) over 1200ms, then the countdown fades in. The hero photo (top half, photo hero-barn.webp) scales from 1.05 to 1.0 over 2600ms; scrolling translates it 0 to 8% (Motion useScroll, offset ['start start', 'end start']).
- Countdown: the four cells sit on one hairline; each tick crossfades only the changed digit (a 240ms y-slide), never a flip-clock. Under prefers-reduced-motion the digits swap instantly.
- Story chapters: each chapter card reveals with its marker dot filling Sage; the connecting hairline draws downward as the section scrolls (scaleY 0 to 1, transform-origin top, useScroll on the list).
- Timeline (schedule): rows reveal with 100ms stagger; each time crossfades when its row enters; the dot pops from scale 0.6 once.
- RSVP: the attending toggle slides a small drawn heart between 'Joyfully accepts' (Blush) and 'Regretfully declines' (Stone); meal chips fill Sage when selected; party stepper counts with a 200ms scale pulse; submitting slides the form out and the ThankYouCard in (16px rise, 320ms --ease-io, AnimatePresence mode 'wait'); the card's heart draws its outline over 700ms.
- FAQ accordions: height 0 to auto and opacity 0 to 1 over 340ms --ease-io; the Plus rotates 45 degrees into an X.
- Registry cards: hover lifts 4px and the drawn ribbon straightens (a tiny 6px rotate settles to 0).
- Header: transparent over the ivory page with Ink text; after 40px of scroll it gets Ivory at 92% opacity, backdrop-filter blur(8px) and a 1px Rule border, 250ms transition. Anchor nav always visible with .link-draw underlines.
- prefers-reduced-motion: reduce — disable the photo scale and parallax, name rise, sprig draws, count-ups, layout animations (render at rest; countdown digits swap instantly). Color and border hover changes stay. Use CSS @media in index.css plus Motion's useReducedMotion in components.
## Imagery
Real photography only, soft and romantic, all six made for this template in one consistent style: soft garden light, ivory and sage with blush accents, shallow depth of field, fine grain. Never a person: the venue, florals, stationery, table settings and candles — no faces, no hands, no rings on fingers. No readable text anywhere — stationery stays blank. Every photo uses object-fit cover with the object-position given under Assets, 14px corners, no shadow; photos on Ivory get a 1px Rule outline. Captions under photos in Jost 13px Olive. Drawn in code: the botanical corner sprigs, chapter markers, timeline dots, the heart, the venue sketch and the registry placeholder cards. Icons: lucide-react only, stroke width 1.5.
## Tone
Warm, personal and lightly funny, like the couple wrote it themselves on a good writing day. Short paragraphs, concrete details (times, walking minutes, menu names), no formal invitation clichés, no exclamation marks.
---
— Prompt by VibeFather · https://vibefather.ai/t/wedding-invitation-and-rsvp-website · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 在城市酒店结婚的新人:将 BRAND 设为你们的姓名,VENUE 设为酒店,CITY 设为城镇,DATE 设为你们的日期,然后重写公共交通的出行提示。
- 私奔或小型花园婚礼:保留主视觉和倒计时,将故事缩短为两章,并将酒店卡片替换为一条关于见面地点的说明。
- 海外目的地婚礼:更改 CITY 和 VENUE,重写出行部分并加入航班和接送详情,调整常见问题以涵盖护照和当地习俗。
- 婚礼策划师的客户礼物:按每对新人设置 BRAND 和 VENUE,将礼物登记卡片换成礼物说明,并将 RSVP 指向策划师自己的表单服务。
婚礼邀请与 RSVP 网站:常见问题
婚礼邀请与 RSVP 网站上的 RSVP 表单在没有后端的情况下如何工作?
婚礼邀请与 RSVP 网站上的 RSVP 表单收集是否出席、出席人数、餐食选择、饮食备注和一首点歌,然后使用 localStorage 在宾客浏览器中保存一张感谢卡。不会向任何地方提交内容,因此新人不会自动收到回答。要收集回复,你需要将表单连接到表单服务或邮件列表,或者请宾客直接发送答案。
如何更改婚礼邀请模板中的新人姓名、场地、城市和日期?
在婚礼邀请与 RSVP 网站模板中设置 BRAND、VENUE、CITY 和 DATE 变量。BRAND 是写成“姓名 & 姓名”的新人,VENUE 是场地名称,CITY 是城镇,DATE 是完整的未来婚礼日期。倒计时、话题标签、新人首字母、主视觉文案和故事都从这些值派生,因此每个部分会一起更新。重写内容文件中的周边文案,使语气与你真实的婚礼相符。
婚礼邀请与 RSVP 网站模板可以免费使用吗?
婚礼邀请与 RSVP 网站模板是免费的。其提示词和 DESIGN.md 在 CC BY-NC 4.0 下可免费用于个人非商业用途,适合新人制作自己的邀请函。商业和客户用途需要 Pro。Pro 模板公开显示简介、技术栈和变量,并向 Pro 会员显示完整提示词,演示的源代码随 Pro 提供。
怎么用 AI 做一个婚礼邀请与 RSVP 网站?
复制本页的提示词,或者运行 npx vibefather add wedding-invitation-and-rsvp-website,把 [CITY]、[DATE]、[BRAND]、[VENUE] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。
婚礼邀请与 RSVP 网站模板的演示是哪个 AI 模型做的?
演示由 GLM-5.3 在 ZCode 里完成;另一个案例由 DeepSeek V4.1 Flash 在 DeepSeek Harness 里完成。每次都用公开的提示词原样生成,没有额外补充,可以并排比较不同模型的效果。