跳到正文
VibeFather
免费注册

用这个模板做的 2 个案例

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

关于这个模板

租车预订网站为一个虚构的出行品牌提供完整的客户端租车体验。它面向租车运营商、旅游创业公司和小型企业,满足他们不止于车辆宣传册的需求:访客可以按地点和日期搜索、比较合适的车辆、配置租车方案,并完成一个明确标注为模拟的预订。

视觉方向将暖石色表面与深森林色字体和钴蓝色控件搭配。大幅编辑风格的车辆摄影让以搜索为先的首屏具有强烈的地域感,而圆角卡片、紧凑的规格标签和常驻的预订摘要让信息密集的屏幕也易于浏览。Bricolage Grotesque 标题增添了特色,又不会让工作界面显得过于装饰化。

连通的交互模型是主要特色。搜索详情会带入可筛选的结果视图,支持按车型、座位数、变速箱、价格和排序控件筛选。每辆通用车辆都有自己的费率和规格。详情视图增加了保障计划和实用附加项,并立即重新计算租车小计、费用、税费和总计。三步结账流程会验证驾驶员和演示支付信息,然后生成一个本地确认。所有非敏感预订状态在页面刷新后保留;支付字段仅保存在内存中。

通过四个变量自定义品牌、城市、受众和承诺,车队数据、费率、文案、评价和政策集中在一个内容文件中。五张生成的通用车辆图片和一个宽幅首屏场景打包在本地。移动端筛选抽屉和可折叠价格摘要让窄屏上保持相同流程。成品网站完全静态,在桌面和移动尺寸下均响应式,并使用尊重减少动态效果设置的过渡。无需账户、支付处理、API 或预订后端。

模板提示词

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

# Car Rental Booking Website

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

## Brief
Build a polished, multi-view car-rental booking website for [BRAND], serving [AUDIENCE] around [CITY]. The experience runs from a search-first homepage through filterable fleet results, a configurable vehicle detail, and a three-step mock checkout to a local confirmation. Use [BRAND_PROMISE] as the central customer promise and make every price visible before the final demo action.

- Audience: The primary visitors are [AUDIENCE] who want to compare practical rental options quickly, understand what is included, and know the full price before reserving. The template owner is a rental operator, travel startup, or small mobility business that needs a realistic booking interface without backend infrastructure.
- Goal: Help a visitor find a suitable generic vehicle, adjust dates, protection, and extras with immediate price feedback, then complete a believable but explicitly simulated reservation. Keep all fleet, policy, location, rate, and marketing content easy to replace in one content file.
- Tone: Calm, precise, and travel-literate rather than aggressive or luxury-obsessed. Use concise labels, specific inclusions, plain-language policies, and warm editorial copy. The interface should feel dependable and tactile, with no pressure timers, invented scarcity, or hidden fees.

## Stack
- Framework: Vite 6 + React 19 + TypeScript
- Styling: Tailwind CSS 3.4
- Libraries: motion 12 (MIT), lucide-react (ISC), @fontsource-variable/bricolage-grotesque (OFL), @fontsource-variable/inter (OFL)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
  - Scaffold a Vite React TypeScript project at the repository root. Set vite.config.ts to base: './', build.outDir to 'dist', build.sourcemap to false, and build.emptyOutDir to true; npm run build must create only the production site in dist/.
  - Configure Tailwind in tailwind.config.ts with the exact color tokens and font families below. Put global styles, focus states, native date-control styling, print rules, and reduced-motion overrides in src/index.css.
  - Import Bricolage Grotesque and Inter from the two Fontsource variable packages in src/main.tsx. Do not use any remote font stylesheet.
  - Wrap the app in MotionConfig with reducedMotion='user'. Use Motion and AnimatePresence for the specified route, filter, drawer, and checkout transitions; do not add another animation or routing library.
  - Implement a small hash router using window.location.hash and the hashchange event for index.html, #/results, #/vehicle, #/checkout, and #/confirmation. Render index.html content for an empty or unknown hash, and use ./index.html for the home link.
  - Keep every string, variable value, location, vehicle, rate, extra, protection plan, review, policy, and FAQ in src/content.ts. Rewrite variable-dependent copy coherently when the values change; never scatter default brand content through components.
  - Manage search, filters, selected vehicle, extras, protection, and checkout step in one React context with useReducer. Persist only non-sensitive booking state to sessionStorage under the generic key 'rental-booking-v1'; keep card, expiry, and security-code values only in component memory.
  - Use native date inputs and a shared UTC-based rental-day calculation. Default pickup to three days after the visitor's local today and return to six days after today, reject return dates on or before pickup, and calculate rentalDays as max(1, round((returnUTC - pickupUTC) / 86400000)).
  - Create a simple original SVG favicon and route mark from two curved road lines in a rounded square. Use Lucide icons for interface controls only, with accessible labels for icon-only buttons.

