用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
Driftline 是一个面向小型社区筹款活动的单页筹款网站,读起来像一部纪录片专题,而不是软件落地页。默认内容讲述了一支虚构的志愿者队伍筹款清理四公里河段垃圾的故事,但这一结构适用于任何有目标、有历史成绩并招募帮手的本地公益事业:植树、社区花园、图书馆募捐或海滩修复。页面以一个大号衬线标题开场,旁边是一幅手绘线稿风格的河段地图,随后是一个向目标填充并带有里程碑刻度的捐赠进度条、一个随着滚动进入视野而数字递增的大额数字账本,以及一个影响力计算器——访客拖动滑块即可将捐赠转化为具体成果,比如清理多少袋垃圾、清理多少米河岸。一条垂直时间线用简短的快讯和小幅线稿讲述过去几个季节的故事,接着是带内联验证和票券式确认的志愿者报名表单、一段直白的常见问题解答,以及结尾的捐赠横幅。配色为暖纸色、深河青色和淤泥棕,仅用单一橙色强调用于捐赠操作和进度条填充。Fraunces 负责标题和数字,Public Sans 负责正文,IBM Plex Mono 负责图注和章节编号,全部自托管。所有插图均以 SVG 绘制,因此没有需要授权或替换的照片。它适合非营利组织、邻里团体和想要一个可信、沉静的宣传活动页面的组织者。要改编它,请更改品牌、事业、地点、目标和影响力比率;计算器数学、进度条和文案均读取同一个内容文件,且不会向服务器提交任何内容。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Nonprofit Donation Page
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
A single-page fundraising campaign site for [BRAND], a small volunteer group [CAUSE] in [PLACE]. It reads like a documentary newspaper feature: big serif headlines, hairline rules, numbered sections, oversized figures and line-drawn SVG illustrations on warm paper. Interactive pieces do the persuading: an animated donation meter toward the [GOAL] goal, a slider-driven impact calculator based on [IMPACT_RATE], a scroll-linked timeline of past seasons, a volunteer sign-up form with client-side validation and a ticket-style success state, and an accordion FAQ. Everything runs in the browser; nothing is sent anywhere.
- Audience: Local residents, past volunteers and small donors who find the page through a newsletter or a shared link, mostly on their phones, and want to know quickly what the money does and how to help in person.
- Goal: Get the visitor to pledge a donation (the impact calculator's Donate button) or sign up for a clean-up day (the volunteer form). Secondary: share the page.
- Tone: Plain-spoken, warm and factual, like a good local reporter. Short sentences, concrete numbers, no exclamation marks, no guilt, no buzzwords.
## Stack
- Framework: Vite 5 + React 18 + TypeScript
- Styling: Tailwind CSS 3.4
- Libraries: react (MIT), react-dom (MIT), motion (MIT), lucide-react (ISC), @fontsource-variable/fraunces (OFL-1.1), @fontsource-variable/public-sans (OFL-1.1), @fontsource/ibm-plex-mono (OFL-1.1), tailwindcss (MIT), postcss (MIT), autoprefixer (MIT), vite (MIT), @vitejs/plugin-react (MIT), typescript (Apache-2.0)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
- Scaffold with the Vite react-ts template; package.json scripts: dev = vite, build = tsc -b && vite build, preview = vite preview.
- vite.config.ts: plugins [react()], base './', build.outDir 'dist', build.sourcemap false, build.assetsInlineLimit 0.
- tailwind.config.js: content ['./index.html', './src/**/*.{ts,tsx}']; extend colors with paper #F4EFE6, paper-deep #EAE2D3, ink #1B2422, river #1F4E4A, river-light #6E9A93, silt #8A6E4B, rule #CFC4B1, signal #E2582B, error #A8321E; fontFamily display ['Fraunces Variable', 'Georgia', 'serif'], sans ['Public Sans Variable', 'system-ui', 'sans-serif'], mono ['IBM Plex Mono', 'ui-monospace', 'monospace']; maxWidth page 1200px.
- src/main.tsx imports '@fontsource-variable/fraunces', '@fontsource-variable/public-sans', '@fontsource/ibm-plex-mono/400.css', '@fontsource/ibm-plex-mono/500.css' and './index.css' before rendering App.
- src/index.css holds the three Tailwind layers, body defaults (bg paper, text ink, font sans, 17px/1.6, antialiased), html { scroll-behavior: smooth }, the @keyframes water-drift used by the closing band, the range-slider styles, and one @media (prefers-reduced-motion: reduce) block that sets scroll-behavior auto and disables every CSS animation.
- src/content.ts holds all copy and every number: brand, nav labels, hero copy, raised (31620), goal (48000), donors (214), milestones, ledger figures, impact rate (rateAmount 12, outputA { per: 1, unit: 'bag of litter', unitPlural: 'bags of litter', verb: 'removed' }, outputB { per: 2, unit: 'metre of riverbank', unitPlural: 'metres of riverbank', verb: 'cleared' }), slider settings, timeline entries, form options, FAQ items and footer text. Components only read from it.
- Components live in src/components/: SiteHeader, Hero, CampaignMeter, Ledger, ImpactCalculator, Dispatches, VolunteerForm, Faq, DonateBand, SiteFooter, plus shared SectionLabel, CountUp and Reveal. Line drawings live in src/art/ as React SVG components: RiverMap, WaveMark, BagGlyph, Vignette (variant prop), CheckStamp, WaterLines.
- App.tsx owns one piece of shared state, raisedTotal (starts at content.raised), passed to CampaignMeter and ImpactCalculator so a pledge in the calculator moves the meter.
- Use useReducedMotion() from 'motion/react' in every animated component; when true, render final values and final states with no animation.
- CountUp: animates from 0 to the target with Motion's animate() over 1.4s, easing [0.22, 1, 0.36, 1], triggered once by useInView (amount 0.4). It stacks the final formatted value invisibly under the animated one (CSS grid, both in the same cell) so the width never jitters, and uses font-variant-numeric: lining-nums tabular-nums.
- index.html: <title>[BRAND] — Help us finish the clean-up</title>, <link rel='icon' href='./favicon.svg'>, lang='en'. public/favicon.svg is the WaveMark: three stacked sine strokes in #1F4E4A on a #F4EFE6 rounded square.
- Add ASSETS.md at the project root listing the three Fontsource packages and lucide-react with source URL, author and license, and stating that all illustrations are original SVG drawn in code.
## Variables
- [BRAND] — Organisation name (default: "Fernmouth River Crew"). An invented group name. Used in the header wordmark, hero copy, form and footer.
- [CAUSE] — What the campaign does (default: "clearing litter from the banks of the River Fern"). A short phrase that completes “a volunteer group …”. Drives the hero, the map figure and the timeline drawings.
- [PLACE] — Town or area (default: "Ashby Vale"). Invented, never a real town presented as the campaign’s home.
- [GOAL] — Fundraising goal (default: "$48,000"). Sets the meter target and milestones (25/50/75/100%).
- [IMPACT_RATE] — What one unit of money achieves (default: "Every $12 removes 1 bag of litter and clears 2 metres of riverbank"). One price and two outcomes; the calculator computes both from the slider amount.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/nonprofit-donation-page in the footer (default: yes; delete this line to remove it)
The copy under Pages & Sections is written for the default values. If your values differ, rewrite every headline, paragraph, label and image for them — same length, tone and structure. Layout, colors, type and motion stay as described.
Keep all copy, image paths and links in one content file (for example `src/content.ts`), keyed by section, so the content can be swapped later without touching components.
## Design
### Colors
- Paper `#F4EFE6` — Page background, text on dark bands
- Paper Deep `#EAE2D3` — Meter band and volunteer section background, illustration panels
- Ink `#1B2422` — Body text, headlines, closing band and footer background
- River `#1F4E4A` — Impact calculator band background, drop caps, river strokes, form submit button, links
- River Light `#6E9A93` — Contour lines, vignette strokes, unreached timeline dots
- Silt `#8A6E4B` — Captions, section numbers, timeline numerals, unreached milestone labels
- Rule `#CFC4B1` — 1px hairlines, meter track, input borders
- Signal `#E2582B` — Only for donate buttons, the meter fill, the slider fill and map site dots
- Error `#A8321E` — Form error text and invalid field borders
### Typography
- Display (headlines, big figures, FAQ questions): Fraunces Variable (OFL), weights 400/600/800
- Text (body, form fields, buttons): Public Sans Variable (OFL), weights 400/500/600
- Mono (captions, section numbers, nav, labels): IBM Plex Mono (OFL), weights 400/500
### Layout & motion
- Spacing: 12-column grid inside a 1200px max-width container, 24px gutters; side padding 40px desktop, 20px mobile. Sections are separated by 128px vertical padding on desktop and 80px on mobile. Every section starts with a SectionLabel: mono 12px uppercase, letter-spacing 0.14em, Silt, e.g. “01 — The record so far”, followed by a full-width 1px Rule hairline and 32px gap before the heading. Section headings are Fraunces 600, clamp(32px, 4vw, 52px), line-height 1.05, letter-spacing -0.015em. Body columns never exceed 62ch.
- Radius: Square editorial edges: 0 on panels, cards, meter track and images; 2px on buttons, inputs and chips; full circle only for the slider thumb, timeline dots and map dots.
- Motion: Default ease is [0.22, 1, 0.36, 1]. Reveal: elements fade from opacity 0 and y 16px to 0 over 0.6s when 30% in view, once; siblings stagger 0.08s.
- Motion: Big figures count up once with CountUp (1.4s); the meter fill grows from 0 to its percentage over 1.8s when 40% in view, and re-animates smoothly (0.6s) whenever raisedTotal changes.
- Motion: SVG line drawings draw themselves with Motion pathLength 0 to 1 (river map 1.6s, vignettes 1.2s, check stamp 0.5s).
- Motion: The timeline’s vertical progress line is scroll-linked: useScroll on the Dispatches section (offset ['start 60%', 'end 60%']) drives scaleY of a River-coloured line from 0 to 1, transform-origin top.
- Motion: Hover: buttons darken 8% and lift 1px over 150ms; text links animate an underline from 0 to 100% width over 200ms.
- Motion: With prefers-reduced-motion: no reveals, count-ups, path drawing, scroll-linked line or water drift; everything renders in its final state and smooth scroll is off.
- Imagery: No photographs. All imagery is original line art drawn in SVG components: a contour-line map of the river stretch, six small vignettes for the timeline, a bag glyph for the calculator, a check stamp, and drifting water lines. Strokes are 1.5px, round caps, River Light or River, on Paper Deep panels, each with a mono figure caption (“Fig. 1 — …”). No people, faces, animals with personality, or real places.
## Pages & Sections
### Campaign page (`index.html`)
1. **Site header** — Wordmark: the WaveMark SVG (three stacked 2px sine strokes, 22px wide, River) followed by “Fernmouth River Crew” in Fraunces 600 italic 20px. Nav links: “The river” (#top), “Impact” (#impact), “Dispatches” (#dispatches), “Volunteer” (#volunteer), “FAQ” (#faq). Right-hand button: “Donate” linking to #impact.
Layout: Sticky top bar, 64px tall, Paper background at 92% opacity with backdrop-blur 8px and a 1px Rule bottom border. Wordmark left; nav links centred in mono 12px uppercase, letter-spacing 0.12em, Ink at 70%, the link of the section in view turns Ink 100% with a 1px underline (IntersectionObserver); Donate button right: Signal background, Paper text, Public Sans 600 14px, padding 10px 18px, radius 2px. Below 1024px the nav links hide and a Lucide Menu icon button (44px hit area) appears left of Donate; it toggles a full-width panel under the header (Paper, Rule bottom border) listing the five links in Fraunces 28px with 1px hairlines between, closing on link tap or Escape; the icon swaps to X.
Motion: Mobile panel opens with height 0 to auto and opacity over 0.3s. In-page links scroll smoothly with a 72px scroll-margin-top on every section.
2. **Hero** — Caption above the headline: “Spring campaign · Year 7 · Ashby Vale”. Headline (three lines): “Give the River Fern / its banks / back.” Standfirst: “Fernmouth River Crew is a group of 312 neighbours clearing litter from 4.2 kilometres of the River Fern. Six springs in, 2.6 km is clear. This year we need $48,000 to finish the last 1.6 km.” Primary button: “Donate to the clean-up” (to #impact). Secondary link: “Join a clean-up day” with a Lucide ArrowRight 16px (to #volunteer). Figure caption under the map: “Fig. 1 — The 4.2 km stretch through Ashby Vale. Orange marks the six clean-up sites so far; the dashed line is still to do.”
Layout: id='top'. Starts 56px below the header. A 1px Ink rule spans the container top, then the mono caption row (12px uppercase, Silt) with a 1px Rule underneath, 48px gap. Desktop 12-column grid: columns 1–7 hold the headline (Fraunces 800, clamp(52px, 7.4vw, 116px), line-height 0.94, letter-spacing -0.025em, Ink; the word “back.” is Fraunces 400 italic), then the standfirst (Public Sans 400, 20px/1.55, Ink at 85%, max 46ch, 32px below headline) and the actions row 40px below (primary button 52px tall, Signal, Paper text, 600 16px, padding 0 24px, radius 2px; secondary as an underlined River text link, 24px gap). Columns 9–12 hold the RiverMap figure: a Paper Deep panel with 4:5 aspect ratio and 1px Rule border containing 9 wavy contour paths in River Light (1px), one thick 6px River path snaking top to bottom for the river, a 2px dashed Ink path along the lower third marking the unfinished stretch, six 10px Signal dots with mono 10px numbers 1–6 beside them, a small north arrow and a 1 km scale bar in mono 10px; the caption sits below the panel in mono 12px Silt. Mobile: single column, headline clamp at 52px, map panel full width at 4:3 below the actions.
Motion: Headline lines rise from y 28px and fade in, staggered 0.08s, 0.7s each. Standfirst and actions follow with Reveal. In the map, contours fade in (0.6s), the river path draws via pathLength over 1.6s, then the six dots scale from 0 to 1 staggered 0.1s, then the dashed path fades in.
3. **Campaign meter** — Label: “Raised so far”. Big figure: “$31,620” (raisedTotal). Under it: “of $48,000 goal · 66%”. Right-hand facts: “214 donors” and “3 clean-up days to go”. Milestones on the track: 25% “$12k · Gloves and grabbers”, 50% “$24k · Skip hire for the season”, 75% “$36k · Willow and sedge for the bank”, 100% “$48k · The final 1.6 km”.
Layout: id='meter'. Full-bleed band in Paper Deep with 1px Rule borders top and bottom, padding 64px desktop / 48px mobile, content in the container. Top row, desktop: left the mono label (12px uppercase Silt), the big figure (Fraunces 800, clamp(56px, 7vw, 96px), Ink, tabular figures via CountUp) and the goal line (Public Sans 500 18px, Ink 75%; the percentage rounds Math.round(raisedTotal / goal * 100)); right, aligned to the bottom, two stacked facts separated by a hairline, each with a Fraunces 600 32px number and a mono 12px label. Then 40px gap and the meter: a 14px tall Rule track spanning the container, the Signal fill from the left with square ends, capped at 100%. Four milestone ticks sit at 25/50/75/100%: a 1px Ink line rising 10px above the track and a label above in mono 11px (value on line 1, description on line 2), Ink when raisedTotal has passed it, Silt at 70% otherwise; the 100% tick carries a small 8px Signal triangle flag. Below 768px the milestone descriptions hide from the track (only values remain) and appear as a 2×2 list underneath, each with a 10px square marker filled Signal if reached or outlined Rule if not.
Motion: On entering view the fill grows from 0 to 66% over 1.8s while the big figure counts up in sync; when raisedTotal increases later, the fill and figure animate to the new value over 0.6s, and any milestone newly passed flashes its label to Signal for 0.8s.
4. **Ledger (big numbers)** — SectionLabel: “01 — The record so far”. Heading: “Six springs on the Fern, counted.” Paragraph (with drop cap): “We started with nine people, borrowed gloves and a length of rope. Every clean-up since has been weighed on the bank and written down. These are the totals, and they are the reason we think the last stretch is within reach.” Figures: “11,480 kg” — “of litter lifted from the water and the banks”; “1,904” — “bags hauled to recycling or landfill”; “312” — “neighbours on the volunteer register”; “2.6 km” — “of riverbank cleared out of 4.2 km”.
Layout: id='record'. SectionLabel and heading, then a 12-column grid with 48px top gap: columns 1–4 hold the paragraph (Public Sans 400 18px/1.65) whose first letter is a drop cap in Fraunces 800, River, spanning 3 lines (float left, 4.2em font size, line-height 0.8, 8px right margin). Columns 6–12 hold a 2×2 grid of figures divided by 1px Rule hairlines (one vertical, one horizontal, no outer border); each cell has 32px padding, the number in Fraunces 800 clamp(44px, 5vw, 72px) Ink with the unit (“kg”, “km”) in Fraunces 400 at 45% size, and the label in mono 12px uppercase Silt, max 24ch. Mobile: paragraph first, then the 2×2 grid at full width with number size 40px.
Motion: Paragraph uses Reveal. Each figure counts up with CountUp (decimals kept for 2.6 km); cells stagger 0.1s.
5. **Impact calculator** — SectionLabel: “02 — What your gift does”. Heading: “Slide to see what your money moves.” Note: “Based on last spring’s costs: every $12 removes 1 bag of litter and clears 2 metres of riverbank.” Amount display: “$60” (current value). Preset chips: “$25”, “$60”, “$120”, “$250”. Outputs (default $60): “5” “bags of litter removed” and “10” “metres of riverbank cleared”. Donate button: “Donate $60” (amount updates live). After pledging, an inline confirmation: “Thank you. $60 has been added to the meter. This is a demo page, so no payment was taken.” with a “Back to the meter” link to #meter.
Layout: id='impact'. Full-bleed band in River with Paper text; the SectionLabel, hairline and note use Paper at 65% and the hairline is Paper at 20%. Desktop 12-column grid: columns 1–5 hold label, heading (Paper) and the note (Public Sans 17px, max 36ch). Columns 7–12 hold the calculator panel: 1px border Paper at 25%, padding 40px, no fill. Inside, top to bottom: mono label “Your gift”; the amount in Fraunces 800 96px Paper with tabular figures; a range input (min 5, max 500, step 5, default 60, aria-label “Donation amount in dollars”) styled with a 4px track Paper at 25%, the filled part left of the thumb in Signal (CSS background linear-gradient driven by a --fill custom property), and a 24px round Paper thumb with a 3px Signal ring and a 3px Paper focus-visible outline offset 3px; under the track mono 11px “$5” left and “$500” right. Then the four preset chips in a row (mono 13px, 36px tall, 1px Paper 35% border, radius 2px; the chip equal to the current amount gets a Signal border and Signal text). Then two output blocks side by side divided by a vertical Paper 20% hairline: A shows the number of bags = Math.floor(amount / 12) in Fraunces 600 56px plus the label, and below it a wrapping row of BagGlyph icons (16px line-drawn sacks in Paper), one per bag up to 24, followed by a mono “+N” when there are more; B shows metres = Math.floor(amount / 12) * 2 with its label, and below it a horizontal ruler 100% wide (1px Paper 40% line with ticks every 10%) whose Signal bar width is min(metres / 100, 1) and a mono caption “of a 100 m stretch”. Last row: the Donate button full width, 56px, Signal background, Paper text, 600 17px. Clicking it adds the amount to raisedTotal in App state and swaps the button row for the confirmation text (Public Sans 16px Paper) with a Lucide Check icon; changing the amount afterwards brings the button back. Mobile: one column, panel padding 24px, amount 72px, output blocks stack with a horizontal hairline between.
Motion: The amount number springs to each new value (Motion animate, 0.35s). Bag glyphs added on increase pop from scale 0.6 and opacity 0 with a 0.02s stagger; removed ones fade out over 0.15s. The ruler bar width transitions over 0.4s. The confirmation fades and rises 8px over 0.3s.
6. **Dispatches (timeline)** — SectionLabel: “03 — Dispatches from the bank”. Heading: “Six springs, one stretch at a time.” Six entries, each with marker, numeral, title, body, stats line and figure caption:
Year 1 · 01 · “One trolley and a length of rope” — “Nine of us met at the Mill Lane footbridge with borrowed gloves. By noon we had pulled a shopping trolley, four tyres and thirty bags out of the shallows.” Stats: “620 kg · 9 volunteers · 300 m”. Vignette: trolley. Caption: “Fig. 2 — The first find.”
Year 2 · 02 · “Under the footbridge” — “Litter collects in the slack water below the bridge. The council agreed to collect large finds if we stacked them by the lane, so we did.” Stats: “1,140 kg · 68 volunteers · 350 m”. Vignette: footbridge. Caption: “Fig. 3 — Mill Lane footbridge.”
Year 3 · 03 · “Sorting on the bank” — “We began sorting everything on site into metal, plastics and the rest. Almost half of what we lifted went to recycling instead of landfill.” Stats: “1,860 kg · 104 volunteers · 400 m”. Vignette: crates. Caption: “Fig. 4 — Three crates, three streams.”
Year 4 · 04 · “The weir pool” — “The weir traps whatever the river carries down. Two trained crew in waders worked the pool while sixty people sorted on the bank.” Stats: “2,210 kg · 156 volunteers · 450 m”. Vignette: weir. Caption: “Fig. 5 — The weir at low water.”
Year 5 · 05 · “The reeds came back” — “On the first stretches we cleared, sedge and reed beds returned without any planting. We counted herons on four of our six visits.” Stats: “2,450 kg · 221 volunteers · 500 m”. Vignette: reeds. Caption: “Fig. 6 — New reed beds, east bank.”
Year 6 · 06 · “Planting the bank” — “We planted 400 native willow whips to hold the bank where litter used to pile up. Most of them have taken.” Stats: “3,200 kg · 312 volunteers · 600 m”. Vignette: willows. Caption: “Fig. 7 — Willow whips, first summer.”
Layout: id='dispatches'. SectionLabel and heading, then a list with 64px between entries. Desktop: a vertical 1px Rule line runs the full height of the list at the boundary between grid columns 3 and 4, with the scroll-linked River progress line overlaid on it. Each entry is a 12-column row: columns 1–2, right-aligned, hold the marker “Year 1” (mono 12px uppercase Silt) above the numeral “01” (Fraunces 400 64px Silt, tabular). On the line sits a 13px circle dot: Paper fill with a 1px River Light border until the entry is in view, then River fill. Columns 4–8 hold the title (Fraunces 600 28px/1.15 Ink), body (Public Sans 17px/1.6, Ink 85%, 16px below) and the stats line (mono 12px, Silt, 16px below, values separated by middle dots). Columns 9–12 hold the Vignette: a Paper Deep panel at 4:3 with a 1px Rule border containing the variant line drawing (1.5px River Light strokes, River accents, about 12–20 paths each: trolley = wire basket on wheels tilted in wavy water lines; footbridge = a shallow arch with railings over water lines; crates = three open crates of different heights; weir = stepped horizontal bands with falling water strokes; reeds = clusters of tall curved stems with a standing heron outline at one side; willows = a row of five thin saplings with ties and stakes on a sloping bank), and its mono 11px caption below. Mobile: the line moves to 7px from the left edge, entries get 32px left padding, marker and numeral sit inline (“Year 1 · 01”) above the title, and the vignette goes full width below the stats.
Motion: Scroll-linked progress line as described in Design. Each entry uses Reveal when 30% in view; its dot fills River over 0.3s; its vignette paths draw with pathLength over 1.2s, staggered 0.03s per path.
7. **Volunteer sign-up** — SectionLabel: “04 — Volunteer”. Heading: “Bring boots. We’ll bring the rest.” Paragraph: “Three Saturday mornings this spring, each on a different part of the last 1.6 km. Gloves, grabbers, bags and tea are provided. You don’t need any experience; a crew lead will show you what to do.” Fact list with Lucide icons (18px, River): Clock “Saturdays, 9:00 to 12:30”; MapPin “Meet at the Mill Lane Boathouse”; Footprints “Wear boots you don’t mind getting muddy”; Users “Crews of eight, each with a trained lead”. Form title: “Put me on the register”. Fields: “Full name” (required); “Email” (required); “Phone (optional)”; “Which day?” radio cards (required): “Day 1 — Mill Lane to the weir”, “Day 2 — The weir to Carter’s Meadow”, “Day 3 — Carter’s Meadow to the river mouth”; “I can help with” checkboxes (optional): “Hauling bags”, “Sorting on the bank”, “Tea and first aid”, “Taking photos”; “Anything we should know?” textarea (optional, max 300 characters, counter “0 / 300”); consent checkbox (required): “I’m 16 or over, or I’ll come with a parent or guardian.” Submit: “Put me on the register”. Error messages: “Please enter your name.”, “Please enter a valid email address.”, “Please enter a phone number with at least 7 digits, or leave it blank.”, “Please choose a day.”, “Please confirm this to sign up.” Success ticket: stamp heading “You’re on the register, {first name}.”, rows “Volunteer No. 313”, “Day: {chosen day}”, “Meet: Mill Lane Boathouse, 9:00”, “Bring: boots, water, a warm layer”; footnote “Demo form: your details stay in this browser tab and are not sent anywhere.”; button “Sign up someone else”.
Layout: id='volunteer'. Full-bleed Paper Deep band. Desktop 12-column grid: columns 1–5 hold SectionLabel, heading, paragraph and the fact list (each row icon + Public Sans 16px, 14px row gap, 1px Rule hairline between rows). Columns 7–12 hold the form card: Paper background, 1px Rule border, padding 40px, radius 0, a mono 12px uppercase form title with a hairline below. Fields stack with 22px gaps; labels Public Sans 600 14px Ink with “(optional)” in Silt 400; inputs 48px tall, Paper background, 1px Rule border, radius 2px, 16px text, padding 0 14px; focus state 2px River border with no glow. The three day options are full-width radio cards (1px Rule border, 14px padding, custom 18px round indicator; selected card gets a 2px River border and Paper Deep fill). Checkboxes sit in a 2×2 grid with 18px square custom boxes (checked: River fill with a Paper Lucide Check 14px). Textarea 4 rows with the counter right-aligned in mono 11px beneath (turns Error at 300). Submit button full width 52px, River background, Paper text, Public Sans 600 16px, radius 2px. Validation in the browser only, using noValidate on the form: each field validates on blur and again on submit; email matches /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/; phone, if filled, needs at least 7 digits after stripping non-digits; name needs 2+ trimmed characters. Invalid fields get a 1px Error border, aria-invalid='true' and aria-describedby pointing to an error line under the field (mono 12px Error with a Lucide CircleAlert 14px). On submit with errors, focus moves to the first invalid field. On a valid submit, the button shows a spinning Lucide LoaderCircle with “Adding you…” for 900ms (setTimeout, no network), then the card content is replaced by the success ticket: a Paper card with a 2px dashed Rule perforation line 72px from the top, a 64px CheckStamp (River circle with a Paper tick) above the heading (Fraunces 600 32px), the ticket rows as a two-column mono 13px table with hairlines, the footnote in Public Sans 13px Silt, and “Sign up someone else” as an outlined River button that resets the form and returns focus to the name field. Mobile: one column, form card padding 24px, checkboxes in one column.
Motion: Error lines slide down from height 0 over 0.2s. The form-to-ticket swap uses AnimatePresence: the form fades out (0.2s), the ticket fades in and rises 12px (0.4s) while the CheckStamp circle and tick draw via pathLength (0.5s).
8. **FAQ** — SectionLabel: “05 — Questions”. Heading: “Questions, answered plainly.” Side note: “Still unsure? Write to [email protected] and a person will reply within two days.” Items:
“Where does my money go?” — “Skip hire and landfill fees take 41%, bank replanting with native willow and sedge 27%, safety kit and grabbers 22%, and insurance and first-aid training 10%. We post the receipts after every clean-up day.”
“Is it safe to volunteer near the water?” — “Volunteers stay on the bank. Only trained crew in waders go into the shallows, never above knee depth, and every site has a life ring, a first-aid kit and a lead who has done the training.”
“Can I bring children?” — “Yes, from age 8 with an adult. Under-16s work on the bank and help with sorting.”
“What happens to the litter we collect?” — “We sort it on the bank. Metal and hard plastics go to recycling, the rest goes to licensed landfill, and large finds like trolleys and tyres are collected separately.”
“Do I have to come to every clean-up?” — “No. Most people come once or twice a season. Sign up for one day and see how it feels.”
“Can a local business sponsor a stretch?” — “Yes. Adopting 100 metres costs $600 and puts your name on the marker post for that stretch. Write to us and we’ll send the details.”
Layout: id='faq'. Desktop 12-column grid: columns 1–4 hold SectionLabel, heading and the side note (Public Sans 16px, Ink 75%, the email as an underlined River link with a mailto: href). Columns 6–12 hold the accordion: a 1px Ink rule on top, then each item as a full-width button row (min 72px, 20px vertical padding) with the question in Fraunces 400 22px/1.3 Ink on the left and a Lucide Plus 20px icon on the right; rows divided by 1px Rule hairlines. The answer panel sits under its question in Public Sans 17px/1.65, Ink 85%, max 60ch, padding-bottom 24px. Only one item is open at a time; the first is open on load. Buttons carry aria-expanded and aria-controls; panels have role='region' and aria-labelledby. Mobile: one column, questions 20px.
Motion: Opening animates the panel from height 0 to auto with opacity over 0.3s (AnimatePresence) and rotates the Plus icon 45° into a cross over 0.2s; closing reverses.
9. **Closing donate band** — Mono caption: “The last stretch”. Headline: “The last 1.6 km is the hardest. Help us finish it.” Line: “$16,380 to go. Every gift is weighed against the same costs as the calculator above.” (the amount to go is goal minus raisedTotal, never below $0). Primary button: “Donate to the clean-up” (to #impact). Secondary button: “Share this page” with a Lucide Copy icon; on click it copies window.location.href with navigator.clipboard.writeText inside try/catch and changes its label to “Link copied” with a Lucide Check for 2s (on failure: “Copy failed — use your browser’s share menu”).
Layout: Full-bleed Ink band, Paper text, padding 120px desktop / 80px mobile, overflow hidden. Behind the content, the WaterLines SVG spans the full width of the lower half: three horizontal sine paths (River at 45%, 1.5px stroke, 1200px wavelength, different amplitudes) drawn twice the viewport width so they can drift. Content centred in max 820px: mono caption (12px uppercase Paper 60%), headline Fraunces 800 clamp(40px, 6vw, 84px)/1.0 Paper with “Help us finish it.” in Fraunces 400 italic on its own line, the line in Public Sans 18px Paper 75%, then the buttons centred 40px below with 16px gap: primary Signal background, Paper text, 52px tall; secondary 52px, transparent with a 1px Paper 40% border and Paper text. Mobile: buttons stack full width.
Motion: Each water line translates horizontally in a seamless loop using the CSS water-drift keyframes (translateX 0 to -50%), durations 28s, 36s and 44s, linear, infinite; disabled under reduced motion. Headline uses Reveal.
10. **Footer** — Wordmark and line: “A volunteer crew looking after 4.2 km of the River Fern.” Column “Visit”: “Mill Lane Boathouse”, “Ashby Vale”. Column “Contact”: “[email protected]”. Column “Read”: “Spring newsletter”, “Field notes”, “Receipts and accounts” (text links to #top). Bottom line: “© Fernmouth River Crew · An unincorporated community group” and, if [CREDIT] is kept, the “Template by VibeFather” link on the right.
Layout: Continues the Ink background with a 1px Paper 15% top rule inside the container, padding 64px top / 40px bottom. Desktop 12-column grid: columns 1–5 wordmark (WaveMark in Paper plus name in Fraunces 600 italic 22px Paper) and the line in Public Sans 15px Paper 65%; columns 7–8, 9–10, 11–12 each hold a column title in mono 11px uppercase Paper 50% and items in Public Sans 15px Paper 80% with 10px gaps. A bottom row 48px below with a 1px Paper 15% top rule and mono 11px Paper 50% text, left and right aligned. No social media icons or logos. Mobile: wordmark block, then the three columns in a 2-column grid, then the bottom row stacked.
Motion: None beyond the link underline hover.
## Assets
- image: All illustrations are original inline SVG React components in src/art/, drawn in code: RiverMap (contour map with river path, dashed unfinished stretch, six numbered dots, north arrow, scale bar), Vignette with six variants (trolley, footbridge, crates, weir, reeds with a heron outline, willows), BagGlyph, CheckStamp, WaveMark and WaterLines. No bitmap images, no photos, no stock or placeholder services.
- image: public/favicon.svg: the WaveMark (three stacked sine strokes, #1F4E4A) on a #F4EFE6 rounded square, drawn by hand in SVG.
- icon: lucide-react (ISC), imported per icon: Menu, X, ArrowRight, Check, Plus, Clock, MapPin, Footprints, Users, CircleAlert, LoaderCircle, Copy. 1.75px stroke, sized as described per section.
- font: Self-hosted via Fontsource npm packages imported in src/main.tsx: @fontsource-variable/fraunces, @fontsource-variable/public-sans, @fontsource/ibm-plex-mono (400 and 500). All OFL-1.1. List them in ASSETS.md with source URL, author and license.
## Don'ts
- No backend: no server code, API routes, databases, auth, payment SDKs or third-party APIs. The volunteer form and the Donate button never send data anywhere; they only change state in the page.
- No real payment provider buttons, logos or wording (no PayPal, Stripe, Apple Pay or card marks). Donate buttons are plain styled buttons.
- No names, logos or slogans of real river, water or clean-up charities, and no real rivers, towns or landmarks presented as the campaign’s home. All names, places, people and numbers are invented.
- No photos of people and no faces anywhere; no stock photography, no placeholder-image services, no hotlinked files.
- Do not present invented totals, statistics or quotes as real-world facts about any real organisation.
- Fonts are self-hosted through Fontsource only. Never load fonts from fonts.googleapis.com, fonts.gstatic.com or any CDN, and do not use commercial or newspaper-masthead typefaces.
- No CDN <script> or <link> tags, no analytics, no tracking pixels, no external embeds (maps, video, social widgets).
- Use the Signal orange only for donate actions, the meter fill, the slider fill and the map dots. Do not add other accent colours, gradients, glassmorphism or drop shadows.
- Keep the square editorial look: no rounded cards, pill buttons or emoji.
- Production build must be minified with no source maps, output only to dist/, with relative asset paths (Vite base './') and no src/ files copied into dist/. Keep dist/ under 20 MB.
- This is a single page: internal links are in-page anchors (#impact, #volunteer…) or point to ./index.html, never to a bare directory.
- Do not change the stack or add libraries beyond those listed.
- No SEO extras: no meta descriptions, Open Graph tags, JSON-LD or sitemaps. Only the plain <title> and the favicon.
- Must work at 1440×900 and 390×844 with zero console errors, keyboard-accessible controls with visible focus, and full respect for prefers-reduced-motion.
- Do not mention VibeFather anywhere in the site except the optional [CREDIT] footer link.
---
— Prompt by VibeFather · https://vibefather.ai/t/nonprofit-donation-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 非营利组织捐赠页面
完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。
## 简介
为 [BRAND] 打造的单页筹款活动网站,[BRAND] 是 [PLACE] 的一个小型志愿者团体,致力于 [CAUSE]。整体读起来像一篇纪实报纸特写:大号衬线标题、发丝细线、编号章节、超大号数字,以及暖色纸张背景上的线描 SVG 插画。真正承担说服工作的是交互组件:一个朝 [GOAL] 目标推进的动画捐款进度条、一个基于 [IMPACT_RATE] 的滑块驱动影响力计算器、一条与滚动联动的往季时间线、一个带客户端验证和票券式成功状态的志愿者报名表单,以及一个手风琴式 FAQ。一切都在浏览器中运行;不会向任何地方发送数据。
- 受众:本地居民、曾经的志愿者和小额捐赠者,他们通过新闻邮件或分享链接找到这个页面,大多在手机上浏览,想快速了解钱用在了哪里、以及如何亲自参与帮忙。
- 目标:让访客承诺一笔捐款(影响力计算器中的 Donate 按钮)或报名参加清洁日(志愿者表单)。次要目标:分享页面。
- 语气:平实、温暖、就事论事,像一位优秀的本地记者。短句、具体数字,不用感叹号,不制造愧疚感,不用流行术语。
## 技术栈
- 框架:Vite 5 + React 18 + TypeScript
- 样式:Tailwind CSS 3.4
- 库:react (MIT)、react-dom (MIT)、motion (MIT)、lucide-react (ISC)、@fontsource-variable/fraunces (OFL-1.1)、@fontsource-variable/public-sans (OFL-1.1)、@fontsource/ibm-plex-mono (OFL-1.1)、tailwindcss (MIT)、postcss (MIT)、autoprefixer (MIT)、vite (MIT)、@vitejs/plugin-react (MIT)、typescript (Apache-2.0)
- 构建:`npm run build` → 静态文件输出到 `dist/`。无后端、无服务端代码、无外部 API。
- 配置:
- 使用 Vite react-ts 模板搭建脚手架;package.json 脚本:dev = vite,build = tsc -b && vite build,preview = vite preview。
- vite.config.ts:plugins [react()],base './',build.outDir 'dist',build.sourcemap false,build.assetsInlineLimit 0。
- tailwind.config.js:content ['./index.html', './src/**/*.{ts,tsx}'];扩展颜色:paper #F4EFE6、paper-deep #EAE2D3、ink #1B2422、river #1F4E4A、river-light #6E9A93、silt #8A6E4B、rule #CFC4B1、signal #E2582B、error #A8321E;fontFamily:display ['Fraunces Variable', 'Georgia', 'serif']、sans ['Public Sans Variable', 'system-ui', 'sans-serif']、mono ['IBM Plex Mono', 'ui-monospace', 'monospace'];maxWidth:page 1200px。
- src/main.tsx 在渲染 App 之前导入 '@fontsource-variable/fraunces'、'@fontsource-variable/public-sans'、'@fontsource/ibm-plex-mono/400.css'、'@fontsource/ibm-plex-mono/500.css' 和 './index.css'。
- src/index.css 包含三个 Tailwind 层、body 默认值(bg paper、text ink、font sans、17px/1.6、antialiased)、html { scroll-behavior: smooth }、结尾横幅使用的 @keyframes water-drift、范围滑块样式,以及一个 @media (prefers-reduced-motion: reduce) 块,将 scroll-behavior 设为 auto 并禁用所有 CSS 动画。
- src/content.ts 包含所有文案和所有数字:品牌、导航标签、主视觉文案、已筹金额(31620)、目标(48000)、捐赠者数(214)、里程碑、账目数字、影响换算率(rateAmount 12,outputA { per: 1, unit: 'bag of litter', unitPlural: 'bags of litter', verb: 'removed' },outputB { per: 2, unit: 'metre of riverbank', unitPlural: 'metres of riverbank', verb: 'cleared' })、滑块设置、时间线条目、表单选项、FAQ 条目和页脚文本。组件只从中读取。
- 组件位于 src/components/:SiteHeader、Hero、CampaignMeter、Ledger、ImpactCalculator、Dispatches、VolunteerForm、Faq、DonateBand、SiteFooter,以及共享的 SectionLabel、CountUp 和 Reveal。线稿位于 src/art/,为 React SVG 组件:RiverMap、WaveMark、BagGlyph、Vignette(variant prop)、CheckStamp、WaterLines。
- App.tsx 持有一份共享状态 raisedTotal(初始值为 content.raised),传给 CampaignMeter 和 ImpactCalculator,使计算器中的承诺捐款能推动进度条。
- 在每个动画组件中使用来自 'motion/react' 的 useReducedMotion();当返回 true 时,直接渲染最终值和最终状态,不播放动画。
- CountUp:使用 Motion 的 animate() 在 1.4s 内从 0 动画到目标值,缓动为 [0.22, 1, 0.36, 1],由 useInView(amount 0.4)触发一次。它将最终格式化值以不可见方式堆叠在动画值下方(CSS grid,两者位于同一单元格),使宽度永不抖动,并使用 font-variant-numeric: lining-nums tabular-nums。
- index.html:<title>[BRAND] — Help us finish the clean-up</title>,<link rel='icon' href='./favicon.svg'>,lang='en'。public/favicon.svg 为 WaveMark:在 #F4EFE6 圆角方块上,三条堆叠的正弦曲线描边,颜色为 #1F4E4A。
- 在项目根目录添加 ASSETS.md,列出三个 Fontsource 包和 lucide-react,包含来源 URL、作者和许可证,并说明所有插图均为代码绘制的原创 SVG。
## 变量
- [BRAND] — 组织名称(默认:“Fernmouth River Crew”)。一个虚构的团体名称。用于页眉字标、主视觉文案、表单和页脚。
- [CAUSE] — 活动的内容(默认:“clearing litter from the banks of the River Fern”)。一个简短短语,用于补全“a volunteer group …”。驱动主视觉、地图图形和时间线插图。
- [PLACE] — 城镇或地区(默认:“Ashby Vale”)。虚构的,绝不将真实城镇作为活动的所在地呈现。
- [GOAL] — 筹款目标(默认:“$48,000”)。设定进度条目标和里程碑(25/50/75/100%)。
- [IMPACT_RATE] — 一单位金额所达成的效果(默认:“Every $12 removes 1 bag of litter and clears 2 metres of riverbank”)。一个价格和两个成果;计算器根据滑块金额计算两者。
- [CREDIT] — 在页脚保留一个小型“Template by VibeFather”链接至 https://vibefather.ai/t/nonprofit-donation-page(默认:是;删除此行以移除)
Pages & Sections 下的文案是为默认值编写的。如果你的值不同,请为它们重写每个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块键控,以便日后无需改动组件即可替换内容。
## 设计
### 颜色
- Paper `#F4EFE6` — 页面背景、深色区块上的文字
- Paper Deep `#EAE2D3` — 进度条区块和志愿者区块背景、插画面板
- Ink `#1B2422` — 正文文字、标题、结尾区块和页脚背景
- River `#1F4E4A` — 影响力计算器区块背景、首字下沉、河流线条、表单提交按钮、链接
- River Light `#6E9A93` — 等高线、暗角线条、未达成的时间线圆点
- Silt `#8A6E4B` — 图注、区块编号、时间线数字、未达成的里程碑标签
- Rule `#CFC4B1` — 1px 细线、进度条轨道、输入框边框
- Signal `#E2582B` — 仅用于捐赠按钮、进度条填充、滑块填充和地图站点圆点
- Error `#A8321E` — 表单错误文字和无效字段边框
### 字体排印
- Display(标题、大数字、FAQ 问题):Fraunces Variable(OFL),字重 400/600/800
- Text(正文、表单字段、按钮):Public Sans Variable(OFL),字重 400/500/600
- Mono(图注、区块编号、导航、标签):IBM Plex Mono(OFL),字重 400/500
### 布局与动效
- 间距:1200px 最大宽度容器内的 12 列网格,24px 列间距;桌面端侧边内边距 40px,移动端 20px。区块之间在桌面端以 128px 垂直内边距分隔,移动端为 80px。每个区块以 SectionLabel 开头:mono 12px 大写,letter-spacing 0.14em,Silt 色,例如 “01 — The record so far”,后接一条全宽 1px Rule 细线,并在标题前留 32px 间距。区块标题为 Fraunces 600,clamp(32px, 4vw, 52px),line-height 1.05,letter-spacing -0.015em。正文栏宽永不超过 62ch。
- 圆角:方形编辑风格边缘:面板、卡片、进度条轨道和图片为 0;按钮、输入框和标签为 2px;仅滑块拇指、时间线圆点和地图圆点使用完整圆形。
- 动效:默认缓动为 [0.22, 1, 0.36, 1]。显现:元素在 30% 进入视口时,从 opacity 0 和 y 16px 淡入至 0,持续 0.6s,仅一次;同级元素错开 0.08s。
- 动效:大数字使用 CountUp 计数一次(1.4s);进度条填充在 40% 进入视口时从 0 增长至其百分比,持续 1.8s,并在 raisedTotal 变化时平滑重新动画(0.6s)。
- 动效:SVG 线条绘制通过 Motion pathLength 从 0 到 1 自行绘制(河流地图 1.6s,暗角 1.2s,对勾印章 0.5s)。
- 动效:时间线的垂直进度线为滚动联动:在 Dispatches 区块上使用 useScroll(offset ['start 60%', 'end 60%'])驱动一条 River 色线条的 scaleY 从 0 到 1,transform-origin 为 top。
- 动效:悬停:按钮在 150ms 内变暗 8% 并上浮 1px;文本链接在 200ms 内将下划线从 0 动画至 100% 宽度。
- 动效:在 prefers-reduced-motion 下:无显现、计数、路径绘制、滚动联动线条或水波漂移;一切以最终状态渲染,平滑滚动关闭。
- 图像:不使用照片。所有图像均为 SVG 组件中绘制的原创线条艺术:一段河流的等高线地图、时间线的六个小暗角、计算器的袋子图标、一个对勾印章,以及漂移的水线。描边为 1.5px,圆头端点,River Light 或 River 色,置于 Paper Deep 面板上,每个都配有 mono 图注(“Fig. 1 — …”)。不出现人物、面孔、有性格的动物或真实地点。
## 页面与区块
### 活动页面(`index.html`)
1. **站点页眉** — 字标:WaveMark SVG(三条堆叠的 2px 正弦描边,22px 宽,River 色),后接 Fraunces 600 斜体 20px 的“Fernmouth River Crew”。导航链接:“The river”(#top)、“Impact”(#impact)、“Dispatches”(#dispatches)、“Volunteer”(#volunteer)、“FAQ”(#faq)。右侧按钮:“Donate”,链接到 #impact。
布局:粘性顶栏,高 64px,Paper 背景 92% 不透明度,带 backdrop-blur 8px 和 1px Rule 下边框。字标居左;导航链接居中,mono 12px 大写,letter-spacing 0.12em,Ink 70%,当前视口内区块的链接变为 Ink 100% 并带 1px 下划线(IntersectionObserver);Donate 按钮居右:Signal 背景,Paper 文字,Public Sans 600 14px,padding 10px 18px,radius 2px。低于 1024px 时导航链接隐藏,Donate 左侧出现一个 Lucide Menu 图标按钮(44px 点击区域);它切换页眉下方的全宽面板(Paper,Rule 下边框),以 Fraunces 28px 列出五个链接,之间用 1px 细线分隔,点击链接或按 Escape 关闭;图标切换为 X。
动效:移动端面板以高度 0 到 auto 及不透明度在 0.3s 内展开。页内链接平滑滚动,每个区块带 72px scroll-margin-top。
2. **首屏** — 标题上方说明文字:“Spring campaign · Year 7 · Ashby Vale”。标题(三行):“Give the River Fern / its banks / back.” 导语:“Fernmouth River Crew is a group of 312 neighbours clearing litter from 4.2 kilometres of the River Fern. Six springs in, 2.6 km is clear. This year we need $48,000 to finish the last 1.6 km.” 主按钮:“Donate to the clean-up”(到 #impact)。次级链接:“Join a clean-up day”,带 Lucide ArrowRight 16px(到 #volunteer)。地图下方图注:“Fig. 1 — The 4.2 km stretch through Ashby Vale. Orange marks the six clean-up sites so far; the dashed line is still to do.”
布局:id='top'。从页眉下方 56px 处开始。一条 1px Ink 线横跨容器顶部,然后是 mono 说明行(12px 大写,Silt),下方 1px Rule,间距 48px。桌面 12 列网格:第 1–7 列放标题(Fraunces 800,clamp(52px, 7.4vw, 116px),line-height 0.94,letter-spacing -0.025em,Ink;“back.”一词为 Fraunces 400 斜体),然后是导语(Public Sans 400,20px/1.55,Ink 85%,最多 46ch,标题下方 32px)和操作行,位于下方 40px(主按钮高 52px,Signal,Paper 文字,600 16px,padding 0 24px,radius 2px;次级为带下划线的 River 文字链接,间距 24px)。第 9–12 列放 RiverMap 图:一个 Paper Deep 面板,4:5 宽高比,1px Rule 边框,内含 9 条 River Light 波浪等高线路径(1px),一条 6px 粗的 River 路径从上到下蜿蜒代表河流,一条 2px 虚线 Ink 路径沿下三分之一标记未完成河段,六个 10px Signal 圆点旁带 mono 10px 数字 1–6,一个小指北针和 mono 10px 的 1 km 比例尺;图注位于面板下方,mono 12px Silt。移动端:单列,标题 clamp 为 52px,地图面板全宽 4:3,位于操作行下方。
动效:标题各行从 y 28px 上升并淡入,错开 0.08s,每行 0.7s。导语和操作行随后以 Reveal 出现。地图中,等高线淡入(0.6s),河流路径通过 pathLength 在 1.6s 内绘制,然后六个圆点从 0 缩放到 1,错开 0.1s,然后虚线路径淡入。
3. **活动进度条** — 标签:“Raised so far”。大数字:“$31,620”(raisedTotal)。其下:“of $48,000 goal · 66%”。右侧事实:“214 donors”和“3 clean-up days to go”。轨道上的里程碑:25% “$12k · Gloves and grabbers”,50% “$24k · Skip hire for the season”,75% “$36k · Willow and sedge for the bank”,100% “$48k · The final 1.6 km”。
布局:id='meter'。全出血色带,Paper Deep 背景,上下 1px Rule 边框,padding 桌面 64px / 移动端 48px,内容在容器内。顶行,桌面:左侧 mono 标签(12px 大写 Silt)、大数字(Fraunces 800,clamp(56px, 7vw, 96px),Ink,通过 CountUp 使用等宽数字)和目标行(Public Sans 500 18px,Ink 75%;百分比取 Math.round(raisedTotal / goal * 100));右侧底部对齐,两个堆叠事实用细线分隔,每个含 Fraunces 600 32px 数字和 mono 12px 标签。然后 40px 间距和进度条:一条 14px 高的 Rule 轨道横跨容器,Signal 填充从左起,方形端头,上限 100%。四个里程碑刻度位于 25/50/75/100%:一条 1px Ink 线高出轨道 10px,上方 mono 11px 标签(第 1 行为数值,第 2 行为描述),raisedTotal 已通过时为 Ink,否则为 Silt 70%;100% 刻度带一个小 8px Signal 三角旗。低于 768px 时,里程碑描述从轨道上隐藏(仅保留数值),并在下方以 2×2 列表出现,每个带 10px 方形标记,已达成为 Signal 填充,未达成为 Rule 描边。
动效:进入视口时,填充在 1.8s 内从 0 增长到 66%,同时大数字同步计数;当 raisedTotal 之后增加时,填充和数字在 0.6s 内动画到新值,任何新通过的里程碑其标签闪烁为 Signal 0.8s。
4. **账本(大数字)** — SectionLabel:“01 — The record so far”。标题:“Six springs on the Fern, counted.” 段落(带首字下沉):“We started with nine people, borrowed gloves and a length of rope. Every clean-up since has been weighed on the bank and written down. These are the totals, and they are the reason we think the last stretch is within reach.” 数字:“11,480 kg” — “of litter lifted from the water and the banks”;“1,904” — “bags hauled to recycling or landfill”;“312” — “neighbours on the volunteer register”;“2.6 km” — “of riverbank cleared out of 4.2 km”。
布局:id='record'。SectionLabel 和标题,然后 12 列网格,顶部间距 48px:第 1–4 列放段落(Public Sans 400 18px/1.65),首字母为首字下沉,Fraunces 800,River,跨 3 行(float left,4.2em 字号,line-height 0.8,右 margin 8px)。第 6–12 列放 2×2 数字网格,用 1px Rule 细线分隔(一竖一横,无外边框);每个单元格 padding 32px,数字为 Fraunces 800 clamp(44px, 5vw, 72px) Ink,单位(“kg”、“km”)为 Fraunces 400 45% 大小,标签为 mono 12px 大写 Silt,最多 24ch。移动端:段落在前,然后 2×2 网格全宽,数字大小 40px。
动效:段落使用 Reveal。每个数字用 CountUp 计数(2.6 km 保留小数);单元格错开 0.1s。
5. **影响力计算器** — SectionLabel:“02 — What your gift does”。标题:“Slide to see what your money moves.” 说明:“Based on last spring’s costs: every $12 removes 1 bag of litter and clears 2 metres of riverbank.” 金额显示:“$60”(当前值)。预设选项:“$25”、“$60”、“$120”、“$250”。输出(默认 $60):“5”“bags of litter removed”和“10”“metres of riverbank cleared”。捐赠按钮:“Donate $60”(金额实时更新)。承诺后,内联确认:“Thank you. $60 has been added to the meter. This is a demo page, so no payment was taken.” 带一个“Back to the meter”链接到 #meter。
Layout: id='impact'。River 色的全出血(full-bleed)色带,配 Paper 色文字;SectionLabel、细线和注释使用 65% 的 Paper,细线为 20% 的 Paper。桌面端 12 列网格:第 1–5 列放置标签、标题(Paper)和注释(Public Sans 17px,最多 36ch)。第 7–12 列放置计算器面板:1px 边框,25% 的 Paper,内边距 40px,无填充。内部从上到下依次为:等宽标签“Your gift”;金额使用 Fraunces 800 96px Paper,并采用表格数字(tabular figures);一个范围输入(min 5、max 500、step 5、默认 60、aria-label“Donation amount in dollars”),其样式为:4px 轨道,25% 的 Paper;滑块左侧的已填充部分为 Signal 色(由 --fill 自定义属性驱动的 CSS background linear-gradient);24px 圆形 Paper 滑块,带 3px Signal 色圆环和 3px Paper 色的 focus-visible 轮廓,偏移 3px;轨道下方左侧为等宽 11px 的“$5”,右侧为“$500”。然后是四个预设选项按钮排成一行(等宽 13px,高 36px,1px Paper 35% 边框,圆角 2px;与当前金额相等的选项按钮获得 Signal 边框和 Signal 文字)。接着是两个并排的输出块,由一条垂直的 20% Paper 细线分隔:A 显示袋子数量 = Math.floor(amount / 12),使用 Fraunces 600 56px 加标签,其下方是一行可换行的 BagGlyph 图标(16px 线描麻袋,Paper 色),每个袋子一个,最多 24 个,超过时后跟等宽的“+N”;B 显示米数 = Math.floor(amount / 12) * 2 及其标签,其下方是一条 100% 宽的水平标尺(1px Paper 40% 线条,每 10% 一个刻度),其 Signal 色条宽度为 min(metres / 100, 1),以及等宽说明文字“of a 100 m stretch”。最后一行:Donate 按钮全宽,56px,Signal 背景,Paper 文字,600 17px。点击后会将金额加到 App 状态中的 raisedTotal,并将按钮行替换为确认文字(Public Sans 16px Paper)和 Lucide Check 图标;之后更改金额会恢复按钮。移动端:单列,面板内边距 24px,金额 72px,输出块堆叠,之间用水平细线分隔。
Motion: 金额数字会以弹簧动画过渡到每个新值(Motion animate,0.35s)。增加时新增的袋子图标从 scale 0.6 和 opacity 0 弹出,交错延迟 0.02s;移除的图标在 0.15s 内淡出。标尺条宽度在 0.4s 内过渡。确认信息在 0.3s 内淡入并上移 8px。
6. **Dispatches(时间线)** — SectionLabel:“03 — Dispatches from the bank”。标题:“Six springs, one stretch at a time.”。六个条目,每个包含标记、编号、标题、正文、统计行和图注:
Year 1 · 01 · “One trolley and a length of rope” — “Nine of us met at the Mill Lane footbridge with borrowed gloves. By noon we had pulled a shopping trolley, four tyres and thirty bags out of the shallows.” 统计:“620 kg · 9 volunteers · 300 m”。小插图:trolley。图注:“Fig. 2 — The first find.”
Year 2 · 02 · “Under the footbridge” — “Litter collects in the slack water below the bridge. The council agreed to collect large finds if we stacked them by the lane, so we did.” 统计:“1,140 kg · 68 volunteers · 350 m”。小插图:footbridge。图注:“Fig. 3 — Mill Lane footbridge.”
Year 3 · 03 · “Sorting on the bank” — “We began sorting everything on site into metal, plastics and the rest. Almost half of what we lifted went to recycling instead of landfill.” 统计:“1,860 kg · 104 volunteers · 400 m”。小插图:crates。图注:“Fig. 4 — Three crates, three streams.”
Year 4 · 04 · “The weir pool” — “The weir traps whatever the river carries down. Two trained crew in waders worked the pool while sixty people sorted on the bank.” 统计:“2,210 kg · 156 volunteers · 450 m”。小插图:weir。图注:“Fig. 5 — The weir at low water.”
Year 5 · 05 · “The reeds came back” — “On the first stretches we cleared, sedge and reed beds returned without any planting. We counted herons on four of our six visits.” 统计:“2,450 kg · 221 volunteers · 500 m”。小插图:reeds。图注:“Fig. 6 — New reed beds, east bank.”
Year 6 · 06 · “Planting the bank” — “We planted 400 native willow whips to hold the bank where litter used to pile up. Most of them have taken.” 统计:“3,200 kg · 312 volunteers · 600 m”。小插图:willows。图注:“Fig. 7 — Willow whips, first summer.”
Layout: id='dispatches'。SectionLabel 和标题,然后是一个列表,条目之间间距 64px。桌面端:一条垂直的 1px Rule 线在网格第 3 列和第 4 列交界处贯穿列表的整个高度,其上叠加与滚动关联的 River 进度线。每个条目是一个 12 列行:第 1–2 列右对齐,放置标记“Year 1”(等宽 12px 大写 Silt),位于编号“01”(Fraunces 400 64px Silt,表格数字)上方。线上有一个 13px 圆点:Paper 填充,带 1px River Light 边框,直到条目进入视野后变为 River 填充。第 4–8 列放置标题(Fraunces 600 28px/1.15 Ink)、正文(Public Sans 17px/1.6,Ink 85%,下方 16px)和统计行(等宽 12px,Silt,下方 16px,值之间用中点分隔)。第 9–12 列放置 Vignette:一个 4:3 的 Paper Deep 面板,带 1px Rule 边框,内含变体线描(1.5px River Light 描边,River 点缀,每个约 12–20 条路径:trolley = 波浪水线中倾斜的带轮铁丝篮;footbridge = 水线上方带栏杆的浅拱桥;crates = 三个不同高度的敞口板条箱;weir = 阶梯状水平带,带落水描边;reeds = 成簇的高大弯曲茎秆,一侧有站立的苍鹭轮廓;willows = 斜坡岸上一排五棵细树苗,带绑带和支柱),其下方是等宽 11px 图注。移动端:线移到距左边缘 7px 处,条目获得 32px 左内边距,标记和编号内联(“Year 1 · 01”)位于标题上方,小插图在统计下方全宽显示。
Motion: 与 Design 中所述一致的滚动关联进度线。每个条目在 30% 进入视野时使用 Reveal;其圆点在 0.3s 内填充 River;其小插图路径以 pathLength 在 1.2s 内绘制,每条路径交错 0.03s。
7. **Volunteer sign-up** — SectionLabel:“04 — Volunteer”。标题:“Bring boots. We’ll bring the rest.”。段落:“Three Saturday mornings this spring, each on a different part of the last 1.6 km. Gloves, grabbers, bags and tea are provided. You don’t need any experience; a crew lead will show you what to do.”。带 Lucide 图标(18px,River)的事实列表:Clock“Saturdays, 9:00 to 12:30”;MapPin“Meet at the Mill Lane Boathouse”;Footprints“Wear boots you don’t mind getting muddy”;Users“Crews of eight, each with a trained lead”。表单标题:“Put me on the register”。字段:“Full name”(必填);“Email”(必填);“Phone (optional)”;“Which day?” 单选卡片(必填):“Day 1 — Mill Lane to the weir”、“Day 2 — The weir to Carter’s Meadow”、“Day 3 — Carter’s Meadow to the river mouth”;“I can help with” 复选框(可选):“Hauling bags”、“Sorting on the bank”、“Tea and first aid”、“Taking photos”;“Anything we should know?” 文本域(可选,最多 300 个字符,计数器“0 / 300”);同意复选框(必填):“I’m 16 or over, or I’ll come with a parent or guardian.”。提交:“Put me on the register”。错误消息:“Please enter your name.”、“Please enter a valid email address.”、“Please enter a phone number with at least 7 digits, or leave it blank.”、“Please choose a day.”、“Please confirm this to sign up.”。成功票据:印章标题“You’re on the register, {first name}.”,行“Volunteer No. 313”、“Day: {chosen day}”、“Meet: Mill Lane Boathouse, 9:00”、“Bring: boots, water, a warm layer”;脚注“Demo form: your details stay in this browser tab and are not sent anywhere.”;按钮“Sign up someone else”。
布局:id='volunteer'。全出血 Paper Deep 色带。桌面端 12 列网格:第 1–5 列放置 SectionLabel、标题、段落和事实列表(每行图标 + Public Sans 16px,行间距 14px,行间 1px Rule 细线)。第 7–12 列放置表单卡片:Paper 背景,1px Rule 边框,内边距 40px,圆角 0,一个 mono 12px 大写表单标题,下方带一条细线。字段以 22px 间距堆叠;标签为 Public Sans 600 14px Ink,其中“(optional)”为 Silt 400;输入框高 48px,Paper 背景,1px Rule 边框,圆角 2px,16px 文字,内边距 0 14px;聚焦状态为 2px River 边框,无发光。三个日期选项为全宽单选卡片(1px Rule 边框,14px 内边距,自定义 18px 圆形指示器;选中卡片获得 2px River 边框和 Paper Deep 填充)。复选框位于 2×2 网格中,带 18px 方形自定义框(选中:River 填充,带 Paper Lucide Check 14px)。Textarea 4 行,计数器右对齐,位于下方 mono 11px(达到 300 时变为 Error)。提交按钮全宽 52px,River 背景,Paper 文字,Public Sans 600 16px,圆角 2px。仅在浏览器端验证,表单使用 noValidate:每个字段在失焦时验证,并在提交时再次验证;email 匹配 /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/;phone 若填写,去除非数字字符后需要至少 7 位数字;name 需要 2 个以上修剪后的字符。无效字段获得 1px Error 边框、aria-invalid='true' 以及指向字段下方错误行的 aria-describedby(mono 12px Error,带 Lucide CircleAlert 14px)。提交时若有错误,焦点移动到第一个无效字段。有效提交时,按钮显示旋转的 Lucide LoaderCircle 和“Adding you…”持续 900ms(setTimeout,无网络请求),然后卡片内容被成功票券替换:一张 Paper 卡片,距顶部 72px 处有 2px 虚线 Rule 穿孔线,标题上方有 64px CheckStamp(River 圆形带 Paper 对勾)(Fraunces 600 32px),票券行作为两列 mono 13px 表格带细线,脚注为 Public Sans 13px Silt,以及“Sign up someone else”作为描边 River 按钮,重置表单并将焦点返回 name 字段。移动端:单列,表单卡片内边距 24px,复选框单列。
动效:错误行从高度 0 向下滑出,持续 0.2s。表单到票券的切换使用 AnimatePresence:表单淡出(0.2s),票券淡入并上升 12px(0.4s),同时 CheckStamp 圆形和对勾通过 pathLength 绘制(0.5s)。
8. **FAQ** — SectionLabel:“05 — Questions”。标题:“Questions, answered plainly.” 侧注:“Still unsure? Write to [email protected] and a person will reply within two days.” 条目:
“Where does my money go?” — “Skip hire and landfill fees take 41%, bank replanting with native willow and sedge 27%, safety kit and grabbers 22%, and insurance and first-aid training 10%. We post the receipts after every clean-up day.”
“Is it safe to volunteer near the water?” — “Volunteers stay on the bank. Only trained crew in waders go into the shallows, never above knee depth, and every site has a life ring, a first-aid kit and a lead who has done the training.”
“Can I bring children?” — “Yes, from age 8 with an adult. Under-16s work on the bank and help with sorting.”
“What happens to the litter we collect?” — “We sort it on the bank. Metal and hard plastics go to recycling, the rest goes to licensed landfill, and large finds like trolleys and tyres are collected separately.”
“Do I have to come to every clean-up?” — “No. Most people come once or twice a season. Sign up for one day and see how it feels.”
“Can a local business sponsor a stretch?” — “Yes. Adopting 100 metres costs $600 and puts your name on the marker post for that stretch. Write to us and we’ll send the details.”
布局:id='faq'。桌面端 12 列网格:第 1–4 列放置 SectionLabel、标题和侧注(Public Sans 16px,Ink 75%,email 为带下划线的 River 链接,href 为 mailto:)。第 6–12 列放置手风琴:顶部 1px Ink 线,然后每个条目为全宽按钮行(最小 72px,垂直内边距 20px),问题在左侧为 Fraunces 400 22px/1.3 Ink,右侧为 Lucide Plus 20px 图标;行间由 1px Rule 细线分隔。答案面板位于其问题下方,Public Sans 17px/1.65,Ink 85%,最大 60ch,padding-bottom 24px。一次仅打开一个条目;加载时第一个打开。按钮带有 aria-expanded 和 aria-controls;面板具有 role='region' 和 aria-labelledby。移动端:单列,问题 20px。
动效:打开时面板从高度 0 到 auto 动画,透明度变化持续 0.3s(AnimatePresence),Plus 图标旋转 45° 变为叉号,持续 0.2s;关闭时反向。
9. **Closing donate band** — Mono 说明文字:“The last stretch”。标题:“The last 1.6 km is the hardest. Help us finish it.” 行:“$16,380 to go. Every gift is weighed against the same costs as the calculator above.”(待筹金额为 goal 减去 raisedTotal,永不低于 $0)。主按钮:“Donate to the clean-up”(指向 #impact)。次按钮:“Share this page”,带 Lucide Copy 图标;点击时在 try/catch 内使用 navigator.clipboard.writeText 复制 window.location.href,并将标签改为“Link copied”,带 Lucide Check 持续 2s(失败时:“Copy failed — use your browser’s share menu”)。
布局:全出血 Ink 色带,Paper 文字,桌面端内边距 120px / 移动端 80px,overflow hidden。内容后方,WaterLines SVG 横跨下半部分全宽:三条水平正弦路径(River 45%,1.5px 描边,1200px 波长,不同振幅)绘制为视口宽度的两倍,以便漂移。内容居中于最大 820px:mono 说明文字(12px 大写 Paper 60%),标题 Fraunces 800 clamp(40px, 6vw, 84px)/1.0 Paper,其中“Help us finish it.”为 Fraunces 400 斜体,单独一行,行文字为 Public Sans 18px Paper 75%,然后按钮居中,位于下方 40px,间距 16px:主按钮 Signal 背景,Paper 文字,高 52px;次按钮 52px,透明,带 1px Paper 40% 边框和 Paper 文字。移动端:按钮堆叠全宽。
动效:每条水线使用 CSS water-drift 关键帧水平无缝循环平移(translateX 0 到 -50%),时长 28s、36s 和 44s,linear,infinite;在 reduced motion 下禁用。标题使用 Reveal。
10. **Footer** — 字标和行:“A volunteer crew looking after 4.2 km of the River Fern.” 列“Visit”:“Mill Lane Boathouse”、“Ashby Vale”。列“Contact”:“[email protected]”。列“Read”:“Spring newsletter”、“Field notes”、“Receipts and accounts”(文本链接到 #top)。底部行:“© Fernmouth River Crew · An unincorporated community group”,以及,如果保留 [CREDIT],右侧的“Template by VibeFather”链接。
布局:延续 Ink 背景,容器内顶部 1px Paper 15% 线,顶部内边距 64px / 底部 40px。桌面端 12 列网格:第 1–5 列字标(WaveMark 为 Paper,名称 Fraunces 600 斜体 22px Paper)和行文字 Public Sans 15px Paper 65%;第 7–8、9–10、11–12 列各放置列标题 mono 11px 大写 Paper 50% 和条目 Public Sans 15px Paper 80%,间距 10px。底部行位于下方 48px,带 1px Paper 15% 顶部线和 mono 11px Paper 50% 文字,左右对齐。无社交媒体图标或徽标。移动端:字标块,然后三列在 2 列网格中,然后底部行堆叠。
动效:除链接下划线悬停外无其他。
## 资产
- image:所有插图均为 src/art/ 中手写代码绘制的原创内联 SVG React 组件:RiverMap(带河流路径的等高线地图、虚线未完成段、六个编号圆点、指北针、比例尺)、Vignette 含六个变体(手推车、人行桥、木箱、拦河堰、带苍鹭轮廓的芦苇、柳树)、BagGlyph、CheckStamp、WaveMark 和 WaterLines。无位图图像、无照片、无图库或占位符服务。
- image:public/favicon.svg:WaveMark(三条堆叠正弦笔画,#1F4E4A)置于 #F4EFE6 圆角方块上,手工绘制为 SVG。
- icon:lucide-react(ISC),按图标逐个导入:Menu、X、ArrowRight、Check、Plus、Clock、MapPin、Footprints、Users、CircleAlert、LoaderCircle、Copy。1.75px 描边,尺寸按各节所述。
- font:通过 src/main.tsx 中导入的 Fontsource npm 包自托管:@fontsource-variable/fraunces、@fontsource-variable/public-sans、@fontsource/ibm-plex-mono(400 和 500)。均为 OFL-1.1。在 ASSETS.md 中列出它们,附来源 URL、作者和许可证。
## 不要做
- 不要后端:不要服务器代码、API 路由、数据库、认证、支付 SDK 或第三方 API。志愿者表单和 Donate 按钮从不向任何地方发送数据;它们只改变页面内的状态。
- 不要真实支付服务商的按钮、标识或措辞(不要 PayPal、Stripe、Apple Pay 或银行卡标记)。Donate 按钮是普通样式的按钮。
- 不要真实河流、水源或清洁类慈善机构的名称、标识或口号,也不要把真实河流、城镇或地标呈现为活动的所在地。所有名称、地点、人物和数字均为虚构。
- 任何地方都不要人物照片,不要人脸;不要图库摄影,不要占位图服务,不要热链接文件。
- 不要把虚构的总额、统计数据或引语当作关于任何真实组织的现实事实来呈现。
- 字体仅通过 Fontsource 自托管。绝不要从 fonts.googleapis.com、fonts.gstatic.com 或任何 CDN 加载字体,也不要使用商业字体或报纸报头字体。
- 不要 CDN 的 <script> 或 <link> 标签,不要分析工具,不要跟踪像素,不要外部嵌入(地图、视频、社交组件)。
- Signal 橙色仅用于捐赠操作、进度条填充、滑块填充和地图圆点。不要添加其他强调色、渐变、玻璃拟态或投影。
- 保持方形编辑风格:不要圆角卡片、胶囊按钮或 emoji。
- 生产构建必须压缩且不带 source map,仅输出到 dist/,使用相对资源路径(Vite base './'),且不要将 src/ 文件复制到 dist/。保持 dist/ 在 20 MB 以下。
- 这是单页:内部链接是页内锚点(#impact、#volunteer……)或指向 ./index.html,绝不指向裸目录。
- 不要更改技术栈,也不要添加所列之外的库。
- 不要 SEO 附加项:不要 meta 描述、Open Graph 标签、JSON-LD 或站点地图。只保留普通的 <title> 和 favicon。
- 必须在 1440×900 和 390×844 下正常工作,零控制台错误,控件可通过键盘访问且焦点可见,并完全尊重 prefers-reduced-motion。
- 除可选的 [CREDIT] 页脚链接外,不要在网站任何地方提及 VibeFather。
---
— Prompt by VibeFather · https://vibefather.ai/t/nonprofit-donation-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
个人项目可免费使用(CC BY-NC 4.0)。 商业用途需要 Pro.
DESIGN.md
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
name: "Nonprofit Donation Page"
colors:
paper: "#F4EFE6"
paper_deep: "#EAE2D3"
ink: "#1B2422"
river: "#1F4E4A"
river_light: "#6E9A93"
silt: "#8A6E4B"
rule: "#CFC4B1"
signal: "#E2582B"
error: "#A8321E"
typography:
display_headlines_big_figures_faq_questions: { family: "Fraunces Variable", weights: [400, 600, 800] }
text_body_form_fields_buttons: { family: "Public Sans Variable", weights: [400, 500, 600] }
mono_captions_section_numbers_nav_labels: { family: "IBM Plex Mono", weights: [400, 500] }
spacing: "12-column grid inside a 1200px max-width container, 24px gutters; side padding 40px desktop, 20px mobile. Sections are separated by 128px vertical padding on desktop and 80px on mobile. Every section starts with a SectionLabel: mono 12px uppercase, letter-spacing 0.14em, Silt, e.g. “01 — The record so far”, followed by a full-width 1px Rule hairline and 32px gap before the heading. Section headings are Fraunces 600, clamp(32px, 4vw, 52px), line-height 1.05, letter-spacing -0.015em. Body columns never exceed 62ch."
radius: "Square editorial edges: 0 on panels, cards, meter track and images; 2px on buttons, inputs and chips; full circle only for the slider thumb, timeline dots and map dots."
---
# Nonprofit Donation Page — Design System
Apply this design system to an existing project. It describes the look and feel only; for the full site, use prompt.md.
## Colors
- **Paper** `#F4EFE6` — Page background, text on dark bands
- **Paper Deep** `#EAE2D3` — Meter band and volunteer section background, illustration panels
- **Ink** `#1B2422` — Body text, headlines, closing band and footer background
- **River** `#1F4E4A` — Impact calculator band background, drop caps, river strokes, form submit button, links
- **River Light** `#6E9A93` — Contour lines, vignette strokes, unreached timeline dots
- **Silt** `#8A6E4B` — Captions, section numbers, timeline numerals, unreached milestone labels
- **Rule** `#CFC4B1` — 1px hairlines, meter track, input borders
- **Signal** `#E2582B` — Only for donate buttons, the meter fill, the slider fill and map site dots
- **Error** `#A8321E` — Form error text and invalid field borders
## Typography
- **Display (headlines, big figures, FAQ questions)** — Fraunces Variable (OFL), weights 400/600/800. Self-host the font files.
- **Text (body, form fields, buttons)** — Public Sans Variable (OFL), weights 400/500/600. Self-host the font files.
- **Mono (captions, section numbers, nav, labels)** — IBM Plex Mono (OFL), weights 400/500. Self-host the font files.
## Spacing & shape
- Spacing: 12-column grid inside a 1200px max-width container, 24px gutters; side padding 40px desktop, 20px mobile. Sections are separated by 128px vertical padding on desktop and 80px on mobile. Every section starts with a SectionLabel: mono 12px uppercase, letter-spacing 0.14em, Silt, e.g. “01 — The record so far”, followed by a full-width 1px Rule hairline and 32px gap before the heading. Section headings are Fraunces 600, clamp(32px, 4vw, 52px), line-height 1.05, letter-spacing -0.015em. Body columns never exceed 62ch.
- Radius: Square editorial edges: 0 on panels, cards, meter track and images; 2px on buttons, inputs and chips; full circle only for the slider thumb, timeline dots and map dots.
## Motion
- Default ease is [0.22, 1, 0.36, 1]. Reveal: elements fade from opacity 0 and y 16px to 0 over 0.6s when 30% in view, once; siblings stagger 0.08s.
- Big figures count up once with CountUp (1.4s); the meter fill grows from 0 to its percentage over 1.8s when 40% in view, and re-animates smoothly (0.6s) whenever raisedTotal changes.
- SVG line drawings draw themselves with Motion pathLength 0 to 1 (river map 1.6s, vignettes 1.2s, check stamp 0.5s).
- The timeline’s vertical progress line is scroll-linked: useScroll on the Dispatches section (offset ['start 60%', 'end 60%']) drives scaleY of a River-coloured line from 0 to 1, transform-origin top.
- Hover: buttons darken 8% and lift 1px over 150ms; text links animate an underline from 0 to 100% width over 200ms.
- With prefers-reduced-motion: no reveals, count-ups, path drawing, scroll-linked line or water drift; everything renders in its final state and smooth scroll is off.
## Imagery
No photographs. All imagery is original line art drawn in SVG components: a contour-line map of the river stretch, six small vignettes for the timeline, a bag glyph for the calculator, a check stamp, and drifting water lines. Strokes are 1.5px, round caps, River Light or River, on Paper Deep panels, each with a mono figure caption (“Fig. 1 — …”). No people, faces, animals with personality, or real places.
## Tone
Plain-spoken, warm and factual, like a good local reporter. Short sentences, concrete numbers, no exclamation marks, no guilt, no buzzwords.
---
— Prompt by VibeFather · https://vibefather.ai/t/nonprofit-donation-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 邻里植树团体:将 BRAND 和 PLACE 设置为你的地区,将 CAUSE 设为种植行道树,并重写 IMPACT_RATE,使每份捐赠对应种植的树木和遮荫的街道。
- 社区花园募捐:将 GOAL 指向你的种植床或工具棚,把河流地图换成地块平面图,并将时间线改为过去的生长季节和工作日。
- 小型图书馆筹款委员会:将 CAUSE 设为修复阅览室,用账本展示新增书籍和开放时间,并改写志愿者表单以适应书架轮班。
- 海滩修复团队:将 PLACE 改为你的海岸线,调整 IMPACT_RATE 为收集的垃圾公斤数和清理的沙丘米数,并重写过去清理日的快讯。
公益捐赠页:常见问题
公益捐赠页上的捐赠进度条是如何工作的?
公益捐赠页显示一个向你的 GOAL 填充的进度条,并在 25%、50%、75% 和 100% 处带有里程碑刻度。初始已筹总额和捐赠者数量存放在内容文件中,当有人通过影响力计算器认捐时,进度条会更新到新的总额,无需刷新页面。不收取任何付款,也不会向服务器发送任何内容。
怎么用 AI 做一个公益捐赠页?
复制本页的提示词,或者运行 npx vibefather add nonprofit-donation-page,把 [GOAL]、[BRAND]、[CAUSE]、[PLACE] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。