跳到正文
VibeFather
免费注册

用这个模板做的 2 个案例

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

关于这个模板

一个面向写作者 Newsletter 的单页订阅页:名称和一句话承诺放在订阅表单和三个可信点旁边,最近三期内容以可阅读的卡片形式预览,订阅人数数字附有明确的示例数据说明,四条读者评价,十期存档列表,一个“你会收到什么”版块和一条退订承诺——当首屏表单滚出视野后,会有一个吸顶订阅栏跟随出现。默认内容是一封虚构作者每周二早上 6 点写的、关于小型软件团队手艺的虚构来信,但页面适用于任何 Newsletter:改掉名称、作者、主题、发送频率和订阅人数,每个版块读起来依然成立。订阅表单在页面内校验,用一张小欢迎卡片确认,并在浏览器中记住读者——不会向任何地方提交。视觉是纸面编辑风:暖色纸张、深棕黑墨色、一个用于链接和表单的哑光红色强调色,标题和正文都用 Newsreader,配 Space Mono 作为眉题字体,往期预览使用首字下沉,最新一期卡片做成信封样式并画有邮票。要适配它,只需替换变量并在一个内容文件里重写文案;往期内容、评价和存档都从该文件读取。

模板提示词

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

# Newsletter Landing Page

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

## Brief
A single-page newsletter sign-up for [BRAND], a weekly letter about [TOPIC], written by [AUTHOR] and sent [CADENCE] to [SUBS] readers (sample figure). It must sell the writing, not describe it: three issue previews, reader quotes, an archive and a subscribe form that never leaves reach — inline validation, a client-side welcome card, and a sticky bar once the hero scrolls off. One page: index.html with sections (#issues, #quotes, #archive, #about). Everything runs in the browser; nothing is submitted anywhere.

- Audience: Readers who already subscribe to too many letters and are deciding whether this one earns the inbox: developers and team leads 25–45 for the default, curious and allergic to growth-hack tone. They read one preview before deciding.
- Goal: Earn the subscribe. Within ten seconds a visitor should know what the letter is about, who writes it and how often; within two minutes they should have read a preview and met the form again.
- Tone: The letter's own voice: warm, precise, a little wry. Concrete beats abstract in every line; no 'join our community', 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-variable/newsreader (OFL-1.1), @fontsource/space-mono (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 (tailwindcss + postcss + autoprefixer), content ['./index.html', './src/**/*.{ts,tsx}']. In tailwind.config.ts add every color under Design to theme.extend.colors with kebab-case keys (paper, wash, card, ink, umber, rule, redlink, redlink-deep, olive-tick) and fontFamily serif ['Newsreader Variable', 'Georgia', 'serif'], mono ['Space Mono', 'ui-monospace', 'monospace']. Set borderRadius DEFAULT to 6px and add maxWidth { container: '1000px' } — a letter is narrow.
  - In src/fonts.ts import '@fontsource-variable/newsreader' (with its italic axis) and '@fontsource/space-mono/400.css', '@fontsource/space-mono/700.css'; import src/fonts.ts and src/index.css from the entry file.
  - File layout: src/content.ts (every string, number, issue, quote, archive entry, promise line and cadence, typed), src/lib/brand.ts (brandSlug = [BRAND] lowercased with every run of non-alphanumeric characters replaced by '-', emailDomain = brandSlug without hyphens + '.com'), src/lib/storage.ts (safe localStorage get/set wrapped in try/catch, keys prefixed with brandSlug + ':').
  - State: src/store/subscribe.ts is a tiny external store (useSyncExternalStore) holding { email, subscribed } persisted to localStorage key brandSlug + ':reader'. Subscribing shows the welcome card; 'Not you?' clears it back to the form.
  - Components in src/components/: Header.tsx, SubscribeForm.tsx (validation, WelcomeCard.tsx), StickyBar.tsx (appears after the hero form scrolls off, hides once subscribed), EnvelopeCard.tsx (the latest issue styled as an envelope with the drawn stamp), Reveal.tsx, Eyebrow.tsx, Footer.tsx; Hero.tsx, Issues.tsx (IssueCard.tsx with drop cap), ProofStrip.tsx, Quotes.tsx, Archive.tsx, Inbox.tsx. src/pages/Home.tsx composes them.
  - public/favicon.svg as described under Assets. index.html: lang en, <meta name='theme-color' content='#F8F4EC'>, <link rel='icon' href='./favicon.svg' type='image/svg+xml'>, <title>[BRAND] — A weekly letter about [TOPIC]</title>.
  - Write ASSETS.md at the project root as described under Assets.
  - dist/ holds index.html, hashed JS/CSS, the woff2 fonts and favicon.svg. Keep it under 5 MB — no images.

## Variables
- [BRAND] — Newsletter name (default: "The Margin Note"). Invented newsletter name. Used in the masthead, title, footer, email (hello@ + brandSlug without hyphens + .com) and localStorage keys. Never a real newsletter.
- [AUTHOR] — Author (default: "June Okafor"). The invented writer's name. Used in the byline, the about section, the signature ('— June') and the quotes' context. Never a real writer.
- [TOPIC] — What it's about (default: "the craft of small software teams"). One lowercase phrase. Drives the title, the one-line promise, the issue titles, the quotes and the inbox section. Keep it a field with real stakes, not a category dump.
- [CADENCE] — Cadence (default: "Tuesdays, 6am"). When the letter lands ('Tuesdays, 6am', 'Sundays, 8pm'). Used in the promise line, the proof strip and one FAQ-style line in the inbox section. Day and time, never a dated deadline.
- [SUBS] — Subscriber figure (default: "11,204"). The comma-formatted sample reader count shown in the proof strip and sticky bar. Always labeled '(sample)' the first time it appears. Keep it 1,000–50,000.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/newsletter-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 `#F8F4EC` — Page background throughout.
- Wash `#F0EADD` — Alternate section background (Quotes, Archive), hover fill, chips.
- Card `#FFFEF9` — Issue cards, envelope card, form panel, welcome card.
- Ink `#26211B` — Headlines, body text, the masthead, icon color.
- Umber `#6B6155` — Secondary text, captions, eyebrows, archive metadata.
- Rule `#E0D8C8` — 1px hairlines, card borders, input borders, archive dividers.
- Redlink `#A33B2E` — The one accent: links, the subscribe button, the stamp, selection color, focus ring, drop caps.
- Redlink Deep `#862E23` — Button hover, pressed states.
- Olive Tick `#5C6B4C` — Quiet second color: checkmarks in the inbox list, the 'free' tick, read-time dots.

### Typography
- Display and body: masthead, H1–H3, issue previews, quotes — Newsreader with its optical-size axis doing both jobs: Newsreader (OFL), weights 400/500/600
- Eyebrows and metadata: cadence lines, issue numbers, categories, form labels (uppercase): Space Mono (OFL), weights 400/700

### Layout & motion
- Spacing: 8px base unit. Container max-width 1000px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. Single column flow with a two-column hero. Section vertical padding 96px desktop, 72px under 1024px, 56px under 640px. Type scale: masthead (H1) clamp(48px, 7vw, 92px) Newsreader 500, line-height 1.0, letter-spacing -0.01em; H2 clamp(30px, 4vw, 48px) Newsreader 500; H3 22px Newsreader 600; lead Newsreader 400 19px / 1.65 Ink at 90%; body Newsreader 400 17px / 1.75 (max-width 62ch); issue preview body Newsreader 400 16px / 1.8 with a Redlink drop cap; eyebrow Space Mono 700 11px uppercase letter-spacing 0.22em Umber; caption Space Mono 400 12px Umber. Buttons: height 52px, padding 0 26px, Space Mono 700 13px uppercase letter-spacing 0.1em. Subscribe: Redlink fill, Paper text. Secondary: 1px Ink/30% border, Ink text. Inputs: height 52px, 1px Rule border, Card fill, 16px Newsreader, focus border Redlink. Focus ring everywhere: 2px Redlink outline with 3px offset. Links: Redlink with the .link-draw underline.
- Radius: 6px on cards, the envelope, the form panel and buttons. 999px only for the category chips and read-time dots.
- Motion: Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1) for reveals and the welcome swap; --ease-io cubic-bezier(0.65, 0, 0.35, 1) for the sticky bar and archive hovers. Papery and unhurried.
- Motion: Reveal: blocks wrapped in <Reveal> start at opacity 0, translateY(14px) and animate to rest over 800ms --ease-out when 15% visible (Motion whileInView, viewport once). Siblings stagger by 90ms.
- Motion: Masthead: the three words of the name rise with 120ms stagger; the Redlink period after the name stamps in with a 200ms scale settle.
- Motion: EnvelopeCard: on load the flap's shadow line draws, the stamp tilts in from -6deg to its resting -3deg, and the postmark circle strokes once (600ms, disabled under reduced motion).
- Motion: Subscribe form: invalid emails shake 3px once with the inline line ('Almost — that address is missing a piece'); on submit the button reads 'Subscribing…' for 500ms, then the form area swaps to the WelcomeCard with a 280ms --ease-io slide — 'Welcome aboard.' in Newsreader 500 26px, 'Issue No. 48 lands [CADENCE]. Until then, the archive is right below.' and 'Not you? Use a different address' returning to the form.
- Motion: StickyBar: appears pinned to the bottom (safe-area aware) 200ms after the hero form scrolls fully out, slides up 16px over 260ms; hides the moment subscribed or when the footer is in view; contains a compact form mirroring the hero's.
- Motion: Issue cards: hover lifts 3px and the drop cap ticks Redlink→Redlink Deep; clicking expands the preview to its full first section inline (a 340ms height animation) with a 'fold' line — issues open like letters, not modals.
- Motion: Archive rows: hover fills Wash and the issue number slides 6px into a Redlink tick; rows reveal with 40ms stagger.
- Motion: Quotes: cards reveal with a 4px rise; the opening quote marks stay static (restraint is the point).
- Motion: Links: .link-draw grows a 1px Redlink underline over 300ms on hover and focus-visible; ::selection is Redlink with Paper text.
- Motion: prefers-reduced-motion: reduce — disable stamp/postmark draws, staggers, slides (swap instantly), the sticky bar's slide (it appears in place); keep color and border hover changes. Use CSS @media in index.css plus Motion's useReducedMotion in components.
- Imagery: No photography, no stock, no external images — the page is typography plus drawn postal details. The EnvelopeCard's stamp, postmark and flap shadow are inline SVG; drop caps are CSS ::first-letter; the archive's read-time dots and the inbox checks are drawn. A faint paper-grain (repeating radial-gradient at 2% Ink) sits over the page. Icons: lucide-react only, stroke width 1.5.

