跳到正文
VibeFather
免费注册

用这个模板做的 2 个案例

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

关于这个模板

一个为配备船员的游艇租赁公司打造的双页面网站,整体像一张海图桌:深海军蓝底色、白色面板、细黄铜线条,以及用于所有可测量数据的甲板灰等宽标签。首屏是一艘停泊在明媚地中海阳光下的游艇——白色船体、深湛海水——上方是利落的无衬线大标题和标明海域的等宽标签。船队网格是工作甲板:四艘游艇置于白色卡片上,配有等宽规格行(米数、宾客数、舱室数、类型),可按类型、宾客数和舱室数筛选;筛选生效时,网格会通过布局动画明显重新排序。每张卡片链接到一个带查询路由的详情页,直接进入时会打开旗舰游艇:照片条、等宽规格表,以及用 SVG 绘制的甲板平面图——船体、舱室、沙龙、驾驶舱和游泳平台均以黄铜引线标注——外加示例周租金和跳转到报价表单的入口。回到首页,两条示例行程绘制在插画风格的航线地图上:虚构的锚地、黄铜色虚线航线、编号停靠点,在七天七夜与长周末之间切换时会随之更换。报价请求——游艇、季节、宾客数、备注——保存在本地,并如实注明不会发送任何内容。摄影保持同一种海光色调:明亮正午的清晰感、海盐薄雾、游艇、柚木和海岸线,船员仅出现在远处。在一个内容文件中替换品牌、海域、港口和起步价;第二个演示案例将同一公司变为日租双体船船队。

模板提示词

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

# Yacht Charter Website

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

## Brief
A two-page yacht charter site with a crisp nautical identity — navy ground, white panels, brass hairlines, deck-gray mono labels: a bright sea-light hero of a yacht at anchor, a filterable four-yacht fleet grid with layout animation, a query-routed yacht detail page with specs and an SVG deck plan, sample itineraries on an illustrated route map with numbered stops, and a locally saved quote request.

- Audience: Crewed charter houses, brokers and boutique fleets, and the studios building for them.
- Goal: Take a visitor from the postcard to the plan: browse the fleet, filter to their party, study a deck plan, imagine a route, and leave a quote request — with every rate and route honestly labeled as sample data.
- Tone: Chart-table precise and salt-cured: short declarative lines, mono numbers, no adjectives doing the work of a photograph.

