跳到正文
VibeFather
免费注册

用这个模板做的 2 个案例

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

关于这个模板

这是一个为小型跟团游运营商打造的三页式网站:首页展示品牌承诺和精选行程,行程列表页支持按地区、天数、价格区间和风格实时筛选,行程详情页包含逐日行程手风琴、手绘路线图、费用包含与不包含项目,以及一个在客户端完成确认的预订请求表单。默认内容来自一家虚构的运营商,它经营挪威、苏格兰和阿尔卑斯山区的行程,但网站结构适用于任何目的地组合:只需更改品牌、目的地、成立年份和成团人数上限,所有行程、筛选和行程安排依然读起来真实可信。列表页在多个筛选条件组合时保持实时计数;详情页从列表页的查询参数打开,直接打开时显示第一个行程,绝不会报错。整体视觉是开阔的旅行杂志风格:米白纸张底色、深海蓝墨色、一抹珊瑚色点缀,Lora 标题搭配 Public Sans 正文,大幅风景摄影,以及用 SVG 绘制的邮票和票券图案。摄影展示峡湾、高地、山口、村庄和港口——不出现任何人脸。要改编它,只需替换变量并在一个内容文件中重写文案;行程、天数、价格和出发日期都从该文件读取。

模板提示词

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

# Travel Agency Tour Packages Website

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

## Brief
A three-page website for [BRAND], a small-group tour operator founded in [FOUNDED], running trips across [DESTINATIONS] with a maximum of [GROUP_MAX] travelers. It must work like a real operator's site: a home page with featured trips and the why-us strip, a listing with combined filters (region, length, price, style) and a live count, and a detail page per tour with a summary strip, a day-by-day itinerary accordion, an SVG route map, included and excluded lists, and a booking request form that ends in a client-side confirmation with a reference. Pages: index.html, tours.html, tour.html?t=<slug> (first tour when opened without a query). Everything runs in the browser; nothing is submitted anywhere.

- Audience: Travelers 35–65 who have outgrown hostels and buses — they want small groups, real guides, honest itineraries and a price that explains itself. They compare three operators over a week and book the one whose itinerary reads like a person wrote it.
- Goal: Produce booking requests. Within ten seconds a visitor should see where the operator goes and that groups are small; within two minutes they should be reading a day-by-day itinerary and checking a departure.
- Tone: Knowledgable and plain, like a good guide at dinner on day three. Concrete specifics (miles, hours, ferry names), light humor about weather and knees, no 'unforgettable journey' 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/lora (OFL-1.1), @fontsource-variable/public-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. Three real HTML pages at the project root: index.html (entry src/main-home.tsx), tours.html (src/main-tours.tsx) and tour.html (src/main-tour.tsx).
  - vite.config.ts: base './', plugins [react()], build { outDir 'dist', sourcemap false, assetsInlineLimit 0, rollupOptions { input { index: resolve(__dirname, 'index.html'), tours: resolve(__dirname, 'tours.html'), tour: resolve(__dirname, 'tour.html') } } }. Do not copy src/ into dist/.
  - Tailwind 3.4 through PostCSS (tailwindcss + postcss + autoprefixer), content ['./index.html', './tours.html', './tour.html', './src/**/*.{ts,tsx}']. In tailwind.config.ts add every color under Design to theme.extend.colors with kebab-case keys (paper, vellum, card, navy, navy-soft, ink, slate-blue, coral, coral-deep, sand, rule) and fontFamily display ['Lora', 'Georgia', 'serif'], sans ['Public Sans Variable', 'system-ui', 'sans-serif']. Set borderRadius DEFAULT to 10px and add maxWidth { container: '1240px' }.
  - In src/fonts.ts import '@fontsource/lora/500.css', '@fontsource/lora/600.css', '@fontsource/lora/500-italic.css' and '@fontsource-variable/public-sans'; import src/fonts.ts and src/index.css from all three entry files.
  - File layout: src/content.ts (every string, number, tour, day, departure, filter, testimonial and image path, typed), src/lib/brand.ts (brandSlug = [BRAND] lowercased with every run of non-alphanumeric characters replaced by '-', brandInitials, emailDomain = brandSlug without hyphens + '.com'), src/lib/storage.ts (safe localStorage get/set wrapped in try/catch, keys prefixed with brandSlug + ':'), src/lib/tour.ts (reads the query 'tour.html?t=<slug>' from location.search, returns the matching tour or the first — never a not-found), src/lib/filters.ts (applyFilters(tours, { region, length, price, style }) with the bands defined in content.ts).
  - State: src/store/request.ts is a tiny external store (useSyncExternalStore) holding the booking draft { tourSlug, departure, travelers, name, email, note } and the submitted flag per tour, persisted to localStorage key brandSlug + ':request:<tourSlug>'.
  - Components in src/components/: Header.tsx, MobileMenu.tsx, Reveal.tsx (Motion whileInView wrapper), Eyebrow.tsx, StampBadge.tsx (drawn circular stamp), Footer.tsx; home: Hero.tsx, Featured.tsx (TourCard.tsx), WhyUs.tsx, Testimonials.tsx; tours: ToursMasthead.tsx, FilterRail.tsx (RegionPicker, LengthPicker, PricePicker, StylePicker), ResultsGrid.tsx (with empty state); tour: TourHero.tsx, SummaryStrip.tsx, Itinerary.tsx (DayAccordion.tsx), RouteMap.tsx (inline SVG), Inclusions.tsx, BookingForm.tsx (DepartureSelect.tsx, TravelersStepper.tsx, RequestCard.tsx), NextTour.tsx. src/pages/Home.tsx, Tours.tsx, Tour.tsx compose them; every page renders 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. All three HTML files: lang en, <meta name='theme-color' content='#F6F2E9'>, <link rel='icon' href='./favicon.svg' type='image/svg+xml'>. Titles: index.html '<title>[BRAND] — Small-group tours in [DESTINATIONS]</title>', tours.html '<title>All tours — [BRAND]</title>', tour.html '<title>Tours — [BRAND]</title>' (the tour page sets document.title to the tour name on load).
  - Write ASSETS.md at the project root as described under Assets.
  - dist/ holds the three HTML files, hashed JS/CSS, the woff2 fonts, favicon.svg and the six images. Keep it under 12 MB.