## Pages & Sections
### Newsletter (`index.html`)
1. **Content file and copy rules** — All copy below is written for the default values ([BRAND] = The Margin Note, [AUTHOR] = June Okafor, [TOPIC] = the craft of small software teams, [CADENCE] = Tuesdays, 6am, [SUBS] = 11,204). Put every string and number in src/content.ts and render from it. If any variable value differs, rewrite the promise, issue titles and previews, quotes, archive entries and inbox lines so they are specific and believable for the new letter, keeping the same structure and counts (3 previewed issues, 4 quotes, 10 archive rows, 3 inbox bullets). All readers, issues and figures are invented; the subscriber count is labeled '(sample)' at first appearance. Facts: free, forever; one email a week plus the occasional double issue; issues numbered continuously (currently No. 47 published, No. 48 next); read times 4–9 minutes; unsubscribe is one click and instant. Portrait: portrait-june.webp is an AI-generated fictional person matching the default [AUTHOR] (a fictional writer, not resembling any real individual); alt stays '[AUTHOR], writing the next issue'.
   Layout: n/a
   Motion: n/a
2. **Header** — Left: the masthead '[BRAND].' (Newsreader 500 20px with the Redlink period) linking to ./index.html. Right (Space Mono 12px uppercase): 'Issues' → #issues, 'Archive' → #archive, 'About' → #about, and a small subscribe chip 'Subscribe' → the hero form (focuses the email input). Under 640px: masthead + chip only.
   Layout: Sticky top, Paper/92% with blur and a 1px Rule bottom border, height 64px, container-aligned.
3. **Hero with subscribe** — Two columns. Left: eyebrow 'A WEEKLY LETTER — [CADENCE]'; H1 'Small teams,' / '*sharpened.*'; the promise (19px, max-width 520px): '[BRAND] is a letter about [TOPIC] — what holds, what breaks, and what to steal from teams smaller than yours. Written by [AUTHOR], one honest page a week.' The SubscribeForm (email input + Redlink 'Subscribe' button, stacked full-width under 560px), the inline promise line (Space Mono 11px Umber): 'FREE · ONE EMAIL A WEEK · UNSUBSCRIBE IN ONE CLICK'. Three proof points as mono checkmarks beneath: 'No. 48 next, [CADENCE]'; '[SUBS] readers (sample)'; '4–9 minutes, worth both'. Right: the EnvelopeCard — the latest issue (No. 47, 'The Meeting Is a Message') styled as an opened envelope: a stamp (drawn, Redlink, tilts), a postmark circle, 'No. 47' mono, the issue title Newsreader 500 24px, its first two lines in the preview body face, and 'Read time 6 min' — clicking opens the issue's full preview in the Issues section (anchor scroll).
   Layout: Paper background, vertical padding 112px top under the header. Left 6 cols, right 5 cols offset 1. The envelope is a Card with a 1px Rule border, a 2px dashed flap line and a soft 4px paper shadow — the only shadow on the page.