## Variables
- [BRAND] — Rental brand (default: "Morroway"). An invented short rental-company name; use it in the wordmark, title, copy, and confirmation.
- [CITY] — Primary service area (default: "Portland, Oregon"). The main pickup region used in search defaults, hero copy, and location guidance.
- [AUDIENCE] — Primary travelers (default: "weekend travelers and small families"). A lowercase phrase describing the people the fleet and copy should serve.
- [BRAND_PROMISE] — Customer promise (default: "Clear prices. Easy roads."). A short original promise used as the hero eyebrow and closing statement.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/car-rental-booking-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.

Pro 模板

解锁完整提示词和源码

  • 完整提示词:设计、版块、动效、素材
  • 每个在线演示的源码
  • 商用授权

在线演示和 DESIGN.md 仍然免费。

$9/月起 · 年付和终身正在上线特惠

DESIGN.md

单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。

---
name: "Car Rental Booking Website"
colors:
  canvas: "#F4F1EA"
  surface: "#FFFEFA"
  ink: "#14251F"
  muted: "#65716B"
  line: "#D9DDD5"
  cobalt: "#2855D9"
  cobalt_dark: "#1D3FA6"
  sun: "#E7B95C"
  forest: "#10231C"
typography:
  display_and_vehicle_names: { family: "Bricolage Grotesque Variable, sans-serif", weights: [600, 700] }
  body_labels_prices_and_controls: { family: "Inter Variable, sans-serif", weights: [400, 500, 600, 700] }
spacing: "Use an 8px base grid and a 1320px max-width container with 32px desktop gutters and 20px mobile gutters. Desktop sections have 112px vertical padding, compact app views 48px, and mobile sections 72px. Hero heading is 76px/0.96 with -0.045em tracking on desktop and 44px/1.02 on mobile; section headings are 42px/1.08 desktop and 32px mobile; body copy is 16px/1.65; labels are 12px/1.3 with 0.08em uppercase tracking. Form controls are at least 48px high with 12px vertical and 16px horizontal padding."
radius: "Use 28px for the hero and large media, 20px for vehicle and summary cards, 14px for inputs and option cards, and 999px for buttons, chips, and small badges. Use 1px Line borders and soft 0 16px 48px rgba(20,37,31,0.08) shadows only on floating search, drawer, and sticky-summary surfaces."
---

# Car Rental Booking 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
- **Canvas** `#F4F1EA` — Main warm-stone page background
- **Surface** `#FFFEFA` — Cards, forms, search panel, and checkout surfaces
- **Ink** `#14251F` — Headings, primary text, and dark buttons
- **Muted** `#65716B` — Secondary text and specification labels
- **Line** `#D9DDD5` — Hairline borders, separators, and inactive controls
- **Cobalt** `#2855D9` — Primary actions, selected filters, links, and focus rings
- **Cobalt Dark** `#1D3FA6` — Primary-action hover state
- **Sun** `#E7B95C` — Small recommendation badges and confirmation accent only
- **Forest** `#10231C` — Closing callout and footer background

## Typography
- **Display and vehicle names** — Bricolage Grotesque Variable, sans-serif (OFL), weights 600/700. Self-host the font files.
- **Body, labels, prices, and controls** — Inter Variable, sans-serif (OFL), weights 400/500/600/700. Self-host the font files.