## Variables
- [BRAND] — Operator name (default: "Northbound Trails"). Invented tour operator name. Used in the wordmark, titles, footer, email (hello@ + brandSlug without hyphens + .com), localStorage keys and booking references (initials, e.g. NT-8104). Never a real operator or travel brand.
- [DESTINATIONS] — Destinations (default: "Norway, Scotland and the Alps"). The three regions the operator runs, comma-separated. Drives the region filter, the hero line, the eight tours' assignments and the route maps. Keep exactly three regions; towns, hotels and ferries inside itineraries stay invented-sounding where they are partners, real where they are public geography (cities, ferry routes).
- [FOUNDED] — Year founded (default: "2013"). Four-digit year. Drives the footer line, the why-us strip ('since [FOUNDED]') and the guides' tenure spans.
- [GROUP_MAX] — Group maximum (default: "12"). The small-group cap as digits. Drives every tour's summary strip, the travelers stepper's maximum and the why-us copy. Keep it 8–16.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/travel-agency-tour-packages-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: "Travel Agency Tour Packages Website"
colors:
  paper: "#F6F2E9"
  vellum: "#EFE9DC"
  card: "#FCFAF4"
  navy: "#163A4A"
  navy_soft: "#215063"
  slate_blue: "#5C7385"
  coral: "#D96A4B"
  coral_deep: "#BC5539"
  sand: "#C9A227"
  rule: "#DDD5C4"
typography:
  display_h1_h2_h3_tour_names_day_titles_prices_in_large_sizes_the_wordmark: { family: "Lora", weights: [500, 600] }
  text_and_ui_body_eyebrows_buttons_nav_form_fields_itinerary_body_numbers_font_variant_numeric_tabular_nums_for_prices_and_days: { family: "Public Sans", weights: [400, 600, 700] }
