跳到正文
VibeFather
免费注册

用这个模板做的 2 个案例

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

关于这个模板

一个销售单本电子书的单页网站:一个由 3D 倾斜封面模型锚定的主视觉(CSS 透视、指针响应、CSS 设置排版背后的艺术图);一个诚实的样章邮件捕获;一个包含页数的八章目录;一个“书内摘录”引用条;一个带有肖像和资质勾选的作者简介;一个六条引用的评论墙;三个定价层级(电子书、电子书 + 工作手册、团队包),其中中间层级突出显示;一个简短的常见问题;以及一个安静的页脚。默认内容销售一本虚构作者撰写的虚构非虚构类书籍,但该结构适用于任何电子书、指南或工作手册。外观是温暖的纸质编辑风格:奶油色底色、墨色衬线标题(Fraunces)、一个琥珀色点缀、书籍作为对象的摄影。所有文案都放在一个内容文件中;替换四个变量即可重写整个页面。作者肖像是 AI 生成的虚构人物。任何地方都没有真实的书籍、作者、出版商、畅销书徽章或零售商标志。

模板提示词

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

# Ebook Sales Landing Page

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

## Brief
A single-page site that sells one ebook: [TITLE] by [AUTHOR], a practical field guide to [TOPIC], priced at [PRICE]. The hero is a 3D-tilted cover mockup; below it a free-chapter capture, the full chapter list, an inside-peek strip, the author's bio with portrait, a review wall, three pricing tiers and a short FAQ. One page, index.html; everything runs in the browser and nothing is submitted anywhere.

- Audience: Readers who skim the table of contents before the testimonials: professionals and makers deciding in three minutes whether the book solves a problem they have.
- Goal: Sell the ebook and capture sample-chapter emails. Within ten seconds a visitor sees the cover, the promise and the price; within two minutes they have read three chapter lines and hit a buy button.
- Tone: Warm, plain and confident, like a well-made colophon. No hype words, no 'unleash', one dry joke per screen at most.

## 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-variable/fraunces (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, then keep one real HTML page: 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 (paper, cream, card, ink, softink, amber, amber-deep, amber-mist, rule, moss, covernavy) and fontFamily display ['Fraunces Variable', 'Georgia', 'serif'], sans ['Public Sans Variable', 'system-ui', 'sans-serif']. Set borderRadius DEFAULT to 8px and add maxWidth { container: '1160px' }.
  - In src/fonts.ts import '@fontsource-variable/fraunces' and '@fontsource-variable/public-sans'; import src/fonts.ts and src/index.css from the entry file.
  - File layout: src/content.ts (every string, chapter, review, tier, faq and image path, typed), src/lib/brand.ts (authorSlug = [AUTHOR] lowercased with every run of non-alphanumeric characters replaced by '-', emailDomain = authorSlug without hyphens + '.com'), src/lib/storage.ts (safe localStorage get/set wrapped in try/catch, key authorSlug + ':sample').
  - State: src/store/sample.ts is a tiny external store (useSyncExternalStore) holding { email, sent } for the sample form, persisted to localStorage.
  - Components in src/components/: Header.tsx, Reveal.tsx (Motion whileInView wrapper), Eyebrow.tsx, Footer.tsx, StarRow.tsx (drawn SVG stars); Hero.tsx (CoverMock.tsx), SampleStrip.tsx, Chapters.tsx (ChapterRow.tsx), InsidePeek.tsx, AuthorBio.tsx, Reviews.tsx (ReviewCard.tsx), Pricing.tsx (TierCard.tsx), Faq.tsx (FaqRow.tsx). src/pages/Home.tsx composes them.
  - CoverMock: a div in perspective (1200px) holding a preserve-3d card (aspect 3:4, width ~340px desktop / 260px mobile): front face = cover-art.webp with a subtle amber-to-transparent overlay gradient and the typography set in CSS (eyebrow chip 'A FIELD GUIDE', title in Fraunces 600, author at the foot); left edge = a 14px page block (repeating-linear-gradient page lines on Card); right edge = a 10px spine in Cover Navy. Floor shadow: a blurred ellipse that shifts with tilt. Pointer move over the hero rotates the card between -9deg and 9deg on Y and -5deg to 5deg on X (lerped, 120ms out). Default resting pose: rotateY(-16deg) rotateX(4deg) so the page edge reads. prefers-reduced-motion: resting pose only, no pointer tracking.
  - 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='#FBF7EF'>, <link rel='icon' href='./favicon.svg' type='image/svg+xml'>, <title>[TITLE] — an ebook by [AUTHOR]</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 four images. Keep it under 8 MB.

## Variables
- [TITLE] — Book title (default: "The Quiet Craft"). The ebook's title, title case. Appears in the H1, the cover mockup typography, the title tag and every section that names the book. Invented, never a real book.
- [AUTHOR] — Author name (default: "Maren Holt"). The invented author's name. Drives the wordmark, the cover foot, the bio, the footer credit and the email hello@ + authorSlug without hyphens + '.com'. Never a real author.
- [TOPIC] — Topic phrase (default: "making work that lasts"). One lowercase phrase naming what the book teaches. Rewrites the eyebrow, the H1 subline, chapter promises and the author bio hook. Keep it concrete.
- [PRICE] — Ebook price (default: "$19"). The single-copy price with currency symbol. The middle and team tiers derive from it (+$10, ×5 with a discount line) — rewrite those lines if you change it.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/ebook-sales-landing-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
- Paper `#FBF7EF` — Page background throughout.
- Cream `#F3EDE0` — Alternate section background (Sample, Reviews), chip fills, hover fill.
- Card `#FFFFFF` — Cards, tier cards, FAQ rows, form input fill.
- Ink `#201B14` — Headlines and body ink, icon color.
- Soft Ink `#5C544A` — Secondary text, eyebrows, captions, chapter promises.
- Amber `#B7521E` — Primary: chapter numbers, links, primary buttons, highlighted tier border, stars, focus ring.
- Amber Deep `#93411A` — Hover and pressed primary.
- Amber Mist `#F6E4D7` — Selected chip fills, 'Most popular' chip background.
- Rule `#E7DFCF` — 1px hairlines, card borders, input borders.
- Moss `#6B7F4F` — Checkmarks in tier features and trust rows.
- Cover Navy `#223042` — The cover spine, the eyebrow chip on the cover face, dark pull-quote text on cream.

### Typography
- Display: H1, H2, tier names, chapter titles, the cover title, italic pull-quotes — Fraunces, warm ink serif with soft terminals: Fraunces (OFL), weights 400/600
- Text and UI: body, buttons, forms, captions, chapter metadata; tabular numerals for page counts and prices: Public Sans (OFL), weights 400/500/600

