用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
一个面向单套度假屋的单页网站:黄昏时分的小木屋主视觉区,配有可住人数和价格说明行;带灯箱的画廊;按类别清晰分组的设施;两个月可用性日历,每天显示每晚价格并划掉已预订日期;随日期和住客人数实时重新计算的价格明细;语气平和的房屋守则;带手绘小地图的周边指南;以及一个在客户端以参考编号完成确认的预订请求表单。默认内容设定为卡茨基尔一间虚构的小木屋,可住八人,但该结构适合任何单套房源——小木屋、村舍、湖畔别墅、A 字屋:更改名称、地区、可住人数和基础价格后,包括日历计算在内的每个部分仍然成立。每晚价格显示工作日和周末价格,并提供周租折扣;清洁费和服务费逐项列出;整个预订流程都在浏览器中完成。配色为暖奶油色底上的木棕色和苔藓绿;标题字体使用 Bitter,呈现手工切割的粗衬线风格;正文字体使用 Work Sans;两者均自托管。要适配它,只需替换变量并在一个内容文件中重写文案;价格、费用、守则和指南地点都从该文件读取。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Vacation Rental Booking Page
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
A single-page booking site for [BRAND], a private cabin rental in [REGION] that sleeps [SLEEPS], from $[NIGHTLY] a night. It must work like a real direct-booking page: a gallery with lightbox, amenities in plain groups, a two-month availability calendar showing nightly prices (weekday/weekend) with booked ranges struck through, a price breakdown that updates live with dates, guests and the weekly discount, house rules, an area guide of invented landmarks with a drawn mini-map, and a booking request form that confirms client-side with a reference. One page: index.html with sections (#cabin, #calendar, #rules, #area, #book). Everything runs in the browser; nothing is submitted anywhere.
- Audience: Families and friend groups 28–55 planning a weekend or a week, comparing the big platforms and the owner's page. Phone-first, price-sensitive to fees, allergic to calendars that lie; they want real nightly prices, honest rules and a five-minute booking path.
- Goal: Produce booking requests without a platform fee. Within ten seconds a visitor should see the cabin at dusk, the sleep count and the nightly rate; within two minutes they should see the exact total for their dates.
- Tone: Warm and matter-of-fact, like the owner leaving a note on the fridge. Short sentences, exact numbers (miles, minutes, dollars), no 'nestled' or 'retreat' 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/bitter (OFL-1.1), @fontsource-variable/work-sans (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 (cream, bark, linen, card, timber, moss, pine, clay, rust, rule) and fontFamily display ['Bitter', 'Georgia', 'serif'], sans ['Work Sans Variable', 'system-ui', 'sans-serif']. Set borderRadius DEFAULT to 12px and add maxWidth { container: '1200px' }.
- In src/fonts.ts import '@fontsource/bitter/500.css', '@fontsource/bitter/600.css' and '@fontsource-variable/work-sans'; import src/fonts.ts and src/index.css from the entry file.
- File layout: src/content.ts (every string, number, amenity, rule, guide spot, fee and image path, typed), src/lib/brand.ts (brandSlug = [BRAND] lowercased with every run of non-alphanumeric characters replaced by '-', brandInitials = first letter of each word uppercased, emailDomain = brandSlug without hyphens + '.com'), src/lib/storage.ts (safe localStorage get/set wrapped in try/catch, keys prefixed with brandSlug + ':'), src/lib/calendar.ts (monthGrid(year, month) day cells; rate(date) = weekend (Fri/Sat) [NIGHTLY]+30 else [NIGHTLY]; a seeded booked-ranges generator from a fixed list of invented ranges stable across reloads; quote(start, end, guests) → { nights, nightlySum, cleaning 95, serviceRate 0.12, weeklyDiscount 0.10 when nights >= 7, total } with all money math in whole dollars).
- State: src/store/booking.ts is a tiny external store (useSyncExternalStore) holding { start, end, guests, name, email, note, reference } and the submitted flag, persisted to localStorage key brandSlug + ':request'. Selecting dates on the calendar writes start/end into the store; the form and breakdown read from it.
- Components in src/components/: Header.tsx, Reveal.tsx (Motion whileInView wrapper), Eyebrow.tsx, Footer.tsx; Hero.tsx, Gallery.tsx (Lightbox.tsx), TheCabin.tsx (AmenityGroup.tsx), CalendarSection.tsx (MonthView.tsx, DayCell.tsx, PriceBreakdown.tsx), HouseRules.tsx, AreaGuide.tsx (MiniMap.tsx inline SVG, GuideSpot.tsx), BookingForm.tsx (GuestsStepper.tsx, RequestCard.tsx), FaqStrip.tsx. src/pages/Home.tsx composes them with Header and Footer.
- 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='#F7F3E9'>, <link rel='icon' href='./favicon.svg' type='image/svg+xml'>, <title>[BRAND] — [REGION] · sleeps [SLEEPS]</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] — Property name (default: "Hemlock Hollow Cabin"). The invented property name. Used in the title, hero, footer, email (hello@ + brandSlug without hyphens + .com), localStorage keys and booking references (initials, e.g. HH-4021). Never a real listing or rental brand.
- [REGION] — Region (default: "the Catskills"). Where the cabin is, lowercase article style ('the Catskills', 'the Blue Ridge Mountains'). Used in the hero line, area guide and footer. Real regions are fine; the lake, trails and town in the guide stay invented.
- [SLEEPS] — Sleeps (default: "8"). The maximum guest count as digits. Drives the hero strip, the guests stepper's max and the sleeping arrangement lines ('sleeps [SLEEPS] across three bedrooms'). Keep it 2–10.
- [NIGHTLY] — Weeknight rate (default: "185"). The base weeknight rate as digits. Weekends (Fri/Sat) compute as +30; the weekly discount is 10% at 7+ nights; cleaning is 95 and service 12%. All money derives from this number.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/vacation-rental-booking-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
- Cream `#F7F3E9` — Page background throughout.
- Bark `#EFE8D9` — Alternate section background (The cabin, Area guide), hover fill for rows and chips.
- Card `#FDFBF5` — Card surfaces (calendar panel, breakdown, rules, form, gallery captions), input fill.
- Timber `#4A3A2C` — Headlines and body text, primary outline buttons, icon color.
- Pine `#2E3B2E` — Footer, photo overlays (as rgba(46,59,46,x)), deep calendar chrome.
- Moss `#6E7F5E` — Secondary text, eyebrows, captions, available-day prices, weekend price accent.
- Clay `#B5652F` — The one accent: primary buttons, selected date fill, total figure, focus ring, map pin.
- Clay Deep `#97521F` — Primary button hover, selected range edges.
- Rust `#8C4A3C` — Booked-day strike color, rules warning icons, the 'from' rate tick.
- Rule `#DFD6C3` — 1px hairlines, card borders, input borders, calendar grid lines.
### Typography
- Display: H1, H2, H3, the property name, totals, day prices, the wordmark: Bitter (OFL), weights 500/600
- Text and UI: body, eyebrows, buttons, nav, form fields, captions, all money math (font-variant-numeric tabular-nums): Work Sans (OFL), weights 400/500/600
### Layout & motion
- Spacing: 8px base unit. Container max-width 1200px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. 12-column grid, column gap 24px. Section vertical padding 104px desktop, 80px under 1024px, 64px under 640px. Type scale: H1 clamp(44px, 6.4vw, 88px) Bitter 600, line-height 1.02; H2 clamp(32px, 4.2vw, 54px) Bitter 600, line-height 1.08; H3 24px Bitter 600; lead Work Sans 400 18px / 1.7 Timber at 88%; body Work Sans 400 16px / 1.7 (max-width 64ch); eyebrow Work Sans 600 12px uppercase letter-spacing 0.16em Moss, preceded by a 24px x 2px Clay line with 12px gap; caption Work Sans 400 13px Moss. Buttons: height 50px, padding 0 26px, Work Sans 600 14px letter-spacing 0.04em. Primary: Clay fill, Card text. Secondary: 1px Timber border, Timber text. Small buttons 38px. Inputs: height 50px, 1px Rule border, Card fill, 16px Work Sans, focus border Clay. Focus ring everywhere: 2px Clay outline with 3px offset.
- Radius: 12px on cards, inputs, chips, photos, the calendar panel and the request card. 999px only for pills, the guest stepper buttons and the map pin.
- Motion: Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1) for reveals and calendar transitions; --ease-io cubic-bezier(0.65, 0, 0.35, 1) for month swaps and the form swap. Nothing bounces.
- Motion: Reveal: blocks wrapped in <Reveal> start at opacity 0, translateY(16px) and animate to rest over 700ms --ease-out when 15% visible (Motion whileInView, viewport once). Siblings stagger by 80ms (index prop).
- Motion: Hero photo: on load scales from 1.06 to 1.0 over 2400ms --ease-out; scrolling translates it 0 to 10% (Motion useScroll, offset ['start start', 'end start']) and the headline block fades to 0.3. H1 rises from translateY(24px) with 140ms stagger. The 'from $[NIGHTLY]' tick slides in last with a small 2px underline draw.
- Motion: Gallery: photos rise 6px and darken their caption bar on hover; clicking opens the Lightbox (Pine overlay at 82%, photo at max 82vh, caption in Card, X closes, arrows and Escape navigate) with a 240ms fade and 8px scale settle.
- Motion: Calendar: month swaps slide 24px horizontally over 280ms --ease-io (AnimatePresence mode 'wait'). Hovering a day lifts the price 2px. Selecting start fills the cell Clay; selecting an end draws the range as a Clay/15% band behind the days with rounded ends; booked cells refuse selection with a 4px shake. The breakdown re-lines item by item (each row fades up 8px, 60ms stagger) and the total counts to the new value over 500ms.
- Motion: Breakdown: the weekly discount row appears with a Moss check drawing when nights reach 7.
- Motion: Rules: each rule row reveals with its icon drawing once (stroke-dashoffset) and 80ms stagger.
- Motion: Mini-map: on view, the road lines draw over 800ms, then the pin drops with a soft overshoot and the guide dots pop with 100ms stagger.
- Motion: Booking form: guest stepper counts pulse 1.0→1.15→1.0 over 240ms; submitting slides the form out and the RequestCard in (16px rise, 320ms --ease-io); the reference (brandInitials + '-' + four digits) types character by character over 700ms.
- Motion: Header: transparent over the hero with Card text; after 40px of scroll it gets Cream at 94% opacity, backdrop-filter blur(10px), Timber text, 1px Rule border, 250ms transition; a small Clay 'Book now' → #book button is always in the header.
- Motion: Links: .link-draw grows a 1px currentColor underline from 0% to 100% width over 300ms on hover and focus-visible.
- Motion: prefers-reduced-motion: reduce — disable the hero scale and parallax, H1 rise, map draws, count-ups, type-in, shakes and slides (render at rest). Color and border hover changes stay. Use CSS @media in index.css plus Motion's useReducedMotion in components.
- Imagery: Real photography only, warm and woodsy, all six made for this template in one consistent style: dusk lantern light and morning mist, timber and moss palette, documentary editorial look, fine grain. Never a person — exteriors, rooms, porch, dock. No readable text or logos anywhere. Every photo uses object-fit cover with the object-position given under Assets, 12px corners, no shadow; photos on Cream get a 1px Rule outline. Captions under photos in Work Sans 13px Moss. Drawn in code: the favicon, the wordmark (type only), the mini-map, price pills, the check circle, dividers. Icons: lucide-react only, stroke width 1.5.
## Pages & Sections
### Rental (`index.html`)
1. **Content file and copy rules** — All copy below is written for the default values ([BRAND] = Hemlock Hollow Cabin, [REGION] = the Catskills, [SLEEPS] = 8, [NIGHTLY] = 185). Put every string, number and list in src/content.ts and render from it. If any variable value differs, rewrite every headline, amenity, rule, guide spot, fee line and FAQ answer so it is specific and believable for the new property, keeping the same structure and counts (4 amenity groups of 4, 6 rules, 5 guide spots, 5 FAQs). All places and figures are invented. Property facts used throughout: sleeps [SLEEPS] (three bedrooms: two queens, one bunk room for four); two bathrooms; wood stove and baseboard heat; starlink-fast wifi; address 'the end of Hollow Road, [REGION]'; check-in 4pm, check-out 11am; dogs welcome (max 2, no couch — they ignore this); no parties, no smoking inside; quiet 10pm–8am; firewood included; rates: weeknights $[NIGHTLY], weekends (Fri/Sat) $[NIGHTLY]+30, 10% off 7+ nights, cleaning $95, service 12%; booked sample ranges (invented, stable): the 1st–4th and 15th–18th of the current and next month plus two weekend ranges from a fixed seed list.
Layout: n/a
Motion: n/a
2. **Header** — Left: wordmark '[BRAND]' (Bitter 600 19px) with a second line 'Private cabin · [REGION]' (Work Sans 600 10px uppercase letter-spacing 0.2em), linking to ./index.html. Right nav (Work Sans 500 14px): 'The cabin' → #cabin, 'Calendar & rates' → #calendar, 'House rules' → #rules, 'The area' → #area, and a small Clay 'Book now' → #book button.
Layout: Fixed top, height 76px, container-aligned, transparent over the hero then solid after 40px scroll. Under 820px: wordmark + Book now only, nav hidden.
3. **Hero** — Full-bleed photo hero-cabin.webp. Eyebrow (Card): 'Private cabin · [REGION]'. H1 in two lines: 'The woods, *with wifi.*' Lead (Card at 88%, max-width 560px): 'A timber cabin at the end of a dirt road: [SLEEPS] guests, three bedrooms, a wood stove that does most of the talking, and the town twenty minutes when it doesn''t.' Bottom strip inside the hero (a Card/90% bar with hairline): 'Sleeps [SLEEPS]' · '2–7 nights' · 'Dogs welcome' · 'From $[NIGHTLY]/night' (the rate ticked in Clay), each item separated by dots. On mobile the spec bar wraps gracefully: 'From $185/night' gets its own line and is never clipped; '2-7 nights' and 'Dogs welcome' may drop below.
Layout: Height 92svh, min 640px. Photo object-position 50% 58%. Overlay linear-gradient(180deg, rgba(46,59,46,0.40) 0%, rgba(46,59,46,0.06) 40%, rgba(46,59,46,0.85) 100%). Content anchored bottom-left, 120px above the strip. Strip: absolute bottom 24px, container-aligned, height 56px, 12px radius, backdrop blur.
4. **Gallery** — Section eyebrow 'Have a look' and H2 'Six frames, no fisheye.' Mosaic of the six photos with captions: hero-cabin.webp (reused) 'Dusk, from the fire circle'; living-fire.webp 'The stove does most of the heating'; kitchen-pine.webp 'Pine counters, real knives'; loft-bed.webp 'The bunk room sleeps four'; porch-morning.webp 'Morning fog off the hollow'; lake-dock.webp 'Hollow Lake dock, ten minutes out'. Clicking any opens the Lightbox with keyboard navigation. Rebuild as a deliberate 12-column grid: one large tile (8 cols) plus a 2x2 or 3-up row (4 cols each) - no empty cells, no stray hairlines, all six photos visible, each tile 1px Rule outline on Cream with the 6px hover rise.
Layout: Cream background. 6-col mosaic: items 1 and 4 span 2 rows (aspect 3:4); others aspect 4:3; 12px gaps, 12px radius. Under 900px: 2 columns aspect 4:3.
5. **The cabin (amenities)** — Section id='cabin'. Eyebrow 'The cabin' and H2 'What''s actually there.' Lead: 'Sleeps [SLEEPS] across three bedrooms — two queens and a bunk room the kids will fight over. Two baths, a mudroom that earns its name, and 1,400 square feet of pine.' Four amenity groups as Card panels with Lucide icons: 'Comfort' — Flame 'Wood stove + firewood included', Thermostat 'Baseboard heat in every room', Wifi 'Fast satellite wifi — video calls fine', Armchair 'Reading chairs that people actually fall asleep in'. 'Kitchen' — UtensilsCrossed 'Gas range, real knives, cast iron', Refrigerator 'Full fridge + chest freezer', Coffee 'Pour-over kit and a loud grinder', Dishwasher 'Dishwasher (the machine kind)'. 'Outside' — Trees 'Eight wooded acres, one cleared hollow', FlameKindling 'Fire circle with Adirondack chairs', Dog 'Fenced half-acre for the dog', CarPort 'Parking for three cars, plowed'. 'Practical' — WashingMachine 'Washer and dryer', FirstAid 'First-aid kit and a plunger, both findable', KeyRound 'Keypad lock — no key handoffs', Phone 'Cell service: one bar, the good kind'.
Layout: Bark background. 2x2 grid of group cards (24px gaps), each a 4-row icon list (icon in 40px Cream rounded square, label Work Sans 15px). Under 900px: stacked.
6. **Calendar and price breakdown** — Section id='calendar'. Eyebrow 'Calendar & rates' and H2 'Real prices on every day.' Left: a two-month Calendar panel (this month and next, side by side on desktop, swipeable on mobile) — every day shows its nightly price (Work Sans 12px tabular-nums under the date; weekends in Moss bold), booked ranges struck through in Rust with a 'held' tooltip, past days dimmed; click a start day, then an end day (range draws); month arrows navigate. Legend under the panel: 'Weekend rate $[NIGHTLY]+30' dot Moss, 'Held' strike Rust, 'Selected' fill Clay. Right: the PriceBreakdown card, sticky: rows '3 nights × $185 — $555' (live), 'Cleaning — $95', 'Service (12%) — $78', the discount row 'Weekly (7+) — −$74' appearing only when earned, hairline, then 'Total — $654' (Bitter 600 34px Clay) and 'for 6 guests' caption; empty state reads 'Pick your dates on the calendar' with an arrow pointing left. Under the breakdown: 'Rates, fees and holds shown here are the demo''s sample data' caption.
Layout: Cream background. Calendar panel 7 cols on Card with 1px Rule border 24px padding; breakdown 4 cols offset 1 sticky top 100px. Month grids: 7-col, 1px Rule lines, day cells 64px tall desktop. Under 1024px: stacked, breakdown not sticky.
7. **House rules** — Section id='rules'. Eyebrow 'House rules' and H2 'The short list.' Six rule rows (icon, one line, one note): Clock 'Check-in 4pm / check-out 11am' — 'Keypad code arrives by text that morning.'; Dog 'Dogs: yes, two, floor people' — 'The couch rule exists and is ignored; we''ve made peace with it.'; Volume2 'Quiet hours 10pm–8am' — 'The neighbors are owls. Literally.'; Cigarette 'No smoking inside' — 'Porch with a tin ashtray, outside only.'; Users 'Max [SLEEPS] guests, no parties' — 'Dinner for [SLEEPS]? Perfect. A 30th birthday for sixty? The hollow says no.'; Trash2 'Trash out to the bear box' — 'The bin has a latch; the bears have opinions.'
Layout: Bark background. Rows in a 2x3 grid (24px gaps), each on Card with 1px Rule border 20px padding: rule in Work Sans 600 16px Timber, note 14px Moss. Under 860px: stacked.
8. **Area guide** — Section id='area'. Eyebrow 'The area' and H2 'Twenty minutes in every direction.' Left: the MiniMap (inline SVG: Hollow Road winding to a pin at the cabin, a lake blob northwest, a town grid southeast, trail dashes east, north arrow; Rule lines, Pine fills, Clay pin). Right: five GuideSpots (name Bitter 20px, line Work Sans 15px, distance pill): 'Hollow Lake' — 'Swim, canoe, or stare at it from the dock.' — '10 min'; 'Fern Loop Trail' — 'Three flat miles; do it before the second coffee.' — '5 min'; 'Marrow General Store' — 'Eggs, bait, the good bread, one moody cat.' — '12 min'; 'The Slate Line Diner' — 'Breakfast all day; the hash is a decision.' — '18 min'; 'Townsend Township' — 'Farm stands, a brewery, a hardware store you''ll somehow visit twice.' — '20 min'.
Layout: Cream background. Map 5 cols on Card; spots 6 cols offset 1 as a list with hairline dividers. Under 900px: stacked, map first.
9. **Booking request form** — Section id='book'. Eyebrow 'Book it' and H2 'Request your dates.' A Card panel: date rows showing the selection from the calendar ('Fri 3 – Mon 6' or 'Pick dates on the calendar' with a link → #calendar); GuestsStepper 1–[SLEEPS]; name input; email input; note textarea (placeholder 'Anything we should know — dogs, kids, ceilidh plans?'); primary button 'Send booking request'; caption 'Nothing is charged here — this demo saves the request in your browser, and the real page would email the owner.' On submit (dates + name + valid email required): RequestCard — 'Request sent' check circle (Moss, stroke draws), 'Reference [HH-4021]' typing in, summary lines (dates · guests · the quoted total), 'We reply within a day — usually within an hour' and 'Change request' returning to the form pre-filled. Persisted in localStorage.
Layout: Cream background with a Bark top band. Panel max-width 640px, 32px padding, 1px Rule border. RequestCard swaps in with a 320ms slide. Under 480px padding 20px.
10. **FAQ strip and footer** — FAQ: five compact accordions above the footer: 'Is the road plowed?' — 'Yes — Hollow Road is town-plowed; the driveway is on us and done by 9am.'; 'Do we need AWD?' — 'The driveway is gravel and fine for anything; a snowstorm changes the math, and we''ll say so.'; 'Is the wifi good enough to work?' — 'Video calls, yes; torrenting the internet, no. It''s satellite — weather has opinions.'; 'Early check-in?' — 'When the calendar allows, 1pm free; message the morning of.'; 'Cancellation?' — 'Full refund 14 days out, half within 7 — the demo says this so you don''t have to guess.' Footer (Pine background): wordmark, 'Private cabin · [REGION]', hello@ + emailDomain, anchors The cabin / Calendar / Rules / The area / Book, and the line '© [BRAND]. Built by the owner, cleaned by the owner'.
Layout: FAQ on Cream in a 720px container; footer vertical padding 72px, 4 columns, bottom line under a hairline.
## 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/eb6490c4-e224-4b05-a360-faec81890dba/hero-cabin.webp → public/images/hero-cabin.webp (Hero, Gallery 1; object-position 50% 58%; alt 'A timber cabin glowing with warm lights among dark trees at dusk'); https://media.vibefather.ai/assets/eb6490c4-e224-4b05-a360-faec81890dba/living-fire.webp → public/images/living-fire.webp (Gallery; alt 'A living room with a lit wood stove, wool sofa and stacked firewood'); https://media.vibefather.ai/assets/eb6490c4-e224-4b05-a360-faec81890dba/kitchen-pine.webp → public/images/kitchen-pine.webp (Gallery; alt 'A kitchen with pine counters, cast iron pans and a gas range'); https://media.vibefather.ai/assets/eb6490c4-e224-4b05-a360-faec81890dba/loft-bed.webp → public/images/loft-bed.webp (Gallery; alt 'A wood-paneled bunk room with four beds and quilts'); https://media.vibefather.ai/assets/eb6490c4-e224-4b05-a360-faec81890dba/porch-morning.webp → public/images/porch-morning.webp (Gallery; alt 'A covered porch with two rocking chairs in morning mist'); https://media.vibefather.ai/assets/eb6490c4-e224-4b05-a360-faec81890dba/lake-dock.webp → public/images/lake-dock.webp (Gallery; alt 'A wooden dock reaching into a still lake at dusk'). 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/bitter and @fontsource-variable/work-sans (OFL-1.1) and lucide-react (ISC). Never replace photos with stock sites (Unsplash, Pexels, Pixabay) or images with people or readable branding.
- icon: lucide-react only: Flame, FlameKindling, Thermostat, Wifi, Armchair, UtensilsCrossed, Refrigerator, Coffee, Dishwasher, Trees, Dog, CarPort, WashingMachine, FirstAid, KeyRound, Phone, Clock, Volume2, Cigarette, Users, Trash2, CalendarDays, ChevronLeft, ChevronRight, X, Check, ArrowRight, MapPin. Stroke width 1.5, 16–24px, color inherits. public/favicon.svg hand-written: viewBox 0 0 32 32, a 32x32 rect rx 8 filled #2E3B2E, a Card (#FDFBF5) house glyph (roof triangle + square) with a Clay (#B5652F) window dot. No other logo: the property name is always set as type.
- font: Install @fontsource/bitter and @fontsource-variable/work-sans and import them in src/fonts.ts as listed in Setup. Vite bundles the woff2 files into dist/.
- image: Drawn in code: the mini-map (roads, lake, town grid, trails, pin), price pills, the legend dots, the check circle, day-cell states and the favicon. No other bitmaps, no illustrations, no map tiles.
## Don'ts
- No backend, no form submission, no fetch to any API: the calendar selection, breakdown and booking request live in the browser only (localStorage); nothing is charged or sent, and the form says so.
- All links on this single page are anchors (./index.html#cabin, #calendar, #rules, #area, #book).
- 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 listings, platforms or their badges; no photos with people, faces or hands; no readable text or logos in any frame; the lake, trails, stores and town stay invented.
- The calendar shows nightly prices and booked holds as clearly-labeled sample data; no real dates of any real calendar, and the page never shows today's date (the month view starts at the current month without highlighting today).
- 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, draws, count-ups, shakes, type-in and slides; keep color/border hovers.
- The site must work at 1440x900 desktop and 390x844 mobile with zero console errors; the calendar and form work with keyboard only, and every interactive element has a visible focus ring.
- Keep copy concrete: no lorem, no 'nestled retreat' clichés; every rate, fee, mile and minute comes from src/content.ts.
---
— Prompt by VibeFather · https://vibefather.ai/t/vacation-rental-booking-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 度假租赁预订页面
完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。
## 简介
为 [BRAND] 打造的单页预订网站,[BRAND] 是位于 [REGION] 的私人小屋租赁,可入住 [SLEEPS] 人,每晚 $[NIGHTLY] 起。它必须像真实的直接预订页面一样运作:带灯箱的画廊、按简单分组呈现的设施、显示每晚价格(工作日/周末)并划掉已预订日期的两个月可用性日历、随日期、客人和周折扣实时更新的价格明细、房屋规则、带手绘迷你地图的虚构地标区域指南,以及一个在客户端确认并生成参考编号的预订请求表单。单页:index.html,包含各区块(#cabin、#calendar、#rules、#area、#book)。一切都在浏览器中运行;不会提交到任何地方。
- 受众:28–55 岁的家庭和朋友团体,计划周末或一周的出行,正在比较大型平台和房东页面。手机优先,对费用敏感,对说谎的日历深恶痛绝;他们想要真实的每晚价格、诚实的规则和五分钟的预订路径。
- 目标:在不支付平台费的情况下产生预订请求。访客应在十秒内看到黄昏时的小屋、可入住人数和每晚价格;在两分钟内看到他们所选日期的确切总价。
- 语气:温暖而就事论事,像房东在冰箱上留的便条。短句、精确数字(英里、分钟、美元),不要“nestled”或“retreat”这类陈词滥调,不要感叹号。
## 技术栈
- 框架: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/bitter(OFL-1.1)、@fontsource-variable/work-sans(OFL-1.1)
- 构建:`npm run build` → 静态文件输出到 `dist/`。无后端、无服务端代码、无外部 API。
- 设置:
- 使用 react-ts 模板通过 npm create vite@latest 搭建脚手架。项目根目录下只有一个 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 键(cream、bark、linen、card、timber、moss、pine、clay、rust、rule)添加到 theme.extend.colors,并设置 fontFamily display ['Bitter', 'Georgia', 'serif']、sans ['Work Sans Variable', 'system-ui', 'sans-serif']。将 borderRadius DEFAULT 设为 12px,并添加 maxWidth { container: '1200px' }。
- 在 src/fonts.ts 中导入 '@fontsource/bitter/500.css'、'@fontsource/bitter/600.css' 和 '@fontsource-variable/work-sans';从入口文件导入 src/fonts.ts 和 src/index.css。
- 文件布局:src/content.ts(所有字符串、数字、设施、规则、指南地点、费用和图片路径,均带类型)、src/lib/brand.ts(brandSlug = [BRAND] 转为小写,并将每一段连续的非字母数字字符替换为 '-',brandInitials = 每个单词首字母大写,emailDomain = 去掉连字符的 brandSlug + '.com')、src/lib/storage.ts(安全的 localStorage get/set,包裹在 try/catch 中,键前缀为 brandSlug + ':')、src/lib/calendar.ts(monthGrid(year, month) 返回日期单元格;rate(date) = 周末(周五/周六)[NIGHTLY]+30,否则 [NIGHTLY];一个基于固定虚构区间列表的种子化已预订区间生成器,在重新加载后保持稳定;quote(start, end, guests) → { nights, nightlySum, cleaning 95, serviceRate 0.12, weeklyDiscount 0.10(当 nights >= 7 时), total },所有金额计算均以整数美元进行)。
- 状态:src/store/booking.ts 是一个小型外部存储(useSyncExternalStore),持有 { start, end, guests, name, email, note, reference } 和 submitted 标志,持久化到 localStorage 键 brandSlug + ':request'。在日历上选择日期会将 start/end 写入存储;表单和明细从中读取。
- src/components/ 中的组件:Header.tsx、Reveal.tsx(Motion whileInView 包装器)、Eyebrow.tsx、Footer.tsx;Hero.tsx、Gallery.tsx(Lightbox.tsx)、TheCabin.tsx(AmenityGroup.tsx)、CalendarSection.tsx(MonthView.tsx、DayCell.tsx、PriceBreakdown.tsx)、HouseRules.tsx、AreaGuide.tsx(MiniMap.tsx 内联 SVG、GuideSpot.tsx)、BookingForm.tsx(GuestsStepper.tsx、RequestCard.tsx)、FaqStrip.tsx。src/pages/Home.tsx 将它们与 Header 和 Footer 组合在一起。
- 在首次构建之前,使用 curl -L -o 将资源(Assets)下列出的每张图片下载到 public/images/ 中,并使用给定的确切文件名。构建本身从不获取任何内容。
- public/favicon.svg 如资源(Assets)下所述。index.html:lang en,<meta name='theme-color' content='#F7F3E9'>,<link rel='icon' href='./favicon.svg' type='image/svg+xml'>,<title>[BRAND] — [REGION] · sleeps [SLEEPS]</title>。
- 在项目根目录下按资源(Assets)下所述编写 ASSETS.md。
- dist/ 包含 index.html、带哈希的 JS/CSS、woff2 字体、favicon.svg 和六张图片。保持在 10 MB 以下。
## 变量
- [BRAND] — 房源名称(默认:"Hemlock Hollow Cabin")。虚构的房源名称。用于标题、主视觉区、页脚、电子邮件(hello@ + 不含连字符的 brandSlug + .com)、localStorage 键和预订参考号(首字母缩写,例如 HH-4021)。绝不使用真实的房源或租赁品牌。
- [REGION] — 地区(默认:"the Catskills")。小木屋所在地区,采用小写冠词风格('the Catskills'、'the Blue Ridge Mountains')。用于主视觉区文案、区域指南和页脚。真实地区可以使用;指南中的湖泊、步道和城镇保持虚构。
- [SLEEPS] — 可住人数(默认:"8")。最大住客人数,以数字表示。决定主视觉区信息条、住客步进器的最大值以及睡眠安排文案('sleeps [SLEEPS] across three bedrooms')。保持在 2–10 之间。
- [NIGHTLY] — 工作日房价(默认:"185")。基础工作日房价,以数字表示。周末(周五/周六)按 +30 计算;7 晚及以上享受 10% 的周折扣;清洁费为 95,服务费为 12%。所有金额均由此数字推算。
- [CREDIT] — 在页脚保留一个小型 "Template by VibeFather" 链接,指向 https://vibefather.ai/t/vacation-rental-booking-page(默认:是;删除此行即可移除)
页面与区块下的文案是按默认值编写的。如果你的值不同,请为它们重写每一个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便之后无需改动组件即可替换内容。
## 设计
### 颜色(Colors)
- 奶油色(Cream)`#F7F3E9` — 全站页面背景。
- 树皮色(Bark)`#EFE8D9` — 交替区块背景(小屋、区域指南),行和标签的悬停填充。
- 卡片色(Card)`#FDFBF5` — 卡片表面(日历面板、费用明细、规则、表单、图库说明文字),输入框填充。
- 木色(Timber)`#4A3A2C` — 标题和正文文字,主要描边按钮,图标颜色。
- 松绿色(Pine)`#2E3B2E` — 页脚,照片叠加层(以 rgba(46,59,46,x) 形式),深层日历界面元素。
- 苔藓色(Moss)`#6E7F5E` — 次要文字、眉题、说明文字、可预订日期价格、周末价格强调色。
- 陶土色(Clay)`#B5652F` — 唯一强调色:主要按钮、选中日期填充、总计数字、焦点环、地图图钉。
- 深陶土色(Clay Deep)`#97521F` — 主要按钮悬停,选中范围边缘。
- 铁锈色(Rust)`#8C4A3C` — 已预订日期的删除线颜色,规则警告图标,'from' 价格刻度。
- 分隔线色(Rule)`#DFD6C3` — 1px 细线、卡片边框、输入框边框、日历网格线。
### 字体排印(Typography)
- 展示字体:H1、H2、H3、房源名称、总计、每日价格、字标:Bitter(OFL),字重 500/600
- 文本与界面:正文、眉题、按钮、导航、表单字段、说明文字、所有金额计算(font-variant-numeric tabular-nums):Work Sans(OFL),字重 400/500/600
### 布局与动效(Layout & motion)
- 间距:8px 基准单位。容器最大宽度 1200px,居中,侧边内边距桌面端 48px,平板端 32px,640px 以下 20px。12 列网格,列间距 24px。区块垂直内边距桌面端 104px,1024px 以下 80px,640px 以下 64px。字号比例:H1 clamp(44px, 6.4vw, 88px) Bitter 600,行高 1.02;H2 clamp(32px, 4.2vw, 54px) Bitter 600,行高 1.08;H3 24px Bitter 600;导语 Work Sans 400 18px / 1.7 Timber 88% 不透明度;正文 Work Sans 400 16px / 1.7(最大宽度 64ch);眉题 Work Sans 600 12px 大写 letter-spacing 0.16em Moss,前面有一条 24px x 2px 的 Clay 线,间距 12px;说明文字 Work Sans 400 13px Moss。按钮:高度 50px,内边距 0 26px,Work Sans 600 14px letter-spacing 0.04em。主要按钮:Clay 填充,Card 文字。次要按钮:1px Timber 边框,Timber 文字。小按钮 38px。输入框:高度 50px,1px Rule 边框,Card 填充,16px Work Sans,聚焦时边框 Clay。全局焦点环:2px Clay 轮廓,偏移 3px。
- 圆角:卡片、输入框、标签、照片、日历面板和请求卡片为 12px。仅胶囊形元素、住客步进按钮和地图图钉使用 999px。
- 动效:缓动:--ease-out cubic-bezier(0.22, 0.61, 0.36, 1) 用于显现和日历过渡;--ease-io cubic-bezier(0.65, 0, 0.35, 1) 用于月份切换和表单切换。没有任何弹跳。
- 动效:显现:包裹在 <Reveal> 中的区块初始为 opacity 0、translateY(16px),当 15% 可见时(Motion whileInView,viewport once)在 700ms 内以 --ease-out 动画到静止状态。同级元素以 80ms 错开(index prop)。
- 动效:主视觉照片:加载时在 2400ms 内以 --ease-out 从 1.06 缩放到 1.0;滚动时平移 0 到 10%(Motion useScroll,offset ['start start', 'end start']),标题区块淡出到 0.3。H1 从 translateY(24px) 升起,错开 140ms。'from $[NIGHTLY]' 刻度最后滑入,带一个小 2px 下划线绘制。
- 动效:图库:照片悬停时上升 6px 并加深说明栏;点击打开 Lightbox(Pine 叠加层 82%,照片最大 82vh,说明文字在 Card 中,X 关闭,箭头和 Escape 导航),带 240ms 淡入和 8px 缩放稳定。
- 动效:日历:月份切换在 280ms 内以 --ease-io 水平滑动 24px(AnimatePresence mode 'wait')。悬停某天时价格上浮 2px。选择开始日期时单元格填充 Clay;选择结束日期时在日期后方绘制 Clay/15% 的圆角范围带;已预订单元格拒绝选择并抖动 4px。费用明细逐项重新排列(每行淡入上移 8px,错开 60ms),总计在 500ms 内计数到新值。
- 动效:费用明细:当住宿晚数达到 7 时,周折扣行出现,带一个 Moss 对勾绘制。
- 动效:规则:每条规则行显现时其图标绘制一次(stroke-dashoffset),错开 80ms。
- 动效:迷你地图:进入视图时,道路线在 800ms 内绘制,然后图钉以柔和过冲落下,指南点以 100ms 错开弹出。
- 动效:预订表单:住客步进计数在 240ms 内脉冲 1.0→1.15→1.0;提交时表单滑出,RequestCard 滑入(上移 16px,320ms --ease-io);参考编号(brandInitials + '-' + 四位数字)在 700ms 内逐字符打出。
- 动效:页头:在主视觉上方透明,使用 Card 文字;滚动 40px 后变为 Cream 94% 不透明度,backdrop-filter blur(10px),Timber 文字,1px Rule 边框,250ms 过渡;页头中始终有一个小的 Clay 'Book now' → #book 按钮。
- 动效:链接:.link-draw 在悬停和 focus-visible 时,1px currentColor 下划线在 300ms 内从 0% 增长到 100% 宽度。
- 动效:prefers-reduced-motion: reduce — 禁用主视觉缩放和视差、H1 升起、地图绘制、计数动画、打字效果、抖动和滑动(以静止状态渲染)。颜色和边框悬停变化保留。在 index.css 中使用 CSS @media,并在组件中使用 Motion 的 useReducedMotion。
- 图像:仅使用真实摄影,温暖且富有林地气息,全部六张为本模板以统一风格制作:黄昏灯笼光和晨雾,木色与苔藓色调,纪实编辑风格,细腻颗粒。绝不出现人物——外观、房间、门廊、码头。任何地方都没有可读文字或标志。每张照片使用 object-fit cover,object-position 见 Assets 部分,12px 圆角,无阴影;Cream 背景上的照片带 1px Rule 轮廓。照片下方说明文字为 Work Sans 13px Moss。代码绘制:favicon、字标(仅文字)、迷你地图、价格胶囊、对勾圆圈、分隔线。图标:仅 lucide-react,描边宽度 1.5。
## 页面与区块
### 租赁页(`index.html`)
1. **内容文件与文案规则** — 以下所有文案均按默认值编写([BRAND] = Hemlock Hollow Cabin,[REGION] = the Catskills,[SLEEPS] = 8,[NIGHTLY] = 185)。将每个字符串、数字和列表都放入 src/content.ts 并从中渲染。如果任何变量值不同,请重写每个标题、设施、规则、指南地点、费用行和 FAQ 答案,使其对新房产具体且可信,同时保持相同的结构和数量(4 个设施组,每组 4 项;6 条规则;5 个指南地点;5 个 FAQ)。所有地点和数字均为虚构。全篇使用的房产事实:可住 [SLEEPS] 人(三间卧室:两张 queen 床,一间可住四人的上下铺房间);两个浴室;木炉和踢脚线供暖;starlink 级快速 wifi;地址 'the end of Hollow Road, [REGION]';入住时间下午 4 点,退房时间上午 11 点;欢迎狗(最多 2 只,不准上沙发——它们会无视这条);禁止派对,室内禁止吸烟;安静时段 22:00–8:00;包含木柴;价格:工作日 $[NIGHTLY],周末(周五/周六)$[NIGHTLY]+30,7 晚以上 9 折,清洁费 $95,服务费 12%;已预订示例区间(虚构,固定):当月和下月的 1–4 日和 15–18 日,加上来自固定种子列表的两个周末区间。
布局:不适用
动效:不适用
2. **页头** — 左侧:字标 '[BRAND]'(Bitter 600 19px),第二行 'Private cabin · [REGION]'(Work Sans 600 10px 大写 字间距 0.2em),链接到 ./index.html。右侧导航(Work Sans 500 14px):'The cabin' → #cabin,'Calendar & rates' → #calendar,'House rules' → #rules,'The area' → #area,以及一个小号 Clay 色 'Book now' 按钮 → #book。
布局:固定顶部,高度 76px,容器对齐,在 hero 上方透明,滚动 40px 后变为实色。低于 820px:仅显示字标 + Book now,导航隐藏。
3. **Hero** — 全出血照片 hero-cabin.webp。眉题(Card):'Private cabin · [REGION]'。H1 分两行:'The woods, *with wifi.*' 导语(Card 88%,最大宽度 560px):'A timber cabin at the end of a dirt road: [SLEEPS] guests, three bedrooms, a wood stove that does most of the talking, and the town twenty minutes when it doesn''t.' Hero 内部的底部条带(一个 Card/90% 条,带细线):'Sleeps [SLEEPS]' · '2–7 nights' · 'Dogs welcome' · 'From $[NIGHTLY]/night'(价格以 Clay 色勾选),每项用点分隔。在移动端,规格条优雅换行:'From $185/night' 独占一行且永不被裁切;'2-7 nights' 和 'Dogs welcome' 可下移。
布局:高度 92svh,最小 640px。照片 object-position 50% 58%。叠加层 linear-gradient(180deg, rgba(46,59,46,0.40) 0%, rgba(46,59,46,0.06) 40%, rgba(46,59,46,0.85) 100%)。内容锚定左下,距条带上方 120px。条带:绝对定位 bottom 24px,容器对齐,高度 56px,12px 圆角,背景模糊。
4. **画廊** — 区块眉题 'Have a look' 和 H2 'Six frames, no fisheye.' 六张照片的拼贴,带说明文字:hero-cabin.webp(复用)'Dusk, from the fire circle';living-fire.webp 'The stove does most of the heating';kitchen-pine.webp 'Pine counters, real knives';loft-bed.webp 'The bunk room sleeps four';porch-morning.webp 'Morning fog off the hollow';lake-dock.webp 'Hollow Lake dock, ten minutes out'。点击任意一张打开 Lightbox,支持键盘导航。重建为刻意的 12 列网格:一个大图块(8 列)加一个 2x2 或 3 连排(各 4 列)——无空格子,无多余细线,六张照片全部可见,每个图块在 Cream 上有 1px Rule 描边,悬停上升 6px。
布局:Cream 背景。6 列拼贴:第 1 和第 4 项跨 2 行(宽高比 3:4);其他宽高比 4:3;12px 间隙,12px 圆角。低于 900px:2 列,宽高比 4:3。
5. **小屋(设施)** — 区块 id='cabin'。眉题 'The cabin' 和 H2 'What''s actually there.' 导语:'Sleeps [SLEEPS] across three bedrooms — two queens and a bunk room the kids will fight over. Two baths, a mudroom that earns its name, and 1,400 square feet of pine.' 四个设施组作为 Card 面板,带 Lucide 图标:'Comfort' — Flame 'Wood stove + firewood included',Thermostat 'Baseboard heat in every room',Wifi 'Fast satellite wifi — video calls fine',Armchair 'Reading chairs that people actually fall asleep in'。'Kitchen' — UtensilsCrossed 'Gas range, real knives, cast iron',Refrigerator 'Full fridge + chest freezer',Coffee 'Pour-over kit and a loud grinder',Dishwasher 'Dishwasher (the machine kind)'。'Outside' — Trees 'Eight wooded acres, one cleared hollow',FlameKindling 'Fire circle with Adirondack chairs',Dog 'Fenced half-acre for the dog',CarPort 'Parking for three cars, plowed'。'Practical' — WashingMachine 'Washer and dryer',FirstAid 'First-aid kit and a plunger, both findable',KeyRound 'Keypad lock — no key handoffs',Phone 'Cell service: one bar, the good kind'。
布局:Bark 背景。2x2 组卡片网格(24px 间隙),每组为 4 行图标列表(图标在 40px Cream 圆角方块中,标签 Work Sans 15px)。低于 900px:堆叠。
6. **日历与价格明细** — 区块 id='calendar'。眉题 'Calendar & rates' 和 H2 'Real prices on every day.' 左侧:一个两月 Calendar 面板(本月和下月,桌面端并排,移动端可滑动)——每天显示其每晚价格(日期下方 Work Sans 12px 等宽数字;周末用 Moss 粗体),已预订区间用 Rust 删除线并带 'held' 工具提示,过去日期变暗;点击开始日,再点击结束日(绘制区间);月份箭头导航。面板下方图例:'Weekend rate $[NIGHTLY]+30' 点 Moss,'Held' 删除线 Rust,'Selected' 填充 Clay。右侧:PriceBreakdown 卡片,粘性:行 '3 nights × $185 — $555'(实时),'Cleaning — $95','Service (12%) — $78',折扣行 'Weekly (7+) — −$74' 仅在满足条件时出现,细线,然后 'Total — $654'(Bitter 600 34px Clay)和 'for 6 guests' 说明;空状态显示 'Pick your dates on the calendar' 并带一个指向左的箭头。明细下方:'Rates, fees and holds shown here are the demo''s sample data' 说明。
布局:Cream 背景。日历面板 7 列在 Card 上,1px Rule 边框,24px 内边距;明细 4 列偏移 1,粘性 top 100px。月份网格:7 列,1px Rule 线,桌面端日期单元格高 64px。低于 1024px:堆叠,明细不粘性。
7. **房屋规则** — 区块 id='rules'。眉题 'House rules' 和 H2 'The short list.' 六条规则行(图标、一行、一条注释):Clock 'Check-in 4pm / check-out 11am' — 'Keypad code arrives by text that morning.';Dog 'Dogs: yes, two, floor people' — 'The couch rule exists and is ignored; we''ve made peace with it.';Volume2 'Quiet hours 10pm–8am' — 'The neighbors are owls. Literally.';Cigarette 'No smoking inside' — 'Porch with a tin ashtray, outside only.';Users 'Max [SLEEPS] guests, no parties' — 'Dinner for [SLEEPS]? Perfect. A 30th birthday for sixty? The hollow says no.';Trash2 'Trash out to the bear box' — 'The bin has a latch; the bears have opinions.'
布局:Bark 背景。行在 2x3 网格中(24px 间隙),每行在 Card 上,1px Rule 边框,20px 内边距:规则 Work Sans 600 16px Timber,注释 14px Moss。低于 860px:堆叠。
8. **区域指南** — 区块 id='area'。眉题 'The area' 和 H2 'Twenty minutes in every direction.' 左侧:MiniMap(内联 SVG:Hollow Road 蜿蜒至小屋处的图钉,西北有湖泊块,东南有城镇网格,东有步道虚线,指北针;Rule 线,Pine 填充,Clay 图钉)。右侧:五个 GuideSpots(名称 Bitter 20px,一行 Work Sans 15px,距离胶囊):'Hollow Lake' — 'Swim, canoe, or stare at it from the dock.' — '10 min';'Fern Loop Trail' — 'Three flat miles; do it before the second coffee.' — '5 min';'Marrow General Store' — 'Eggs, bait, the good bread, one moody cat.' — '12 min';'The Slate Line Diner' — 'Breakfast all day; the hash is a decision.' — '18 min';'Townsend Township' — 'Farm stands, a brewery, a hardware store you''ll somehow visit twice.' — '20 min'。
布局:Cream 背景。地图 5 列在 Card 上;地点 6 列偏移 1,作为带细线分隔的列表。低于 900px:堆叠,地图在前。
9. **预订请求表单** — 区块 id='book'。眉题 'Book it' 和 H2 'Request your dates.' 一个 Card 面板:日期行显示来自日历的选择('Fri 3 – Mon 6' 或 'Pick dates on the calendar' 带链接 → #calendar);GuestsStepper 1–[SLEEPS];姓名输入;邮箱输入;备注文本域(占位符 'Anything we should know — dogs, kids, ceilidh plans?');主按钮 'Send booking request';说明 'Nothing is charged here — this demo saves the request in your browser, and the real page would email the owner.' 提交时(日期 + 姓名 + 有效邮箱为必填):RequestCard — 'Request sent' 对勾圆圈(Moss,描边绘制),'Reference [HH-4021]' 打字效果,摘要行(日期 · 客人 · 报价总额),'We reply within a day — usually within an hour' 和 'Change request' 返回预填的表单。持久化在 localStorage 中。
布局:Cream 背景,顶部 Bark 色带。面板最大宽度 640px,32px 内边距,1px Rule 边框。RequestCard 以 320ms 滑动切换。低于 480px 内边距 20px。
10. **FAQ 条与页脚** — FAQ:页脚上方五个紧凑的手风琴项:'Is the road plowed?' — 'Yes — Hollow Road is town-plowed; the driveway is on us and done by 9am.';'Do we need AWD?' — 'The driveway is gravel and fine for anything; a snowstorm changes the math, and we''ll say so.';'Is the wifi good enough to work?' — 'Video calls, yes; torrenting the internet, no. It''s satellite — weather has opinions.';'Early check-in?' — 'When the calendar allows, 1pm free; message the morning of.';'Cancellation?' — 'Full refund 14 days out, half within 7 — the demo says this so you don''t have to guess.' 页脚(Pine 背景):字标、'Private cabin · [REGION]'、hello@ + emailDomain、锚点 The cabin / Calendar / Rules / The area / Book,以及一行 '© [BRAND]. Built by the owner, cleaned by the owner'。
布局:FAQ 位于 Cream 背景上,置于 720px 容器中;页脚垂直内边距 72px,4 列,底线位于一条细线之下。
## 资源
- 图片:为本设计制作的模板照片(可随模板自由再分发)。用 curl -L -o 将每张图片下载到 public/images/:https://media.vibefather.ai/assets/eb6490c4-e224-4b05-a360-faec81890dba/hero-cabin.webp → public/images/hero-cabin.webp(Hero、Gallery 1;object-position 50% 58%;alt 'A timber cabin glowing with warm lights among dark trees at dusk');https://media.vibefather.ai/assets/eb6490c4-e224-4b05-a360-faec81890dba/living-fire.webp → public/images/living-fire.webp(Gallery;alt 'A living room with a lit wood stove, wool sofa and stacked firewood');https://media.vibefather.ai/assets/eb6490c4-e224-4b05-a360-faec81890dba/kitchen-pine.webp → public/images/kitchen-pine.webp(Gallery;alt 'A kitchen with pine counters, cast iron pans and a gas range');https://media.vibefather.ai/assets/eb6490c4-e224-4b05-a360-faec81890dba/loft-bed.webp → public/images/loft-bed.webp(Gallery;alt 'A wood-paneled bunk room with four beds and quilts');https://media.vibefather.ai/assets/eb6490c4-e224-4b05-a360-faec81890dba/porch-morning.webp → public/images/porch-morning.webp(Gallery;alt 'A covered porch with two rocking chairs in morning mist');https://media.vibefather.ai/assets/eb6490c4-e224-4b05-a360-faec81890dba/lake-dock.webp → public/images/lake-dock.webp(Gallery;alt 'A wooden dock reaching into a still lake at dusk')。共六个文件。
- 图片:在项目根目录写入 ASSETS.md,包含一张表格:path、source URL、author、license——每张照片一行(source 为 'media.vibefather.ai, made for this template',author 为 'VibeFather',license 为 'Distributed with the template'),另加 @fontsource/bitter 和 @fontsource-variable/work-sans(OFL-1.1)以及 lucide-react(ISC)的行。绝不要用图库网站(Unsplash、Pexels、Pixabay)或含有人物或可辨识品牌的图片替换照片。
- 图标:仅使用 lucide-react:Flame、FlameKindling、Thermostat、Wifi、Armchair、UtensilsCrossed、Refrigerator、Coffee、Dishwasher、Trees、Dog、CarPort、WashingMachine、FirstAid、KeyRound、Phone、Clock、Volume2、Cigarette、Users、Trash2、CalendarDays、ChevronLeft、ChevronRight、X、Check、ArrowRight、MapPin。描边宽度 1.5,16–24px,颜色继承。public/favicon.svg 手写:viewBox 0 0 32 32,一个 32x32 的 rect rx 8 填充 #2E3B2E,一个 Card(#FDFBF5)房子图形(屋顶三角形 + 正方形)带一个 Clay(#B5652F)窗户圆点。不要其他 logo:物业名称始终以文字排版呈现。
- 字体:安装 @fontsource/bitter 和 @fontsource-variable/work-sans,并按 Setup 中所述在 src/fonts.ts 中导入它们。Vite 会将 woff2 文件打包进 dist/。
- 图片:用代码绘制:迷你地图(道路、湖泊、城镇网格、小径、图钉)、价格胶囊标签、图例圆点、对勾圆圈、日期单元格状态和 favicon。不要其他位图,不要插画,不要地图瓦片。
## 不要做
- 不要后端、不要表单提交、不要向任何 API 发起 fetch:日历选择、明细和预订请求只在浏览器中运行(localStorage);不收取或发送任何内容,表单中会说明这一点。
- 这个单页上的所有链接都是锚点(./index.html#cabin、#calendar、#rules、#area、#book)。
- 一切资源自托管:字体通过 Fontsource,图标用 npm 包或内联 SVG,图片下载到 public/images/。不要 CDN 的 <script> 或 <link> 标签,不要 Google Fonts,不要分析统计。
- 生产构建:压缩,不要 source map,不要把 src/ 复制进 dist/,用单条命令 npm run build,输出在 dist/ 下且小于 10 MB。
- 不要真实房源、平台或其徽章;不要含人物、面孔或手的照片;任何画面中不要有可读文字或 logo;湖泊、步道、商店和城镇都保持虚构。
- 日历以清晰标注的示例数据展示每晚价格和已预订占位;不要任何真实日历的真实日期,页面绝不显示今天的日期(月视图从当前月份开始,但不高亮今天)。
- 除可选的页脚署名链接外,网站内绝不提及 VibeFather 或任何其他品牌;所有文案都是虚构的美式英语。
- 在所有地方尊重 prefers-reduced-motion:禁用视差、绘制、数字递增、抖动、打字机效果和滑动;保留颜色/边框悬停效果。
- 网站必须在 1440x900 桌面端和 390x844 移动端正常工作,控制台零错误;日历和表单仅用键盘即可操作,每个交互元素都有可见的焦点环。
- 文案保持具体:不要 lorem,不要“nestled retreat”之类的陈词滥调;每个费率、费用、英里和分钟都来自 src/content.ts。
---
— Prompt by VibeFather · https://vibefather.ai/t/vacation-rental-booking-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: "Vacation Rental Booking Page"
colors:
cream: "#F7F3E9"
bark: "#EFE8D9"
card: "#FDFBF5"
timber: "#4A3A2C"
pine: "#2E3B2E"
moss: "#6E7F5E"
clay: "#B5652F"
clay_deep: "#97521F"
rust: "#8C4A3C"
rule: "#DFD6C3"
typography:
display_h1_h2_h3_the_property_name_totals_day_prices_the_wordmark: { family: "Bitter", weights: [500, 600] }
text_and_ui_body_eyebrows_buttons_nav_form_fields_captions_all_money_math_font_variant_numeric_tabular_nums: { family: "Work Sans", weights: [400, 500, 600] }
spacing: "8px base unit. Container max-width 1200px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. 12-column grid, column gap 24px. Section vertical padding 104px desktop, 80px under 1024px, 64px under 640px. Type scale: H1 clamp(44px, 6.4vw, 88px) Bitter 600, line-height 1.02; H2 clamp(32px, 4.2vw, 54px) Bitter 600, line-height 1.08; H3 24px Bitter 600; lead Work Sans 400 18px / 1.7 Timber at 88%; body Work Sans 400 16px / 1.7 (max-width 64ch); eyebrow Work Sans 600 12px uppercase letter-spacing 0.16em Moss, preceded by a 24px x 2px Clay line with 12px gap; caption Work Sans 400 13px Moss. Buttons: height 50px, padding 0 26px, Work Sans 600 14px letter-spacing 0.04em. Primary: Clay fill, Card text. Secondary: 1px Timber border, Timber text. Small buttons 38px. Inputs: height 50px, 1px Rule border, Card fill, 16px Work Sans, focus border Clay. Focus ring everywhere: 2px Clay outline with 3px offset."
radius: "12px on cards, inputs, chips, photos, the calendar panel and the request card. 999px only for pills, the guest stepper buttons and the map pin."
---
# Vacation Rental Booking 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
- **Cream** `#F7F3E9` — Page background throughout.
- **Bark** `#EFE8D9` — Alternate section background (The cabin, Area guide), hover fill for rows and chips.
- **Card** `#FDFBF5` — Card surfaces (calendar panel, breakdown, rules, form, gallery captions), input fill.
- **Timber** `#4A3A2C` — Headlines and body text, primary outline buttons, icon color.
- **Pine** `#2E3B2E` — Footer, photo overlays (as rgba(46,59,46,x)), deep calendar chrome.
- **Moss** `#6E7F5E` — Secondary text, eyebrows, captions, available-day prices, weekend price accent.
- **Clay** `#B5652F` — The one accent: primary buttons, selected date fill, total figure, focus ring, map pin.
- **Clay Deep** `#97521F` — Primary button hover, selected range edges.
- **Rust** `#8C4A3C` — Booked-day strike color, rules warning icons, the 'from' rate tick.
- **Rule** `#DFD6C3` — 1px hairlines, card borders, input borders, calendar grid lines.
## Typography
- **Display: H1, H2, H3, the property name, totals, day prices, the wordmark** — Bitter (OFL), weights 500/600. Self-host the font files.
- **Text and UI: body, eyebrows, buttons, nav, form fields, captions, all money math (font-variant-numeric tabular-nums)** — Work Sans (OFL), weights 400/500/600. Self-host the font files.
## Spacing & shape
- Spacing: 8px base unit. Container max-width 1200px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. 12-column grid, column gap 24px. Section vertical padding 104px desktop, 80px under 1024px, 64px under 640px. Type scale: H1 clamp(44px, 6.4vw, 88px) Bitter 600, line-height 1.02; H2 clamp(32px, 4.2vw, 54px) Bitter 600, line-height 1.08; H3 24px Bitter 600; lead Work Sans 400 18px / 1.7 Timber at 88%; body Work Sans 400 16px / 1.7 (max-width 64ch); eyebrow Work Sans 600 12px uppercase letter-spacing 0.16em Moss, preceded by a 24px x 2px Clay line with 12px gap; caption Work Sans 400 13px Moss. Buttons: height 50px, padding 0 26px, Work Sans 600 14px letter-spacing 0.04em. Primary: Clay fill, Card text. Secondary: 1px Timber border, Timber text. Small buttons 38px. Inputs: height 50px, 1px Rule border, Card fill, 16px Work Sans, focus border Clay. Focus ring everywhere: 2px Clay outline with 3px offset.
- Radius: 12px on cards, inputs, chips, photos, the calendar panel and the request card. 999px only for pills, the guest stepper buttons and the map pin.
## Motion
- Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1) for reveals and calendar transitions; --ease-io cubic-bezier(0.65, 0, 0.35, 1) for month swaps and the form swap. Nothing bounces.
- Reveal: blocks wrapped in <Reveal> start at opacity 0, translateY(16px) and animate to rest over 700ms --ease-out when 15% visible (Motion whileInView, viewport once). Siblings stagger by 80ms (index prop).
- Hero photo: on load scales from 1.06 to 1.0 over 2400ms --ease-out; scrolling translates it 0 to 10% (Motion useScroll, offset ['start start', 'end start']) and the headline block fades to 0.3. H1 rises from translateY(24px) with 140ms stagger. The 'from $[NIGHTLY]' tick slides in last with a small 2px underline draw.
- Gallery: photos rise 6px and darken their caption bar on hover; clicking opens the Lightbox (Pine overlay at 82%, photo at max 82vh, caption in Card, X closes, arrows and Escape navigate) with a 240ms fade and 8px scale settle.
- Calendar: month swaps slide 24px horizontally over 280ms --ease-io (AnimatePresence mode 'wait'). Hovering a day lifts the price 2px. Selecting start fills the cell Clay; selecting an end draws the range as a Clay/15% band behind the days with rounded ends; booked cells refuse selection with a 4px shake. The breakdown re-lines item by item (each row fades up 8px, 60ms stagger) and the total counts to the new value over 500ms.
- Breakdown: the weekly discount row appears with a Moss check drawing when nights reach 7.
- Rules: each rule row reveals with its icon drawing once (stroke-dashoffset) and 80ms stagger.
- Mini-map: on view, the road lines draw over 800ms, then the pin drops with a soft overshoot and the guide dots pop with 100ms stagger.
- Booking form: guest stepper counts pulse 1.0→1.15→1.0 over 240ms; submitting slides the form out and the RequestCard in (16px rise, 320ms --ease-io); the reference (brandInitials + '-' + four digits) types character by character over 700ms.
- Header: transparent over the hero with Card text; after 40px of scroll it gets Cream at 94% opacity, backdrop-filter blur(10px), Timber text, 1px Rule border, 250ms transition; a small Clay 'Book now' → #book button is always in the header.
- Links: .link-draw grows a 1px currentColor underline from 0% to 100% width over 300ms on hover and focus-visible.
- prefers-reduced-motion: reduce — disable the hero scale and parallax, H1 rise, map draws, count-ups, type-in, shakes and slides (render at rest). Color and border hover changes stay. Use CSS @media in index.css plus Motion's useReducedMotion in components.
## Imagery
Real photography only, warm and woodsy, all six made for this template in one consistent style: dusk lantern light and morning mist, timber and moss palette, documentary editorial look, fine grain. Never a person — exteriors, rooms, porch, dock. No readable text or logos anywhere. Every photo uses object-fit cover with the object-position given under Assets, 12px corners, no shadow; photos on Cream get a 1px Rule outline. Captions under photos in Work Sans 13px Moss. Drawn in code: the favicon, the wordmark (type only), the mini-map, price pills, the check circle, dividers. Icons: lucide-react only, stroke width 1.5.
## Tone
Warm and matter-of-fact, like the owner leaving a note on the fridge. Short sentences, exact numbers (miles, minutes, dollars), no 'nestled' or 'retreat' clichés, no exclamation marks.
---
— Prompt by VibeFather · https://vibefather.ai/t/vacation-rental-booking-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 湖畔别墅业主:将 BRAND 设为你的房源名称,REGION 设为湖泊,为双层床房间提高 SLEEPS,并将周边指南地点替换为你的码头、船只下水点和最近城镇。
- 出租一套 A 字屋的夫妇:将 SLEEPS 降低到两人或四人,把家庭设施精简为短列表,并重写房屋守则,强调安静周末和禁止宠物。
- 村舍代理机构:保留预订表单,但将确认文案指向你的咨询收件箱,并将指南地点替换为你自己的步道、面包店和游泳点。
- 提供周租的山地旅馆:将 NIGHTLY 设得更高,保留周租折扣,并重写价格明细标签以标明你的清洁费和服务费。
度假屋预订页:常见问题
度假屋预订页的价格日历如何运作,每晚价格来自哪里?
日历一次显示两个月,每个可订日期上都印有价格。工作日晚间价格来自 NIGHTLY 变量;周五和周六加 30。已预订日期用铁锈色划掉,让客人看到真实可用性。选择开始和结束日期后,它们会写入预订存储,价格明细会在浏览器中重新计算总价。
怎么用 AI 做一个度假屋预订页?
复制本页的提示词,或者运行 npx vibefather add vacation-rental-booking-page,把 [BRAND]、[REGION]、[SLEEPS]、[NIGHTLY] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。