spacing: "8px base unit. Container max-width 1240px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. 12-column grid, column gap 24px. Section vertical padding 112px desktop, 80px under 1024px, 64px under 640px. Type scale: H1 clamp(46px, 6.8vw, 92px) Lora 500, line-height 1.04; H2 clamp(32px, 4.2vw, 56px) Lora 500, line-height 1.08; H3 24px Lora 600; italic phrases in headings use Lora 500 italic (marked with *asterisks* in content.ts and rendered as <em>); lead Public Sans 400 18px / 1.7 Navy at 88%; body Public Sans 400 16px / 1.7 (max-width 64ch); eyebrow Public Sans 700 12px uppercase letter-spacing 0.18em Slate Blue, preceded by a 24px x 2px Coral line with 12px gap; caption Public Sans 400 13px Slate Blue. Buttons: height 50px, padding 0 26px, Public Sans 700 14px letter-spacing 0.04em. Primary: Coral fill, Card text. Secondary: 1px Navy border, Navy text. Small buttons 38px. Inputs: height 50px, 1px Rule border, Card fill, 16px Public Sans, focus border Coral. Focus ring everywhere: 2px Coral outline with 3px offset."
radius: "10px on cards, buttons, inputs, chips, photos, accordions and the form panel. 999px only for pills (difficulty, days), the stepper buttons and map stop dots."
---

# Travel Agency Tour Packages 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
- **Paper** `#F6F2E9` — Page background on all pages.
- **Vellum** `#EFE9DC` — Alternate section background (listing rail, itinerary), hover fill, image wells.
- **Card** `#FCFAF4` — Card surfaces (tour cards, accordion panels, form), input fill.
- **Navy** `#163A4A` — Headlines and body ink, footer background, hero overlays (as rgba(22,58,74,x)), selected filters.
- **Navy Soft** `#215063` — Hover surface on Navy, accordion open state fill, map water fills.
- **Slate Blue** `#5C7385` — Secondary text, captions, eyebrows, disabled filters (at 45%).
- **Coral** `#D96A4B` — The one accent: primary buttons, prices, stamps, selected departure, focus ring, route line on maps.
- **Coral Deep** `#BC5539` — Primary button hover and pressed state.
- **Sand** `#C9A227` — Quiet second color: stars in testimonials, map compass highlights, 'next departure' ticks. Never for body text.
- **Rule** `#DDD5C4` — 1px hairlines, card borders, input borders, map contour lines.

## Typography
- **Display: H1, H2, H3, tour names, day titles, prices in large sizes, the wordmark** — Lora (OFL), weights 500/600. Self-host the font files.
- **Text and UI: body, eyebrows, buttons, nav, form fields, itinerary body, numbers (font-variant-numeric tabular-nums for prices and days)** — Public Sans (OFL), weights 400/600/700. Self-host the font files.

## Spacing & shape
- Spacing: 8px base unit. Container max-width 1240px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. 12-column grid, column gap 24px. Section vertical padding 112px desktop, 80px under 1024px, 64px under 640px. Type scale: H1 clamp(46px, 6.8vw, 92px) Lora 500, line-height 1.04; H2 clamp(32px, 4.2vw, 56px) Lora 500, line-height 1.08; H3 24px Lora 600; italic phrases in headings use Lora 500 italic (marked with *asterisks* in content.ts and rendered as <em>); lead Public Sans 400 18px / 1.7 Navy at 88%; body Public Sans 400 16px / 1.7 (max-width 64ch); eyebrow Public Sans 700 12px uppercase letter-spacing 0.18em Slate Blue, preceded by a 24px x 2px Coral line with 12px gap; caption Public Sans 400 13px Slate Blue. Buttons: height 50px, padding 0 26px, Public Sans 700 14px letter-spacing 0.04em. Primary: Coral fill, Card text. Secondary: 1px Navy border, Navy text. Small buttons 38px. Inputs: height 50px, 1px Rule border, Card fill, 16px Public Sans, focus border Coral. Focus ring everywhere: 2px Coral outline with 3px offset.
- Radius: 10px on cards, buttons, inputs, chips, photos, accordions and the form panel. 999px only for pills (difficulty, days), the stepper buttons and map stop dots.