### Layout & motion
- Spacing: 8px base unit. Container max-width 1160px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. 12-column grid, column gap 24px. Section vertical padding 96px desktop, 72px under 1024px, 56px under 640px. Type scale: H1 clamp(40px, 5.6vw, 68px) Fraunces 600, line-height 1.08; H2 clamp(26px, 3.4vw, 40px) Fraunces 600; chapter titles Fraunces 600 21px; lead Public Sans 400 17.5px / 1.65 Ink at 90%, max-width 54ch; body 15.5px / 1.7; eyebrow Public Sans 600 12px uppercase letter-spacing 0.16em Soft Ink; caption 13px Soft Ink. Buttons: height 48px, Public Sans 600 14px; primary Amber fill with Paper text, secondary 1px Ink border on Card. Inputs: height 48px, 1px Rule border, Card fill, focus Amber border + 2px offset ring. Focus everywhere: 2px Amber outline, 3px offset.
- Radius: 8px on cards, buttons, inputs, chips and photos. 10px on the cover mockup and tier cards.
- Motion: Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1) for reveals; --ease-io cubic-bezier(0.65, 0, 0.35, 1) for the cover tilt. Bookshop-calm.
- Motion: Reveal: sections wrapped in <Reveal> start opacity 0, translateY(14px) and settle over 700ms --ease-out at 15% viewport (Motion whileInView, once). Siblings stagger 70ms.
- Motion: Hero: the cover mockup enters from rotateY(-40deg) opacity 0 to its resting pose over 900ms; the H1 lines rise 12px; the trust row fades last.
- Motion: Cover tilt: pointer over the hero lerps rotation as described in Setup; leaving snaps back to resting over 300ms.
- Motion: Chapters: rows reveal in order; hover raises the amber chapter number 2px and slides a 24px amber underline under the title.
- Motion: Sample form: submit swaps the form for a check line with a 260ms crossfade; the small print stays visible.
- Motion: Reviews: cards reveal with a 60ms stagger; stars fill amber one by one on first view (40ms apart).
- Motion: Pricing: the highlighted tier lifts 6px on hover; feature checkmarks draw in (SVG stroke) on first view.
- Motion: FAQ: rows expand with a 240ms height ease; the plus icon rotates 45deg to a cross.
- Motion: Links: .link-draw grows a 1px currentColor underline over 260ms on hover and focus-visible.
- Motion: prefers-reduced-motion: reduce — no tilt, no entrance rotations, no star or checkmark drawing; content sits at rest immediately; color and border hovers stay. Use CSS @media in index.css plus Motion's useReducedMotion.
- Imagery: Four photographs, all made for this template in one warm editorial style: cream and amber tones, soft daylight, paper texture. The cover art is abstract layered-paper geometry with no readable text — the title and author are typeset in CSS on the mockup so they follow the variables. The author portrait is an AI-generated fictional person (a woman in her 40s at a writing desk, natural working shot, not resembling any real individual). No logos, no readable text, no brand marks in any photo; other photos contain no people. Every photo object-fit cover, 8px corners; photos on Paper get a 1px Rule outline. Icons: lucide-react only, stroke width 1.75. The favicon and the star row are drawn SVG.

## Pages & Sections
### Ebook sales page (`index.html`)
1. **Content file and copy rules** — All copy below is written for the defaults ([TITLE] = The Quiet Craft, [AUTHOR] = Maren Holt, [TOPIC] = making work that lasts, [PRICE] = $19). Put every string, chapter, review, tier, FAQ row and image path in src/content.ts and render from it. If any variable differs, rewrite the H1 subline, all eight chapter lines, the bio, the reviews and the tier names so they are specific and believable for that book, keeping the same structure and counts (8 chapters, 6 reviews, 3 tiers, 4 FAQ rows). Chapters (number · title · promise · pages): 01 'Slow is smooth' 'why haste is the expensive option' 18; 02 'The two lists' 'separating what matters from what merely lists' 24; 03 'Small proof' 'shipping tiny, undeniable things' 26; 04 'The maintenance hour' 'keeping what you built from eating you' 22; 05 'Letters you didn't send' 'writing as a thinking tool' 20; 06 'Quiet noes' 'declining without drama' 19; 07 'Rooms that think' 'making meetings earn their keep' 24; 08 'The long middle' 'staying good for a decade' 31. Reviews (quote · name · role): 'I re-read chapter three before every launch week.' 'Dana Whitfield' 'Product lead'; 'The maintenance hour alone was worth the price.' 'Sam Ortiz' 'Freelance developer'; 'Calm, specific, and mercifully short.' 'Priya Raghavan' 'Design director'; 'It reads like a letter from someone a few years ahead of you.' 'Tomas Lind' 'Startup founder'; 'My whole team got the bundle. The workbook is the quiet hero.' 'Aisha Bello' 'Engineering manager'; 'No filler. I checked.' 'Greg Fontaine' 'Newsletter writer'. Tiers: 'Ebook' [PRICE] — 'PDF + EPUB', 'Free updates for the edition', 'Read in an afternoon'; 'Ebook + Workbook' [PRICE] + $10 — everything in Ebook plus '58-page workbook', 'The twelve-week checklist', chip 'MOST POPULAR' (Amber border, lifted); 'Team pack' [PRICE] ×5 −20% line 'five copies, one invoice' — everything in Ebook plus 'Five copies', 'A short reading-guide PDF', 'One invoice'. FAQ: 'What format is the book?' 'PDF and EPUB, both DRM-free and yours to keep.'; 'Do I get updates?' 'Yes — every revision of this edition lands in your inbox, free.'; 'What if it isn't for me?' 'Write back within 30 days and it's refunded, no form to fill.'; 'Can I buy for my team?' 'The team pack covers five copies on one invoice; write for more.'
   Layout: n/a
   Motion: n/a
2. **Header** — Left: the wordmark '[AUTHOR]' (Fraunces 600 20px) over 'Author — [TITLE]' (10px uppercase Soft Ink). Right nav (Public Sans 500 14px): 'Chapters' → #chapters, 'Author' → #author, 'Reviews' → #reviews, and a compact primary button 'Get the book' → #pricing. Under 720px: wordmark + button only.
   Layout: Sticky top, height 68px, Paper at 95% with backdrop blur, Rule bottom border.
3. **Hero** — Two columns. Left (6 cols): eyebrow 'A FIELD GUIDE TO [TOPIC]'; H1 '[TITLE].' with the last word in Amber; lead 'A practical book about [TOPIC] — 184 pages, eight chapters, zero filler. Written by [AUTHOR], read in one honest afternoon.'; CTA row: primary 'Get the book — [PRICE]' → #pricing, secondary 'Read chapter one free' → #sample; trust row (Moss checks): 'PDF + EPUB', 'Free edition updates', '30-day refunds'. Right (5 cols, offset 1): the CoverMock, with the caption 'Paperback sold out twice; electrons remain.' under it.
   Layout: Paper background, 112px top padding. Cover centered in its column, max-height 520px.
