用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
作家网站是一个完整的多页站点,面向希望读者深入探索作品、而不只是浏览简介的小说家。它适合作品数量不多的虚构作家、回忆录作者和诗人,也适合需要在一个地方集中展示节选、活动详情和媒体资料的独立作者。结构包括以肖像为主视觉的首页、可复用的图书详情页、活动存档页、关于页和实用的媒体资料包。
视觉方向温暖而具编辑感:羊皮纸色的空间、深墨色字体、牛血红点缀、细线分隔和宽裕的阅读栏宽。Fraunces 让标题带有文学气质,Source Sans 3 则让活动详情和表单保持清晰。每本书都有用 SVG 几何图形、等高线和字体排印绘制的原创封面,因此设计不依赖现有封面图。一张生成的虚构作家肖像贯穿首页和传记页,并可作为媒体下载使用。
交互实用而克制。封面在悬停时轻柔响应,读者可以跟随节选进度指示器,活动按钮可下载日历文件,媒体传记无需手动选择即可复制。购买控件明确为占位符,随时可替换为真实零售商链接。订阅表单演示了验证和浏览器本地存储,但不会真的联系服务器。所有活动、图书和作者内容都放在一个内容文件中。
修改六个变量即可将站点切换到不同的笔名、类型、地点、主打书目、订阅或联系地址。备用案例展示了同一套构图如何用于推想小说作者。React、TypeScript、Tailwind CSS 和 Motion 提供可复用组件和安静的过渡效果,Vite 则生成五个带本地资源的静态 HTML 页面,无需后端。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Author Website Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else. ## Brief Build a complete English website for [BRAND], an invented author of [GENRE] based in [LOCATION]. Present [FEATURED_BOOK] as the latest release, with four original code-drawn book covers, a data-driven book page with excerpts and placeholder buy controls, three fictional events, a literary biography, a locally demonstrated [NEWSLETTER_NAME] signup, and a useful press kit. - Audience: Readers exploring a new novel, existing readers looking for events or book-club material, and booksellers, festival organizers and journalists who need reliable author information and downloadable assets. - Goal: Make the featured book immediately desirable, let visitors move naturally from a cover to an excerpt and purchase placeholders, and give every reader, organizer or journalist a clear next action without requiring a backend. - Tone: Warm, observant, intelligent and quietly intimate. Use precise sensory details and short editorial sentences, never breathless marketing, fabricated acclaim, generic inspirational language or literary clichés. ## Stack - Framework: Vite 5 + React 18 + TypeScript 5 - Styling: Tailwind CSS 3.4 - Libraries: Motion 11 (MIT), lucide-react (ISC), @fontsource-variable/fraunces (OFL), @fontsource/source-sans-3 (OFL) - Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs. - Setup: - Configure Vite with base './', build.sourcemap set to false, and Rollup HTML inputs for index.html, book.html, events.html, about.html and press.html so every page opens directly from dist/. - Mount a shared React application at each HTML entry, selecting the page from the entry filename rather than introducing a router; use shared Header, Footer, BookCover, NewsletterForm and Reveal components. - Keep every author fact, book, excerpt, event, biography, link and image path in src/content.ts; derive book ids with one slugify function and use those ids consistently in links and queries. - Define the palette, typography, spacing and keyframes in the Tailwind theme and src/index.css; include a small paper-grain texture made only with CSS gradients at very low opacity. - Import Fraunces and Source Sans 3 from the listed Fontsource packages, with system serif and sans-serif fallbacks; bundle all font files locally. - Create a simple original open-book line favicon as a local SVG and give each HTML entry a plain document title containing [BRAND] and its page name; do not add SEO metadata. - Use Motion for entrance transforms and AnimatePresence for menus, accordions and toast feedback; use native IntersectionObserver for one-time section reveals and respect prefers-reduced-motion everywhere. ## Variables - [BRAND] — Author name (default: "Mara Ellison"). Use an invented pen name throughout the wordmark, biographies, image alt text, book covers and contact details. - [GENRE] — Genre descriptor (default: "Literary mysteries"). A short genre label that can introduce the author and guide rewritten copy. - [FEATURED_BOOK] — Featured book title (default: "The Cartographer of Low Tides"). The first book in the content collection and the default when book.html has no valid id. - [LOCATION] — Author location (default: "Portland, Maine"). A city and region used in the biography and event context, not a recognizable business or venue. - [NEWSLETTER_NAME] — Newsletter name (default: "Notes from the Margin"). Use in the signup heading, local storage key and confirmation copy. - [CONTACT_EMAIL] — Public contact email (default: "[email protected]"). Use the reserved .example domain in the demo; derive mailto links from this value. - [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/author-website in the footer (default: yes; delete this line to remove it) The copy under Pages & Sections is written for the default values. If your values differ, rewrite every headline, paragraph, label and image for them — same length, tone and structure. Layout, colors, type and motion stay as described. Keep all copy, image paths and links in one content file (for example `src/content.ts`), keyed by section, so the content can be swapped later without touching components. ## Design ### Colors - Vellum `#F2EDE3` — Main page background and generous negative space - Paper `#FBF8F1` — Reading surfaces, the header and alternating editorial bands - Ink `#1E2A26` — Primary text, dark footer and primary buttons - Muted Ink `#626A62` — Metadata, captions and secondary copy - Oxblood `#873F38` — Links, active rules, small labels and the primary accent - Moss `#87957F` — Secondary book-cover geometry and quiet illustrative details - Hairline `#D6CCBC` — One-pixel borders, separators and input outlines - Faded Ochre `#C4A46A` — Sparse cover accents only, never body text or large backgrounds ### Typography - Display and literary quotations: Fraunces Variable (OFL), weights 400/500/600 - Body, navigation, forms and metadata: Source Sans 3 (OFL), weights 400/500/600/700 ### Layout & motion - Spacing: Use an 8px base scale, a 1280px maximum content width, 48px desktop gutters and 20px mobile gutters. Major sections have 112px vertical padding on desktop and 72px on mobile. Keep prose between 62ch and 68ch, use 1px rules to organize dense information, and maintain at least 16px between interactive controls. - Radius: Use square page edges and book covers, 2px corners on buttons, inputs and the portrait frame, and fully rounded shapes only for tiny genre or format labels. Avoid floating pill-shaped cards and large soft shadows. - Motion: On the home hero, reveal the eyebrow, headline, copy and actions with a 90ms stagger over 600ms while the portrait settles from scale 1.025 to 1; content must remain visible when JavaScript is unavailable. - Motion: Reveal major sections once as they enter the viewport, moving from opacity 0 and translateY 20px over 500ms; never hide the whole page before an observer fires. - Motion: Give book covers a restrained pointer tilt of at most 4 degrees, translateY(-6px) and a narrow paper-edge highlight over 180ms; reset on pointer leave and disable tilt on touch devices. - Motion: Update the excerpt reading-progress rule with native scroll position, animate accordions and mobile navigation over 160–220ms, and move focus correctly when they open or close. - Motion: Use smooth anchor scrolling only under prefers-reduced-motion: no-preference; under reduce, remove reveals, tilt, parallax and nonessential transitions without disabling reading progress or controls. - Imagery: Use one supplied, professionally lit editorial photograph of a completely fictional author at a writing desk as the hero, about-page and press-kit portrait. It is a reusable placeholder: retain the supplied local file across variable cases and update its alt text to [BRAND]. All four book jackets are original inline SVG compositions built from geometric lines, contour paths, circles and typographic title/author text; each has its own palette and motif but the same trim ratio and fine paper grain. Do not add other photographs, recognizable people, existing cover art, retailer marks or decorative stock illustration. ## Pages & Sections ### Home — featured novel and complete bibliography (`index.html`) 1. **Shared shell** — Use this shell on all five pages. The wordmark is [BRAND]. Desktop navigation is Books (./index.html#books), Events (./events.html), About (./about.html), Press Kit (./press.html), followed by a compact Join the letter button to ./index.html#newsletter. Add a visible-on-focus Skip to content link. The footer uses an Ink background with Paper text, repeats the navigation, shows For readings, rights and press: [CONTACT_EMAIL] as a mailto link, lists [LOCATION], and leaves the optional [CREDIT] line small and unobtrusive. Layout: Make the header sticky at the top with a 76px desktop and 64px mobile height, a Paper background at 96% opacity and a Hairline bottom border. Align its contents to the 1280px grid. On mobile, replace navigation with a labeled Menu button and open a full-width Paper panel below the header with 48px-tall links, focus trapping and Escape-to-close. Use a three-column footer on desktop and one column on mobile. Motion: Fade and translate the mobile panel 8px over 180ms; return focus to the Menu button on close. 2. **Portrait-led hero** — Eyebrow: [GENRE] · [LOCATION]. H1: Stories for the hours when the world goes quiet. Body: [BRAND] writes layered fiction about memory, place, and the secrets families keep. The new novel, [FEATURED_BOOK], follows a retired mapmaker back to the island she once erased from every atlas. Primary CTA: Read the opening, linked to ./book.html#excerpt. Secondary CTA: Explore the books, linked to ./index.html#books. Place a small Latest novel label beside the portrait and an original SVG jacket for [FEATURED_BOOK] overlapping its lower-left corner. Layout: Use a two-column 7/5 grid with a 72px gap, 64px top padding and 80px bottom padding. Set the headline at 72px/0.98 with a maximum width of 11ch and body at 20px/1.55. The portrait is a large 3:4 editorial frame at least 480px wide on desktop, with the book jacket about 210px wide. On 390px screens use a single column with eyebrow, 46px headline, a 280px-high portrait/jacket visual, body and then two full-width CTAs so the visual anchor appears within the first viewport. Motion: Apply the hero entrance sequence and restrained jacket tilt; do not use autoplay video, a carousel or a large animated background. 3. **Featured novel** — Label: The latest novel. Title: [FEATURED_BOOK]. Dek: A missing survey. A causeway open for six hours. A family history waiting at low tide. Synopsis: When cartographer Nell Arden returns to Gannet Island to sell her father's house, she finds a hand-drawn survey tucked inside his tide tables. Its unfamiliar contour leads through the salt marsh to a cottage omitted from every official map—and to the sister her family insisted had left the island thirty years earlier. Metadata: 368 pages · Literary mystery · May 2027. Pull line: Every coastline is an argument with the past. CTA: Discover the book, linked to the featured book's ./book.html?id=… URL. Layout: Use a Paper band with Hairline top and bottom borders. Inside, create a 5/7 grid: a 280px-wide code-drawn jacket on the left and the text on the right, with the title at 52px and the pull line in 26px Fraunces italic after the synopsis. Align metadata in one wrapped row separated by thin vertical rules. On mobile, use a 180px jacket aligned left above the text and a 40px title. Motion: Reveal the jacket and copy as one section; the jacket may hover-tilt but the synopsis never moves independently. 4. **Books bibliography** — Heading: Four books. Four ways home. Intro: Novels about the places that remember us, from a tidal island to the last tram before a blizzard. Include [FEATURED_BOOK] (2027), The Orchard After Dark (2024), A House for Returning Birds (2022), and The Winter Tram (2019). Their respective motifs are layered tidal contours, five arching orchard branches, three geometric returning birds, and two converging tram lines. Each title links to ./book.html?id=its-slug. Backlist premises: The Orchard After Dark follows two sisters who find a ledger recording harvests that never happened; A House for Returning Birds follows an architect inheriting a cliff house where rooms face different family decades; The Winter Tram brings five strangers the same unsent letter on the last tram before a blizzard. Layout: Set the heading and intro in a 7/5 split above a four-column cover grid. Each item is an unboxed composition: a 2:3 SVG jacket, title in 24px Fraunces, then year and genre metadata separated by a Hairline. Use two columns with 12px gaps on mobile and make the entire jacket plus title an accessible link. Do not add filter pills or a carousel for only four books. Motion: Stagger cover entrances by no more than 60ms and apply the shared cover hover behavior. 5. **Events preview** — Heading: Meet the author. Intro: Readings, conversations and book-club evenings, with time to stay and talk afterward. Show the same three event records used on events.html: An Evening of Coastal Mysteries on Thursday, April 15, 2027 at 7:00 PM at The Reading Room, 48 Alder Street, Portland, Maine; Maps, Memory & Fiction on Saturday, April 24, 2027 at 2:00 PM at Hall Library, 16 Harbor Lane, Portsmouth, New Hampshire; Spring Book Festival on Sunday, May 9, 2027 at 11:30 AM at Cedar Hall, 9 Garden Street, Boston, Massachusetts. CTA: View all event details, linked to ./events.html. Layout: Use three full-width editorial rows divided by Hairlines. Each row is a 140px date column, a flexible title/venue column and a right-aligned city column on desktop. On mobile, put the date above the title and the city beneath it. Do not wrap the rows in separate rounded cards. Motion: Reveal rows together; on hover, move only the title 4px to the right and deepen the Oxblood rule. 6. **About the author** — Label: About [BRAND]. Heading: Writing toward the things we almost say. Copy: [BRAND] writes novels rooted in coastal towns, old houses and the complicated loyalty of families. Before turning to fiction full-time, [BRAND] restored architectural drawings and learned that every erased line leaves a shadow. That attention to what remains runs through all four books. Add three compact facts: Four novels; Drafts at 5:30 AM; Based in [LOCATION]. CTA: Read the full story, linked to ./about.html. Layout: Use a 4/8 grid with the label and facts in the narrow column and a 52px heading plus 20px copy in the wide column. Separate facts with Hairlines rather than statistic cards. On mobile, place the heading first, followed by copy and the three facts in one row with wrapped text. Motion: One quiet section reveal; no animated counters. 7. **Newsletter signup** — Use id newsletter. Eyebrow: [NEWSLETTER_NAME]. Heading: A letter for readers who linger. Body: On the first Sunday of each month, receive a craft note, a short reading list and an early glimpse of the work in progress. No more than twelve letters a year. Fields: Email address and a Join the letter submit button. Include this visible note before submission: Static demo: your address is saved only in this browser and is not sent to a mailing service. Validate a normal email pattern, then store the address under a key derived from [NEWSLETTER_NAME] and show the honest confirmation: Saved in this browser. Connect your mailing service before publishing. Layout: Use an Ink full-bleed band with Paper text. Inside the 1280px grid, place the heading and body in a 7-column area and the form in a 5-column area. Inputs have transparent backgrounds, Paper text, a visible Paper border and an Oxblood-free focus outline in Faded Ochre. Stack all elements on mobile with a minimum 48px field and button height. Motion: Use a 180ms opacity transition between form and confirmation without removing the explanatory note. ### Book detail — synopsis, excerpt and buy placeholders (`book.html`) 1. **Data-driven book overview** — Read the id query and find the matching book in src/content.ts. With no id, an empty id or an unknown id, show [FEATURED_BOOK] as the first item, never an empty or not-found state. The featured view shows Breadcrumb: Books / [FEATURED_BOOK]; label A novel; title [FEATURED_BOOK]; the synopsis from the home page; metadata 368 pages · May 2027 · [GENRE]; and the jacket with layered tidal contours. Backlist views use their own original synopsis, year, page count (320 for The Orchard After Dark, 288 for A House for Returning Birds, 256 for The Winter Tram), motif and an original three-paragraph opening excerpt consistent with their premises. Layout: Use the shared shell and a 5/7 overview grid with 96px top padding. Put a 340px-wide jacket in the left column and breadcrumb, title, synopsis and metadata in the right. Set the title at 64px/1.02 and synopsis at 20px/1.6. On mobile, place breadcrumb and a 44px title before a centered 220px jacket, then synopsis and metadata. Motion: Reveal the selected book immediately on load and update the document title from its data; do not animate a full-page loading state. 2. **Opening excerpt** — Use id excerpt. Label: From chapter one. Heading: The road back. For [FEATURED_BOOK], use this original excerpt verbatim: At low tide, the road to Gannet Island surfaced beneath the rain. Nell parked where the asphalt ended and watched water loosen its hold on the stones. For six hours, perhaps seven if the wind stayed west, there would be a way home. Her father's tide tables lay open on the passenger seat. Inside the back cover she had found a survey drawn in his narrow hand: no roads, no house names, only a line that crossed the marsh and stopped at a small black square. Beside it he had written, Ask June who remembers. Nell had spent twenty-two years correcting other people's maps. She knew how a clean border could conceal a disputed field, how a blank patch might be more truthful than a name. Still, she had never seen her father leave anything unlabeled. At the far side of the causeway, a figure lifted an umbrella. The island had already noticed her. Nell folded the survey once, against its original crease, and stepped into the rain. For backlist books, render their own original excerpts from content.ts rather than repeating this text. Add a thin reading-progress rule labeled Reading progress with an accessible percentage. Layout: Use a Paper reading band. Keep the excerpt in a centered 680px column with 22px/1.8 Source Sans 3, a 72px Fraunces drop cap on the first paragraph and 28px paragraph spacing. Place the label and heading above the column and pin only the 2px progress rule immediately below the sticky header while this section is in view. Mobile body text is 19px/1.75 with 20px gutters. Motion: Grow the progress rule from left to right based on the excerpt's actual scroll range; do not alter the text or reveal paragraphs one by one. 3. **Formats and placeholder buy controls** — Heading: Choose your edition. Show three rows: Hardcover · $28.00 · jacket and deckled edges; Paperback · $18.00 · French flaps; Ebook · $9.99 · EPUB and PDF. Each row has a Buy placeholder button. These are deliberately not live retailer links: clicking one shows a nonblocking toast saying Retailer link placeholder — add your own URL in content.ts. Do not navigate away, start a checkout or imply that a sale occurred. Layout: Place the heading in a 4-column left rail and the edition rows in an 8-column right area. Each row uses a Hairline top border, a format/description group, a tabular-price column and a 120px button. On mobile, stack format, description, price and a full-width button with 16px spacing. Motion: Toast enters at the bottom center with 8px upward movement and remains readable for four seconds; only one toast is present at a time. 4. **Reading-group notes** — Heading: After the last page. Intro: Three questions for the conversation that follows [FEATURED_BOOK]. Questions: How does the causeway's timetable shape Nell's choices? Which maps in the novel protect, and which ones accuse? What might the final blank contour make possible? For backlist books, replace these with three questions derived from their own plots. Add a Copy discussion questions button that copies the visible questions and shows Copied for two seconds. Layout: Use three numbered columns with large 01, 02 and 03 markers in Oxblood, divided by vertical Hairlines on desktop and horizontal rules on mobile. Put the copy action above the columns, right-aligned on desktop and full-width on mobile. Motion: Reveal the three questions together and give the copy button a brief text-only confirmation. 5. **More books** — Heading: Continue through the bibliography. Show the other three books with their jackets, titles and years, each linked to its own ./book.html?id=… URL. Keep the shared footer. Layout: Use a three-column grid on desktop and two columns on mobile, with the final item spanning neither column nor stretching its cover. Keep the same cover ratio and typography as the home bibliography. Motion: Use the shared cover hover treatment with no carousel or automatic movement. ### Events — readings and conversations (`events.html`) 1. **Events introduction** — Eyebrow: Readings & conversations. H1: Bring your questions. Stay for the story. Body: [BRAND] visits libraries, independent venues and community festivals for short readings followed by generous audience conversations. Every listing below includes local time, venue details and a calendar download. Layout: Use a 7/5 split with a 64px headline on the left and 20px body copy aligned to the bottom right. Add a Hairline below the section. Mobile headline is 46px with copy below. Motion: Use a single quiet entrance. 2. **Upcoming event list** — Render the three records from content.ts. An Evening of Coastal Mysteries: April 15, 2027, 7:00–8:30 PM, The Reading Room, 48 Alder Street, Portland, Maine; a 20-minute reading, audience Q&A and signing, with doors at 6:30 PM and step-free entry. Maps, Memory & Fiction: April 24, 2027, 2:00–3:15 PM, Hall Library, 16 Harbor Lane, Portsmouth, New Hampshire; a conversation about setting and research, with an assisted-listening system and accessible parking behind the library. Spring Book Festival: May 9, 2027, 11:30 AM–12:30 PM, Cedar Hall, 9 Garden Street, Boston, Massachusetts; a panel followed by a signing, with reserved aisle seating available. Each row has Details and Add to calendar buttons. Details expands the description and accessibility information. Add to calendar generates a local .ics file with the correct title, address, start and end time; it calls no calendar service. Layout: Use full-width rows with a 150px date block, flexible event information and a 190px actions column. Show month and day in Fraunces, then year and local time in Source Sans 3. Expanded details occupy the information column without shifting the actions off-screen. On mobile, use one column with 48px-tall Details and Add to calendar buttons side by side only if both fit; otherwise stack them full width. Motion: Expand details over 200ms, update aria-expanded and move neither focus nor scroll position. 3. **Event planning note** — Heading: Planning a reading or festival? Copy: The press kit includes biographies, a portrait, discussion themes and a printable fact sheet. For availability, format and accessibility requirements, write directly to [CONTACT_EMAIL]. Actions: Open the press kit (./press.html) and Email the author (mailto derived from [CONTACT_EMAIL]). Layout: Use an Ink band with a 7/5 text-and-actions grid. Buttons are Paper outlines with clear focus states and stack on mobile. Motion: No animation beyond the shared section reveal and button hover states. ### About — biography and writing practice (`about.html`) 1. **Biography portrait and introduction** — Eyebrow: About [BRAND]. H1: Looking for the story beneath the official version. Biography: [BRAND] is the author of four novels, including [FEATURED_BOOK]. The work moves through coastal towns, inherited houses and families learning to tell the truth out loud. Before fiction, [BRAND] spent a decade restoring architectural drawings, cataloguing revisions and discovering how much a deliberate erasure could reveal. Today, writing begins before sunrise in [LOCATION], usually with a paper map, a pencil and more questions than answers. Layout: Use a 5/7 grid with the supplied author portrait on the left and text on the right. The portrait retains its natural 3:4 ratio and has a small caption: Writing in [LOCATION]. Set the headline at 58px and biography at 21px/1.65. On mobile, put the eyebrow and 44px headline first, the portrait second and biography third. Motion: Use the hero portrait settle and copy reveal without another jacket overlap. 2. **A working day** — Heading: A writing life, in four margins. Timeline: 5:30 AM — First draft, longhand, before the house wakes; 8:30 AM — Walk without headphones and test the day's scene against the weather; 1:00 PM — Type, cut and read the new pages aloud; 4:00 PM — Answer reader letters, then leave one honest note for tomorrow. Closing line: The routine is ordinary. That is what makes it reliable. Layout: Set the heading in a 4-column rail and the timeline in an 8-column area. Each entry is a two-column time/description row divided by Hairlines. On mobile, keep time at 96px wide and allow descriptions to wrap without shrinking text. Motion: Reveal the rows together; do not simulate typing or animate a clock. 3. **Reader questions** — Heading: Questions readers ask. Accordions: Do I need to read the books in order? Answer: No. Each novel stands alone, though attentive readers will notice a few shared streets and objects. Where do the settings come from? Answer: They are invented composites, drawn from climate, architecture and oral histories rather than copied from one real town. Can our book club request discussion questions? Answer: Yes. Every book page includes questions to copy, and the press kit lists additional themes. What are you writing now? Answer: A novel about an abandoned weather station and the person who has kept its records long after the last transmission. Layout: Use a 4/8 grid with the heading left and four accordion rows right. Questions use 24px Fraunces, answers use 18px/1.65 Source Sans 3, and each trigger spans the full row with a Plus icon that rotates 45 degrees when open. Start with the first answer open and allow multiple answers to remain open. Motion: Animate answer height and opacity over 200ms, preserve keyboard focus and respect reduced motion. 4. **Newsletter invitation** — Reuse the exact [NEWSLETTER_NAME] content, validation, honest local-storage behavior and confirmation defined on index.html; do not create a second form implementation. Layout: Reuse the Ink newsletter band with id newsletter and the same desktop and mobile grid. Motion: Use the same 180ms confirmation transition. ### Press kit — biographies, downloads and interview topics (`press.html`) 1. **Press introduction** — Eyebrow: Press & event resources. H1: Everything you need, ready to quote. Body: Approved biographies, the author portrait, original book jackets and practical details for journalists, booksellers, librarians and festival teams. For corrections or interview requests, contact [CONTACT_EMAIL]. Layout: Use a 7/5 split with a 60px headline, right-aligned body copy and a Hairline below. Mobile headline is 44px. Motion: One quiet section reveal. 2. **Copyable biographies** — Provide two versions with Copy short bio and Copy long bio buttons. Short bio: [BRAND] writes [GENRE] about memory, place and family loyalty. The latest novel is [FEATURED_BOOK]. Before writing fiction full-time, [BRAND] restored architectural drawings. [BRAND] now lives and writes in [LOCATION]. Long bio: [BRAND] is the author of four novels, including [FEATURED_BOOK]. The books explore inherited houses, changing landscapes and the stories families preserve—or revise—to protect one another. Before turning to fiction, [BRAND] spent a decade restoring architectural drawings, an experience that continues to shape an interest in erased lines and unofficial histories. [BRAND] writes in [LOCATION], leads occasional community workshops and meets readers at libraries, book clubs and festivals. Layout: Use two adjacent unboxed columns divided by a vertical Hairline, each with a 28px Fraunces label, an 18px/1.7 text block and a bottom-aligned outline button. Stack on mobile. Confirmation appears in the button as Copied and via an aria-live region without duplicating visible toasts. Motion: Use text-only copy confirmation for two seconds; do not animate the biography text. 3. **Downloadable assets** — Heading: Images and fact sheet. Offer Author portrait (WebP, 3:4) using the download attribute on the local public/images/author-portrait.webp file; one Download SVG action per book that serializes that book's inline SVG into a local Blob download; and Download fact sheet, which creates a UTF-8 text file containing [BRAND], [GENRE], [LOCATION], [FEATURED_BOOK], [CONTACT_EMAIL], the short bio and all event records. Keep the required asset-generation credit in ASSETS.md rather than visible page copy. Buttons perform real local downloads and show no fake upload or processing state. Layout: Use a 4/8 grid. The left side contains a 160px-wide portrait thumbnail and its download action; the right side contains four compact book-cover download rows followed by the fact-sheet row. All rows have Hairline separators and clear file-type labels. On mobile, center the portrait and stack download actions at 48px minimum height. Motion: No progress animation; provide immediate filename-specific feedback only when a browser download begins. 4. **Facts and conversation themes** — Facts at a glance: Author — [BRAND]; Genre — [GENRE]; Based in — [LOCATION]; Books — Four standalone novels; Latest — [FEATURED_BOOK]; Contact — [CONTACT_EMAIL]. Interview themes: How maps decide what deserves to be seen; Why family secrets change shape between generations; The difference between research and invention; What architectural restoration teaches about revision; Building a sustainable writing routine before sunrise. Layout: Use a 5/7 grid with facts in the left column and themes in the right. Facts use stacked label/value rows; themes use five numbered lines, not cards. Add a final Paper band with the text Need a detail that is not listed here? and a mailto button labeled Contact the author. Motion: Use a shared reveal and ordinary button hover states only. ## Assets - image: Download https://media.vibefather.ai/assets/02d06fce-e5c2-4cf5-89b4-6fa75d35254e/author-portrait.webp to public/images/author-portrait.webp. Alt: [BRAND], a fictional author, writing beside a window. Use it in the home hero, about biography and press downloads. Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template. Record the local path, exact source URL, alt text, usage and this credit in ASSETS.md. - image: Draw all four book jackets as original inline SVG at a 2:3 trim ratio, using the motifs, palettes and typography specified in the pages. Generate their press downloads locally with XMLSerializer and Blob. Do not fetch cover images or add any other bitmap artwork. - icon: Use only the needed Lucide icons from lucide-react (ArrowUpRight, ArrowRight, Menu, X, Plus, Download, Copy, Check, CalendarPlus and Mail), tree-shaken into the local bundle; record the package and ISC license in ASSETS.md. - font: Self-host Fraunces Variable through @fontsource-variable/fraunces and Source Sans 3 through @fontsource/source-sans-3, both OFL. Bundle the woff2 files locally and list both packages, licenses and local usage in ASSETS.md. ## Don'ts - Do not use real authors, recognizable people, celebrity likenesses, real biographies, existing book titles, published excerpts, review quotations, cover art or any reference site's code or exact copy. - Do not use real publisher, bookseller, retailer, festival, award or media names and logos. The format Buy controls are placeholders only; no real checkout, transaction or external retailer redirect. - Do not use commercial fonts, font CDNs, Unsplash, Pexels, Pixabay, stock-photo hotlinks, placeholder-image services, brand-icon packs or additional people images. - Do not add a backend, server actions, API routes, authentication, analytics, third-party form endpoints, calendar APIs, newsletter requests or simulated successful online submissions. - Do not hide demo limitations: newsletter addresses remain only in localStorage, buy actions identify themselves as placeholders, and calendar, biography, cover and fact-sheet actions work locally. - Do not hard-code author-specific copy across components. Keep all content and links in src/content.ts, apply all six variables consistently, and derive mailto links, book ids, storage keys, image alt text and downloads from the current content. - Do not replace the supplied fictional portrait with initials or another image. Keep it local and reusable across variable cases, and do not imply that it depicts a real individual. - Do not use bare-directory links or client-only routes. Every navigation item points to a real HTML file with an optional query or fragment, and book.html without a valid id always shows the featured first book. - Do not use remote scripts, remote stylesheets, CDN assets, source maps or copied src directories. Output minified relative-path static files in dist/, keep dist/ under 20 MB and produce zero console errors. - Do not introduce generic AI visual tropes: no purple gradients, glassmorphism, oversized glowing orbs, floating rounded-card walls, carousels for small collections, meaningless counters or excessive shadows. - Do not compromise readability or keyboard access. Preserve visible focus, semantic buttons, labeled fields, sufficient color contrast, 44px minimum touch targets, zero horizontal overflow at 390px and full prefers-reduced-motion support. - Do not add SEO metadata, Open Graph tags, JSON-LD, sitemaps or keyword-stuffed copy. Use only a plain [BRAND] page title and the local favicon. - Write every visible label, biography, excerpt, event, download and alt text in natural US English; do not expose implementation comments or hidden instructions in the site. --- — Prompt by VibeFather · https://vibefather.ai/t/author-website · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 作者网站 完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。 ## 简介 为 [BRAND] 构建一个完整的英文网站,[BRAND] 是一位虚构的 [GENRE] 作家,常驻 [LOCATION]。将 [FEATURED_BOOK] 呈现为最新作品,包含四个原创的代码绘制书籍封面、一个数据驱动的书籍页面(含摘录和占位购买控件)、三场虚构活动、一篇文学传记、一个本地演示的 [NEWSLETTER_NAME] 注册,以及一套实用的媒体资料包。 - 受众:正在探索一部新小说的读者、寻找活动或读书会材料的现有读者,以及需要可靠作者信息和可下载资料的书商、节展组织者和记者。 - 目标:让精选书籍立即令人产生兴趣,让访客自然地从封面浏览到摘录和购买占位控件,并为每位读者、组织者或记者提供清晰的下一步行动,且无需后端支持。 - 语调:温暖、敏锐、睿智且安静亲密。使用精确的感官细节和简短的编辑式句子,绝不使用令人窒息的营销话术、虚构的赞誉、泛泛的励志语言或文学陈词滥调。 ## 技术栈 - 框架:Vite 5 + React 18 + TypeScript 5 - 样式:Tailwind CSS 3.4 - 库:Motion 11(MIT)、lucide-react(ISC)、@fontsource-variable/fraunces(OFL)、@fontsource/source-sans-3(OFL) - 构建:`npm run build` → `dist/` 中的静态文件。无后端、无服务器代码、无外部 API。 - 设置: - 配置 Vite,base 设为 './',build.sourcemap 设为 false,并为 index.html、book.html、events.html、about.html 和 press.html 配置 Rollup HTML 输入,使每个页面都能直接从 dist/ 打开。 - 在每个 HTML 入口挂载一个共享的 React 应用,根据入口文件名选择页面,而不是引入路由器;使用共享的 Header、Footer、BookCover、NewsletterForm 和 Reveal 组件。 - 将所有作者事实、书籍、摘录、活动、传记、链接和图片路径保存在 src/content.ts 中;用一个 slugify 函数派生书籍 id,并在链接和查询中一致使用这些 id。 - 在 Tailwind 主题和 src/index.css 中定义调色板、排版、间距和关键帧;包含一个仅用 CSS 渐变制作的极低不透明度的小纸张纹理。 - 从列出的 Fontsource 包中导入 Fraunces 和 Source Sans 3,并提供系统衬线字体和无衬线字体作为回退;将所有字体文件本地打包。 - 创建一个简单的原创打开书本线条 favicon 作为本地 SVG,并为每个 HTML 入口设置一个包含 [BRAND] 及其页面名称的纯文档标题;不要添加 SEO 元数据。 - 使用 Motion 实现入场变换,使用 AnimatePresence 实现菜单、手风琴和 toast 反馈;使用原生 IntersectionObserver 实现一次性区块显现,并在所有地方尊重 prefers-reduced-motion。 ## 变量 - [BRAND] — 作者姓名(默认:“Mara Ellison”)。在文字标识、个人简介、图片替代文本、书籍封面和联系方式中全程使用一个虚构的笔名。 - [GENRE] — 类型描述词(默认:“Literary mysteries”)。一个简短的类型标签,可用于介绍作者并指导改写后的文案。 - [FEATURED_BOOK] — 精选书籍标题(默认:“The Cartographer of Low Tides”)。内容集合中的第一本书,也是 book.html 没有有效 id 时的默认值。 - [LOCATION] — 作者所在地(默认:“Portland, Maine”)。用于个人简介和活动上下文的城市与地区,不是可识别的商家或场馆。 - [NEWSLETTER_NAME] — 新闻通讯名称(默认:“Notes from the Margin”)。用于订阅标题、本地存储键和确认文案。 - [CONTACT_EMAIL] — 公开联系邮箱(默认:“[email protected]”)。演示中使用保留的 .example 域名;mailto 链接由此值派生。 - [CREDIT] — 在页脚保留一个小型“Template by VibeFather”链接指向 https://vibefather.ai/t/author-website(默认:是;删除此行即可移除) Pages & Sections 下的文案是按默认值编写的。如果你的取值不同,请为它们重写每一个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。 将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便之后无需改动组件即可替换内容。 ## 设计 ### 颜色(Colors) - Vellum `#F2EDE3` — 主页面背景和充裕的留白 - Paper `#FBF8F1` — 阅读区域、页眉和交替的编辑版块 - Ink `#1E2A26` — 主文本、深色页脚和主按钮 - Muted Ink `#626A62` — 元数据、说明文字和次要文案 - Oxblood `#873F38` — 链接、活动分隔线、小标签和主强调色 - Moss `#87957F` — 次要书籍封面几何图形和低调的插画细节 - Hairline `#D6CCBC` — 一像素边框、分隔线和输入框轮廓 - Faded Ochre `#C4A46A` — 仅用于稀疏的封面点缀,绝不用于正文或大面积背景 ### 字体排印(Typography) - 展示字体和文学引文:Fraunces Variable(OFL),字重 400/500/600 - 正文、导航、表单和元数据:Source Sans 3(OFL),字重 400/500/600/700 ### 布局与动效(Layout & motion) - 间距:使用 8px 基础比例,内容最大宽度 1280px,桌面端边距 48px,移动端边距 20px。主要区块在桌面端有 112px 垂直内边距,移动端为 72px。正文保持在 62ch 到 68ch 之间,使用 1px 分隔线组织密集信息,交互控件之间至少保持 16px 间距。 - 圆角:页面边缘和书籍封面使用直角,按钮、输入框和肖像框使用 2px 圆角,仅微小的类型或格式标签使用全圆角。避免浮动胶囊形卡片和大面积柔和阴影。 - 动效:在首页主视觉区,眉题、标题、文案和操作按钮以 90ms 的间隔依次显现,总时长 600ms,同时肖像从 scale 1.025 稳定到 1;当 JavaScript 不可用时,内容必须保持可见。 - 动效:主要区块在进入视口时显现一次,从 opacity 0 和 translateY 20px 过渡到正常状态,时长 500ms;绝不在观察器触发前隐藏整个页面。 - 动效:为书籍封面添加克制的指针倾斜效果,最大 4 度,translateY(-6px),以及窄纸边高光,时长 180ms;指针离开时重置,触摸设备上禁用倾斜。 - 动效:使用原生滚动位置更新摘录阅读进度线,手风琴和移动端导航在 160–220ms 内动画过渡,并在打开或关闭时正确移动焦点。 - 动效:仅在 prefers-reduced-motion: no-preference 下使用平滑锚点滚动;在 reduce 下,移除显现、倾斜、视差和非必要过渡,但不禁用阅读进度或控件。 - 图像:使用一张提供的、专业打光的编辑照片作为主视觉、关于页面和媒体资料包的肖像,照片中是一位完全虚构的作家在写作桌前。它是一个可复用的占位符:在不同变量情况下保留提供的本地文件,并将其 alt 文本更新为 [BRAND]。所有四个书籍护封都是原创的内联 SVG 构图,由几何线条、轮廓路径、圆形和排版标题/作者文字构成;每个都有自己的调色板和母题,但相同的裁切比例和精细纸张纹理。不要添加其他照片、可识别的人物、现有封面艺术、零售商标记或装饰性库存插画。 ## 页面与区块 ### 首页 — 精选小说与完整书目(`index.html`) 1. **共享外壳** — 在所有五个页面上使用此外壳。字标为 [BRAND]。桌面导航为 Books(./index.html#books)、Events(./events.html)、About(./about.html)、Press Kit(./press.html),后跟一个紧凑的 Join the letter 按钮,链接至 ./index.html#newsletter。添加一个聚焦时可见的 Skip to content 链接。页脚使用 Ink 背景配 Paper 文字,重复导航,显示 For readings, rights and press: [CONTACT_EMAIL] 作为 mailto 链接,列出 [LOCATION],并将可选的 [CREDIT] 行保持小号且不显眼。 布局:将页眉固定在顶部,桌面高度 76px、移动端 64px,Paper 背景 96% 不透明度,底部 Hairline 边框。将其内容对齐到 1280px 网格。在移动端,用带标签的 Menu 按钮替换导航,并在页眉下方打开一个全宽 Paper 面板,链接高度 48px,支持焦点捕获和 Escape 关闭。桌面使用三列页脚,移动端使用一列。 动效:移动面板在 180ms 内淡入并平移 8px;关闭时将焦点返回 Menu 按钮。 2. **肖像主导的英雄区** — 眉题:[GENRE] · [LOCATION]。H1:Stories for the hours when the world goes quiet。正文:[BRAND] writes layered fiction about memory, place, and the secrets families keep. The new novel, [FEATURED_BOOK], follows a retired mapmaker back to the island she once erased from every atlas。主 CTA:Read the opening,链接至 ./book.html#excerpt。次 CTA:Explore the books,链接至 ./index.html#books。在肖像旁放置一个小号 Latest novel 标签,并将 [FEATURED_BOOK] 的原创 SVG 封面重叠在其左下角。 布局:使用两列 7/5 网格,间距 72px,顶部内边距 64px,底部内边距 80px。标题设为 72px/0.98,最大宽度 11ch,正文 20px/1.55。肖像为大型 3:4 编辑框,桌面至少 480px 宽,书籍封面约 210px 宽。在 390px 屏幕上使用单列:眉题、46px 标题、280px 高的肖像/封面视觉、正文,然后两个全宽 CTA,使视觉锚点出现在首屏内。 动效:应用英雄区入场序列和克制的封面倾斜;不要使用自动播放视频、轮播或大型动画背景。 3. **精选小说** — 标签:The latest novel。标题:[FEATURED_BOOK]。导语:A missing survey. A causeway open for six hours. A family history waiting at low tide。简介:When cartographer Nell Arden returns to Gannet Island to sell her father's house, she finds a hand-drawn survey tucked inside his tide tables. Its unfamiliar contour leads through the salt marsh to a cottage omitted from every official map—and to the sister her family insisted had left the island thirty years earlier。元数据:368 pages · Literary mystery · May 2027。引语:Every coastline is an argument with the past。CTA:Discover the book,链接至精选书籍的 ./book.html?id=… URL。 布局:使用 Paper 色带,顶部和底部有 Hairline 边框。内部创建 5/7 网格:左侧为 280px 宽的代码绘制封面,右侧为文字,标题 52px,引语在简介之后以 26px Fraunces 斜体呈现。元数据对齐在一行换行排列,用细竖线分隔。移动端使用 180px 封面左对齐于文字上方,标题 40px。 动效:将封面和文案作为一个区块一起显示;封面可以悬停倾斜,但简介永不独立移动。 4. **书籍书目** — 标题:Four books. Four ways home。引言:Novels about the places that remember us, from a tidal island to the last tram before a blizzard。包括 [FEATURED_BOOK](2027)、The Orchard After Dark(2024)、A House for Returning Birds(2022)和 The Winter Tram(2019)。它们各自的母题是层叠的潮汐等高线、五条拱形的果园树枝、三只几何化的归鸟和两条汇聚的电车线路。每个标题链接至 ./book.html?id=its-slug。旧作简介:The Orchard After Dark 讲述两姐妹发现一本记录从未发生过的收获的账本;A House for Returning Birds 讲述一位建筑师继承了一座悬崖房屋,其中的房间面向不同的家族年代;The Winter Tram 在暴风雪前的最后一班电车上给五位陌生人带来了同一封未寄出的信。 布局:将标题和引言以 7/5 分割置于四列封面网格上方。每个项目是一个无边框组合:2:3 SVG 封面、24px Fraunces 标题,然后是年份和类型元数据,用 Hairline 分隔。移动端使用两列,间距 12px,并使整个封面加标题成为可访问链接。不要为仅四本书添加筛选药丸或轮播。 动效:封面入场错开不超过 60ms,并应用共享的封面悬停行为。 5. **活动预览** — 标题:Meet the author。引言:Readings, conversations and book-club evenings, with time to stay and talk afterward。显示与 events.html 相同的三条活动记录:An Evening of Coastal Mysteries 于 2027 年 4 月 15 日星期四晚上 7:00 在 The Reading Room, 48 Alder Street, Portland, Maine;Maps, Memory & Fiction 于 2027 年 4 月 24 日星期六下午 2:00 在 Hall Library, 16 Harbor Lane, Portsmouth, New Hampshire;Spring Book Festival 于 2027 年 5 月 9 日星期日上午 11:30 在 Cedar Hall, 9 Garden Street, Boston, Massachusetts。CTA:View all event details,链接至 ./events.html。 布局:使用三个全宽编辑行,用 Hairline 分隔。桌面每行为 140px 日期列、灵活的标题/场地列和右对齐的城市列。移动端将日期放在标题上方,城市放在其下方。不要将行包裹在单独的圆角卡片中。 动效:行一起显示;悬停时仅将标题向右移动 4px 并加深 Oxblood 规则线。 6. **关于作者** — 标签:About [BRAND]。标题:Writing toward the things we almost say。文案:[BRAND] writes novels rooted in coastal towns, old houses and the complicated loyalty of families. Before turning to fiction full-time, [BRAND] restored architectural drawings and learned that every erased line leaves a shadow. That attention to what remains runs through all four books。添加三个紧凑事实:Four novels;Drafts at 5:30 AM;Based in [LOCATION]。CTA:Read the full story,链接至 ./about.html。 布局:使用 4/8 网格,标签和事实在窄列,52px 标题加 20px 文案在宽列。用 Hairline 分隔事实,而非统计卡片。移动端将标题放在最前,然后是文案和三个事实在一行中换行排列。 动效:一个安静的区域显示;无动画计数器。 7. **新闻通讯注册** — 使用 id newsletter。眉题:[NEWSLETTER_NAME]。标题:A letter for readers who linger。正文:On the first Sunday of each month, receive a craft note, a short reading list and an early glimpse of the work in progress. No more than twelve letters a year。字段:Email address 和 Join the letter 提交按钮。在提交前包含此可见说明:Static demo: your address is saved only in this browser and is not sent to a mailing service。验证常规电子邮件模式,然后将地址存储在从 [NEWSLETTER_NAME] 派生的键下,并显示诚实的确认:Saved in this browser. Connect your mailing service before publishing。 布局:使用 Ink 全出血色带配 Paper 文字。在 1280px 网格内,将标题和正文放在 7 列区域,表单放在 5 列区域。输入框具有透明背景、Paper 文字、可见的 Paper 边框和 Faded Ochre 的无 Oxblood 焦点轮廓。移动端堆叠所有元素,字段和按钮最小高度 48px。 动效:在表单和确认之间使用 180ms 不透明度过渡,不删除说明性注释。 ### 图书详情——内容简介、节选和购买占位符(`book.html`) 1. **数据驱动的图书概览**——读取 id 查询参数,并在 src/content.ts 中查找匹配的图书。当没有 id、id 为空或 id 未知时,将 [FEATURED_BOOK] 作为第一项显示,绝不显示空状态或未找到状态。精选视图显示面包屑导航:Books / [FEATURED_BOOK];标签 A novel;标题 [FEATURED_BOOK];来自首页的内容简介;元数据 368 pages · May 2027 · [GENRE];以及带有层叠潮汐轮廓的护封。往期书目视图使用各自原有的内容简介、年份、页数(The Orchard After Dark 为 320 页,A House for Returning Birds 为 288 页,The Winter Tram 为 256 页)、母题,以及与其设定一致的三段式原创开篇节选。 布局:使用共享外壳和 5/7 概览网格,顶部内边距为 96px。左栏放置宽 340px 的护封,右栏放置面包屑导航、标题、内容简介和元数据。标题设为 64px/1.02,内容简介设为 20px/1.6。在移动端,将面包屑导航和 44px 的标题放在居中的 220px 护封之前,然后是内容简介和元数据。 动效:加载时立即显示所选图书,并根据其数据更新文档标题;不要为整页加载状态添加动画。 2. **开篇节选**——使用 id excerpt。标签:From chapter one。标题:The road back。对于 [FEATURED_BOOK],逐字使用以下原创节选:At low tide, the road to Gannet Island surfaced beneath the rain. Nell parked where the asphalt ended and watched water loosen its hold on the stones. For six hours, perhaps seven if the wind stayed west, there would be a way home. Her father's tide tables lay open on the passenger seat. Inside the back cover she had found a survey drawn in his narrow hand: no roads, no house names, only a line that crossed the marsh and stopped at a small black square. Beside it he had written, Ask June who remembers. Nell had spent twenty-two years correcting other people's maps. She knew how a clean border could conceal a disputed field, how a blank patch might be more truthful than a name. Still, she had never seen her father leave anything unlabeled. At the far side of the causeway, a figure lifted an umbrella. The island had already noticed her. Nell folded the survey once, against its original crease, and stepped into the rain.对于往期书目,渲染 content.ts 中它们各自的原创节选,而不是重复这段文本。添加一条细阅读进度线,标注 Reading progress,并带有可访问的百分比。 布局:使用 Paper 阅读带。将节选放在居中的 680px 栏中,使用 22px/1.8 的 Source Sans 3,第一段使用 72px 的 Fraunces 首字下沉,段落间距为 28px。将标签和标题放在栏上方,并仅在此部分可见时,将 2px 的进度线紧贴在粘性页眉下方。移动端正文为 19px/1.75,左右边距为 20px。 动效:根据节选的实际滚动范围,让进度线从左向右增长;不要更改文本或逐段显示段落。 3. **格式和占位购买控件**——标题:Choose your edition。显示三行:Hardcover · $28.00 · jacket and deckled edges;Paperback · $18.00 · French flaps;Ebook · $9.99 · EPUB and PDF。每行都有一个 Buy 占位按钮。这些按钮有意不是可用的零售商链接:点击其中一个会显示一个非阻塞式 toast,内容为 Retailer link placeholder — add your own URL in content.ts。不要导航离开、启动结账流程或暗示已发生销售。 布局:将标题放在 4 列左栏中,将版本行放在 8 列右区域中。每行使用 Hairline 顶部边框、格式/描述组、表格价格列和 120px 按钮。在移动端,将格式、描述、价格和全宽按钮堆叠排列,间距为 16px。 动效:Toast 从底部中央进入,向上移动 8px,并保持可读四秒;同一时间只显示一个 toast。 4. **阅读小组笔记**——标题:After the last page。引言:Three questions for the conversation that follows [FEATURED_BOOK]。问题:How does the causeway's timetable shape Nell's choices? Which maps in the novel protect, and which ones accuse? What might the final blank contour make possible? 对于往期书目,将其替换为根据各自情节衍生出的三个问题。添加一个 Copy discussion questions 按钮,用于复制可见问题并显示 Copied 两秒。 布局:使用三个编号列,带有 Oxblood 色的大号 01、02 和 03 标记,桌面端由垂直 Hairline 分隔,移动端由水平分隔线分隔。将复制操作放在列上方,桌面端右对齐,移动端全宽。 动效:同时显示三个问题,并为复制按钮提供简短的纯文本确认。 5. **更多图书**——标题:Continue through the bibliography。显示另外三本书及其护封、标题和年份,每本都链接到各自的 ./book.html?id=… URL。保留共享页脚。 布局:桌面端使用三列网格,移动端使用两列,最后一项既不跨列也不拉伸其封面。保持与首页书目相同的封面比例和排版。 动效:使用共享的封面悬停效果,不使用轮播或自动移动。 ### 活动——朗读与对话(`events.html`) 1. **活动介绍**——眉题:Readings & conversations。H1:Bring your questions. Stay for the story。正文:[BRAND] visits libraries, independent venues and community festivals for short readings followed by generous audience conversations. Every listing below includes local time, venue details and a calendar download。 布局:使用 7/5 分栏,左侧为 64px 标题,右侧为底部对齐的 20px 正文。在该部分下方添加一条 Hairline。移动端标题为 46px,正文位于下方。 动效:使用一次安静的入场效果。 2. **即将举行的活动列表**——渲染 content.ts 中的三条记录。An Evening of Coastal Mysteries:April 15, 2027, 7:00–8:30 PM, The Reading Room, 48 Alder Street, Portland, Maine;20 分钟朗读、观众问答和签售,6:30 PM 开门,无台阶入口。Maps, Memory & Fiction:April 24, 2027, 2:00–3:15 PM, Hall Library, 16 Harbor Lane, Portsmouth, New Hampshire;关于背景设定与研究的对话,配有辅助听力系统和图书馆后方无障碍停车位。Spring Book Festival:May 9, 2027, 11:30 AM–12:30 PM, Cedar Hall, 9 Garden Street, Boston, Massachusetts;小组讨论后进行签售,提供预留过道座位。每行都有 Details 和 Add to calendar 按钮。Details 展开描述和无障碍信息。Add to calendar 生成一个本地 .ics 文件,包含正确的标题、地址、开始和结束时间;它不调用任何日历服务。 布局:使用全宽行,包含 150px 日期块、灵活的活动信息区和 190px 操作列。月份和日期使用 Fraunces 显示,年份和当地时间使用 Source Sans 3 显示。展开的详情占据信息列,不会将操作移出屏幕。在移动端,使用单列,仅当 Details 和 Add to calendar 按钮都能放下时,才将 48px 高的两个按钮并排;否则将它们全宽堆叠。 动效:在 200ms 内展开详情,更新 aria-expanded,并且不移动焦点或滚动位置。 3. **活动策划说明**——标题:Planning a reading or festival? 文案:The press kit includes biographies, a portrait, discussion themes and a printable fact sheet. For availability, format and accessibility requirements, write directly to [CONTACT_EMAIL]。操作:Open the press kit(./press.html)和 Email the author(由 [CONTACT_EMAIL] 生成的 mailto)。 布局:使用 Ink 色带,采用 7/5 的文本与操作网格。按钮为 Paper 描边样式,具有清晰的焦点状态,并在移动端堆叠。 动效:除共享的部分入场效果和按钮悬停状态外,无其他动画。 ### 关于 — 个人简介与写作实践(`about.html`) 1. **传记肖像与介绍** — 眉题:About [BRAND]。H1:Looking for the story beneath the official version。传记:[BRAND] 是四部小说的作者,包括 [FEATURED_BOOK]。作品穿行于沿海小镇、继承的房屋,以及学会大声说出真相的家庭之间。在转向小说创作之前,[BRAND] 花了十年时间修复建筑图纸、编目修订版本,并发现刻意的抹除能揭示多少东西。如今,写作在 [LOCATION] 的日出之前开始,通常伴随着一张纸质地图、一支铅笔,以及比答案更多的问题。 布局:使用 5/7 网格,左侧放置提供的作者肖像,右侧放置文字。肖像保持其自然的 3:4 比例,并配有小字说明:Writing in [LOCATION]。标题设为 58px,传记设为 21px/1.65。在移动端,先放眉题和 44px 标题,其次放肖像,最后放传记。 动效:使用主视觉肖像的落定效果和文案显现效果,不再叠加其他封面重叠效果。 2. **一个工作日** — 标题:A writing life, in four margins。时间线:5:30 AM — 手写初稿,趁屋子还未醒来;8:30 AM — 不戴耳机散步,用天气检验当天的场景;1:00 PM — 打字、删改,并大声朗读新写的页面;4:00 PM — 回复读者来信,然后为明天留下一句诚实的笔记。结尾句:The routine is ordinary. That is what makes it reliable。 布局:将标题放在 4 列轨道中,时间线放在 8 列区域中。每个条目是一个两列的时间/描述行,用 Hairlines 分隔。在移动端,时间保持 96px 宽,允许描述换行而不缩小文字。 动效:各行一起显现;不要模拟打字或动画时钟。 3. **读者提问** — 标题:Questions readers ask。手风琴:Do I need to read the books in order? 回答:No. Each novel stands alone, though attentive readers will notice a few shared streets and objects. Where do the settings come from? 回答:They are invented composites, drawn from climate, architecture and oral histories rather than copied from one real town. Can our book club request discussion questions? 回答:Yes. Every book page includes questions to copy, and the press kit lists additional themes. What are you writing now? 回答:A novel about an abandoned weather station and the person who has kept its records long after the last transmission。 布局:使用 4/8 网格,标题在左,四个手风琴行在右。问题使用 24px Fraunces,回答使用 18px/1.65 Source Sans 3,每个触发器横跨整行,带一个 Plus 图标,打开时旋转 45 度。初始时第一个回答展开,并允许多个回答同时保持展开。 动效:在 200ms 内动画回答的高度和透明度,保留键盘焦点并尊重减少动效设置。 4. **通讯邀请** — 复用 index.html 上定义的 [NEWSLETTER_NAME] 内容、验证、诚实的本地存储行为和确认;不要创建第二个表单实现。 布局:复用 id 为 newsletter 的 Ink 通讯横幅,以及相同的桌面和移动端网格。 动效:使用相同的 180ms 确认过渡。 ### 媒体资料包 — 传记、下载和访谈主题(`press.html`) 1. **媒体介绍** — 眉题:Press & event resources。H1:Everything you need, ready to quote。正文:Approved biographies, the author portrait, original book jackets and practical details for journalists, booksellers, librarians and festival teams. For corrections or interview requests, contact [CONTACT_EMAIL]。 布局:使用 7/5 分割,60px 标题,右对齐正文,下方一条 Hairline。移动端标题为 44px。 动效:一次安静的区域显现。 2. **可复制的传记** — 提供两个版本,带 Copy short bio 和 Copy long bio 按钮。短传记:[BRAND] writes [GENRE] about memory, place and family loyalty. The latest novel is [FEATURED_BOOK]. Before writing fiction full-time, [BRAND] restored architectural drawings. [BRAND] now lives and writes in [LOCATION]. 长传记:[BRAND] is the author of four novels, including [FEATURED_BOOK]. The books explore inherited houses, changing landscapes and the stories families preserve—or revise—to protect one another. Before turning to fiction, [BRAND] spent a decade restoring architectural drawings, an experience that continues to shape an interest in erased lines and unofficial histories. [BRAND] writes in [LOCATION], leads occasional community workshops and meets readers at libraries, book clubs and festivals。 布局:使用两个相邻的无框列,由一条垂直 Hairline 分隔,每列有一个 28px Fraunces 标签、一个 18px/1.7 文本块和一个底部对齐的轮廓按钮。移动端堆叠。确认显示在按钮中为 Copied,并通过 aria-live 区域呈现,不重复可见的 toast。 动效:使用纯文本复制确认,持续两秒;不要动画传记文本。 3. **可下载资源** — 标题:Images and fact sheet。提供 Author portrait(WebP,3:4),对本地 public/images/author-portrait.webp 文件使用 download 属性;每本书一个 Download SVG 操作,将该书的内联 SVG 序列化为本地 Blob 下载;以及 Download fact sheet,创建一个 UTF-8 文本文件,包含 [BRAND]、[GENRE]、[LOCATION]、[FEATURED_BOOK]、[CONTACT_EMAIL]、短传记和所有活动记录。将必需的资源生成署名保留在 ASSETS.md 中,而不是可见的页面文案中。按钮执行真实的本地下载,不显示虚假的上传或处理状态。 布局:使用 4/8 网格。左侧包含一个 160px 宽的肖像缩略图及其下载操作;右侧包含四个紧凑的书封下载行,随后是事实表行。所有行都有 Hairline 分隔符和清晰的文件类型标签。在移动端,将肖像居中,并将下载操作堆叠,最小高度 48px。 动效:无进度动画;仅在浏览器下载开始时提供即时的文件名特定反馈。 4. **事实与对话主题** — 事实一览:作者 — [BRAND];类型 — [GENRE];所在地 — [LOCATION];书籍 — Four standalone novels;最新 — [FEATURED_BOOK];联系方式 — [CONTACT_EMAIL]。访谈主题:How maps decide what deserves to be seen;Why family secrets change shape between generations;The difference between research and invention;What architectural restoration teaches about revision;Building a sustainable writing routine before sunrise。 布局:使用 5/7 网格,事实在左列,主题在右列。事实使用堆叠的标签/值行;主题使用五行编号行,而非卡片。添加一个最终的 Paper 横幅,文字为 Need a detail that is not listed here?,以及一个标注为 Contact the author 的 mailto 按钮。 动效:仅使用共享的显现效果和普通的按钮悬停状态。 ## 资源 - 图片:将 https://media.vibefather.ai/assets/02d06fce-e5c2-4cf5-89b4-6fa75d35254e/author-portrait.webp 下载到 public/images/author-portrait.webp。替代文本:[BRAND],一位虚构作者,在窗边写作。将其用于首页主视觉区、关于页作者简介和媒体资料下载。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发。在 ASSETS.md 中记录本地路径、确切源 URL、替代文本、用途和本条署名。 - 图片:以 2:3 裁切比例,使用各页面指定的图案、配色和字体排版,将所有四本书的封面绘制为原创内联 SVG。使用 XMLSerializer 和 Blob 在本地生成它们的媒体资料下载文件。不要获取封面图片,也不要添加任何其他位图 artwork。 - 图标:仅使用 lucide-react 中所需的 Lucide 图标(ArrowUpRight、ArrowRight、Menu、X、Plus、Download、Copy、Check、CalendarPlus 和 Mail),通过 tree-shaking 纳入本地 bundle;在 ASSETS.md 中记录该包和 ISC 许可证。 - 字体:通过 @fontsource-variable/fraunces 自托管 Fraunces Variable,并通过 @fontsource/source-sans-3 自托管 Source Sans 3,二者均为 OFL。将 woff2 文件打包到本地,并在 ASSETS.md 中列出这两个包、许可证和本地用途。 ## 禁止事项 - 不得使用真实作者、可识别的人物、名人肖像、真实传记、现有书名、已发表摘录、评论引语、封面艺术,或任何参考网站的代码或逐字复制内容。 - 不得使用真实出版商、书商、零售商、节庆、奖项或媒体的名称和标识。Buy 控件仅为占位符;不得有真实结账、交易或外部零售商跳转。 - 不得使用商业字体、字体 CDN、Unsplash、Pexels、Pixabay、图库照片外链、占位图服务、品牌图标包或额外的人物图片。 - 不得添加后端、服务器操作、API 路由、身份验证、分析、第三方表单端点、日历 API、新闻订阅请求或模拟成功的在线提交。 - 不得隐藏演示限制:新闻订阅地址仅保留在 localStorage 中,购买操作需标明自身为占位符,日历、传记、封面和资料表操作均在本地运行。 - 不得在各组件中硬编码作者专属文案。将所有内容和链接保留在 src/content.ts 中,一致地应用全部六个变量,并从当前内容派生 mailto 链接、书籍 id、存储键、图片 alt 文本和下载内容。 - 不得用首字母缩写或其他图片替换提供的虚构肖像。保持其本地化并可在各变量场景中复用,且不得暗示其描绘真实个人。 - 不得使用裸目录链接或仅客户端路由。每个导航项都指向一个真实 HTML 文件,可带可选查询或片段,且无有效 id 的 book.html 始终显示精选的第一本书。 - 不得使用远程脚本、远程样式表、CDN 资源、source map 或复制的 src 目录。在 dist/ 中输出压缩的、相对路径的静态文件,保持 dist/ 在 20 MB 以下并产生零控制台错误。 - 不得引入通用 AI 视觉套路:不得使用紫色渐变、玻璃拟态、超大发光球体、浮动圆角卡片墙、用于小规模收藏的轮播、无意义计数器或过度阴影。 - 不得损害可读性或键盘访问。保持可见焦点、语义化按钮、带标签的字段、足够的颜色对比度、44px 最小触摸目标、390px 下零水平溢出以及完整的 prefers-reduced-motion 支持。 - 不得添加 SEO 元数据、Open Graph 标签、JSON-LD、站点地图或关键词堆砌文案。仅使用纯 [BRAND] 页面标题和本地 favicon。 - 每个可见标签、传记、摘录、活动、下载和 alt 文本均用自然的美国英语书写;不得在网站中暴露实现注释或隐藏指令。 --- — Prompt by VibeFather · https://vibefather.ai/t/author-website · 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: "Author Website"
colors:
vellum: "#F2EDE3"
paper: "#FBF8F1"
ink: "#1E2A26"
muted_ink: "#626A62"
oxblood: "#873F38"
moss: "#87957F"
hairline: "#D6CCBC"
faded_ochre: "#C4A46A"
typography:
display_and_literary_quotations: { family: "Fraunces Variable", weights: [400, 500, 600] }
body_navigation_forms_and_metadata: { family: "Source Sans 3", weights: [400, 500, 600, 700] }
spacing: "Use an 8px base scale, a 1280px maximum content width, 48px desktop gutters and 20px mobile gutters. Major sections have 112px vertical padding on desktop and 72px on mobile. Keep prose between 62ch and 68ch, use 1px rules to organize dense information, and maintain at least 16px between interactive controls."
radius: "Use square page edges and book covers, 2px corners on buttons, inputs and the portrait frame, and fully rounded shapes only for tiny genre or format labels. Avoid floating pill-shaped cards and large soft shadows."
---
# Author Website — Design System
Apply this design system to an existing project. It describes the look and feel only; for the full site, use prompt.md.
## Colors
- **Vellum** `#F2EDE3` — Main page background and generous negative space
- **Paper** `#FBF8F1` — Reading surfaces, the header and alternating editorial bands
- **Ink** `#1E2A26` — Primary text, dark footer and primary buttons
- **Muted Ink** `#626A62` — Metadata, captions and secondary copy
- **Oxblood** `#873F38` — Links, active rules, small labels and the primary accent
- **Moss** `#87957F` — Secondary book-cover geometry and quiet illustrative details
- **Hairline** `#D6CCBC` — One-pixel borders, separators and input outlines
- **Faded Ochre** `#C4A46A` — Sparse cover accents only, never body text or large backgrounds
## Typography
- **Display and literary quotations** — Fraunces Variable (OFL), weights 400/500/600. Self-host the font files.
- **Body, navigation, forms and metadata** — Source Sans 3 (OFL), weights 400/500/600/700. Self-host the font files.
## Spacing & shape
- Spacing: Use an 8px base scale, a 1280px maximum content width, 48px desktop gutters and 20px mobile gutters. Major sections have 112px vertical padding on desktop and 72px on mobile. Keep prose between 62ch and 68ch, use 1px rules to organize dense information, and maintain at least 16px between interactive controls.
- Radius: Use square page edges and book covers, 2px corners on buttons, inputs and the portrait frame, and fully rounded shapes only for tiny genre or format labels. Avoid floating pill-shaped cards and large soft shadows.
## Motion
- On the home hero, reveal the eyebrow, headline, copy and actions with a 90ms stagger over 600ms while the portrait settles from scale 1.025 to 1; content must remain visible when JavaScript is unavailable.
- Reveal major sections once as they enter the viewport, moving from opacity 0 and translateY 20px over 500ms; never hide the whole page before an observer fires.
- Give book covers a restrained pointer tilt of at most 4 degrees, translateY(-6px) and a narrow paper-edge highlight over 180ms; reset on pointer leave and disable tilt on touch devices.
- Update the excerpt reading-progress rule with native scroll position, animate accordions and mobile navigation over 160–220ms, and move focus correctly when they open or close.
- Use smooth anchor scrolling only under prefers-reduced-motion: no-preference; under reduce, remove reveals, tilt, parallax and nonessential transitions without disabling reading progress or controls.
## Imagery
Use one supplied, professionally lit editorial photograph of a completely fictional author at a writing desk as the hero, about-page and press-kit portrait. It is a reusable placeholder: retain the supplied local file across variable cases and update its alt text to [BRAND]. All four book jackets are original inline SVG compositions built from geometric lines, contour paths, circles and typographic title/author text; each has its own palette and motif but the same trim ratio and fine paper grain. Do not add other photographs, recognizable people, existing cover art, retailer marks or decorative stock illustration.
## Tone
Warm, observant, intelligent and quietly intimate. Use precise sensory details and short editorial sentences, never breathless marketing, fabricated acclaim, generic inspirational language or literary clichés.
---
— Prompt by VibeFather · https://vibefather.ai/t/author-website · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 初出茅庐的回忆录作者:将 BRAND 设为你的名字,GENRE 设为回忆录,并用你的书替换主打小说,让节选和媒体资料包承载你的故事。
- 拥有小型诗册的诗人:保留肖像主视觉,将图书集合换成你的小册子,并将活动存档指向你的朗读会。
- 推想小说作者:使用备用演示案例,将 GENRE 设为科幻,并用那种口吻重写节选和活动文案。
- 译者或随笔作者:将 FEATURED_BOOK 设为你最新的文集,并通过 CONTACT_EMAIL 使用媒体资料包处理版权咨询。
作家网站:常见问题
如何在作家网站模板中更改作者姓名、类型和主打书目?
作家网站模板将所有六项设置放在一个内容文件中:BRAND、GENRE、LOCATION、CONTACT_EMAIL、FEATURED_BOOK 和 NEWSLETTER_NAME。将 BRAND 设为你的笔名,将 FEATURED_BOOK 设为你希望在图书集合中排第一的书名,因为当没有提供有效图书 id 时,图书页会回退到它。然后重写提及默认值的标题和传记文案。
怎么用 AI 做一个作家网站?
复制本页的提示词,或者运行 npx vibefather add author-website,把 [BRAND]、[GENRE]、[LOCATION]、[CONTACT_EMAIL] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。