## Motion
- Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1) for reveals and grid animations; --ease-io cubic-bezier(0.65, 0, 0.35, 1) for accordions, filters and the booking swap. Nothing bounces.
- Reveal: blocks wrapped in <Reveal> start at opacity 0, translateY(18px) and animate to rest over 800ms --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 2600ms --ease-out; scrolling translates it 0 to 10% (Motion useScroll, offset ['start start', 'end start']) and the headline fades to 0.3. H1 lines rise from translateY(24px) with 140ms stagger; the stamp badge rotates in from -12deg with a 300ms settle.
- Tour cards: hover lifts 4px, photo scales 1.03, and the price ticks up 2px; the 'View itinerary' affordance fades in at the bottom edge.
- Listing filtering: cards use Motion layout with AnimatePresence mode 'popLayout'; leaving cards fade and scale to 0.97 over 200ms, survivors glide over 400ms --ease-io; the count crossfades; an empty state ('No trips match — loosen a filter or two.') fades in when zero results, with a Reset link.
- Filter rail: chips fill Navy with Card text over 150ms; the section label ('Region', 'Length', 'Price', 'Style') keeps a small Coral rule that slides under the active group (Motion layoutId).
- Itinerary accordions: day rows open height 0 to auto and opacity 0 to 1 over 340ms --ease-io; the day number pill fills Coral when open; the Plus rotates 45 degrees into an X; opening one closes the others (single-open).
- Route map: when it enters view, the route line draws (stroke-dashoffset to 0) over 1200ms, then stops pop with 120ms stagger and their labels fade; the stamp rotates in last.
- Booking form: departure chips select over 150ms; the stepper counts pulse; submitting slides the form out and the RequestCard in (16px rise, 320ms --ease-io, AnimatePresence mode 'wait'); the reference (brandInitials + '-' + four digits) types character by character over 700ms.
- Header: transparent over the home hero with Card text; after 40px of scroll it gets Paper at 94% opacity, backdrop-filter blur(10px), Navy text and a 1px Rule border, 250ms transition. Solid from the start on tours.html and tour.html.
- 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, stamp rotate, draws, count-ups, type-in and layout animations (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, wide-open and airy, all six made for this template in one consistent style: big skies, cool blues and greens with warm light accents, documentary editorial look, fine grain. Never a person — fjords, roads, passes, villages, rails and harbors. No readable text or logos anywhere. Every photo uses object-fit cover with the object-position given under Assets, 10px corners, no shadow; photos on Paper get a 1px Rule outline. Captions below photos in Public Sans 13px Slate Blue. Drawn in code: the favicon, the wordmark (type only), the circular stamp badges, difficulty pills, route maps (contours, water, route line, stops), the ticket-style request card and dividers. Icons: lucide-react only, stroke width 1.5.

## Tone
Knowledgable and plain, like a good guide at dinner on day three. Concrete specifics (miles, hours, ferry names), light humor about weather and knees, no 'unforgettable journey' clichés, no exclamation marks.

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

改成你自己的

  • 徒步旅行公司:将 [DESTINATIONS] 设为你徒步路线所在的地区,[GROUP_MAX] 设为你的徒步团人数上限,并将每天的行程改写为距离和爬升,而不是渡轮班次。
  • 美食美酒旅行运营商:保留筛选栏,但将风格重新标记为品鉴、烹饪或市集,并在内容文件中将路线图站点换成葡萄园和生产者。
  • 独自带队的摄影探险向导:将 [BRAND] 设为你的名字,[GROUP_MAX] 设为六人,然后把为什么选择我们的横幅和客户评价改成面向摄影师而非普通旅行者的内容。
  • 骑行度假专家:将逐日行程手风琴指向骑行赛段,包含里程和爬升,并将费用包含与不包含列表替换为自行车租赁、行李转运和保障车详情。

旅行社跟团游网站:常见问题

旅行社跟团游网站模板的行程筛选是怎么工作的?

旅行社跟团游网站模板的行程列表页组合了四个筛选条件:地区、天数、价格区间和风格。它们共同缩小结果范围,而不是一次只用一个,并且在你组合条件时实时更新计数。地区来自你的 DESTINATIONS 变量,所以把它改成你自己的三个地区后,地区选择器和每个行程的地区归属都会自动重新关联,无需改动筛选逻辑。

怎么用 AI 做一个旅行社跟团游网站?

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