4. **Sample strip** — Section id='sample' on Cream. Left (5 cols): eyebrow 'FREE CHAPTER'; H2 'Chapter one, on the house.'; body 'The whole of Slow is smooth, straight to your inbox. One email, then silence until you ask for more.' Right (6 cols, offset 1): the inline form — email input (placeholder '[email protected]') + primary button 'Send chapter one' + small print 'Sample store: this demo saves your address in your browser only and sends nothing.' On submit: check line 'Done — chapter one is in your browser's memory (this demo stores nothing anywhere else).'
   Layout: Two-column card on Card with Rule border, 8px radius, 40px inner padding; stacked under 900px.
5. **Chapters** — Section id='chapters'. Eyebrow 'THE TABLE OF CONTENTS'; H2 'Eight chapters, no padding.' Eight ChapterRows: big amber number (Fraunces 600 28px), title (Fraunces 600 21px) with promise under (Public Sans 15px Soft Ink), right-aligned page count (Public Sans 500 14px tabular Soft Ink). Hairline between rows.
   Layout: Paper background; rows are a 48px-tall baseline grid; number column 72px fixed; 2-column chapter layout (4+4) above 1100px, single column below.
6. **Inside peek** — Three pull-quote cards styled like open book pages: Card fill, top rule in Amber 3px, Fraunces italic 400 22px quotes — 'Haste is a tax. You always pay it, usually twice.'; 'The list that matters fits on an index card. The other list is a wishlist wearing a suit.'; 'Maintained things whisper. Neglected things eventually scream.' Each with a chapter chip ('Ch. 01', 'Ch. 02', 'Ch. 05'). Behind the middle card, desk-flatlay.webp as a small tilted photo (10deg, 1px Rule outline).
   Layout: Cream background; 3 columns 24px gap (1 under 800px); middle card raised 12px.
7. **Author** — Section id='author'. Left (4 cols): author-portrait.webp (3:4), 1px Rule outline, caption 'Maren, mid-edit (photo: fictional, like the coffee)'. Right (7 cols, offset 1): eyebrow 'THE AUTHOR'; H2 'Written by a human, edited by several.'; two paragraphs: '[AUTHOR] has spent fourteen years [TOPIC] — first badly, then less badly, lately with something like a system. She writes the newsletter 'Small Proof', read weekly by 40,000 makers (sample figure).' and 'This book is the newsletter's patient older sibling: slower, longer, and it doesn't ask you to forward it to a friend.'; credential ticks (Moss): '14 years in the workshop', 'Newsletter · 40k readers (sample)', 'Two earlier ebooks, both refundable'. Link chip 'Read the newsletter' (href '#' with title 'Demo link').
   Layout: Paper background; portrait column sticky on desktop; stacked under 900px.
8. **Reviews** — Section id='reviews' on Cream. Eyebrow 'EARLY READERS'; H2 'Short sentences from real-seeming people.' Six ReviewCards: StarRow (5 amber SVG stars), quote (Public Sans 400 16px / 1.6), name (Public Sans 600 14px) over role (13px Soft Ink).
   Layout: 3 columns 24px gap (2 under 1024px, 1 under 640px); cards on Card with Rule border and a 4px Amber top rule.
9. **Pricing** — Section id='pricing'. Eyebrow 'GET THE BOOK'; H2 'One book, three honest prices.' Three TierCards as in the roster: the middle one carries the Amber 1.5px border, an Amber Mist 'MOST POPULAR' chip and sits 8px higher. Feature rows use Moss check icons. Primary button per tier: 'Get the ebook', 'Get ebook + workbook', 'Get the team pack' — each a link to #sample with the honest small print under the grid: 'Sample store — nothing charges in this demo; the buttons park you at the free chapter.'
   Layout: Paper background; 3 columns 24px gap (1 under 860px); middle card visually dominant.