## Stack
- Framework: Vite 5 + React 18 + TypeScript
- Styling: Tailwind CSS 3.4
- Libraries: tailwindcss (MIT), motion (MIT), lucide-react (ISC), @fontsource/archivo (OFL), @fontsource/roboto-mono (Apache-2.0)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
  - Scaffold with npm create vite@latest yacht-charter-website -- --template react-ts; add [email protected], postcss and autoprefixer as dev dependencies; add motion, lucide-react, @fontsource/archivo and @fontsource/roboto-mono as dependencies.
  - vite.config.ts: base './', build.sourcemap false, and build.rollupOptions.input with TWO entries — index.html and yacht.html — so one command builds both pages.
  - tailwind.config.js: extend colors navy #12263A, navyraised #1B3350, white #FCFBF7, deckline #D8DCE0, deckgray #8C959D, brass #B98F4E, brasslight #D3AC6C, ink #1B2B3A, haze #9FB4C2; fontFamily sans 'Archivo' and mono 'Roboto Mono'; radius: panel 6px and pill 999px.
  - postcss.config.js: tailwindcss + autoprefixer.
  - src/components/FleetGrid.tsx: the filterable grid — three filter groups as mono chips (TYPE: All/Sailing/Motor · GUESTS: All/Up to 8/9–12 · CABINS: All/4+/6+); matching yachts render inside Motion's AnimatePresence with layout animations so cards visibly re-sort (350ms); non-matching cards leave with a 40% scale fade.
  - src/components/RouteMap.tsx: an illustrated chart drawn in SVG, viewBox 0 0 800 460, on a white panel — a generic invented coastline as a deck-gray filled landmass along the top-left, four small islands, a light-blue-gray sea wash (5% deckgray), a faint 40px lat/long grid, and the active itinerary as a dotted brass route path (stroke-dasharray 2 8) with numbered brass stop circles; stop positions come from content.ts; switching itineraries crossfades the route (300ms) and redraws the dotted path.
  - src/components/DeckPlan.tsx: a top-down deck plan drawn in SVG, viewBox 0 0 720 220, on a white panel — the hull as an elongated rounded outline (ink stroke 2px, white fill), a swim platform at the stern, cockpit, salon and galley as deck-gray-tinted rects with deckline strokes, four cabins as 90×70 rects (two port, two starboard) and a bow suite at the fore; every region labeled in Roboto Mono 11px with 1px brass leader lines; cabin count is a prop so each yacht renders its own count (the flagship's geometry is the fixed reference layout).
  - src/lib/motion.ts: calm variants — reveal (opacity 0→1, y 20→0, 700ms cubic-bezier(0.16,1,0.3,1), 100ms stagger, whileInView once) — with useReducedMotion making layout re-sorting instant and route swaps plain fades.
  - Keep every user-facing string and data set (brand, waters, port, entry rate, fleet array {id, name, type, meters, guests, cabins, rate, photo, blurb}, itineraries {id, title, nights, stops[{n, name, line, at{x,y}}], path}, quote copy, contact) in src/content.ts; both pages read from it so values swap in one place.
  - yacht.html reads the id from location.search (?id=aletia) and maps it to the fleet array; with no id or an unknown id it shows the FIRST yacht (the flagship), never an empty or not-found state. Links between pages are file names: ./yacht.html?id=aletia and ./index.html#quote. index.html: <title>[BRAND] — Crewed Charters in [WATERS]</title>; yacht.html: <title>[BRAND] — Yacht name</title> (dynamic); one shared drawn-in-code favicon.svg (a brass anchor-less dot-and-line mark — a simple brass circle on navy).

## Variables
- [BRAND] — Charter house (default: "Saltcrest Charters"). Invented charter house for the wordmark, page titles and contact email (from content.ts).
- [WATERS] — Waters (default: "the Vela Isles"). The invented cruising ground — hero label, itinerary intro and footer ('[WATERS]' is a fictional archipelago, never a real coastline).
- [PORT] — Home port (default: "Port Selene"). The invented base port where charters embark and the itineraries start.
- [WEEK_FROM] — Entry weekly rate (default: "€38,000"). The flagship's sample weekly rate — fleet card, yacht detail price line and hero sub-line ('from [WEEK_FROM] per week, all-inclusive, sample rate').
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/yacht-charter-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: "Yacht Charter Website"
colors:
  navy: "#12263A"
  navy_raised: "#1B3350"
  white: "#FCFBF7"
  deck_line: "#D8DCE0"
  deck_gray: "#8C959D"
  brass: "#B98F4E"
  brass_light: "#D3AC6C"
  ink: "#1B2B3A"
  haze: "#9FB4C2"
typography:
  display_and_body_headlines_card_names_copy_crisp_sans_labels_uppercase_tracked_0_14em: { family: "Archivo", weights: [400, 500, 600, 700] }
  mono_every_measurable_thing_spec_lines_filters_prices_stop_numbers_notes_deck_gray_labels: { family: "Roboto Mono", weights: [400, 500, 700] }
spacing: "Chart-table orderly: sections py-28 (112px) desktop / py-20 mobile; content max-w-6xl px-6/px-10; white panels carry 28px padding with 1px deckline borders; spec rows sit on hairlines with 14px mono padding; the route map panel gets full content width."
radius: "Ship-shape restraint: 6px on panels, cards and photos; 999px pills on the two CTAs and filter chips; the SVG hull and deck regions keep 4px corners."
---

# Yacht Charter 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
- **Navy** `#12263A` — Page ground on both pages — deep nautical navy.
- **Navy raised** `#1B3350` — Hover tints on navy, filter-chip grounds, footer band.
- **White** `#FCFBF7` — Panels, fleet cards, spec tables, deck plans and route map — the chart paper.
- **Deck line** `#D8DCE0` — Hairlines on white: table rules, card borders, SVG deck strokes.
- **Deck gray** `#8C959D` — Mono labels on white and secondary text on navy; the SVG landmass and deck fills.
- **Brass** `#B98F4E` — The accent: route lines and stop numbers, prices, CTAs, leader lines, active chips.
- **Brass light** `#D3AC6C` — Hover and emphasis on brass; hero label on photography.
- **Ink** `#1B2B3A` — Primary text on white — navy-black ink for headlines and body.
- **Haze** `#9FB4C2` — Secondary text on navy: captions, sample notes, meta lines.

## Typography
- **Display and body — headlines, card names, copy (crisp sans; labels uppercase tracked 0.14em)** — Archivo (OFL), weights 400/500/600/700. Self-host the font files.
- **Mono — every measurable thing: spec lines, filters, prices, stop numbers, notes (deck-gray labels)** — Roboto Mono (Apache-2.0), weights 400/500/700. Self-host the font files.

## Spacing & shape
- Spacing: Chart-table orderly: sections py-28 (112px) desktop / py-20 mobile; content max-w-6xl px-6/px-10; white panels carry 28px padding with 1px deckline borders; spec rows sit on hairlines with 14px mono padding; the route map panel gets full content width.
- Radius: Ship-shape restraint: 6px on panels, cards and photos; 999px pills on the two CTAs and filter chips; the SVG hull and deck regions keep 4px corners.

## Motion
- Fleet re-sort: AnimatePresence with layout animations — cards glide to their new positions (350ms) while filtered-out cards scale to 96% and fade (250ms); counts in the mono caption update instantly.
- Route map: switching itineraries crossfades the dotted brass route (300ms) and the numbered stop circles pop in staggered 60ms; the coastline stays put.
- Hero: the photograph parallaxes at 0.06 of scroll (the page's only parallax) and settles 1.03→1 over 2.5s; the mono label leads the headline by 120ms.
- Deck plan: cabin rects fade in staggered 80ms on first view; leader lines draw 400ms.
- Reveals: sections and cards fade up (y 20→0, 700ms cubic-bezier(0.16,1,0.3,1)) with 100ms stagger via Motion whileInView, once.
- prefers-reduced-motion: layout re-sorting and crossfades become instant, parallax and settles off, all reveals plain 200ms opacity fades.

## Imagery
One sea, one light: bright Mediterranean yacht photography in brilliant midday clarity — white hulls against deep azure water, salt haze on the horizon, crisp nautical contrast, uncluttered compositions. Yachts at anchor and under way, teak decks with brass fittings, and an unnamed coastline from the air; crew appear only as distant figures with no identifiable faces. No readable text anywhere in frame, no logos, no flags or ensigns of any kind. The six photographs are generated by VibeFather and downloaded into public/images.

## Tone
Chart-table precise and salt-cured: short declarative lines, mono numbers, no adjectives doing the work of a photograph.

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

改成你自己的

  • 爱琴海的配备船员的帆船船队:将 BRAND 和 PORT 设置为你自己的基地,用你的帆船替换四个船队条目,并用你真实的岛屿停靠点重写两条行程。
  • 日租双体船运营商:保留可筛选的船队网格,去掉周租金,改为按日计算的起步价,并将航线地图缩短为单条下午环线。
  • 没有自有船只的租赁经纪公司:将船队卡片用于你代理的游艇,将报价表单指向你的咨询收件箱,并将所有租金标注为示例,直到确认。
  • 为客户建站的精品经纪工作室:按客户设置 BRAND、WATERS 和 PORT,将海光照片条替换为客户自己的游艇摄影,并保留等宽规格行以呈现精确细节。

游艇租赁网站:常见问题

如何在游艇租赁网站模板中更改船队、租金和巡航海域?

游艇租赁网站模板将所有面向用户的值集中在一个内容文件中:品牌、海域、港口、起步周租金,以及船队数组,其中包含每艘游艇的名称、类型、米数、宾客数、舱室数、租金、照片和简介。编辑这些条目后,首页和游艇详情页都会更新。行程及其停靠点和路线路径也位于同一文件中,因此路线和租金在整个网站中保持一致。

怎么用 AI 做一个游艇租赁网站?

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