4. **Issue previews** — Section id='issues'. Eyebrow 'RECENT ISSUES' and H2 'Read one before you decide.' Three IssueCards: No. 47 'The Meeting Is a Message' — category 'Teams' — 6 min — 'What your calendar says about your roadmap, read by the newest hire on their first day. This issue follows one engineering team''s week through the meetings they kept, cut, and quietly weaponized…'; No. 46 'Two-Pizza Teams Eat Cold Pizza' — 'Craft' — 8 min — 'The famous rule works until it doesn''t. A field guide to what actually breaks at nine people, drawn from three teams that lived through it and one that didn''t…'; No. 45 'The Oncall Journal' — 'Practice' — 5 min — 'What one team learned from a year of writing down every page: which alerts were fiction, which were debts, and the one that was a colleague…'. Each card expands inline to its full first section (three more paragraphs per issue, written in content.ts) with a fold line and 'fold' control.
   Layout: Wash background. Three columns 24px gap (stacked under 860px). Card: 'No. 47' mono Redlink, category chip, title Newsreader 600 22px, preview with drop cap, read-time row with dots. Expanded state grows the card downward.
5. **Proof strip** — A single hairline-bounded band on Paper: left, '[SUBS] readers' (Newsreader 500 28px) with '(sample)' in mono 11px Umber after it; center, 'One email a week. The double issue, twice a quarter.'; right, 'Sent [CADENCE] — no streaks, no guilt.' (mono).
   Layout: Full-width band with 1px Rule top/bottom borders, vertical padding 32px, three-part row wrapping on mobile.
6. **Reader quotes** — Section id='quotes'. Eyebrow 'WHAT READERS SAY' and H2 'Four reasons from the inbox.' Quotes: '"The only newsletter I read the week it arrives. June writes about teams the way a good mechanic talks about engines — no mystique, all parts."' — 'Priya N. · Staff engineer'; '"I forwarded No. 46 to my co-founder with the subject line ''read this before the offsite''. It changed the offsite."' — 'Dan & Mireille · two-person startup'; '"Unsubscribed from four newsletters the week I found this one. It earns the space."' — 'Anonymous, via the feedback form'; '"My team''s retro now has a standing agenda item stolen from issue No. 41. We call it what it is: stolen."' — 'Tomas R. · Tech lead'.
   Layout: Paper background. 2x2 grid 24px gap (stacked under 760px); cards on Card with 1px Rule border, quote Newsreader 400 italic 18px / 1.7, attribution mono 12px Umber.
7. **Archive** — Section id='archive'. Eyebrow 'THE BACK CATALOGUE' and H2 'Forty-seven issues, all free.' Ten rows (No. 47 back to No. 38): No. 47 'The Meeting Is a Message' · Teams · 6 min; No. 46 'Two-Pizza Teams Eat Cold Pizza' · Craft · 8; No. 45 'The Oncall Journal' · Practice · 5; No. 44 'Hiring Your First, Carefully' · Teams · 9; No. 43 'The README Holds the Culture' · Craft · 7; No. 42 'Estimates Are Fiction With Deadlines' · Practice · 6; No. 41 'The Retrospective That Worked' · Practice · 8; No. 40 'One Repo, One Team, No Exceptions' · Craft · 5; No. 39 'The Intern Saved the Quarter' · Teams · 7; No. 38 'Delete the Wiki' · Craft · 4. Rows link '#' (placeholder hrefs — an archive the couple fills in), with a closing line: 'No. 1–37 live wherever old newsletters retire; ask nicely and we''ll dust them off.'
   Layout: Wash background. Rows with 1px Rule dividers: number mono Redlink (fixed width), title Newsreader 500 18px, category chip, read-time dots right-aligned. Hover fills Paper. Container max-width 760px.
8. **What lands in your inbox** — Section id='about'. Eyebrow 'ABOUT THE LETTER' and H2 'One page, three parts.' Bullets with Olive Tick checks: 'One idea about [TOPIC], taken from a real team and stripped of names but not consequences'; 'One practice you can run this week — a meeting format, a script, a checklist — with the failure modes noted'; 'One recommendation worth your time: a book chapter, a tool, an essay, never an ad'. A small author portrait portrait-june.webp (4:5, 1px Rule border, caption '[AUTHOR], writing the next issue') sits above the about paragraph: '[AUTHOR] has worked on teams of two and teams of two hundred and writes about the small ones, where the craft is loudest. The letter is written by hand the night before, and it shows, in the good way.' The unsubscribe promise in mono: 'UNSUBSCRIBE: ONE CLICK, INSTANT, NO SURVEY — THE BUTTON WORKS THE FIRST TIME'.
   Layout: Paper background. Two columns: bullets 7 cols, about 4 cols offset 1 with the portrait at its top (max-width 220px). Promise line full-width under a hairline.
9. **Footer** — A Wash band: left, '[BRAND].' masthead small and 'Written by [AUTHOR] · hello@ + emailDomain'; right, anchors Issues / Archive / About and 'Subscribe' → the form. Bottom line under a Rule: '© [BRAND]. Sample figures, real opinions.'
   Layout: Vertical padding 48px, two-part row, bottom line 24px below a hairline; stacked under 640px.

## Assets
- image: Template portrait made for this design (free to redistribute with the template): https://media.vibefather.ai/assets/9677dbf6-86a5-42da-b79d-e9cb76f8f7fc/portrait-june.webp → public/images/portrait-june.webp (The about-column portrait; alt '[AUTHOR], writing the next issue').
- icon: lucide-react only: Mail, Check, X, ArrowDown, Clock, ChevronDown, Quote. Stroke width 1.5, 16–24px, color inherits. public/favicon.svg hand-written: viewBox 0 0 32 32, a 32x32 rect rx 6 filled #F8F4EC with a 1px Ink border, a Redlink (#A33B2E) stamp-like square (rotated 4deg) with a paper-colored asterisk inside. No other logo: the newsletter name is always set as type.
- image: Drawn in code only — no photos, no stock, no external images. The envelope card's stamp, postmark and flap shadow; drop caps (CSS ::first-letter); read-time dots; the inbox ticks; the paper grain overlay; all in SVG/CSS. Write ASSETS.md listing lucide-react (ISC), @fontsource-variable/newsreader and @fontsource/space-mono (OFL-1.1), noting 'No image assets; all visuals drawn in code.'
- font: Install @fontsource-variable/newsreader and @fontsource/space-mono and import them in src/fonts.ts as listed in Setup. Vite bundles the woff2 files into dist/.