10. **FAQ and footer** — FAQ: four FaqRows (plus icon rotating to cross) on Card rows. Footer on Cover Navy (bone text #F4EFE6): left '[AUTHOR]' wordmark + 'hello@' + emailDomain; right two lines '© [AUTHOR]. All rights reserved.' and 'Built with a VibeFather template' linking https://vibefather.ai.
   Layout: FAQ on Paper; footer 72px tall, two-part, hairline Rule-dark border top.

## 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/a7138294-e27d-4429-9c87-9dd6b36b58a5/cover-art.webp → public/images/cover-art.webp (the CoverMock face; alt 'Abstract layered-paper cover artwork in navy and amber'); https://media.vibefather.ai/assets/a7138294-e27d-4429-9c87-9dd6b36b58a5/author-portrait.webp → public/images/author-portrait.webp (Author bio; alt 'Portrait of the author at her writing desk'); https://media.vibefather.ai/assets/a7138294-e27d-4429-9c87-9dd6b36b58a5/desk-flatlay.webp → public/images/desk-flatlay.webp (Inside peek backdrop; alt 'Manuscript pages, pencil and coffee on linen'); https://media.vibefather.ai/assets/a7138294-e27d-4429-9c87-9dd6b36b58a5/reader-scene.webp → public/images/reader-scene.webp (Sample strip side image on desktop; alt 'An e-reader resting on a chair-side table'). Four files in total.
- image: Write ASSETS.md at the project root with a table: path, source URL, author, license — one row per photo (source 'media.vibefather.ai, made for this template', author 'VibeFather', license 'Distributed with the template'), plus rows for @fontsource-variable/fraunces and @fontsource-variable/public-sans (OFL-1.1) and lucide-react (ISC). State that the author portrait is an AI-generated fictional person, not resembling any real individual.
- icon: lucide-react only: ArrowRight, Check, BookOpen, FileDown, Mail, Plus, Users. Stroke width 1.75, 16–24px, color inherits. public/favicon.svg: viewBox 0 0 32 32, a 32x32 rounded square filled #B7521E, a Card (#FFFFFF) open-book glyph (two page rectangles with a center spine). No other logo: the author's name is always set as type.
- font: Install @fontsource-variable/fraunces and @fontsource-variable/public-sans and import them in src/fonts.ts as listed in Setup. Vite bundles the woff2 files into dist/.
- image: Drawn in code: the cover mockup's spine and page block (CSS gradients), the StarRow (five inline SVG stars), the favicon. No other bitmaps beyond the four photos.

## Don'ts
- No backend, no form submission, no fetch to API, no payments: the sample form saves in the browser only (localStorage) and the small print says so; buy buttons link to #sample with honest demo copy.
- Every internal link points to a file name or anchor (./index.html, #chapters) — never to a bare directory; there is exactly one page.
- No real books, authors, publishers, bestseller lists or retailer marks (no NYT/Amazon/Kindle/Apple Books badges or logos); the title, author, reviews, reader counts and credentials are invented sample content.
- The cover artwork contains no readable text; the title and author name on the cover are typeset in CSS so they follow the variables.
- The author portrait is an AI-generated fictional person, not resembling any real individual; other photos contain no people; no readable text or logos in any photo.
- 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 8 MB.
- No dates or years anywhere on the page; the site never shows today's date.
- Never mention VibeFather inside the site except the footer credit link; all copy is invented US English.
- Respect prefers-reduced-motion: no tilt, no entrance rotations, no drawing animations; color/border hovers stay.
- The site must work at 1440x900 desktop and 390x844 mobile with zero console errors; form, FAQ and buttons work with keyboard only and visible focus rings.
- Keep the tone hype-free: no 'unleash', no 'game-changer'; every string lives in src/content.ts.

---
— Prompt by VibeFather · https://vibefather.ai/t/ebook-sales-landing-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 电子书销售落地页(Ebook Sales Landing Page)

请完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。

## 简介
一个销售单本电子书的单页网站:[TITLE],作者 [AUTHOR],一本关于 [TOPIC] 的实用实战指南,定价 [PRICE]。首屏是一个 3D 倾斜的封面样机;其下依次是免费章节领取表单、完整章节目录、内容预览条、作者简介与肖像、读者评价墙、三档定价以及简短 FAQ。单页,index.html;一切都在浏览器中运行,不向任何地方提交数据。

- 受众:先看目录再看评价的读者:专业人士和创作者,他们会在三分钟内判断这本书能否解决自己面临的问题。
- 目标:卖出电子书并收集样章订阅邮箱。访客在十秒内看到封面、承诺和价格;在两分钟内读完三行章节标题并点击购买按钮。
- 语气:温暖、平实、自信,像一则精心制作的版权页。不用炒作词汇,不用“unleash”,每屏最多一个冷幽默。

## 技术栈(Stack)
- 框架(Framework):Vite 5 + React 18 + TypeScript
- 样式(Styling):Tailwind CSS 3.4
- 库(Libraries):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-variable/fraunces(OFL-1.1)、@fontsource-variable/public-sans(OFL-1.1)
- 构建(Build):`npm run build` → 静态文件输出到 `dist/`。无后端、无服务端代码、无外部 API。
- 初始化配置(Setup):
  - 使用 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/。
  - Tailwind 3.4 通过 PostCSS 接入,content ['./index.html', './src/**/*.{ts,tsx}']。在 tailwind.config.ts 中,将设计(Design)下的每种颜色以 kebab-case 键添加到 theme.extend.colors(paper、cream、card、ink、softink、amber、amber-deep、amber-mist、rule、moss、covernavy),并设置 fontFamily display ['Fraunces Variable', 'Georgia', 'serif']、sans ['Public Sans Variable', 'system-ui', 'sans-serif']。将 borderRadius DEFAULT 设为 8px,并添加 maxWidth { container: '1160px' }。
  - 在 src/fonts.ts 中导入 '@fontsource-variable/fraunces' 和 '@fontsource-variable/public-sans';从入口文件导入 src/fonts.ts 和 src/index.css。
  - 文件布局:src/content.ts(所有字符串、章节、评论、档位、faq 和图片路径,带类型),src/lib/brand.ts(authorSlug = [AUTHOR] 转为小写,并将每一段连续的非字母数字字符替换为 '-',emailDomain = 去掉连字符的 authorSlug + '.com'),src/lib/storage.ts(用 try/catch 包裹的安全 localStorage get/set,键为 authorSlug + ':sample')。
  - 状态(State):src/store/sample.ts 是一个小型外部 store(useSyncExternalStore),保存示例表单的 { email, sent },并持久化到 localStorage。
  - 组件位于 src/components/:Header.tsx、Reveal.tsx(Motion whileInView 包装器)、Eyebrow.tsx、Footer.tsx、StarRow.tsx(绘制的 SVG 星星);Hero.tsx(CoverMock.tsx)、SampleStrip.tsx、Chapters.tsx(ChapterRow.tsx)、InsidePeek.tsx、AuthorBio.tsx、Reviews.tsx(ReviewCard.tsx)、Pricing.tsx(TierCard.tsx)、Faq.tsx(FaqRow.tsx)。src/pages/Home.tsx 将它们组合起来。
  - CoverMock:一个处于透视(perspective: 1200px)中的 div,包含一个 preserve-3d 卡片(宽高比 3:4,桌面端宽度约 340px / 移动端 260px):正面 = cover-art.webp,带有微妙的琥珀色到透明的叠加渐变,排版用 CSS 设置(eyebrow 标签 'A FIELD GUIDE',标题使用 Fraunces 600,作者在底部);左边缘 = 14px 的书页块(在 Card 上使用 repeating-linear-gradient 绘制页面线条);右边缘 = 10px 的 Cover Navy 书脊。地面阴影:一个随倾斜移动的模糊椭圆。指针在 hero 上移动时,卡片在 Y 轴上旋转 -9deg 到 9deg,在 X 轴上旋转 -5deg 到 5deg(线性插值,120ms 退出)。默认静止姿态:rotateY(-16deg) rotateX(4deg),以便看到书页边缘。prefers-reduced-motion:仅静止姿态,无指针跟踪。
  - 在首次构建之前,使用 curl -L -o 和给定的确切文件名,将资源(Assets)下列出的每张图片下载到 public/images/。构建本身从不获取任何内容。
  - public/favicon.svg 如资源(Assets)下所述。index.html:lang en,<meta name='theme-color' content='#FBF7EF'>,<link rel='icon' href='./favicon.svg' type='image/svg+xml'>,<title>[TITLE] — an ebook by [AUTHOR]</title>。
  - 在项目根目录编写 ASSETS.md,如资源(Assets)下所述。
  - dist/ 包含 index.html、带哈希的 JS/CSS、woff2 字体、favicon.svg 和四张图片。保持在 8 MB 以下。

## 变量
- [TITLE] — 书名(默认:“The Quiet Craft”)。电子书的标题,采用标题大小写。出现在 H1、封面样机排版、标题标签以及所有提及书名的区块中。为虚构内容,绝非真实书籍。
- [AUTHOR] — 作者姓名(默认:“Maren Holt”)。虚构作者的姓名。用于文字标识、封面底部、作者简介、页脚署名,以及电子邮件 hello@ + 不含连字符的 authorSlug + '.com'。绝非真实作者。
- [TOPIC] — 主题短语(默认:“making work that lasts”)。一个全小写的短语,说明本书所教授的内容。用于改写眉题、H1 副标题、章节承诺和作者简介钩子。保持具体。
- [PRICE] — 电子书价格(默认:“$19”)。单本价格,含货币符号。中间档和团队档由此推导(+$10,×5 并附折扣行)——若更改价格,请重写这些行。
- [CREDIT] — 在页脚保留一个小型“Template by VibeFather”链接,指向 https://vibefather.ai/t/ebook-sales-landing-page(默认:是;删除此行即可移除)

“页面与区块”下的文案是为默认值编写的。如果你的值不同,请为它们重写每个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便日后无需改动组件即可替换内容。

## 设计
### 颜色(Colors)
- Paper `#FBF7EF` — 全站页面背景。
- Cream `#F3EDE0` — 交替区块背景(Sample、Reviews)、chip 填充、悬停填充。
- Card `#FFFFFF` — 卡片、档位卡片、FAQ 行、表单输入框填充。
- Ink `#201B14` — 标题与正文墨色、图标颜色。
- Soft Ink `#5C544A` — 次要文本、eyebrow、说明文字、章节承诺语。
- Amber `#B7521E` — 主色:章节编号、链接、主按钮、高亮档位边框、星标、焦点环。
- Amber Deep `#93411A` — 悬停与按下状态的主色。
- Amber Mist `#F6E4D7` — 选中 chip 填充、“Most popular” chip 背景。
- Rule `#E7DFCF` — 1px 细线、卡片边框、输入框边框。
- Moss `#6B7F4F` — 档位特性与信任行中的对勾。
- Cover Navy `#223042` — 封面书脊、封面正面上的 eyebrow chip、Cream 背景上的深色引文文本。

### 排版(Typography)
- 展示字体:H1、H2、档位名称、章节标题、封面标题、斜体引文 — Fraunces,暖墨色衬线体,带柔和终端:Fraunces(OFL),字重 400/600
- 文本与 UI:正文、按钮、表单、说明文字、章节元数据;页码与价格使用表格数字:Public Sans(OFL),字重 400/500/600

### 布局与动效(Layout & motion)
- 间距:8px 基准单位。容器最大宽度 1160px,居中,侧边内边距桌面端 48px、平板端 32px、640px 以下 20px。12 列网格,列间距 24px。区块垂直内边距桌面端 96px、1024px 以下 72px、640px 以下 56px。字号比例:H1 clamp(40px, 5.6vw, 68px) Fraunces 600,行高 1.08;H2 clamp(26px, 3.4vw, 40px) Fraunces 600;章节标题 Fraunces 600 21px;导语 Public Sans 400 17.5px / 1.65 Ink 90%,最大宽度 54ch;正文 15.5px / 1.7;eyebrow Public Sans 600 12px 大写 letter-spacing 0.16em Soft Ink;说明文字 13px Soft Ink。按钮:高度 48px,Public Sans 600 14px;主按钮 Amber 填充配 Paper 文字,次按钮 Card 上 1px Ink 边框。输入框:高度 48px,1px Rule 边框,Card 填充,聚焦时 Amber 边框 + 2px 偏移环。全局焦点:2px Amber 轮廓,3px 偏移。
- 圆角:卡片、按钮、输入框、chip 和照片为 8px。封面 mockup 和档位卡片为 10px。
- 动效:缓动:--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(14px),在视口 15% 处用 700ms --ease-out 稳定下来(Motion whileInView,once)。同级元素错开 70ms。
- 动效:Hero:封面 mockup 从 rotateY(-40deg) opacity 0 进入静止姿态,历时 900ms;H1 各行上升 12px;信任行最后淡入。
- 动效:封面倾斜:指针悬停在 hero 上时按 Setup 中所述对旋转做 lerp;离开时在 300ms 内弹回静止状态。
- 动效:章节:各行按顺序显现;悬停时琥珀色章节编号上浮 2px,并在标题下方滑入 24px 琥珀色下划线。
- 动效:Sample 表单:提交时以 260ms 交叉淡入将表单替换为对勾行;小字保持可见。
- 动效:Reviews:卡片以 60ms 错开显现;星标在首次进入视口时逐个填充为琥珀色(间隔 40ms)。
- 动效:Pricing:高亮档位悬停时上浮 6px;特性对勾在首次进入视口时绘制出现(SVG stroke)。
- 动效:FAQ:各行以 240ms 高度缓动展开;加号图标旋转 45deg 变为叉号。
- 动效:链接:.link-draw 在悬停和 focus-visible 时用 260ms 生长出 1px currentColor 下划线。
- 动效:prefers-reduced-motion: reduce — 无倾斜、无入场旋转、无星标或对勾绘制;内容立即处于静止状态;颜色和边框悬停保留。在 index.css 中使用 CSS @media 以及 Motion 的 useReducedMotion。
- 图像:四张照片,全部为本模板以同一种温暖编辑风格制作:奶油色与琥珀色调、柔和日光、纸张质感。封面艺术为抽象层叠纸张几何图形,无可读文字——标题和作者在 mockup 上用 CSS 排版,以便跟随变量。作者肖像为 AI 生成的虚构人物(一位 40 多岁的女性坐在写作桌前,自然工作照,不似任何真实个人)。任何照片中均无 logo、无可读文字、无品牌标记;其他照片不含人物。每张照片 object-fit cover,8px 圆角;Paper 上的照片带 1px Rule 轮廓。图标:仅 lucide-react,描边宽度 1.75。favicon 和星标行使用 SVG 绘制。

## 页面与区块
### 电子书销售页(`index.html`)
1. **内容文件与文案规则** — 以下所有文案均按默认值编写([TITLE] = The Quiet Craft,[AUTHOR] = Maren Holt,[TOPIC] = making work that lasts,[PRICE] = $19)。将每个字符串、章节、评论、档位、FAQ 行和图片路径放入 src/content.ts 并从中渲染。若任何变量不同,请重写 H1 副标题、全部八个章节行、作者简介、评论和档位名称,使其针对该书具体且可信,同时保持相同的结构和数量(8 章、6 条评论、3 个档位、4 行 FAQ)。章节(编号 · 标题 · 承诺 · 页数):01 'Slow is smooth' 'why haste is the expensive option' 18;02 'The two lists' 'separating what matters from what merely lists' 24;03 'Small proof' 'shipping tiny, undeniable things' 26;04 'The maintenance hour' 'keeping what you built from eating you' 22;05 'Letters you didn't send' 'writing as a thinking tool' 20;06 'Quiet noes' 'declining without drama' 19;07 'Rooms that think' 'making meetings earn their keep' 24;08 'The long middle' 'staying good for a decade' 31。评论(引语 · 姓名 · 角色):'I re-read chapter three before every launch week.' 'Dana Whitfield' 'Product lead';'The maintenance hour alone was worth the price.' 'Sam Ortiz' 'Freelance developer';'Calm, specific, and mercifully short.' 'Priya Raghavan' 'Design director';'It reads like a letter from someone a few years ahead of you.' 'Tomas Lind' 'Startup founder';'My whole team got the bundle. The workbook is the quiet hero.' 'Aisha Bello' 'Engineering manager';'No filler. I checked.' 'Greg Fontaine' 'Newsletter writer'。档位:'Ebook' [PRICE] — 'PDF + EPUB'、'Free updates for the edition'、'Read in an afternoon';'Ebook + Workbook' [PRICE] + $10 — 包含 Ebook 全部内容外加 '58-page workbook'、'The twelve-week checklist',标签 'MOST POPULAR'(琥珀色边框,上浮);'Team pack' [PRICE] ×5 −20% 行 'five copies, one invoice' — 包含 Ebook 全部内容外加 'Five copies'、'A short reading-guide PDF'、'One invoice'。FAQ:'What format is the book?' 'PDF and EPUB, both DRM-free and yours to keep.';'Do I get updates?' 'Yes — every revision of this edition lands in your inbox, free.';'What if it isn't for me?' 'Write back within 30 days and it's refunded, no form to fill.';'Can I buy for my team?' 'The team pack covers five copies on one invoice; write for more.'
   布局:不适用
   动效:不适用
2. **页眉** — 左侧:字标 '[AUTHOR]'(Fraunces 600 20px),下方为 'Author — [TITLE]'(10px 大写 Soft Ink)。右侧导航(Public Sans 500 14px):'Chapters' → #chapters、'Author' → #author、'Reviews' → #reviews,以及一个紧凑的主按钮 'Get the book' → #pricing。低于 720px:仅显示字标 + 按钮。
   布局:顶部粘性,高度 68px,Paper 95% 带背景模糊,Rule 底部边框。
3. **首屏** — 两栏。左侧(6 列):眉题 'A FIELD GUIDE TO [TOPIC]';H1 '[TITLE].',最后一个词为琥珀色;导语 'A practical book about [TOPIC] — 184 pages, eight chapters, zero filler. Written by [AUTHOR], read in one honest afternoon.';CTA 行:主按钮 'Get the book — [PRICE]' → #pricing,次按钮 'Read chapter one free' → #sample;信任行(Moss 勾选):'PDF + EPUB'、'Free edition updates'、'30-day refunds'。右侧(5 列,偏移 1):CoverMock,下方说明文字 'Paperback sold out twice; electrons remain.'。
   布局:Paper 背景,顶部内边距 112px。封面在其列中居中,最大高度 520px。
4. **样章条** — 区块 id='sample',位于 Cream 上。左侧(5 列):眉题 'FREE CHAPTER';H2 'Chapter one, on the house.';正文 'The whole of Slow is smooth, straight to your inbox. One email, then silence until you ask for more.' 右侧(6 列,偏移 1):内联表单 — 邮箱输入框(占位符 '[email protected]')+ 主按钮 'Send chapter one' + 小字 'Sample store: this demo saves your address in your browser only and sends nothing.' 提交时:勾选行 'Done — chapter one is in your browser's memory (this demo stores nothing anywhere else).'
   布局:Card 上的双栏卡片,Rule 边框,8px 圆角,40px 内边距;低于 900px 时堆叠。
5. **章节** — 区块 id='chapters'。眉题 'THE TABLE OF CONTENTS';H2 'Eight chapters, no padding.' 八个 ChapterRow:大号琥珀色数字(Fraunces 600 28px),标题(Fraunces 600 21px)下方为承诺(Public Sans 15px Soft Ink),右对齐页数(Public Sans 500 14px 表格数字 Soft Ink)。行间细线。
   布局:Paper 背景;行为 48px 高基线网格;数字列固定 72px;高于 1100px 时为双栏章节布局(4+4),低于则为单栏。
6. **内页预览** — 三张引语卡片,样式如打开的书页:Card 填充,顶部琥珀色 3px 线条,Fraunces 斜体 400 22px 引语 — 'Haste is a tax. You always pay it, usually twice.';'The list that matters fits on an index card. The other list is a wishlist wearing a suit.';'Maintained things whisper. Neglected things eventually scream.' 每张带章节标签('Ch. 01'、'Ch. 02'、'Ch. 05')。中间卡片后方,desk-flatlay.webp 作为小幅倾斜照片(10deg,1px Rule 轮廓)。
   布局:Cream 背景;3 列 24px 间距(低于 800px 为 1 列);中间卡片上浮 12px。
7. **作者** — 区块 id='author'。左侧(4 列):author-portrait.webp(3:4),1px Rule 轮廓,说明文字 'Maren, mid-edit (photo: fictional, like the coffee)'。右侧(7 列,偏移 1):眉题 'THE AUTHOR';H2 'Written by a human, edited by several.';两段文字:'[AUTHOR] has spent fourteen years [TOPIC] — first badly, then less badly, lately with something like a system. She writes the newsletter 'Small Proof', read weekly by 40,000 makers (sample figure).' 和 'This book is the newsletter's patient older sibling: slower, longer, and it doesn't ask you to forward it to a friend.';资质勾选(Moss):'14 years in the workshop'、'Newsletter · 40k readers (sample)'、'Two earlier ebooks, both refundable'。链接标签 'Read the newsletter'(href '#',title 'Demo link')。
   布局:Paper 背景;桌面端肖像列粘性;低于 900px 时堆叠。
8. **评论** — 区块 id='reviews',位于 Cream 上。眉题 'EARLY READERS';H2 'Short sentences from real-seeming people.' 六个 ReviewCard:StarRow(5 颗琥珀色 SVG 星),引语(Public Sans 400 16px / 1.6),姓名(Public Sans 600 14px)下方角色(13px Soft Ink)。
   布局:3 列 24px 间距(低于 1024px 为 2 列,低于 640px 为 1 列);卡片位于 Card 上,带 Rule 边框和 4px 琥珀色顶部线条。
9. **定价** — 区块 id='pricing'。眉题 'GET THE BOOK';H2 'One book, three honest prices.' 三个 TierCard 如清单所述:中间一个带琥珀色 1.5px 边框、琥珀色 Mist 'MOST POPULAR' 标签,并高出 8px。功能行使用 Moss 勾选图标。每个档位的主按钮:'Get the ebook'、'Get ebook + workbook'、'Get the team pack' — 每个都是指向 #sample 的链接,网格下方有诚实的小字:'Sample store — nothing charges in this demo; the buttons park you at the free chapter.'
   布局:Paper 背景;3 列 24px 间距(低于 860px 为 1 列);中间卡片视觉上占主导。
10. **FAQ 与页脚** — FAQ:四个 FaqRow(加号图标旋转为叉号)位于 Card 行上。页脚位于 Cover Navy(骨色文字 #F4EFE6):左侧 '[AUTHOR]' 字标 + 'hello@' + emailDomain;右侧两行 '© [AUTHOR]. All rights reserved.' 和 'Built with a VibeFather template' 链接至 https://vibefather.ai。
    布局:FAQ 位于 Paper 上;页脚高 72px,两部分,顶部细线 Rule-dark 边框。

## 资源

- 图片:为本设计制作的模板照片(可随模板自由再分发)。用 curl -L -o 将每个文件下载到 public/images/:https://media.vibefather.ai/assets/a7138294-e27d-4429-9c87-9dd6b36b58a5/cover-art.webp → public/images/cover-art.webp(CoverMock 封面;alt 'Abstract layered-paper cover artwork in navy and amber');https://media.vibefather.ai/assets/a7138294-e27d-4429-9c87-9dd6b36b58a5/author-portrait.webp → public/images/author-portrait.webp(作者简介;alt 'Portrait of the author at her writing desk');https://media.vibefather.ai/assets/a7138294-e27d-4429-9c87-9dd6b36b58a5/desk-flatlay.webp → public/images/desk-flatlay.webp(内页预览背景;alt 'Manuscript pages, pencil and coffee on linen');https://media.vibefather.ai/assets/a7138294-e27d-4429-9c87-9dd6b36b58a5/reader-scene.webp → public/images/reader-scene.webp(桌面端试读条侧图;alt 'An e-reader resting on a chair-side table')。共四个文件。
- 图片:在项目根目录写入 ASSETS.md,包含一张表格:路径、来源 URL、作者、许可证——每张照片一行(来源 'media.vibefather.ai, made for this template',作者 'VibeFather',许可证 'Distributed with the template'),另加 @fontsource-variable/fraunces 和 @fontsource-variable/public-sans(OFL-1.1)以及 lucide-react(ISC)的行。注明作者肖像是 AI 生成的虚构人物,与任何真实个人无关。
- 图标:仅使用 lucide-react:ArrowRight、Check、BookOpen、FileDown、Mail、Plus、Users。描边宽度 1.75,16–24px,颜色继承。public/favicon.svg:viewBox 0 0 32 32,一个 32x32 圆角方块填充 #B7521E,一个 Card(#FFFFFF)打开的书本图形(两个页面矩形,中间有书脊)。不使用其他标志:作者姓名始终以文字排版呈现。
- 字体:安装 @fontsource-variable/fraunces 和 @fontsource-variable/public-sans,并按“设置”中所列在 src/fonts.ts 中导入它们。Vite 会将 woff2 文件打包进 dist/。
- 图片:以代码绘制:封面样机的书脊和书页块(CSS 渐变)、StarRow(五个内联 SVG 星形)、favicon。除四张照片外不使用其他位图。

## 禁止事项(Don'ts)
- 无后端、无表单提交、无 API 请求、无支付:示例表单仅在浏览器中保存(localStorage),细则中已说明;购买按钮链接到 #sample,并配有诚实的演示文案。
- 每个内部链接都指向文件名或锚点(./index.html、#chapters)——绝不指向裸目录;只有一个页面。
- 不使用真实书籍、作者、出版商、畅销书榜单或零售商标识(不得出现 NYT/Amazon/Kindle/Apple Books 徽章或标志);标题、作者、评论、读者数量和资质均为虚构的示例内容。
- 封面图不含可读文字;封面上的标题和作者名通过 CSS 排版,以便跟随变量变化。
- 作者肖像为 AI 生成的虚构人物,不相似于任何真实个人;其他照片不含人物;任何照片中均无可读文字或标志。
- 全部自托管:字体通过 Fontsource,图标使用 npm 包或内联 SVG,图片下载至 public/images/。不使用 CDN 的 <script> 或 <link> 标签,不使用 Google Fonts,不使用分析工具。
- 生产构建:压缩、无 source map、不将 src/ 复制到 dist/,单一命令 npm run build,输出在 dist/ 下且小于 8 MB。
- 页面上任何位置均不出现日期或年份;网站从不显示当天日期。
- 除页脚署名链接外,网站内绝不提及 VibeFather;所有文案均为虚构的美式英语。
- 遵循 prefers-reduced-motion:无倾斜、无入场旋转、无绘制动画;颜色/边框悬停效果保留。
- 网站必须在 1440x900 桌面端和 390x844 移动端正常工作,控制台零错误;表单、FAQ 和按钮仅用键盘即可操作,并具有可见的焦点环。
- 保持无炒作语气:不使用“unleash”,不使用“game-changer”;每个字符串都存放在 src/content.ts 中。

---
— Prompt by VibeFather · https://vibefather.ai/t/ebook-sales-landing-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: "Ebook Sales Landing Page"
colors:
  paper: "#FBF7EF"
  cream: "#F3EDE0"
  card: "#FFFFFF"
  ink: "#201B14"
  soft_ink: "#5C544A"
  amber: "#B7521E"
  amber_deep: "#93411A"
  amber_mist: "#F6E4D7"
  rule: "#E7DFCF"
  moss: "#6B7F4F"
  cover_navy: "#223042"
typography:
  display_h1_h2_tier_names_chapter_titles_the_cover_title_italic_pull_quotes_fraunces_warm_ink_serif_with_soft_terminals: { family: "Fraunces", weights: [400, 600] }
  text_and_ui_body_buttons_forms_captions_chapter_metadata_tabular_numerals_for_page_counts_and_prices: { family: "Public Sans", weights: [400, 500, 600] }
spacing: "8px base unit. Container max-width 1160px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. 12-column grid, column gap 24px. Section vertical padding 96px desktop, 72px under 1024px, 56px under 640px. Type scale: H1 clamp(40px, 5.6vw, 68px) Fraunces 600, line-height 1.08; H2 clamp(26px, 3.4vw, 40px) Fraunces 600; chapter titles Fraunces 600 21px; lead Public Sans 400 17.5px / 1.65 Ink at 90%, max-width 54ch; body 15.5px / 1.7; eyebrow Public Sans 600 12px uppercase letter-spacing 0.16em Soft Ink; caption 13px Soft Ink. Buttons: height 48px, Public Sans 600 14px; primary Amber fill with Paper text, secondary 1px Ink border on Card. Inputs: height 48px, 1px Rule border, Card fill, focus Amber border + 2px offset ring. Focus everywhere: 2px Amber outline, 3px offset."
radius: "8px on cards, buttons, inputs, chips and photos. 10px on the cover mockup and tier cards."
---

# Ebook Sales Landing 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
- **Paper** `#FBF7EF` — Page background throughout.
- **Cream** `#F3EDE0` — Alternate section background (Sample, Reviews), chip fills, hover fill.
- **Card** `#FFFFFF` — Cards, tier cards, FAQ rows, form input fill.
- **Ink** `#201B14` — Headlines and body ink, icon color.
- **Soft Ink** `#5C544A` — Secondary text, eyebrows, captions, chapter promises.
- **Amber** `#B7521E` — Primary: chapter numbers, links, primary buttons, highlighted tier border, stars, focus ring.
- **Amber Deep** `#93411A` — Hover and pressed primary.
- **Amber Mist** `#F6E4D7` — Selected chip fills, 'Most popular' chip background.
- **Rule** `#E7DFCF` — 1px hairlines, card borders, input borders.
- **Moss** `#6B7F4F` — Checkmarks in tier features and trust rows.
- **Cover Navy** `#223042` — The cover spine, the eyebrow chip on the cover face, dark pull-quote text on cream.

## Typography
- **Display: H1, H2, tier names, chapter titles, the cover title, italic pull-quotes — Fraunces, warm ink serif with soft terminals** — Fraunces (OFL), weights 400/600. Self-host the font files.
- **Text and UI: body, buttons, forms, captions, chapter metadata; tabular numerals for page counts and prices** — Public Sans (OFL), weights 400/500/600. Self-host the font files.

## Spacing & shape
- Spacing: 8px base unit. Container max-width 1160px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. 12-column grid, column gap 24px. Section vertical padding 96px desktop, 72px under 1024px, 56px under 640px. Type scale: H1 clamp(40px, 5.6vw, 68px) Fraunces 600, line-height 1.08; H2 clamp(26px, 3.4vw, 40px) Fraunces 600; chapter titles Fraunces 600 21px; lead Public Sans 400 17.5px / 1.65 Ink at 90%, max-width 54ch; body 15.5px / 1.7; eyebrow Public Sans 600 12px uppercase letter-spacing 0.16em Soft Ink; caption 13px Soft Ink. Buttons: height 48px, Public Sans 600 14px; primary Amber fill with Paper text, secondary 1px Ink border on Card. Inputs: height 48px, 1px Rule border, Card fill, focus Amber border + 2px offset ring. Focus everywhere: 2px Amber outline, 3px offset.
- Radius: 8px on cards, buttons, inputs, chips and photos. 10px on the cover mockup and tier cards.

## Motion
- Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1) for reveals; --ease-io cubic-bezier(0.65, 0, 0.35, 1) for the cover tilt. Bookshop-calm.
- Reveal: sections wrapped in <Reveal> start opacity 0, translateY(14px) and settle over 700ms --ease-out at 15% viewport (Motion whileInView, once). Siblings stagger 70ms.
- Hero: the cover mockup enters from rotateY(-40deg) opacity 0 to its resting pose over 900ms; the H1 lines rise 12px; the trust row fades last.
- Cover tilt: pointer over the hero lerps rotation as described in Setup; leaving snaps back to resting over 300ms.
- Chapters: rows reveal in order; hover raises the amber chapter number 2px and slides a 24px amber underline under the title.
- Sample form: submit swaps the form for a check line with a 260ms crossfade; the small print stays visible.
- Reviews: cards reveal with a 60ms stagger; stars fill amber one by one on first view (40ms apart).
- Pricing: the highlighted tier lifts 6px on hover; feature checkmarks draw in (SVG stroke) on first view.
- FAQ: rows expand with a 240ms height ease; the plus icon rotates 45deg to a cross.
- Links: .link-draw grows a 1px currentColor underline over 260ms on hover and focus-visible.
- prefers-reduced-motion: reduce — no tilt, no entrance rotations, no star or checkmark drawing; content sits at rest immediately; color and border hovers stay. Use CSS @media in index.css plus Motion's useReducedMotion.

## Imagery
Four photographs, all made for this template in one warm editorial style: cream and amber tones, soft daylight, paper texture. The cover art is abstract layered-paper geometry with no readable text — the title and author are typeset in CSS on the mockup so they follow the variables. The author portrait is an AI-generated fictional person (a woman in her 40s at a writing desk, natural working shot, not resembling any real individual). No logos, no readable text, no brand marks in any photo; other photos contain no people. Every photo object-fit cover, 8px corners; photos on Paper get a 1px Rule outline. Icons: lucide-react only, stroke width 1.75. The favicon and the star row are drawn SVG.

## Tone
Warm, plain and confident, like a well-made colophon. No hype words, no 'unleash', one dry joke per screen at most.

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

改成你自己的

  • 独立顾问:将 TITLE 和 AUTHOR 设置为你所在领域的指南,将八个章节替换为你方法的步骤,并将简介勾选重写为你合作过的客户行业。
  • 销售工作手册的课程创作者:保留样章捕获,但将其重命名为免费工作表,并将中间层级设置为 PRICE 加 $10 的工作手册捆绑包。
  • 发布团队手册的小型机构:使用团队包层级进行批量许可,并将作者简介替换为简短的机构简介,将评论替换为客户引语。
  • 发布捐赠者指南的非营利组织:将 PRICE 设置为建议捐款,围绕分发重写常见问题,并将章节承诺更改为你的读者搜索的主题。

电子书销售落地页:常见问题

如何更改电子书销售落地页上的书名、作者和价格?

电子书销售落地页模板由四个变量驱动:TITLE、AUTHOR、TOPIC 和 PRICE。设置一次,H1、封面排版、标题标签、作者简介、页脚署名和定价层级都会自动重写。中间层级在 PRICE 基础上增加 $10,团队包则将其乘以五,因此如果你的数字不同,请重写这两行。

电子书销售落地页上的 3D 书籍封面是如何工作的?

电子书销售落地页模板用 CSS 构建封面,而不是真实书籍的照片:一个透视卡片,带有正面、页块边缘和海军蓝书脊。将指针移到主视觉上时,它会在 Y 轴上在 -9 到 9 度之间倾斜,在 X 轴上在 -5 到 5 度之间倾斜,并且它静止在一个轻微的角度,以便页面边缘可读。开启减少动态效果的访客只会看到静止姿态。

怎么用 AI 做一个电子书销售落地页?

复制本页的提示词,或者运行 npx vibefather add ebook-sales-landing-page,把 [PRICE]、[TITLE]、[TOPIC]、[AUTHOR] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。