## Spacing & shape
- Spacing: Use an 8px base grid and a 1320px max-width container with 32px desktop gutters and 20px mobile gutters. Desktop sections have 112px vertical padding, compact app views 48px, and mobile sections 72px. Hero heading is 76px/0.96 with -0.045em tracking on desktop and 44px/1.02 on mobile; section headings are 42px/1.08 desktop and 32px mobile; body copy is 16px/1.65; labels are 12px/1.3 with 0.08em uppercase tracking. Form controls are at least 48px high with 12px vertical and 16px horizontal padding.
- Radius: Use 28px for the hero and large media, 20px for vehicle and summary cards, 14px for inputs and option cards, and 999px for buttons, chips, and small badges. Use 1px Line borders and soft 0 16px 48px rgba(20,37,31,0.08) shadows only on floating search, drawer, and sticky-summary surfaces.

## Motion
- On initial home load, reveal the hero photograph with a 600ms clip-path inset animation and lift the search panel 16px into place over 450ms; do not animate the headline letter by letter.
- Use AnimatePresence with 180ms opacity and 8px vertical transitions when result cards reorder or disappear after filtering. Update the result count immediately and never delay interaction for animation.
- Route changes use a 220ms fade and 10px upward settle. Checkout steps use the same 220ms horizontal-free transition, with focus moved to the new step heading.
- When a price input changes, flash the total's background from rgba(40,85,217,0.10) to transparent over 180ms without rolling or scrambling digits.
- Mobile filter and summary drawers slide 24px from the bottom over 240ms with a dimmed backdrop; trap focus, close on Escape, and restore focus to the trigger.
- Disable nonessential transforms, clip reveals, and smooth scrolling under prefers-reduced-motion; state changes must remain immediate and understandable.

## Imagery
Use one coherent set of six locally bundled editorial automotive photographs: a wide generic crossover in an open Pacific Northwest-inspired road scene for the hero, plus five generic unbranded vehicles on a consistent warm concrete lot with a soft forest edge. Warm overcast daylight, muted stone and forest tones, subtle cobalt details, and restrained 35mm-style perspective unify the set. Every vehicle must be a fictional generic shape with smooth simple panels, blank plates, no badges, no logos, no text, and no resemblance to a production model. No people are needed. Crop card images at 4:3 and the hero at 16:9 with object-fit: cover; the selected vehicle image becomes the large visual anchor on the detail view.

## Tone
Calm, precise, and travel-literate rather than aggressive or luxury-obsessed. Use concise labels, specific inclusions, plain-language policies, and warm editorial copy. The interface should feel dependable and tactile, with no pressure timers, invented scarcity, or hidden fees.

---
— Prompt by VibeFather · https://vibefather.ai/t/car-rental-booking-website · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown

改成你自己的

  • 露营车和越野租车创业公司:将 BRAND 和 CITY 设为你的区域,然后用你的厢式车替换通用车队,并围绕里程和越野覆盖重写保障计划。
  • 家庭经营的机场租车柜台:将 AUDIENCE 设为抵达的旅客,保留三步结账流程,并围绕儿童座椅、额外驾驶员和延迟还车重写附加项。
  • 城市电动自行车和滑板车租赁店:将 CITY 设为你的区域,将车辆卡片替换为你的自行车和滑板车,并将按天租车定价调整为按小时和按天费率。
  • 精品司机和高端汽车服务:将 BRAND_PROMISE 设为你的服务承诺,用你的车辆替换车队,并将保障部分重写为包含司机和保险条款。

租车预订网站:常见问题

租车预订网站模板的预订流程是怎样的?

租车预订网站模板运行一个以搜索为先的首页,访客选择地点和日期,然后进入可筛选的结果页,支持按车型、座位数、变速箱、价格和排序控件筛选。每辆车打开一个详情视图,包含保障计划和附加项,并立即重新计算小计、费用、税费和总计。三步结账流程会验证驾驶员和演示支付信息,然后生成一个本地确认。不涉及后端或支付处理。

怎么用 AI 做一个租车预订网站?

复制本页的完整提示词(Pro),或者运行 npx vibefather add car-rental-booking-website,把 [CITY]、[BRAND]、[AUDIENCE]、[BRAND_PROMISE] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。