关于这个模板
一个用于在线课程的单页销售页:首屏在绘制的视频框(封面图、播放提示、时长徽章)上展示课程承诺,点击后打开一个诚实的占位弹窗;成果展示条附带明确标注为示例的数据;六模块课程大纲手风琴,列出课时和时长;讲师简介以故事形式讲述,配有工作场景图片但不含肖像;三个学员成果故事,数字标注为示例;定价区包含全款与三期付款切换,以及包含内容清单;一份用平实语言写成的 30 天保证;以及八个问题的常见问题解答。默认内容推销的是一个虚构的迷你游戏工作坊,但这套结构适用于任何技能课程——字体设计、摄影、电子表格:更改课程名称、主题、讲师和价格后,每个模块、成果和回答依然读起来真实可信。视觉风格是温暖的工作坊编辑风:奶油色和胡桃木色表面、浓缩咖啡色文字、一抹金盏花黄作为点缀,Domine 标题搭配 Assistant 正文,成果数字使用等宽数字,长滚动节奏配合安静的入场动画。摄影图片展示桌面、工具和材料,不出现人脸和可读文字。要适配你的课程,只需替换变量并在一个内容文件中重写文案;模块、成果、付款方案和常见问题都从该文件读取。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Online Course Sales Page
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
A single-page sales page for [COURSE], an online course teaching [TOPIC], taught by [INSTRUCTOR], priced $[PRICE] or three payments of $[PRICE]/3-ish (plan math exact in content.ts). It must do the long-form job in one scroll: promise + video-frame hero (placeholder modal, honest), sample outcome strip, six-module curriculum accordion, instructor story, three sample results, full-pay/3-pay pricing with inclusions, a 30-day guarantee, and an eight-question FAQ. One page: index.html with sections (#curriculum, #instructor, #results, #pricing, #faq). Everything runs in the browser; nothing is submitted anywhere.
- Audience: Hobbyists and career-switchers 22–45 who have three tabs of similar courses open and a folder of abandoned projects. They buy when the curriculum proves depth, the results feel honest, and the guarantee removes the last excuse.
- Goal: Sell the enrollment. Within ten seconds a visitor knows what they'll make and that it's for beginners; within three minutes they've read two modules, one result and the guarantee.
- Tone: Encouraging and specific, like the instructor's first email to a student: concrete outcomes ('you will ship a 60-second game'), zero income claims, one warm joke per screen.
## 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 (MIT), tailwindcss (MIT), postcss (MIT), autoprefixer (MIT), vite (MIT), @vitejs/plugin-react (MIT), typescript (Apache-2.0), @fontsource/domine (OFL-1.1), @fontsource-variable/assistant (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, content ['./index.html', './src/**/*.{ts,tsx}']. In tailwind.config.ts add every color under Design to theme.extend.colors with kebab-case keys (cream, walnut, card, espresso, roast, marigold, marigold-deep, sage, rule) and fontFamily display ['Domine', 'Georgia', 'serif'], sans ['Assistant Variable', 'system-ui', 'sans-serif']. Set borderRadius DEFAULT to 14px and add maxWidth { container: '1080px' } — a letter-width read.
- In src/fonts.ts import '@fontsource/domine/500.css', '@fontsource/domine/700.css' and '@fontsource-variable/assistant'; import src/fonts.ts and src/index.css from the entry file.
- File layout: src/content.ts (every string, module, lesson, run time, result, plan, inclusion, FAQ answer and image path, typed), src/lib/brand.ts (courseSlug = [COURSE] lowercased with every run of non-alphanumeric characters replaced by '-', emailDomain = 'hello.' + instructorSlug + '.example' style invented address: instructor@ + courseSlug without hyphens + '.com'), src/lib/storage.ts (safe localStorage get/set wrapped in try/catch, keys prefixed with courseSlug + ':').
- State: src/store/plan.ts is a tiny external store (useSyncExternalStore) holding { plan: 'full' | 'three' } persisted to localStorage key courseSlug + ':plan'; the pricing card, sticky CTA and final CTA all read the same plan price.
- Components in src/components/: Header.tsx (sticky with an always-visible Enroll button reading the live plan price), Hero.tsx (VideoFrame.tsx — poster, play glyph, duration badge; PlayModal.tsx — the honest placeholder), OutcomeStrip.tsx, Curriculum.tsx (ModuleAccordion.tsx), Instructor.tsx, Results.tsx (ResultCard.tsx), Pricing.tsx (PlanToggle.tsx, IncludedList.tsx), Guarantee.tsx, Faq.tsx, FinalCta.tsx, Footer.tsx, Reveal.tsx (Motion whileInView wrapper), Eyebrow.tsx. src/pages/Home.tsx composes them.
- Before the first build, download every image listed under Assets into public/images/ with curl -L -o using the exact file names given. The build itself never fetches anything.
- public/favicon.svg as described under Assets. index.html: lang en, <meta name='theme-color' content='#FAF6EE'>, <link rel='icon' href='./favicon.svg' type='image/svg+xml'>, <title>[COURSE] — Learn [TOPIC] from zero</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
- [COURSE] — Course name (default: "Tiny Games Workshop"). Invented course title. Used in the title, hero, header, footer, localStorage keys and the enrollment button ('Enroll — $[PRICE]'). Never a real course.
- [TOPIC] — What it teaches (default: "making tiny 2D games from scratch"). One lowercase phrase for the skill. Drives the hero promise, module titles, two results and three FAQ answers. Keep it beginner-true (no prior experience needed).
- [INSTRUCTOR] — Instructor (default: "Theo Marsh"). The invented teacher's name. Used in the bio, the video modal ('a note from [INSTRUCTOR]'), results' context and the footer signature. Never a real person.
- [PRICE] — Full price (default: "149"). The full-payment price as digits. The three-pay plan is exactly 3 × $55 for the default ($165 total, stated plainly); if [PRICE] differs, the plan prices recompute in content.ts as round thirds + $16 with the total shown. Drives the pricing card, sticky CTA and final CTA.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/online-course-sales-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.Pro 模板
解锁完整提示词和源码
- 完整提示词:设计、版块、动效、素材
- 每个在线演示的源码
- 商用授权
在线演示和 DESIGN.md 仍然免费。
DESIGN.md
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
name: "Online Course Sales Page"
colors:
cream: "#FAF6EE"
walnut: "#EFE6D5"
card: "#FFFEFA"
espresso: "#2E241C"
roast: "#5C4E40"
marigold: "#D98A1F"
marigold_deep: "#B8710F"
sage: "#6E7F5E"
rule: "#E2D8C4"
typography:
display_h1_h2_h3_module_titles_the_course_name_price_figures: { family: "Domine", weights: [500, 700] }
text_and_ui_body_eyebrows_buttons_accordion_lessons_faq_captions_tabular_numerals_for_run_times_and_figures: { family: "Assistant", weights: [400, 600, 700] }
spacing: "8px base unit. Container max-width 1080px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. Single column with two-column hero and bio. Section vertical padding 96px desktop, 72px under 1024px, 56px under 640px. Type scale: H1 clamp(40px, 6vw, 68px) Domine 700, line-height 1.05; H2 clamp(30px, 4vw, 46px) Domine 700; H3 22px Domine 700; lead Assistant 400 18px / 1.7 Espresso at 90%; body 16px / 1.75 (max-width 66ch); eyebrow Assistant 700 12px uppercase letter-spacing 0.16em Roast, preceded by a 24px x 2px Marigold line; caption 13px Roast. Buttons: height 52px, Assistant 700 15px. Primary (Enroll): Marigold fill, Card text. Secondary: 1px Espresso/30% border, Espresso text. Inputs: none (no forms). Focus ring everywhere: 2px Marigold outline with 3px offset."
radius: "14px on cards, the video frame, accordion panels, buttons and the guarantee panel. 999px only for chips, the play circle, duration badge and module numbers."
---
# Online Course Sales 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** `#FAF6EE` — Page background throughout.
- **Walnut** `#EFE6D5` — Alternate section background (Curriculum, Results, FAQ), hover fill, chips.
- **Card** `#FFFEFA` — Pricing card, accordion panels, result cards, the video frame.
- **Espresso** `#2E241C` — Headlines, body text, icon color, the play glyph.
- **Roast** `#5C4E40` — Secondary text, captions, eyebrows, run-time lines.
- **Marigold** `#D98A1F` — The one accent: Enroll buttons, the play affordance, module numbers, price figures, focus ring, checkmarks.
- **Marigold Deep** `#B8710F` — Button hover and pressed, open accordion's number fill.
- **Sage** `#6E7F5E` — Quiet second color: the guarantee's shield, 'included' ticks, sample-data captions.
- **Rule** `#E2D8C4` — 1px hairlines, card borders, accordion dividers, video frame border.
## Typography
- **Display: H1, H2, H3, module titles, the course name, price figures** — Domine (OFL), weights 500/700. Self-host the font files.
- **Text and UI: body, eyebrows, buttons, accordion lessons, FAQ, captions; tabular numerals for run times and figures** — Assistant (OFL), weights 400/600/700. Self-host the font files.
## Spacing & shape
- Spacing: 8px base unit. Container max-width 1080px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. Single column with two-column hero and bio. Section vertical padding 96px desktop, 72px under 1024px, 56px under 640px. Type scale: H1 clamp(40px, 6vw, 68px) Domine 700, line-height 1.05; H2 clamp(30px, 4vw, 46px) Domine 700; H3 22px Domine 700; lead Assistant 400 18px / 1.7 Espresso at 90%; body 16px / 1.75 (max-width 66ch); eyebrow Assistant 700 12px uppercase letter-spacing 0.16em Roast, preceded by a 24px x 2px Marigold line; caption 13px Roast. Buttons: height 52px, Assistant 700 15px. Primary (Enroll): Marigold fill, Card text. Secondary: 1px Espresso/30% border, Espresso text. Inputs: none (no forms). Focus ring everywhere: 2px Marigold outline with 3px offset.
- Radius: 14px on cards, the video frame, accordion panels, buttons and the guarantee panel. 999px only for chips, the play circle, duration badge and module numbers.
## Motion
- Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1) for reveals and accordions; --ease-io cubic-bezier(0.65, 0, 0.35, 1) for plan toggles and the modal. Warm and steady — a page you scroll with coffee.
- Reveal: blocks wrapped in <Reveal> start at opacity 0, translateY(14px) and settle over 700ms --ease-out when 15% visible (Motion whileInView, viewport once). Siblings stagger 80ms.
- Hero: H1 rises from 20px with 130ms stagger; the video frame scales from 1.03 to 1.0 over 2000ms; the play circle pulses gently (scale 1→1.06, 2400ms loop, disabled under reduced motion); the duration badge fades last.
- PlayModal: overlay Espresso at 45% fades 200ms; the Card panel rises 16px over 280ms --ease-out; content — a drawn play glyph struck through, 'The demo has no video — the real course page would play one here.' and a one-line note from [INSTRUCTOR]. Escape/overlay click closes; focus returns to the play button.
- Curriculum accordion: one module open at a time (single-open); opening slides height 0→auto 340ms --ease-io; the module number fills Marigold; lesson rows stagger in 30ms; the Plus rotates 45 degrees into an X. Run-time totals count to the module sum on open.
- PlanToggle: the sliding thumb moves 220ms --ease-io; both price figures crossfade and the savings line swaps; the header Enroll button's price crossfades in sync (shared store).
- Result cards: the sample figures count up once on reveal (700ms); the '(sample)' caption never animates.
- Guarantee: the shield icon draws once (stroke-dashoffset) when scrolled into view.
- FAQ accordions: height and opacity over 300ms --ease-io; Plus rotates.
- Sticky header: transparent over the hero with Espresso text; after 40px, Cream at 95%, blur, 1px Rule border, 250ms; the Enroll button appears at the same moment (hidden while the hero's own CTA is visible).
- Links: .link-draw grows a 1px currentColor underline over 280ms on hover and focus-visible.
- prefers-reduced-motion: reduce — no pulse, scale, counts (final values), staggers or draws; keep color/border hovers. Use CSS @media in index.css plus Motion's useReducedMotion in components.
## Imagery
Real photography only, warm and tactile, all six made for this template in one consistent style: warm desk light, cream and walnut surfaces, tools and materials, fine grain. Never a person — desks, screens with abstract color work, notebooks (blank grids, no readable text), palettes and handmade props. No readable text, logos or brand marks anywhere (screen content is abstract shapes). Every photo uses object-fit cover with the object-position given under Assets, 14px corners, no shadow; photos on Cream get a 1px Rule outline. Captions in Assistant 13px Roast. Drawn in code: the favicon, the play glyph and duration badge, module numbers, checkmarks, the guarantee shield, plan chips and dividers. Icons: lucide-react only, stroke width 1.75.
## Tone
Encouraging and specific, like the instructor's first email to a student: concrete outcomes ('you will ship a 60-second game'), zero income claims, one warm joke per screen.
---
— Prompt by VibeFather · https://vibefather.ai/t/online-course-sales-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 字体设计老师:将 COURSE 和 TOPIC 设为你的手写字体课程,将六个模块重写为工具、笔画和最终作品,并将成果替换为学员作品照片。
- 摄影工作坊主办方:保留课程大纲手风琴和保证,将模块改为相机、光线和编辑,并用你自己的教学经历替换讲师故事。
- 面向办公团队的电子表格技能培训师:围绕公式、仪表盘和报告重新命名模块,并将定价切换设置为你的全款和分期付款金额。
- 由一位导师运营的职业转型训练营:按原样使用讲师故事和 30 天保证,并重写常见问题以回答时间安排、先修要求和时间投入。
在线课程销售页:常见问题
如何更改这个销售页上的课程名称、主题、讲师和价格?
在线课程销售页模板从单个内容文件读取所有字符串,因此你只需在该文件中编辑四个变量:COURSE、TOPIC、INSTRUCTOR 和 PRICE。模板自带虚构的 Tiny Games Workshop、Theo Marsh 和 149 美元的价格。更改这些后,页头报名按钮、首屏承诺、课程大纲、成果、定价卡片和最终行动号召都会随之更新。按相同长度和语气重写段落以匹配你的主题。
怎么用 AI 做一个在线课程销售页?
复制本页的完整提示词(Pro),或者运行 npx vibefather add online-course-sales-page,把 变量 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。