用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
一份虚构城市报纸的两页新闻杂志:报头时代的头版(厚重衬线报头、引题行、版块栏)覆盖在密集网格之上——一条主报道配宽幅纪实照片、一个次要侧栏、三个用细线分隔的版块首页(城市、文化、商业),每个版块都有一张报道卡片和一列标题;一个订阅框编织进网格中;文章页(?a=<slug>,第一篇文章无需参数)排版易读——固定行宽、首字下沉、引语、双栏事实框、相关报道和同样的订阅框。六张为模板制作的纪实风格编辑照片锚定整个网格。默认发布一份为虚构城市创办的虚构报纸,但结构适用于任何本地、垂直或社区刊物。外观是大报油墨感:暖色纸张底色、厚重衬线报头、墨色文字、一抹红色点缀、细线分隔。所有文案都在一个类型化文件中;替换变量即可重写整份报纸。不使用真实时钟日期;版次行是静态示例文本。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# News Magazine Homepage
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
A two-page magazine for [PAPER], the weekly paper covering [BEAT] in [CITY]. The front page: masthead, a lead story with a wide photo, a secondary rail, three section fronts (city / culture / business) and a newsletter box; article pages (?a=<slug>) carry readable typography, a fact box and related stories. Pages: index.html, article.html?a=<slug> (first article without one). Everything runs in the browser; nothing is submitted anywhere.
- Audience: Readers who still read: locals with a coffee and twenty minutes, and skimmers who want the lead story fast. The page must feel like an institution, not a feed.
- Goal: Read the lead story and subscribe to the newsletter. Within ten seconds the visitor sees the nameplate, the lead headline and the photo; within two minutes they're mid-article.
- Tone: Weekly-paper dry: plain declaratives, gentle wit, no clickbait. Headlines carry the paper's voice.
## 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/playfair-display (OFL-1.1), @fontsource/pt-serif (OFL-1.1), @fontsource-variable/inter (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 (pin the version if the latest template targets newer majors). Two real HTML pages at the project root: index.html (entry src/main-index.tsx), article.html (entry src/main-article.tsx).
- vite.config.ts: base './', plugins [react()], build { outDir 'dist', sourcemap false, assetsInlineLimit 0, rollupOptions { input { index: resolve(__dirname, 'index.html'), article: resolve(__dirname, 'article.html') } } }. Do not copy src/ into dist/.
- Tailwind 3.4 through PostCSS, content ['./index.html', './article.html', './src/**/*.{ts,tsx}']. In tailwind.config.ts add every color under Design to theme.extend.colors with kebab-case keys (paper, panel, line, line-2, ink, softink, red, red-deep, red-mist, slateink, good) and fontFamily display ['Playfair Display', 'Georgia', 'serif'], serif ['PT Serif', 'Georgia', 'serif'], sans ['Inter Variable', 'system-ui', 'sans-serif']. Set borderRadius DEFAULT to 2px and add maxWidth { container: '1280px', read: '680px' }.
- In src/fonts.ts import '@fontsource/playfair-display/700.css', '@fontsource/playfair-display/900.css', '@fontsource/pt-serif/400.css', '@fontsource/pt-serif/700.css', '@fontsource/pt-serif/400-italic.css' and '@fontsource-variable/inter'; import src/fonts.ts and src/index.css from both entry files.
- File layout: src/content.ts (the paper: nameplate, kicker, edition line, sections, articles — { slug, section, kicker, headline, standfirst, byline, photo?, photoAlt, body: string[] (paragraphs), pullQuote?, factBox: { title, rows: [label, value][] }?, related: string[] }, every string typed), src/lib/brand.ts (paperSlug = [PAPER] lowercased with every run of non-alphanumeric characters replaced by '-', emailDomain = paperSlug without hyphens + '.com'), src/lib/storage.ts (safe localStorage get/set wrapped in try/catch, key paperSlug + ':news'), src/lib/route.ts (reads ?a=, resolves or falls back to the first article — never not-found).
- State: src/store/newsletter.ts is a tiny external store (useSyncExternalStore) holding { email, sent } persisted to localStorage.
- Components in src/components/: Masthead.tsx (Nameplate.tsx, SectionBar.tsx), SlimBar.tsx (appears after the masthead scrolls away), Footer.tsx, NewsletterBox.tsx; front page: LeadStory.tsx, SecondaryRail.tsx (RailItem.tsx), SectionFront.tsx (FrontCard.tsx, HeadlineRow.tsx); article: ArticleHeader.tsx, ArticleBody.tsx (DropCap.tsx, PullQuote.tsx, FactBox.tsx), RelatedList.tsx. Pages: src/pages/Front.tsx, Article.tsx.
- DropCap: the first paragraph's first letter is set in Playfair 900 at ~3.4em, floated left with 8px right margin, Red. PullQuote: PT Serif italic 24px between hairlines, Red rules 3px top. FactBox: a Line-bordered box in the article flow (desktop: floated right at 300px) with mono-ish Inter 600 labels.
- SlimBar: fixed top, 48px, Paper at 95% blur, appears (translateY -100%→0, 200ms) once the masthead's bottom passes the viewport top; carries the nameplate small, the section anchors and Subscribe.
- 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='#FAF8F2'>, <link rel='icon' href='./favicon.svg' type='image/svg+xml'>, <title>[PAPER] — [CITY]'s weekly</title>; article.html sets document.title on load.
- Write ASSETS.md at the project root as described under Assets.
- dist/ holds the two HTML files, hashed JS/CSS, the woff2 fonts, favicon.svg and six images. Keep it under 9 MB.
## Variables
- [PAPER] — Paper name (default: "The Marlow Ledger"). The invented paper's name, 'The …' style works well. Drives the nameplate, titles, footer and email (news@ + paperSlug without hyphens + '.com'). Never a real publication.
- [CITY] — City (default: "Marlow"). The invented city the paper covers. Real invented-sounding city; drives headlines, bylines' datelines and the kicker. Invented cities keep the demo safe.
- [BEAT] — Coverage (default: "city hall, the riverfront and the people who use both"). One lowercase phrase naming the paper's beat. Rewrites the kicker, section blurbs and the newsletter pitch. Keep it concrete.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/news-magazine-homepage 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 `#FAF8F2` — Page background throughout — aged newsprint warm.
- Panel `#FFFFFF` — Newsletter box, fact box.
- Line `#D9D4C7` — 1px hairlines: the grid, rules, dividers.
- Line 2 `#1E1B16` — The masthead's 2px bold rule and section-front top rules.
- Ink `#1E1B16` — Headlines and body ink.
- Soft Ink `#5D594E` — Standfirsts, bylines, captions, eyebrows.
- Red `#B3282D` — The one accent: kicker bars, drop caps, pull-quote rules, links, primary buttons, focus ring.
- Red Deep `#8E1F23` — Hover and pressed states.
- Red Mist `#F6E7E4` — Section label chips, selected states.
- Slate Ink `#1A1210` — Text on red fills.
- Good `#3E7A52` — Newsletter success line.
### Typography
- Display: the nameplate, lead headline, section-front headlines — Playfair Display, heavy and institutional: Playfair Display (OFL), weights 700/900
- Article serif: article body, standfirsts, pull quotes — PT Serif: PT Serif (OFL), weights 400/700
- Sans: kickers, bylines, section bars, captions, UI — Inter: Inter (OFL), weights 400/500/600
### Layout & motion
- Spacing: 8px base unit. Container max-width 1280px, centered, side padding 48px desktop, 32px tablet, 20px under 640px; article reading column max 680px with a 34ch held measure. The front page is a 12-column grid, column gap 24px, ruled by 1px Line dividers (real borders, not gaps — the newspaper look). Section vertical rhythm: 40px between fronts. Type scale: nameplate Playfair 900 clamp(44px, 7vw, 84px) letter-spacing -0.01em; lead headline Playfair 900 clamp(32px, 4.6vw, 56px) line-height 1.04; front-card headlines Playfair 700 24px; headline rows PT Serif 700 17px; standfirst PT Serif italic 17px Soft Ink; article body PT Serif 18px / 1.75; kicker Inter 600 11px uppercase letter-spacing 0.18em Red; byline Inter 500 12.5px Soft Ink; captions Inter 400 12.5px Soft Ink. Buttons: height 44px, Inter 600 13.5px; primary Red fill with white text. Inputs: height 44px, Panel fill, 1px Line border, focus Red border + 2px offset ring. Focus everywhere: 2px Red outline, 3px offset.
- Radius: 2px everywhere — print, not app. The newsletter box and fact box also 2px.
- Motion: Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1). A paper settles; nothing bounces.
- Motion: Reveal: story blocks rise 8px over 450ms as they enter (Motion whileInView, once); the front page staggers by grid row (60ms).
- Motion: Lead photo: settles from scale 1.02 over 1400ms once, then rest.
- Motion: Headline hovers: PT Serif headline rows shift their Red index bar 4px right (140ms) and the headline ink holds — underline only via .link-draw on links.
- Motion: SlimBar: translateY -100%→0 over 200ms when triggered; hides again when the masthead returns.
- Motion: Newsletter submit: crossfades to the Good line over 240ms (220ms out).
- Motion: Article page: the header block settles 8px; the drop cap and pull quote reveal with their paragraphs; the fact box slides 6px.
- Motion: prefers-reduced-motion: reduce — no reveals, no photo settle, no bar shifts; everything at rest. Use CSS @media in index.css plus Motion's useReducedMotion.
- Imagery: Six documentary editorial photographs made for this template in one consistent style: available light, candid scenes of an invented city — a riverfront market morning, a city-hall stairwell, a print shop press, a small venue crowd (faces indistinct), a main street at dusk, a library reading room. No readable text, no logos, no identifiable people (crowd faces stay indistinct). Photos object-fit cover, 2px corners, 1px Line outline; captions in Inter 12.5px Soft Ink with a sample credit 'Ledger staff photo (fictional)'. Icons: lucide-react only, stroke width 1.75. The favicon is drawn SVG.
## Pages & Sections
### Front page (`index.html`)
1. **Content file and copy rules** — All copy below is written for the defaults ([PAPER] = The Marlow Ledger, [CITY] = Marlow, [BEAT] = city hall, the riverfront and the people who use both). Put every string, article and caption in src/content.ts and render from it. If any variable differs, rewrite every headline, standfirst, byline and body so they are specific and believable for that paper and city, keeping the same structure and counts (1 lead + 2 rail stories + 3 fronts × (1 card + 3 headline rows), 6 articles with full bodies, 1 newsletter box, article pages for all six). Articles (slug · section · kicker · headline · standfirst · byline · photo): 'ferry-morning' city 'RIVERFRONT' 'The 6:10 ferry is Marlow's quietest institution' 'Two hundred commuters, one kettle, and a deckhand who knows every name' 'By Rosa Feld · Ledger staff' ferry-morning.webp; 'council-vote' city 'CITY HALL' 'Council votes tonight on the riverwalk lighting plan' 'Seven years, three surveys, one final yes-or-no' 'By Tomas Ruiz · Ledger staff' (no photo); 'press-room' culture 'THE CRAFT' 'The last press in Marlow still smells like ink' 'A family shop, two Heidelbergs, and a stubborn love of paper' 'By Amara Osei · Ledger staff' press-room.webp; 'venn-club' culture 'NIGHTLIFE' 'The Venn Club turned its basement into a listening room' 'No phones, no bar chatter — just the band and forty chairs' 'By Luis Park · Ledger staff' venue-crowd.webp; 'main-street' business 'MAIN STREET' 'Four new storefronts, one cautious spring' 'Marlow's main street is filling up — carefully' 'By Dana Whitfield · Ledger staff' main-street.webp; 'reading-room' culture 'QUIET BEAT' 'The reading room that stayed open late' 'A librarian, a chess set, and the town's unofficial office' 'By Rosa Feld · Ledger staff' reading-room.webp. Every article's body: 5–7 paragraphs of invented but plausible weekly-paper reporting; the lead and one front card get pull quotes and fact boxes (lead fact box: 'The vote at a glance' with rows Tonight 7 PM / Item 12-A / Seats 7; press-room fact box: 'The shop by the numbers' with rows Presses 2 / Years running 41 / Staff 3). All names, quotes and figures are invented sample content; no real people or events. The edition line under the nameplate is static sample text: 'Vol. XII · The weekly edition · Marlow' — no dates, no clock.
Layout: n/a
Motion: n/a
2. **Masthead and section bar** — The Nameplate: '[PAPER]' centered (Playfair 900), the kicker line 'Covering [BEAT]' (Inter 500 12px Soft Ink) above, and the edition line below (Inter 400 12px Soft Ink), between two 2px Line 2 rules (4px apart, the classic double rule). SectionBar beneath: CITY / CULTURE / BUSINESS / NEWSLETTER as Inter 600 12px uppercase links with Red hover underlines, separated by 1px Line pipes.
Layout: Paper background; masthead block 96px tall centered; section bar 40px with Line top/bottom borders.
3. **Lead story and secondary rail** — A ruled 8:4 split. Left (8 cols): LeadStory — kicker bar (Red 3px left rule + Inter 600 kicker), the headline (Playfair 900), standfirst (PT Serif italic), the wide photo (16:9, caption), byline, and a two-paragraph teaser ending with a Red 'Continue reading →' link to the article page. Right (4 cols, Line left border): SecondaryRail — 'TOP STORIES THIS WEEK' eyebrow; two RailItems (headline + standfirst, hairline-divided) and the NewsletterBox at the rail's foot.
Layout: Paper background; the split carries a 1px Line vertical divider; 40px vertical padding above.
4. **Section fronts** — Three SectionFronts stacked, each opened by a 2px Line 2 top rule and a section header (Playfair 700 20px name left, 'More from [section] →' Inter 600 12px Red right). Each front: a 5:7 split — FrontCard (photo 4:3 or 3:2, kicker, Playfair 700 24px headline, standfirst, byline) and three HeadlineRows (Red index bars 01–03, PT Serif 700 17px headlines, 12px Soft Ink bylines) with hairlines. City front uses council-vote as its card (no photo: a 4:3 Line-tinted placeholder panel with the section wordmark and 'Photo to come — the artist is on strike (sample)' caption); culture front's card is press-room; business front's card is main-street. Rows pull from the remaining articles.
Layout: Paper background; 40px between fronts; the fronts share the 12-column grid.
5. **Newsletter box and footer** — NewsletterBox (also on article pages): Panel fill, 1px Line border, 2px radius — eyebrow 'THE LEDGER LETTER'; one line 'One email a week: what the council did, what the river did, and one good thing to do Saturday'; email input + primary 'Subscribe'; small print 'Sample form — this demo saves nothing anywhere.'; success: the Good line 'Subscribed (in this browser only) — welcome aboard.' Footer: three columns — the nameplate small + 'news@' + emailDomain; the section bar repeated as links; and '© [PAPER]. Every story on this page is invented sample content.' plus 'Built with a VibeFather template' linking https://vibefather.ai.
Layout: Newsletter box full-width above the footer on the front page (and in-rail on article pages); footer 80px, Line top border.
### Article (`article.html`)
1. **Article view** — Reads ?a=<slug>; with no query the first article (ferry-morning) renders. SlimBar persists at top. ArticleHeader: kicker + section link, the headline (Playfair 900 up to 44px), standfirst, byline row (Inter 12.5px Soft Ink: byline · 'Ledger staff' · '6 min read (sample)'), and the photo with caption when the article has one. ArticleBody: paragraphs in PT Serif 18px/1.75 at a held measure; the DropCap on paragraph one; the PullQuote placed after paragraph three (or the article's own); the FactBox floated right on desktop after paragraph two (in-flow on mobile); inline Red links (.link-draw). After the body: RelatedList ('MORE FROM THE LEDGER' — the article's three related slugs as HeadlineRows) and the NewsletterBox full-width. document.title set from the headline on load.
Layout: Paper background; reading column max 680px centered; the fact box floats right at 300px with 20px margins; footer as front page.
## Assets
- image: Template photos made for this design (free to redistribute with the template), one documentary style, no readable text, no logos, no identifiable faces. Download each with curl -L -o into public/images/: https://media.vibefather.ai/assets/41e7e0bf-6d94-4267-9958-6e733113913d/ferry-morning.webp → public/images/ferry-morning.webp (Lead story; alt 'Commuters on a morning river ferry, city skyline behind'); https://media.vibefather.ai/assets/41e7e0bf-6d94-4267-9958-6e733113913d/city-hall.webp → public/images/city-hall.webp (Council card / rail; alt 'A city hall stairwell in morning light'); https://media.vibefather.ai/assets/41e7e0bf-6d94-4267-9958-6e733113913d/press-room.webp → public/images/press-room.webp (Culture front card; alt 'An old printing press in a small print shop'); https://media.vibefather.ai/assets/41e7e0bf-6d94-4267-9958-6e733113913d/venue-crowd.webp → public/images/venue-crowd.webp (Rail item; alt 'A small listening-room audience, faces indistinct in low light'); https://media.vibefather.ai/assets/41e7e0bf-6d94-4267-9958-6e733113913d/main-street.webp → public/images/main-street.webp (Business front card; alt 'A small-town main street at dusk with lit storefronts'); https://media.vibefather.ai/assets/41e7e0bf-6d94-4267-9958-6e733113913d/reading-room.webp → public/images/reading-room.webp (Culture row; alt 'A quiet library reading room with a chess set'). Six 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/playfair-display, @fontsource/pt-serif and @fontsource-variable/inter (OFL-1.1) and lucide-react (ISC). Note that all people appearing are incidental documentary-style figures with indistinct faces, and all stories are invented.
- icon: lucide-react only: ArrowRight, ArrowUpRight, Check, Mail. Stroke width 1.75, 14–20px, color inherits. public/favicon.svg: viewBox 0 0 32 32, a 32x32 square filled #1E1B16, a Paper (#FAF8F2) broadsheet glyph (a folded page with two column rules) and a small #B3282D top bar. No brand logos.
- font: Install @fontsource/playfair-display, @fontsource/pt-serif and @fontsource-variable/inter and import them in src/fonts.ts as listed in Setup. Vite bundles the woff2 files into dist/.
- image: Drawn in code: the council card's placeholder panel, the favicon, kicker bars, index bars. No other bitmaps beyond the six photos.
## Don'ts
- No backend, no form submission, no fetch to API: the newsletter box saves in the browser only (localStorage) and its small print says so; every link is a file or anchor.
- Every internal link points to a file name (./index.html, ./index.html#city, ./article.html?a=ferry-morning) — never to a bare directory; article.html without a query shows the first article, never an error.
- No real publications, mastheads, cities' real papers or their typography; the paper, city, stories, quotes, bylines and figures are invented sample content.
- No real people or events; no breaking-news or urgency claims; photos carry no readable text, no logos, and no identifiable faces (crowd faces stay indistinct).
- No dates or timestamps from the real clock: the edition line and byline meta are static sample text; nothing prints today's date or years.
- 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 9 MB.
- Never mention VibeFather inside the site except the footer credit link; all copy is invented US English.
- Respect prefers-reduced-motion: no reveals or settles; everything at rest.
- The site must work at 1440x900 desktop and 390x844 mobile (the grid collapses to a single ruled column, the rail follows the lead, the fact box goes in-flow) with zero console errors; newsletter, section anchors and links work with keyboard only and visible focus rings.
- Hold the measure: article body never exceeds 34ch per column; the density stays broadsheet, never dashboard.
---
— Prompt by VibeFather · https://vibefather.ai/t/news-magazine-homepage · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 新闻杂志主页
完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。
## 简介
一份为 [PAPER] 打造的两页杂志,[PAPER] 是覆盖 [CITY] 的 [BEAT] 领域的周报。首页:报头、一篇配大幅照片的头条报道、一个次级栏、三个版块首页(城市 / 文化 / 商业)以及一个新闻通讯订阅框;文章页(?a=<slug>)采用易读的排版,包含事实框和相关报道。页面:index.html、article.html?a=<slug>(第一篇文章无需参数)。一切都在浏览器中运行;不会向任何地方提交内容。
- 受众:仍然阅读的读者:端着咖啡、有二十分钟闲暇的本地人,以及想快速了解头条报道的浏览者。页面必须让人感觉像一家机构,而不是信息流。
- 目标:阅读头条报道并订阅新闻通讯。访客在十秒内看到报头、头条标题和照片;在两分钟内进入文章正文。
- 语气:周报式的冷峻:平实的陈述句、温和的机智、没有标题党。标题承载报纸的声音。
## 技术栈(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/playfair-display(OFL-1.1)、@fontsource/pt-serif(OFL-1.1)、@fontsource-variable/inter(OFL-1.1)
- 构建(Build):`npm run build` → 在 `dist/` 中生成静态文件。无后端、无服务端代码、无外部 API。
- 安装配置(Setup):
- 使用 react-ts 模板通过 npm create vite@latest 搭建脚手架(如果最新模板面向更新的主版本,则固定版本)。项目根目录下有两个真实的 HTML 页面:index.html(入口 src/main-index.tsx)、article.html(入口 src/main-article.tsx)。
- vite.config.ts:base './',plugins [react()],build { outDir 'dist', sourcemap false, assetsInlineLimit 0, rollupOptions { input { index: resolve(__dirname, 'index.html'), article: resolve(__dirname, 'article.html') } } }。不要将 src/ 复制到 dist/ 中。
- 通过 PostCSS 使用 Tailwind 3.4,content ['./index.html', './article.html', './src/**/*.{ts,tsx}']。在 tailwind.config.ts 中,将设计(Design)下的每种颜色以 kebab-case 键添加到 theme.extend.colors 中(paper、panel、line、line-2、ink、softink、red、red-deep、red-mist、slateink、good),并将 fontFamily 的 display 设为 ['Playfair Display', 'Georgia', 'serif'],serif 设为 ['PT Serif', 'Georgia', 'serif'],sans 设为 ['Inter Variable', 'system-ui', 'sans-serif']。将 borderRadius 的 DEFAULT 设为 2px,并添加 maxWidth { container: '1280px', read: '680px' }。
- 在 src/fonts.ts 中导入 '@fontsource/playfair-display/700.css'、'@fontsource/playfair-display/900.css'、'@fontsource/pt-serif/400.css'、'@fontsource/pt-serif/700.css'、'@fontsource/pt-serif/400-italic.css' 和 '@fontsource-variable/inter';从两个入口文件导入 src/fonts.ts 和 src/index.css。
- 文件布局:src/content.ts(报纸内容:报头、引题、版次行、栏目、文章 — { slug, section, kicker, headline, standfirst, byline, photo?, photoAlt, body: string[](段落), pullQuote?, factBox: { title, rows: [label, value][] }?, related: string[] },每个字符串都有类型)、src/lib/brand.ts(paperSlug = [PAPER] 转为小写,并将每一段连续的非字母数字字符替换为 '-',emailDomain = 去掉连字符的 paperSlug + '.com')、src/lib/storage.ts(安全的 localStorage get/set,用 try/catch 包裹,键为 paperSlug + ':news')、src/lib/route.ts(读取 ?a=,解析或回退到第一篇文章 — 绝不出现未找到)。
- 状态(State):src/store/newsletter.ts 是一个小型外部 store(useSyncExternalStore),持有 { email, sent } 并持久化到 localStorage。
- 组件位于 src/components/:Masthead.tsx(Nameplate.tsx、SectionBar.tsx)、SlimBar.tsx(在报头滚出视口后出现)、Footer.tsx、NewsletterBox.tsx;首页:LeadStory.tsx、SecondaryRail.tsx(RailItem.tsx)、SectionFront.tsx(FrontCard.tsx、HeadlineRow.tsx);文章页:ArticleHeader.tsx、ArticleBody.tsx(DropCap.tsx、PullQuote.tsx、FactBox.tsx)、RelatedList.tsx。页面:src/pages/Front.tsx、Article.tsx。
- DropCap:第一段的首字母使用 Playfair 900,约 3.4em,左浮动,右边距 8px,红色(Red)。PullQuote:PT Serif 斜体 24px,位于细线之间,顶部为 3px 红色(Red)线。FactBox:文章流中一个带 Line 边框的盒子(桌面端:右浮动,300px),标签使用近似等宽的 Inter 600。
- SlimBar:固定顶部,48px,Paper 95% 模糊,当报头底部越过视口顶部时出现(translateY -100%→0,200ms);包含小号报头、栏目锚点和 Subscribe。
- 在首次构建之前,使用 curl -L -o 将资源(Assets)下列出的每张图片下载到 public/images/ 中,并使用给定的确切文件名。构建本身从不获取任何内容。
- public/favicon.svg 如资源(Assets)中所述。index.html:lang en,<meta name='theme-color' content='#FAF8F2'>,<link rel='icon' href='./favicon.svg' type='image/svg+xml'>,<title>[PAPER] — [CITY]'s weekly</title>;article.html 在加载时设置 document.title。
- 如资源(Assets)中所述,在项目根目录写入 ASSETS.md。
- dist/ 包含两个 HTML 文件、带哈希的 JS/CSS、woff2 字体、favicon.svg 和六张图片。保持在 9 MB 以下。
## 变量
- [PAPER] — 报纸名称(默认值:“The Marlow Ledger”)。虚构报纸的名称,采用“The …”风格效果较好。用于驱动报头、标题、页脚和电子邮件(news@ + 不含连字符的 paperSlug + “.com”)。绝不使用真实出版物。
- [CITY] — 城市(默认值:“Marlow”)。该报纸报道的虚构城市。听起来像真实地名的虚构城市;用于驱动头条、署名中的发稿地和引题。虚构城市可确保演示安全。
- [BEAT] — 报道范围(默认值:“city hall, the riverfront and the people who use both”)。一个全小写短语,说明该报纸的报道范围。用于改写引题、版块简介和新闻通讯推介语。保持具体。
- [CREDIT] — 在页脚保留一个小型“Template by VibeFather”链接,指向 https://vibefather.ai/t/news-magazine-homepage(默认值:是;删除此行即可移除)
“页面与版块”下的文案是按默认值撰写的。如果你的取值不同,请为它们重写每个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按版块作为键,以便之后无需改动组件即可替换内容。
## 设计
### 颜色(Colors)
- 纸张色(Paper)`#FAF8F2` — 全站页面背景 — 陈年新闻纸的暖调。
- 面板色(Panel)`#FFFFFF` — 新闻通讯框、事实框。
- 线条色(Line)`#D9D4C7` — 1px 细线:网格、分隔线、分栏线。
- 线条色 2(Line 2)`#1E1B16` — 报头的 2px 粗线和版面头条顶部的粗线。
- 墨色(Ink)`#1E1B16` — 标题和正文墨色。
- 柔墨色(Soft Ink)`#5D594E` — 导语、署名行、图注、眉题。
- 红色(Red)`#B3282D` — 唯一强调色:栏目标签条、首字下沉、引文线、链接、主按钮、焦点环。
- 深红(Red Deep)`#8E1F23` — 悬停和按下状态。
- 红雾(Red Mist)`#F6E7E4` — 栏目标签芯片、选中状态。
- 石板墨(Slate Ink)`#1A1210` — 红色填充上的文字。
- 成功色(Good)`#3E7A52` — 新闻通讯成功提示行。
### 字体排印(Typography)
- 展示字体:报头名称、头条标题、版面头条 — Playfair Display,厚重且具机构感:Playfair Display (OFL),字重 700/900
- 文章衬线体:文章正文、导语、引文 — PT Serif:PT Serif (OFL),字重 400/700
- 无衬线体:眉题、署名行、栏目条、图注、UI — Inter:Inter (OFL),字重 400/500/600
### 布局与动效(Layout & motion)
- 间距:8px 基准单位。容器最大宽度 1280px,居中,侧边内边距桌面端 48px、平板端 32px、640px 以下 20px;文章阅读栏最大 680px,保持 34ch 的行宽。首页为 12 列网格,列间距 24px,由 1px 线条色分隔线划分(真实边框,而非间隙 — 报纸观感)。版面垂直节奏:各版面之间 40px。字号体系:报头名称 Playfair 900 clamp(44px, 7vw, 84px) letter-spacing -0.01em;头条标题 Playfair 900 clamp(32px, 4.6vw, 56px) line-height 1.04;版面卡片标题 Playfair 700 24px;标题行 PT Serif 700 17px;导语 PT Serif italic 17px 柔墨色;文章正文 PT Serif 18px / 1.75;眉题 Inter 600 11px 大写 letter-spacing 0.18em 红色;署名行 Inter 500 12.5px 柔墨色;图注 Inter 400 12.5px 柔墨色。按钮:高度 44px,Inter 600 13.5px;主按钮红色填充配白色文字。输入框:高度 44px,面板色填充,1px 线条色边框,聚焦时红色边框 + 2px 偏移环。全局焦点:2px 红色轮廓,3px 偏移。
- 圆角:全局 2px — 印刷品,而非应用。新闻通讯框和事实框同样 2px。
- 动效:缓动:--ease-out cubic-bezier(0.22, 0.61, 0.36, 1)。纸张落定;没有弹跳。
- 动效:显现:故事区块进入时上移 8px,历时 450ms(Motion whileInView,仅一次);首页按网格行错开(60ms)。
- 动效:头条照片:从 scale 1.02 落定,历时 1400ms,仅一次,然后静止。
- 动效:标题悬停:PT Serif 标题行将其红色索引条右移 4px(140ms),标题墨色保持不动 — 仅链接通过 .link-draw 显示下划线。
- 动效:SlimBar:触发时 translateY -100%→0,历时 200ms;报头回归时再次隐藏。
- 动效:新闻通讯提交:交叉淡入到成功色提示行,历时 240ms(淡出 220ms)。
- 动效:文章页:页头区块落定 8px;首字下沉和引文随其段落一同显现;事实框滑动 6px。
- 动效:prefers-reduced-motion: reduce — 无显现、无照片落定、无条块位移;一切静止。在 index.css 中使用 CSS @media,并配合 Motion 的 useReducedMotion。
- 图像:六张纪实编辑风格照片,为本模板以统一风格制作:自然光、虚构城市的抓拍场景 — 河滨市场清晨、市政厅楼梯间、印刷厂印刷机、小型演出场地人群(面部模糊)、黄昏时分的主街、图书馆阅览室。无可读文字、无标识、无可辨认的人物(人群面部保持模糊)。照片 object-fit cover,2px 圆角,1px 线条色描边;图注使用 Inter 12.5px 柔墨色,附示例署名 'Ledger staff photo (fictional)'。图标:仅使用 lucide-react,描边宽度 1.75。favicon 为手绘 SVG。
## 页面与区块
### 首页(`index.html`)
1. **内容文件与文案规则** — 以下所有文案均按默认值撰写([PAPER] = The Marlow Ledger,[CITY] = Marlow,[BEAT] = 市政厅、河滨以及使用这两者的民众)。将每个字符串、文章和图片说明放入 src/content.ts 并从中渲染。若任何变量不同,请重写每个标题、导语、署名和正文,使其对该报纸和城市而言具体且可信,同时保持相同的结构和数量(1 篇头条 + 2 篇侧栏报道 + 3 个版面 ×(1 张卡片 + 3 行标题),6 篇含完整正文的文章,1 个新闻通讯框,全部六篇的文章页)。文章(slug · 版块 · 眉题 · 标题 · 导语 · 署名 · 照片):'ferry-morning' city 'RIVERFRONT' 'The 6:10 ferry is Marlow's quietest institution' 'Two hundred commuters, one kettle, and a deckhand who knows every name' 'By Rosa Feld · Ledger staff' ferry-morning.webp;'council-vote' city 'CITY HALL' 'Council votes tonight on the riverwalk lighting plan' 'Seven years, three surveys, one final yes-or-no' 'By Tomas Ruiz · Ledger staff'(无照片);'press-room' culture 'THE CRAFT' 'The last press in Marlow still smells like ink' 'A family shop, two Heidelbergs, and a stubborn love of paper' 'By Amara Osei · Ledger staff' press-room.webp;'venn-club' culture 'NIGHTLIFE' 'The Venn Club turned its basement into a listening room' 'No phones, no bar chatter — just the band and forty chairs' 'By Luis Park · Ledger staff' venue-crowd.webp;'main-street' business 'MAIN STREET' 'Four new storefronts, one cautious spring' 'Marlow's main street is filling up — carefully' 'By Dana Whitfield · Ledger staff' main-street.webp;'reading-room' culture 'QUIET BEAT' 'The reading room that stayed open late' 'A librarian, a chess set, and the town's unofficial office' 'By Rosa Feld · Ledger staff' reading-room.webp。每篇文章的正文:5–7 段虚构但可信的周报报道;头条和一张版面卡片配有引语和事实框(头条事实框:'The vote at a glance',行内容为 Tonight 7 PM / Item 12-A / Seats 7;press-room 事实框:'The shop by the numbers',行内容为 Presses 2 / Years running 41 / Staff 3)。所有姓名、引语和数字均为虚构的示例内容;无真实人物或事件。报头下方的版次行为静态示例文本:'Vol. XII · The weekly edition · Marlow' — 无日期,无时钟。
布局:不适用
动效:不适用
2. **报头与版块栏** — 报头:'[PAPER]' 居中(Playfair 900),上方为眉题行 'Covering [BEAT]'(Inter 500 12px Soft Ink),下方为版次行(Inter 400 12px Soft Ink),位于两条 2px Line 2 分隔线之间(相距 4px,经典双线)。下方 SectionBar:CITY / CULTURE / BUSINESS / NEWSLETTER 为 Inter 600 12px 大写链接,悬停时显示红色下划线,以 1px Line 竖线分隔。
布局:Paper 背景;报头区块高 96px 居中;版块栏高 40px,上下边框为 Line。
3. **头条与次要侧栏** — 带分隔线的 8:4 分栏。左侧(8 列):LeadStory — 眉题栏(红色 3px 左边线 + Inter 600 眉题),标题(Playfair 900),导语(PT Serif 斜体),宽幅照片(16:9,带说明),署名,以及两段式摘要,结尾为红色 'Continue reading →' 链接至文章页。右侧(4 列,Line 左边框):SecondaryRail — 'TOP STORIES THIS WEEK' 小标题;两个 RailItems(标题 + 导语,细线分隔)以及位于侧栏底部的 NewsletterBox。
布局:Paper 背景;分栏带 1px Line 垂直分隔线;上方 40px 垂直内边距。
4. **版块头版** — 三个 SectionFronts 堆叠,每个以 2px Line 2 顶部分隔线和版块标题开头(左侧 Playfair 700 20px 名称,右侧 'More from [section] →' Inter 600 12px 红色)。每个头版:5:7 分栏 — FrontCard(照片 4:3 或 3:2,眉题,Playfair 700 24px 标题,导语,署名)和三行 HeadlineRows(红色序号条 01–03,PT Serif 700 17px 标题,12px Soft Ink 署名)带细线。城市头版使用 council-vote 作为其卡片(无照片:一个 4:3 Line 色调占位面板,带版块字标和 'Photo to come — the artist is on strike (sample)' 说明);文化头版的卡片为 press-room;商业头版的卡片为 main-street。行内容取自其余文章。
布局:Paper 背景;头版之间 40px;各头版共享 12 列网格。
5. **新闻通讯框与页脚** — NewsletterBox(也出现在文章页):Panel 填充,1px Line 边框,2px 圆角 — 小标题 'THE LEDGER LETTER';一行文字 'One email a week: what the council did, what the river did, and one good thing to do Saturday';电子邮件输入框 + 主按钮 'Subscribe';小字 'Sample form — this demo saves nothing anywhere.';成功状态:Good 行 'Subscribed (in this browser only) — welcome aboard.'。页脚:三列 — 小号报头 + 'news@' + emailDomain;版块栏重复为链接;以及 '© [PAPER]. Every story on this page is invented sample content.' 加上 'Built with a VibeFather template' 链接至 https://vibefather.ai。
布局:首页上新闻通讯框全宽位于页脚上方(文章页上位于侧栏内);页脚高 80px,Line 顶部边框。
### 文章页(`article.html`)
1. **文章视图** — 读取 ?a=<slug>;无查询参数时渲染第一篇文章(ferry-morning)。SlimBar 持久显示在顶部。ArticleHeader:眉题 + 版块链接,标题(Playfair 900 最大 44px),导语,署名行(Inter 12.5px Soft Ink:署名 · 'Ledger staff' · '6 min read (sample)'),以及文章有照片时的照片和说明。ArticleBody:段落为 PT Serif 18px/1.75,保持固定行宽;第一段有 DropCap;PullQuote 置于第三段之后(或文章自带的引语);FactBox 在桌面端浮动于第二段之后的右侧(移动端为文档流内);内联红色链接(.link-draw)。正文之后:RelatedList('MORE FROM THE LEDGER' — 文章的三个相关 slug 作为 HeadlineRows)和全宽 NewsletterBox。加载时根据标题设置 document.title。
布局:Paper 背景;阅读栏最大 680px 居中;事实框浮动于右侧 300px 宽,边距 20px;页脚同首页。
## 资源(Assets)
- 图片(image):为本设计制作的模板照片(可随模板自由再分发),纪实风格,无可读文字、无标识、无可辨认的面孔。用 curl -L -o 将每张图片下载到 public/images/:https://media.vibefather.ai/assets/41e7e0bf-6d94-4267-9958-6e733113913d/ferry-morning.webp → public/images/ferry-morning.webp(头条报道;alt 'Commuters on a morning river ferry, city skyline behind');https://media.vibefather.ai/assets/41e7e0bf-6d94-4267-9958-6e733113913d/city-hall.webp → public/images/city-hall.webp(议会卡片/横栏;alt 'A city hall stairwell in morning light');https://media.vibefather.ai/assets/41e7e0bf-6d94-4267-9958-6e733113913d/press-room.webp → public/images/press-room.webp(文化版头图卡片;alt 'An old printing press in a small print shop');https://media.vibefather.ai/assets/41e7e0bf-6d94-4267-9958-6e733113913d/venue-crowd.webp → public/images/venue-crowd.webp(横栏条目;alt 'A small listening-room audience, faces indistinct in low light');https://media.vibefather.ai/assets/41e7e0bf-6d94-4267-9958-6e733113913d/main-street.webp → public/images/main-street.webp(商业版头图卡片;alt 'A small-town main street at dusk with lit storefronts');https://media.vibefather.ai/assets/41e7e0bf-6d94-4267-9958-6e733113913d/reading-room.webp → public/images/reading-room.webp(文化版横栏;alt 'A quiet library reading room with a chess set')。共六个文件。
- 图片(image):在项目根目录写入 ASSETS.md,包含一张表格:路径、来源 URL、作者、许可证——每张照片一行(来源 'media.vibefather.ai, made for this template',作者 'VibeFather',许可证 'Distributed with the template'),另加 @fontsource/playfair-display、@fontsource/pt-serif 和 @fontsource-variable/inter(OFL-1.1)以及 lucide-react(ISC)的行。注明所有出现的人物均为纪实风格中的偶然人物,面孔不可辨认,所有报道均为虚构。
- 图标(icon):仅使用 lucide-react:ArrowRight、ArrowUpRight、Check、Mail。描边宽度 1.75,14–20px,颜色继承。public/favicon.svg:viewBox 0 0 32 32,一个 32x32 的方形填充 #1E1B16,一个 Paper(#FAF8F2)大报字形(一个带两条栏线的折叠页面)和一条小的 #B3282D 顶栏。无品牌标识。
- 字体(font):安装 @fontsource/playfair-display、@fontsource/pt-serif 和 @fontsource-variable/inter,并按“设置”中所列在 src/fonts.ts 中导入它们。Vite 会将 woff2 文件打包进 dist/。
- 图片(image):在代码中绘制:议会卡片的占位面板、favicon、引题栏、索引栏。除六张照片外无其他位图。
## 禁止事项(Don'ts)
- 不做后端,不做表单提交,不向 API 发起 fetch 请求:订阅框只在浏览器本地保存(localStorage),其小字说明中已注明这一点;所有链接都指向文件或锚点。
- 所有内部链接都指向文件名(./index.html、./index.html#city、./article.html?a=ferry-morning)——绝不指向裸目录;不带查询参数的 article.html 显示第一篇文章,绝不报错。
- 不使用真实出版物、报头、城市真实报纸或其字体排印;报纸、城市、故事、引语、署名和人物均为虚构的示例内容。
- 不使用真实人物或事件;不做突发新闻或紧迫性宣称;照片不含可读文字、不含标识,也不含可辨认的面孔(人群面孔保持模糊)。
- 不使用来自真实时钟的日期或时间戳:版次行和署名元信息为静态示例文本;任何地方都不打印今天的日期或年份。
- 一切资源自托管:字体通过 Fontsource,图标以 npm 包或内联 SVG 形式引入,图片下载到 public/images/。不使用 CDN 的 <script> 或 <link> 标签,不使用 Google Fonts,不使用分析工具。
- 生产构建:压缩,不生成 source map,不将 src/ 复制进 dist/,使用单一命令 npm run build,输出位于 dist/ 且小于 9 MB。
- 除页脚致谢链接外,站内绝不提及 VibeFather;所有文案均为虚构的美式英语。
- 尊重 prefers-reduced-motion:不做显现或沉降动画;一切处于静止状态。
- 网站必须在 1440x900 桌面端和 390x844 移动端正常工作(网格折叠为单栏带分隔线,侧栏跟随主稿,事实框转为流内布局),且控制台零错误;订阅框、区块锚点和链接仅用键盘即可操作,并具有可见的焦点环。
- 保持行宽:文章正文每栏绝不超过 34ch;密度保持大报(broadsheet)风格,绝不呈现仪表盘(dashboard)风格。
---
— Prompt by VibeFather · https://vibefather.ai/t/news-magazine-homepage · 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: "News Magazine Homepage"
colors:
paper: "#FAF8F2"
panel: "#FFFFFF"
line: "#D9D4C7"
line_2: "#1E1B16"
ink: "#1E1B16"
soft_ink: "#5D594E"
red: "#B3282D"
red_deep: "#8E1F23"
red_mist: "#F6E7E4"
slate_ink: "#1A1210"
good: "#3E7A52"
typography:
display_the_nameplate_lead_headline_section_front_headlines_playfair_display_heavy_and_institutional: { family: "Playfair Display", weights: [700, 900] }
article_serif_article_body_standfirsts_pull_quotes_pt_serif: { family: "PT Serif", weights: [400, 700] }
sans_kickers_bylines_section_bars_captions_ui_inter: { family: "Inter", weights: [400, 500, 600] }
spacing: "8px base unit. Container max-width 1280px, centered, side padding 48px desktop, 32px tablet, 20px under 640px; article reading column max 680px with a 34ch held measure. The front page is a 12-column grid, column gap 24px, ruled by 1px Line dividers (real borders, not gaps — the newspaper look). Section vertical rhythm: 40px between fronts. Type scale: nameplate Playfair 900 clamp(44px, 7vw, 84px) letter-spacing -0.01em; lead headline Playfair 900 clamp(32px, 4.6vw, 56px) line-height 1.04; front-card headlines Playfair 700 24px; headline rows PT Serif 700 17px; standfirst PT Serif italic 17px Soft Ink; article body PT Serif 18px / 1.75; kicker Inter 600 11px uppercase letter-spacing 0.18em Red; byline Inter 500 12.5px Soft Ink; captions Inter 400 12.5px Soft Ink. Buttons: height 44px, Inter 600 13.5px; primary Red fill with white text. Inputs: height 44px, Panel fill, 1px Line border, focus Red border + 2px offset ring. Focus everywhere: 2px Red outline, 3px offset."
radius: "2px everywhere — print, not app. The newsletter box and fact box also 2px."
---
# News Magazine Homepage — 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** `#FAF8F2` — Page background throughout — aged newsprint warm.
- **Panel** `#FFFFFF` — Newsletter box, fact box.
- **Line** `#D9D4C7` — 1px hairlines: the grid, rules, dividers.
- **Line 2** `#1E1B16` — The masthead's 2px bold rule and section-front top rules.
- **Ink** `#1E1B16` — Headlines and body ink.
- **Soft Ink** `#5D594E` — Standfirsts, bylines, captions, eyebrows.
- **Red** `#B3282D` — The one accent: kicker bars, drop caps, pull-quote rules, links, primary buttons, focus ring.
- **Red Deep** `#8E1F23` — Hover and pressed states.
- **Red Mist** `#F6E7E4` — Section label chips, selected states.
- **Slate Ink** `#1A1210` — Text on red fills.
- **Good** `#3E7A52` — Newsletter success line.
## Typography
- **Display: the nameplate, lead headline, section-front headlines — Playfair Display, heavy and institutional** — Playfair Display (OFL), weights 700/900. Self-host the font files.
- **Article serif: article body, standfirsts, pull quotes — PT Serif** — PT Serif (OFL), weights 400/700. Self-host the font files.
- **Sans: kickers, bylines, section bars, captions, UI — Inter** — Inter (OFL), weights 400/500/600. Self-host the font files.
## Spacing & shape
- Spacing: 8px base unit. Container max-width 1280px, centered, side padding 48px desktop, 32px tablet, 20px under 640px; article reading column max 680px with a 34ch held measure. The front page is a 12-column grid, column gap 24px, ruled by 1px Line dividers (real borders, not gaps — the newspaper look). Section vertical rhythm: 40px between fronts. Type scale: nameplate Playfair 900 clamp(44px, 7vw, 84px) letter-spacing -0.01em; lead headline Playfair 900 clamp(32px, 4.6vw, 56px) line-height 1.04; front-card headlines Playfair 700 24px; headline rows PT Serif 700 17px; standfirst PT Serif italic 17px Soft Ink; article body PT Serif 18px / 1.75; kicker Inter 600 11px uppercase letter-spacing 0.18em Red; byline Inter 500 12.5px Soft Ink; captions Inter 400 12.5px Soft Ink. Buttons: height 44px, Inter 600 13.5px; primary Red fill with white text. Inputs: height 44px, Panel fill, 1px Line border, focus Red border + 2px offset ring. Focus everywhere: 2px Red outline, 3px offset.
- Radius: 2px everywhere — print, not app. The newsletter box and fact box also 2px.
## Motion
- Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1). A paper settles; nothing bounces.
- Reveal: story blocks rise 8px over 450ms as they enter (Motion whileInView, once); the front page staggers by grid row (60ms).
- Lead photo: settles from scale 1.02 over 1400ms once, then rest.
- Headline hovers: PT Serif headline rows shift their Red index bar 4px right (140ms) and the headline ink holds — underline only via .link-draw on links.
- SlimBar: translateY -100%→0 over 200ms when triggered; hides again when the masthead returns.
- Newsletter submit: crossfades to the Good line over 240ms (220ms out).
- Article page: the header block settles 8px; the drop cap and pull quote reveal with their paragraphs; the fact box slides 6px.
- prefers-reduced-motion: reduce — no reveals, no photo settle, no bar shifts; everything at rest. Use CSS @media in index.css plus Motion's useReducedMotion.
## Imagery
Six documentary editorial photographs made for this template in one consistent style: available light, candid scenes of an invented city — a riverfront market morning, a city-hall stairwell, a print shop press, a small venue crowd (faces indistinct), a main street at dusk, a library reading room. No readable text, no logos, no identifiable people (crowd faces stay indistinct). Photos object-fit cover, 2px corners, 1px Line outline; captions in Inter 12.5px Soft Ink with a sample credit 'Ledger staff photo (fictional)'. Icons: lucide-react only, stroke width 1.75. The favicon is drawn SVG.
## Tone
Weekly-paper dry: plain declaratives, gentle wit, no clickbait. Headlines carry the paper's voice.
---
— Prompt by VibeFather · https://vibefather.ai/t/news-magazine-homepage · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 社区通讯:将 PAPER 和 CITY 设为你所在地区,将 BEAT 缩小到本地街道和学校,并将版块首页换成你自己的固定专栏。
- 行业期刊:保留报头和密集网格,将 BEAT 设为你所在的行业,并将城市和文化版块换成你的报道领域以及招聘或活动列表。
- 学生报纸:将 PAPER 指向校报,将 CITY 设为校园,并使用订阅框收集每周摘要的地址。
- 美食餐饮杂志:保留衬线报头,将 BEAT 设为餐厅和市场,并使用事实框行展示营业时间和价格区间。
新闻杂志首页:常见问题
如何修改新闻杂志首页模板的报纸名称和报道城市?
新闻杂志首页模板从三个变量读取身份:PAPER 设定报头、页面标题、页脚和订阅地址,CITY 设定日期栏和引题,BEAT 设定版块简介和订阅推广语中使用的报道范围短语。改这三个变量,报纸就会自我重写,但你仍需重写内容文件中的每个标题、导语和照片说明,使其与新地点匹配。
怎么用 AI 做一个新闻杂志首页?
复制本页的提示词,或者运行 npx vibefather add news-magazine-homepage,把 [BEAT]、[CITY]、[PAPER] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。