## Don'ts
- No backend, no form submission, no fetch to any API: the subscribe state lives in the browser only (localStorage); the form's confirmation says the demo saves locally, and no email service is named or shown.
- All links on this single page are anchors (./index.html#issues, #archive, #about) except archive rows, which are '#' placeholders the writer fills in.
- Self-host everything: fonts through Fontsource, icons as npm packages or inline SVG. 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 5 MB.
- No real newsletters, writers, readers or platforms; the subscriber figure is sample data and labeled so at first appearance; no real email-service badges.
- No dates or years anywhere; issues are numbered, not dated; cadence is a weekday and time only; the site never shows today's date.
- Never mention VibeFather or any other brand inside the site except the optional credit footer link; all copy is invented US English.
- Respect prefers-reduced-motion everywhere: disable the stamp and postmark draws, staggered reveals, the sticky-bar slide (appear in place) and issue expansion animation; keep color/border hovers.
- The page must work at 1440x900 desktop and 390x844 mobile with zero console errors; the form and expanded issues work with keyboard only, and every interactive element has a visible focus ring.
- Keep copy concrete: no lorem, no 'join our community'; every issue title, read-time and figure lives in src/content.ts.

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

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

## 简要说明
为 [BRAND] 制作一个单页的新闻通讯订阅页。该通讯是一封每周发送的信件,主题为 [TOPIC],由 [AUTHOR] 撰写,发送频率为 [CADENCE],面向 [SUBS] 位读者(示例数字)。页面必须推销这些文字本身,而不是描述它们:三则往期内容预览、读者引语、一个存档区,以及一个始终触手可及的订阅表单——内联验证、客户端欢迎卡片,以及当主视觉区滚出视口后出现的粘性栏。单页:index.html,包含若干区块(#issues、#quotes、#archive、#about)。一切都在浏览器中运行;不会向任何地方提交数据。

- 受众:已经订阅了太多信件、正在决定这一封是否值得占用收件箱的读者:默认面向 25–45 岁的开发者和团队负责人,好奇,且对增长黑客式的腔调过敏。他们会先读一则预览再做决定。
- 目标:赢得订阅。访客应在十秒内知道这封信讲什么、谁在写、多久发一次;在两分钟内,他们应该已经读过一则预览,并再次遇到订阅表单。
- 语气:信件自身的声音:温暖、精确、略带揶揄。每一行都是具体胜过抽象;不要“加入我们的社区”,不要感叹号。

## 技术栈
- 框架:Vite 5 + React 18 + TypeScript
- 样式:Tailwind CSS 3.4
- 库: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/newsreader(OFL-1.1)、@fontsource/space-mono(OFL-1.1)
- 构建:`npm run build` → 静态文件输出到 `dist/`。无后端、无服务端代码、无外部 API。
- 设置:
  - 使用 npm create vite@latest 以 react-ts 模板搭建脚手架。项目根目录下有一个 HTML 页面:index.html(入口 src/main.tsx)。
  - vite.config.ts:base './',plugins [react()],build { outDir 'dist', sourcemap false, assetsInlineLimit 0 }。不要将 src/ 复制到 dist/。
  - 通过 PostCSS 使用 Tailwind 3.4(tailwindcss + postcss + autoprefixer),content ['./index.html', './src/**/*.{ts,tsx}']。在 tailwind.config.ts 中,将设计(Design)下的每种颜色以 kebab-case 键添加到 theme.extend.colors(paper、wash、card、ink、umber、rule、redlink、redlink-deep、olive-tick),并设置 fontFamily serif ['Newsreader Variable', 'Georgia', 'serif']、mono ['Space Mono', 'ui-monospace', 'monospace']。将 borderRadius DEFAULT 设为 6px,并添加 maxWidth { container: '1000px' } —— 一封信的宽度是窄的。
  - 在 src/fonts.ts 中导入 '@fontsource-variable/newsreader'(及其斜体轴)以及 '@fontsource/space-mono/400.css'、'@fontsource/space-mono/700.css';从入口文件导入 src/fonts.ts 和 src/index.css。
  - 文件布局:src/content.ts(每个字符串、数字、期号、引语、存档条目、承诺语句和节奏,均带类型),src/lib/brand.ts(brandSlug = [BRAND] 转为小写,并将每一段连续的非字母数字字符替换为 '-',emailDomain = 去掉连字符的 brandSlug + '.com'),src/lib/storage.ts(安全的 localStorage get/set,包裹在 try/catch 中,键前缀为 brandSlug + ':')。
  - 状态:src/store/subscribe.ts 是一个小型外部存储(useSyncExternalStore),持有 { email, subscribed },持久化到 localStorage 键 brandSlug + ':reader'。订阅后显示欢迎卡片;'Not you?' 将其清除回表单。
  - 组件位于 src/components/:Header.tsx、SubscribeForm.tsx(验证、WelcomeCard.tsx)、StickyBar.tsx(在首屏表单滚出视口后出现,订阅后隐藏)、EnvelopeCard.tsx(最新一期,样式为带有手绘邮票的信封)、Reveal.tsx、Eyebrow.tsx、Footer.tsx;Hero.tsx、Issues.tsx(IssueCard.tsx 带首字下沉)、ProofStrip.tsx、Quotes.tsx、Archive.tsx、Inbox.tsx。src/pages/Home.tsx 组合它们。
  - public/favicon.svg 如资源(Assets)部分所述。index.html:lang en,<meta name='theme-color' content='#F8F4EC'>,<link rel='icon' href='./favicon.svg' type='image/svg+xml'>,<title>[BRAND] — A weekly letter about [TOPIC]</title>。
  - 在项目根目录编写 ASSETS.md,如资源(Assets)部分所述。
  - dist/ 包含 index.html、带哈希的 JS/CSS、woff2 字体和 favicon.svg。保持在 5 MB 以下 —— 不要图片。

## 变量
- [BRAND] — 通讯名称(默认:"The Margin Note")。虚构的通讯名称。用于报头、标题、页脚、电子邮件(hello@ + 不含连字符的 brandSlug + .com)以及 localStorage 键。绝不是真实存在的通讯。
- [AUTHOR] — 作者(默认:"June Okafor")。虚构作者的名字。用于署名行、关于部分、签名('— June')以及引语的上下文。绝不是真实存在的作者。
- [TOPIC] — 主题内容(默认:"the craft of small software teams")。一个小写短语。驱动标题、一句话承诺、各期标题、引语以及收件箱部分。让它成为一个有真实利害关系的领域,而不是一个类别堆砌。
- [CADENCE] — 发送频率(默认:"Tuesdays, 6am")。信件送达的时间('Tuesdays, 6am'、'Sundays, 8pm')。用于承诺行、证明条以及收件箱部分中一行 FAQ 式文字。日期和时间,绝不是带日期的截止期限。
- [SUBS] — 订阅者数字(默认:"11,204")。以逗号分隔的示例读者数量,显示在证明条和粘性栏中。首次出现时始终标注"(sample)"。保持在 1,000–50,000 之间。
- [CREDIT] — 在页脚保留一个小型"Template by VibeFather"链接,指向 https://vibefather.ai/t/newsletter-landing-page(默认:是;删除此行即可移除)

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

## 设计
### 颜色(Colors)
- Paper `#F8F4EC` — 全页背景。
- Wash `#F0EADD` — 交替区块背景(Quotes、Archive)、悬停填充、标签块。
- Card `#FFFEF9` — 期号卡片、信封卡片、表单面板、欢迎卡片。
- Ink `#26211B` — 标题、正文、报头、图标颜色。
- Umber `#6B6155` — 次要文本、说明文字、眉题、归档元数据。
- Rule `#E0D8C8` — 1px 细线、卡片边框、输入框边框、归档分隔线。
- Redlink `#A33B2E` — 唯一强调色:链接、订阅按钮、印章、选中颜色、焦点环、首字下沉。
- Redlink Deep `#862E23` — 按钮悬停、按下状态。
- Olive Tick `#5C6B4C` — 安静的第二色:收件箱列表中的对勾、'free' 对勾、阅读时长圆点。

### 排版(Typography)
- 展示与正文:报头、H1–H3、期号预览、引语 — Newsreader 及其光学尺寸轴同时承担两项职责:Newsreader(OFL),字重 400/500/600
- 眉题与元数据:节奏行、期号、分类、表单标签(大写):Space Mono(OFL),字重 400/700

### 布局与动效(Layout & motion)
- 间距:8px 基准单位。容器最大宽度 1000px,居中,侧边内边距桌面端 48px、平板端 32px、640px 以下 20px。单列流式布局,首屏为双列。区块垂直内边距桌面端 96px、1024px 以下 72px、640px 以下 56px。字号比例:报头(H1)clamp(48px, 7vw, 92px) Newsreader 500,行高 1.0,字距 -0.01em;H2 clamp(30px, 4vw, 48px) Newsreader 500;H3 22px Newsreader 600;导语 Newsreader 400 19px / 1.65 Ink 90%;正文 Newsreader 400 17px / 1.75(最大宽度 62ch);期号预览正文 Newsreader 400 16px / 1.8,带 Redlink 首字下沉;眉题 Space Mono 700 11px 大写 字距 0.22em Umber;说明文字 Space Mono 400 12px Umber。按钮:高度 52px,内边距 0 26px,Space Mono 700 13px 大写 字距 0.1em。订阅按钮:Redlink 填充,Paper 文字。次要按钮:1px Ink/30% 边框,Ink 文字。输入框:高度 52px,1px Rule 边框,Card 填充,16px Newsreader,聚焦边框 Redlink。全局焦点环:2px Redlink 轮廓,偏移 3px。链接:Redlink,带 .link-draw 下划线。
- 圆角:卡片、信封、表单面板和按钮为 6px。仅分类标签块和阅读时长圆点使用 999px。
- 动效:缓动:--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% 可见时(Motion whileInView,viewport once)以 800ms --ease-out 动画到静止状态。同级元素错开 90ms。
- 动效:报头:名称的三个词以 120ms 错开上升;名称后的 Redlink 句点以 200ms 缩放沉降盖印进入。
- 动效:EnvelopeCard:加载时封盖的阴影线绘制,印章从 -6deg 倾斜到静止的 -3deg,邮戳圆圈描边一次(600ms,在减少动效下禁用)。
- 动效:订阅表单:无效邮箱抖动 3px 一次,并显示内联提示('Almost — that address is missing a piece');提交时按钮显示 'Subscribing…' 500ms,然后表单区域以 280ms --ease-io 滑动切换为 WelcomeCard — 'Welcome aboard.' 为 Newsreader 500 26px,'Issue No. 48 lands [CADENCE]. Until then, the archive is right below.' 以及 'Not you? Use a different address' 返回表单。
- 动效:StickyBar:在首屏表单完全滚出后 200ms 出现,固定在底部(感知安全区域),以 260ms 向上滑入 16px;订阅后或页脚进入视图时立即隐藏;包含一个镜像首屏表单的紧凑表单。
- 动效:期号卡片:悬停上浮 3px,首字下沉从 Redlink→Redlink Deep 变化;点击时内联展开预览至完整第一节(340ms 高度动画),带一条 'fold' 线 — 期号像信件一样打开,而非模态框。
- 动效:归档行:悬停填充 Wash,期号滑入 6px 变成 Redlink 对勾;行以 40ms 错开显现。
- 动效:引语:卡片以 4px 上升显现;开引号保持静止(克制才是重点)。
- 动效:链接:.link-draw 在悬停和 focus-visible 时以 300ms 生长出 1px Redlink 下划线;::selection 为 Redlink 配 Paper 文字。
- 动效:prefers-reduced-motion: reduce — 禁用印章/邮戳绘制、错开、滑动(即时切换)、吸底栏的滑动(就地出现);保留颜色和边框悬停变化。在 index.css 中使用 CSS @media,并在组件中使用 Motion 的 useReducedMotion。
- 图像:无摄影、无图库、无外部图片 — 页面是排版加绘制的邮政细节。EnvelopeCard 的印章、邮戳和封盖阴影为内联 SVG;首字下沉为 CSS ::first-letter;归档的阅读时长圆点和收件箱对勾为绘制。一层淡淡的纸张纹理(2% Ink 的重复径向渐变)覆盖在页面上。图标:仅 lucide-react,描边宽度 1.5。

## 页面与区块
### 新闻通讯(`index.html`)
1. **内容文件与文案规则** — 以下所有文案均按默认值编写([BRAND] = The Margin Note,[AUTHOR] = June Okafor,[TOPIC] = 小型软件团队的技艺,[CADENCE] = 每周二上午 6 点,[SUBS] = 11,204)。将每个字符串和数字放入 src/content.ts 并从中渲染。若任何变量值不同,请重写承诺语、期号标题与预览、引语、存档条目和收件箱文案,使其对新通讯具体且可信,同时保持相同结构和数量(3 期预览、4 条引语、10 行存档、3 条收件箱要点)。所有读者、期号和数字均为虚构;订阅者数量在首次出现时标注为“(sample)”。事实:永久免费;每周一封邮件,偶尔双期;期号连续编号(当前已发布第 47 期,下一期为第 48 期);阅读时间 4–9 分钟;退订一键完成且即时生效。肖像:portrait-june.webp 是 AI 生成的虚构人物,与默认 [AUTHOR] 匹配(虚构作者,不似任何真实个人);alt 保持为“[AUTHOR], writing the next issue”。
   布局:不适用
   动效:不适用
2. **页眉** — 左侧:报头“[BRAND].”(Newsreader 500 20px,带 Redlink 句点)链接至 ./index.html。右侧(Space Mono 12px 大写):“Issues” → #issues,“Archive” → #archive,“About” → #about,以及一个小型订阅标签“Subscribe” → 主视觉表单(聚焦邮箱输入框)。640px 以下:仅报头 + 标签。
   布局:顶部粘性,Paper/92% 带模糊和 1px Rule 底边框,高度 64px,容器对齐。
3. **带订阅的主视觉** — 两栏。左侧:眉题“A WEEKLY LETTER — [CADENCE]”;H1“Small teams,” / “*sharpened.*”;承诺语(19px,最大宽度 520px):“[BRAND] is a letter about [TOPIC] — what holds, what breaks, and what to steal from teams smaller than yours. Written by [AUTHOR], one honest page a week.” SubscribeForm(邮箱输入框 + Redlink“Subscribe”按钮,560px 以下堆叠全宽),内联承诺行(Space Mono 11px Umber):“FREE · ONE EMAIL A WEEK · UNSUBSCRIBE IN ONE CLICK”。下方三个等宽字体对勾证明点:“No. 48 next, [CADENCE]”;“[SUBS] readers (sample)”;“4–9 minutes, worth both”。右侧:EnvelopeCard——最新一期(第 47 期,“The Meeting Is a Message”)设计为打开的信封:一枚邮票(绘制,Redlink,倾斜)、一个邮戳圆圈、“No. 47”等宽字体、期号标题 Newsreader 500 24px、预览正文前两行,以及“Read time 6 min”——点击在 Issues 区块中打开该期完整预览(锚点滚动)。
   布局:Paper 背景,页眉下方顶部垂直内边距 112px。左侧 6 列,右侧 5 列偏移 1。信封为 Card,带 1px Rule 边框、2px 虚线封口线和柔和 4px 纸张阴影——页面上唯一的阴影。
4. **期号预览** — 区块 id='issues'。眉题“RECENT ISSUES”和 H2“Read one before you decide.”三张 IssueCard:第 47 期“The Meeting Is a Message”——分类“Teams”——6 分钟——“What your calendar says about your roadmap, read by the newest hire on their first day. This issue follows one engineering team''s week through the meetings they kept, cut, and quietly weaponized…”;第 46 期“Two-Pizza Teams Eat Cold Pizza”——“Craft”——8 分钟——“The famous rule works until it doesn''t. A field guide to what actually breaks at nine people, drawn from three teams that lived through it and one that didn''t…”;第 45 期“The Oncall Journal”——“Practice”——5 分钟——“What one team learned from a year of writing down every page: which alerts were fiction, which were debts, and the one that was a colleague…”。每张卡片内联展开至其完整第一节(每期另有三段,写在 content.ts 中),带折叠线和“fold”控件。
   布局:Wash 背景。三列 24px 间距(860px 以下堆叠)。卡片:“No. 47”等宽 Redlink、分类标签、标题 Newsreader 600 22px、带首字下沉的预览、带点的阅读时间行。展开状态使卡片向下增长。
5. **证明条** — Paper 上一条细线边界带:左侧,“[SUBS] readers”(Newsreader 500 28px)后跟等宽 11px Umber 的“(sample)”;中间,“One email a week. The double issue, twice a quarter.”;右侧,“Sent [CADENCE] — no streaks, no guilt.”(等宽)。
   布局:全宽带,1px Rule 上下边框,垂直内边距 32px,移动端三部分行换行。
6. **读者引语** — 区块 id='quotes'。眉题“WHAT READERS SAY”和 H2“Four reasons from the inbox.”引语:“"The only newsletter I read the week it arrives. June writes about teams the way a good mechanic talks about engines — no mystique, all parts."”——“Priya N. · Staff engineer”;“"I forwarded No. 46 to my co-founder with the subject line ''read this before the offsite''. It changed the offsite."”——“Dan & Mireille · two-person startup”;“"Unsubscribed from four newsletters the week I found this one. It earns the space."”——“Anonymous, via the feedback form”;“"My team''s retro now has a standing agenda item stolen from issue No. 41. We call it what it is: stolen."”——“Tomas R. · Tech lead”。
   布局:Paper 背景。2x2 网格 24px 间距(760px 以下堆叠);卡片在 Card 上,带 1px Rule 边框,引语 Newsreader 400 斜体 18px / 1.7,署名等宽 12px Umber。
7. **存档** — 区块 id='archive'。眉题“THE BACK CATALOGUE”和 H2“Forty-seven issues, all free.”十行(第 47 期回溯至第 38 期):第 47 期“The Meeting Is a Message” · Teams · 6 分钟;第 46 期“Two-Pizza Teams Eat Cold Pizza” · Craft · 8;第 45 期“The Oncall Journal” · Practice · 5;第 44 期“Hiring Your First, Carefully” · Teams · 9;第 43 期“The README Holds the Culture” · Craft · 7;第 42 期“Estimates Are Fiction With Deadlines” · Practice · 6;第 41 期“The Retrospective That Worked” · Practice · 8;第 40 期“One Repo, One Team, No Exceptions” · Craft · 5;第 39 期“The Intern Saved the Quarter” · Teams · 7;第 38 期“Delete the Wiki” · Craft · 4。行链接“#”(占位 href——由这对夫妇填写的存档),结尾行:“No. 1–37 live wherever old newsletters retire; ask nicely and we''ll dust them off.”
   布局:Wash 背景。行带 1px Rule 分隔线:编号等宽 Redlink(固定宽度)、标题 Newsreader 500 18px、分类标签、阅读时间点右对齐。悬停填充 Paper。容器最大宽度 760px。
8. **收件箱里有什么** — 区块 id='about'。眉题“ABOUT THE LETTER”和 H2“One page, three parts.”带 Olive Tick 对勾的要点:“One idea about [TOPIC], taken from a real team and stripped of names but not consequences”;“One practice you can run this week — a meeting format, a script, a checklist — with the failure modes noted”;“One recommendation worth your time: a book chapter, a tool, an essay, never an ad”。一张小作者肖像 portrait-june.webp(4:5,1px Rule 边框,说明文字“[AUTHOR], writing the next issue”)位于关于段落上方:“[AUTHOR] has worked on teams of two and teams of two hundred and writes about the small ones, where the craft is loudest. The letter is written by hand the night before, and it shows, in the good way.”等宽字体的退订承诺:“UNSUBSCRIBE: ONE CLICK, INSTANT, NO SURVEY — THE BUTTON WORKS THE FIRST TIME”。
   布局:Paper 背景。两栏:要点 7 列,关于 4 列偏移 1,肖像位于其顶部(最大宽度 220px)。承诺行在细线下方全宽。
9. **页脚** — 一条 Wash 带:左侧,“[BRAND].”小报头和“Written by [AUTHOR] · hello@ + emailDomain”;右侧,锚点 Issues / Archive / About 和“Subscribe” → 表单。Rule 下方底线:“© [BRAND]. Sample figures, real opinions.”
   布局:垂直内边距 48px,两部分行,底线在细线下方 24px;640px 以下堆叠。

## 资产
- 图片:为此设计制作的模板人像(可随模板免费再分发):https://media.vibefather.ai/assets/9677dbf6-86a5-42da-b79d-e9cb76f8f7fc/portrait-june.webp → public/images/portrait-june.webp(关于栏人像;alt 为 '[AUTHOR], writing the next issue')。
- 图标:仅使用 lucide-react:Mail、Check、X、ArrowDown、Clock、ChevronDown、Quote。描边宽度 1.5,16–24px,颜色继承。public/favicon.svg 手写:viewBox 0 0 32 32,一个 32x32 的 rect,rx 为 6,填充 #F8F4EC,带 1px Ink 边框,一个 Redlink(#A33B2E)印章式方块(旋转 4deg),内部有一个纸色星号。不使用其他 logo:简报名称始终以文字排版呈现。
- 图片:仅在代码中绘制——无照片、无图库素材、无外部图片。信封卡片的邮票、邮戳和封盖阴影;首字下沉(CSS ::first-letter);阅读时长圆点;收件箱勾选标记;纸张颗粒叠加层;全部使用 SVG/CSS。编写 ASSETS.md,列出 lucide-react(ISC)、@fontsource-variable/newsreader 和 @fontsource/space-mono(OFL-1.1),并注明 'No image assets; all visuals drawn in code.'
- 字体:安装 @fontsource-variable/newsreader 和 @fontsource/space-mono,并按 Setup 中列出的方式在 src/fonts.ts 中导入它们。Vite 会将 woff2 文件打包进 dist/。

## 禁止事项
- 无后端、无表单提交、不向任何 API 发起 fetch 请求:订阅状态仅存在于浏览器中(localStorage);表单的确认信息说明演示仅在本地保存,且不提及也不展示任何邮件服务。
- 此单页上的所有链接均为锚点(./index.html#issues、#archive、#about),但归档行除外,归档行是 '#' 占位符,由作者自行填写。
- 一切资源自托管:字体通过 Fontsource,图标以 npm 包或内联 SVG 形式引入。不使用 CDN 的 <script> 或 <link> 标签,不使用 Google Fonts,不使用分析工具。
- 生产构建:压缩、无 source map、不将 src/ 复制到 dist/、使用单一命令 npm run build、输出位于 dist/ 且小于 5 MB。
- 不使用真实的新闻通讯、作者、读者或平台;订阅者数字为示例数据,并在首次出现时予以标注;不使用真实的邮件服务徽章。
- 任何地方都不出现日期或年份;期号以编号而非日期标识;发布节奏仅以工作日和时间表示;网站从不显示当天日期。
- 除可选的页脚署名链接外,网站内绝不提及 VibeFather 或任何其他品牌;所有文案均为虚构的美式英语。
- 在所有位置遵循 prefers-reduced-motion:禁用印章和邮戳绘制、交错显现、粘性栏滑动(改为原地出现)以及期号展开动画;保留颜色/边框悬停效果。
- 页面必须在 1440x900 桌面端和 390x844 移动端正常工作,且控制台零错误;表单和展开的期号仅用键盘即可操作,每个交互元素都有可见的焦点环。
- 保持文案具体:不使用 lorem,不使用“join our community”;每个期号标题、阅读时长和数字都存放在 src/content.ts 中。

---
— Prompt by VibeFather · https://vibefather.ai/t/newsletter-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: "Newsletter Landing Page"
colors:
  paper: "#F8F4EC"
  wash: "#F0EADD"
  card: "#FFFEF9"
  ink: "#26211B"
  umber: "#6B6155"
  rule: "#E0D8C8"
  redlink: "#A33B2E"
  redlink_deep: "#862E23"
  olive_tick: "#5C6B4C"
typography:
  display_and_body_masthead_h1_h3_issue_previews_quotes_newsreader_with_its_optical_size_axis_doing_both_jobs: { family: "Newsreader", weights: [400, 500, 600] }
  eyebrows_and_metadata_cadence_lines_issue_numbers_categories_form_labels_uppercase: { family: "Space Mono", weights: [400, 700] }
spacing: "8px base unit. Container max-width 1000px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. Single column flow with a two-column hero. Section vertical padding 96px desktop, 72px under 1024px, 56px under 640px. Type scale: masthead (H1) clamp(48px, 7vw, 92px) Newsreader 500, line-height 1.0, letter-spacing -0.01em; H2 clamp(30px, 4vw, 48px) Newsreader 500; H3 22px Newsreader 600; lead Newsreader 400 19px / 1.65 Ink at 90%; body Newsreader 400 17px / 1.75 (max-width 62ch); issue preview body Newsreader 400 16px / 1.8 with a Redlink drop cap; eyebrow Space Mono 700 11px uppercase letter-spacing 0.22em Umber; caption Space Mono 400 12px Umber. Buttons: height 52px, padding 0 26px, Space Mono 700 13px uppercase letter-spacing 0.1em. Subscribe: Redlink fill, Paper text. Secondary: 1px Ink/30% border, Ink text. Inputs: height 52px, 1px Rule border, Card fill, 16px Newsreader, focus border Redlink. Focus ring everywhere: 2px Redlink outline with 3px offset. Links: Redlink with the .link-draw underline."
radius: "6px on cards, the envelope, the form panel and buttons. 999px only for the category chips and read-time dots."
---

# Newsletter 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** `#F8F4EC` — Page background throughout.
- **Wash** `#F0EADD` — Alternate section background (Quotes, Archive), hover fill, chips.
- **Card** `#FFFEF9` — Issue cards, envelope card, form panel, welcome card.
- **Ink** `#26211B` — Headlines, body text, the masthead, icon color.
- **Umber** `#6B6155` — Secondary text, captions, eyebrows, archive metadata.
- **Rule** `#E0D8C8` — 1px hairlines, card borders, input borders, archive dividers.
- **Redlink** `#A33B2E` — The one accent: links, the subscribe button, the stamp, selection color, focus ring, drop caps.
- **Redlink Deep** `#862E23` — Button hover, pressed states.
- **Olive Tick** `#5C6B4C` — Quiet second color: checkmarks in the inbox list, the 'free' tick, read-time dots.

## Typography
- **Display and body: masthead, H1–H3, issue previews, quotes — Newsreader with its optical-size axis doing both jobs** — Newsreader (OFL), weights 400/500/600. Self-host the font files.
- **Eyebrows and metadata: cadence lines, issue numbers, categories, form labels (uppercase)** — Space Mono (OFL), weights 400/700. Self-host the font files.

## Spacing & shape
- Spacing: 8px base unit. Container max-width 1000px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. Single column flow with a two-column hero. Section vertical padding 96px desktop, 72px under 1024px, 56px under 640px. Type scale: masthead (H1) clamp(48px, 7vw, 92px) Newsreader 500, line-height 1.0, letter-spacing -0.01em; H2 clamp(30px, 4vw, 48px) Newsreader 500; H3 22px Newsreader 600; lead Newsreader 400 19px / 1.65 Ink at 90%; body Newsreader 400 17px / 1.75 (max-width 62ch); issue preview body Newsreader 400 16px / 1.8 with a Redlink drop cap; eyebrow Space Mono 700 11px uppercase letter-spacing 0.22em Umber; caption Space Mono 400 12px Umber. Buttons: height 52px, padding 0 26px, Space Mono 700 13px uppercase letter-spacing 0.1em. Subscribe: Redlink fill, Paper text. Secondary: 1px Ink/30% border, Ink text. Inputs: height 52px, 1px Rule border, Card fill, 16px Newsreader, focus border Redlink. Focus ring everywhere: 2px Redlink outline with 3px offset. Links: Redlink with the .link-draw underline.
- Radius: 6px on cards, the envelope, the form panel and buttons. 999px only for the category chips and read-time dots.

## Motion
- Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1) for reveals and the welcome swap; --ease-io cubic-bezier(0.65, 0, 0.35, 1) for the sticky bar and archive hovers. Papery and unhurried.
- Reveal: blocks wrapped in <Reveal> start at opacity 0, translateY(14px) and animate to rest over 800ms --ease-out when 15% visible (Motion whileInView, viewport once). Siblings stagger by 90ms.
- Masthead: the three words of the name rise with 120ms stagger; the Redlink period after the name stamps in with a 200ms scale settle.
- EnvelopeCard: on load the flap's shadow line draws, the stamp tilts in from -6deg to its resting -3deg, and the postmark circle strokes once (600ms, disabled under reduced motion).
- Subscribe form: invalid emails shake 3px once with the inline line ('Almost — that address is missing a piece'); on submit the button reads 'Subscribing…' for 500ms, then the form area swaps to the WelcomeCard with a 280ms --ease-io slide — 'Welcome aboard.' in Newsreader 500 26px, 'Issue No. 48 lands [CADENCE]. Until then, the archive is right below.' and 'Not you? Use a different address' returning to the form.
- StickyBar: appears pinned to the bottom (safe-area aware) 200ms after the hero form scrolls fully out, slides up 16px over 260ms; hides the moment subscribed or when the footer is in view; contains a compact form mirroring the hero's.
- Issue cards: hover lifts 3px and the drop cap ticks Redlink→Redlink Deep; clicking expands the preview to its full first section inline (a 340ms height animation) with a 'fold' line — issues open like letters, not modals.
- Archive rows: hover fills Wash and the issue number slides 6px into a Redlink tick; rows reveal with 40ms stagger.
- Quotes: cards reveal with a 4px rise; the opening quote marks stay static (restraint is the point).
- Links: .link-draw grows a 1px Redlink underline over 300ms on hover and focus-visible; ::selection is Redlink with Paper text.
- prefers-reduced-motion: reduce — disable stamp/postmark draws, staggers, slides (swap instantly), the sticky bar's slide (it appears in place); keep color and border hover changes. Use CSS @media in index.css plus Motion's useReducedMotion in components.

## Imagery
No photography, no stock, no external images — the page is typography plus drawn postal details. The EnvelopeCard's stamp, postmark and flap shadow are inline SVG; drop caps are CSS ::first-letter; the archive's read-time dots and the inbox checks are drawn. A faint paper-grain (repeating radial-gradient at 2% Ink) sits over the page. Icons: lucide-react only, stroke width 1.5.

## Tone
The letter's own voice: warm, precise, a little wry. Concrete beats abstract in every line; no 'join our community', no exclamation marks.

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

改成你自己的

  • 一位在职记者推出个人通讯:把 BRAND 和 AUTHOR 设成自己的名字,TOPIC 设为你的报道领域,把三个往期预览换成你最近提交的报道。
  • 一位小型工作室创始人写设计流程:把 TOPIC 设成你的工作方式,用客户反馈重写评价,把存档指向过去的项目笔记。
  • 一位教师或研究者分享田野笔记:把 CADENCE 设成学期时间,用课程或阅读笔记替换往期预览,保留收件箱版块列出读者会收到什么。
  • 一位铁路旅行写作者:把 BRAND 和 TOPIC 设成路线和旅程,把信封卡片重写成最新通讯,把存档换成过去的旅行来信。

Newsletter 落地页:常见问题

怎么在 Newsletter 落地页模板里修改 Newsletter 名称、作者和主题?

Newsletter 落地页模板把所有字符串放在一个内容文件里,所以你设置 BRAND 为你的 Newsletter 名称、AUTHOR 为你的名字、TOPIC 为你的一句话主题、CADENCE 为来信发送时间,然后重写标题、承诺句、往期预览和评价来匹配。报头、标题、页脚、邮箱地址和浏览器存储键都从这些变量读取,所以改一处就能更新整个页面。

Newsletter 落地页上的订阅表单真的会发邮件或存地址吗?

Newsletter 落地页上的订阅表单会在页面内校验地址,显示一张小欢迎卡片,并在浏览器中记住读者,但不会向任何地方提交。没有后端,也没有外部 API。要收集真实地址,你需要把表单接到自己的邮件列表服务上;在那之前,这个页面就是一个忠实的订阅流程预览。

怎么用 AI 做一个Newsletter 落地页?

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

Newsletter 落地页模板的演示是哪个 AI 模型做的?

演示由 GLM-5.3 在 ZCode 里完成;另一个案例由 DeepSeek V4.1 Flash 在 DeepSeek Harness 里完成。每次都用公开的提示词原样生成,没有额外补充,可以并排比较不同模型的效果。