用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
一个电动汽车充电网络的单页网站,完全用代码绘制——没有任何摄影图片。首屏就是产品本身:一张用 SVG 渲染的风格化城市地图,细石墨色街道线条,一条河流从中穿过,十四个充电站以电光绿圆点在整个网格上柔和脉动。速度、接口和可用性的筛选标签固定在图上,每次更改都会实时重新点亮城市:匹配的充电站发光并脉动,其余则淡化为暗淡的圆点,每个都可悬停查看名称、速度和状态的等宽字体读数。所有充电站数据均为虚构的示例数据,并已标注说明。地图下方页面保持技术感:一条等宽字体统计条,一个按千瓦计费的定价区块,带有 24 小时昼夜费率条和三级费率表,以及一个用 CSS 手机模型构建的应用预览——一个充电会话,电池环在滚动进入视野后填充到 68%。车队部分涵盖车库充电器、走廊规划和按千瓦时计费,托管充电器表单收集物业类型和车位数量,仅保存到本地存储并明确说明。外观已锁定:石墨底色配细线网格纹理,一种电光绿(琥珀色保留给忙碌状态),Space Grotesk 展示字体搭配 JetBrains Mono 标签,克制的动效并尊重 prefers-reduced-motion。在一个内容文件中替换品牌、城市、头条费率和充电站数量;第二个演示案例将相同布局转变为电动自行车共享网络。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# EV Charging Network Website Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else. ## Brief A single-page marketing site for an EV charging network, all visuals drawn in SVG/CSS: a hero anchored by a stylized city map with pulsing station dots and live filters (speed, connector, availability) that re-light the map, a mono stats strip, per-kWh pricing with a day/night rate bar and tariff table, a CSS phone-mock app preview with a filling battery ring, a fleet section, and a client-side host-a-charger form. - Audience: EV charging networks and energy startups, e-mobility and infrastructure products, plus the studios building for them. - Goal: Show the network working before asking for anything: let visitors play with the map and filters, understand pricing in ten seconds, trust the app flow, then convert — drivers to the app pitch, businesses to fleet contact, property owners to the host form. - Tone: Technical, calm, exact — short lines, real numbers, mono labels; the confidence of infrastructure, not the hype of startups. ## Stack - Framework: Vite 5 + React 18 + TypeScript - Styling: Tailwind CSS 3.4 - Libraries: tailwindcss (MIT), motion (MIT), lucide-react (ISC), @fontsource/space-grotesk (OFL), @fontsource/jetbrains-mono (OFL) - Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs. - Setup: - Scaffold with npm create vite@latest ev-charging-network-website -- --template react-ts; add [email protected], postcss and autoprefixer as dev dependencies; add motion, lucide-react, @fontsource/space-grotesk and @fontsource/jetbrains-mono as dependencies. - vite.config.ts: base './', build.sourcemap false, build output dist/. - tailwind.config.js: extend colors graphite #101214, raised #17191D, gridline #24282D, volt #3CE97E, voltdeep #17603A, cloud #E8ECEF, steel #8A939B, amber #E0A63F; fontFamily display 'Space Grotesk' and mono 'JetBrains Mono'; radius scale trimmed to sm 4px and DEFAULT 8px. - postcss.config.js: tailwindcss + autoprefixer. - src/components/CityMap.tsx: the stylized invented city — one SVG, viewBox 0 0 800 600: vertical street lines every 100px and horizontals every 75px (stroke gridline, 1px), two diagonal avenues, one river path (stroke raised, 10px, curving top-right to bottom-left); stations render from the fixed sample array in content.ts (14 entries: id, x, y, name, speed 'standard'|'fast'|'rapid', connector 'ccs'|'type2', state 'available'|'busy'|'offline'); each dot is a 5px circle (available volt, busy amber, offline steel) with an animated pulse ring (SVG circle r 5→16, opacity 0.6→0, 2.4s, delayed index×170ms). - src/components/BatteryRing.tsx: a 120px SVG ring (stroke volt, 8px, track gridline) whose stroke-dasharray animates 0→68% over 1.8s with Motion whileInView once. - Hairline grid texture utility in src/index.css: .bg-grid — repeating-linear-gradient 1px gridline every 48px at 45% opacity over the graphite ground — applied to the map panel and the app section backdrop. - src/lib/motion.ts: shared variants — reveal (opacity 0→1, y 18→0, 500ms ease-out, 70ms stagger, whileInView once) — with useReducedMotion falling back to plain 200ms opacity fades and no pulses. - Keep every user-facing string and all sample data (brand, city, rate rows, stations array, stats, fleet cards, host copy, emails) in src/content.ts; sections read from it so values swap in one place. - index.html: <title>[BRAND] — EV Charging in [CITY]</title> plus a drawn-in-code favicon.svg (a volt-green bolt on the graphite ground); no other meta work. ## Variables - [BRAND] — Network name (default: "Ampline"). Invented network name used for the wordmark, station IDs (AM-101…), tariffs and contact emails (from content.ts). - [CITY] — City name (default: "Norhaven"). The invented metro the demo map and copy describe ('the [CITY] grid', '[STATIONS] stations across [CITY]'). - [RATE] — Headline rate (default: "$0.34 / kWh"). The daytime pay-as-you-go rate — hero-pricing anchor, day/night bar label and tariff table; the unit follows the product (content.ts rewrites copy for per-minute products). - [STATIONS] — Station count (default: "412"). The network-wide sample count in the stats strip and hero label; the map itself always shows the 14 sample dots. - [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/ev-charging-network-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 - Graphite `#101214` — Page ground everywhere — dark blue-graphite, never pure #000. - Raised `#17191D` — Map panel ground, phone mockup, form panels, the river in the map. - Grid line `#24282D` — Street lines, hairlines, borders, the background grid texture, ring track. - Volt `#3CE97E` — The one electric green: available stations, pulse rings, CTAs, active filter chips, the battery ring, price accents. - Volt deep `#17603A` — Pressed and filled states on volt: chip fills, day-rate bar block, hover borders. - Cloud `#E8ECEF` — Primary text — cool off-white for headlines and body. - Steel `#8A939B` — Secondary text, meta rows, offline stations, mono captions. - Amber `#E0A63F` — Strictly functional: busy stations and the night-rate block — never decorative. ### Typography - Display and body — headlines, bullets, form labels (technical grotesque): Space Grotesk (OFL), weights 500/700 - Mono — station readouts, filter chips, stats, prices, section labels (uppercase, tracked 0.12em): JetBrains Mono (OFL), weights 400/500/700 ### Layout & motion - Spacing: Dense and engineered: sections py-24 (96px) desktop / py-16 (64px) mobile; content max-w-6xl px-6/px-10; panels carry 24px padding with 1px gridline hairlines; the map panel is the only full-height element. - Radius: Small and technical: 4px on chips, inputs and buttons, 8px on panels and the phone mockup; no pills, no large rounding. - Motion: Map pulse: each available station's ring expands r 5→16 with opacity 0.6→0 over 2.4s, staggered by index×170ms — the city feels powered, not busy. - Motion: Filter re-light: changing any filter chip transitions matching dots to full volt with pulses and non-matching dots to 15% opacity with pulses stopped (300ms); counts in the legend update. - Motion: Dot hover: the station scales to 1.3 (150ms) and its mono tooltip card fades in above; leaving fades it out (120ms). - Motion: Battery ring: animates stroke-dasharray 0→68% over 1.8s ease-out, once, when the app section enters; the kWh counter ticks up alongside it. - Motion: Reveals: sections and cards fade up (y 18→0, 500ms ease-out) with 70ms stagger via Motion whileInView, once. - Motion: Filter and form chips toggle to volt ground with graphite text (200ms); host-form steppers tick with a small y-bounce. - Motion: prefers-reduced-motion: all pulses and the ring animation off (ring renders at 68% instantly), reveals become plain 200ms opacity fades, tooltips appear without motion. - Imagery: Zero photography — everything is drawn in code on the graphite ground: the stylized city map (thin street grid, river, pulsing station constellation) is the hero anchor; the app preview is a CSS phone mockup; the rate bar and battery ring are SVG. Hairline grid textures back the panels. The only imagery is the network itself, lit in one electric green. ## Pages & Sections ### [BRAND] — EV Charging in [CITY] (`index.html`) 1. **Header** — Fixed top bar, 64px, graphite ground with a 1px gridline bottom hairline. Left: the [BRAND] wordmark in Space Grotesk 700 20px cloud, preceded by a small lucide zap in volt. Right (desktop): anchor links 'Map', 'Pricing', 'App', 'Fleet', 'Host' in JetBrains Mono 13px steel → cloud on hover; then the CTA 'Get the app' (volt ground, graphite text, 4px radius) → #app. Mobile: wordmark + CTA + lucide menu/x toggle opening a raised panel with the five links stacked in mono. Layout: position fixed, z-40, backdrop blur over the hero map behind it. Motion: Mobile panel slides down 250ms; link hover shifts steel → cloud (150ms); the zap icon never animates. 2. **Hero — live station map** — Left block: mono label in volt, tracked: '[STATIONS] STATIONS · [CITY] GRID · SAMPLE DATA'; headline Space Grotesk 700, clamp(2.75rem, 6vw, 4.75rem), cloud: 'The city, charged.' Sub, Space Grotesk 400 17px steel, max-w 44ch: 'Find a fast charger on the way, not across town. Filter by speed, connector and availability — this demo map runs on invented sample data.' Two CTAs: 'See pricing' (volt ground) → #pricing; 'Host a charger' (outline, gridline border) → #host. Right: the map panel — CityMap.tsx on a raised ground with the .bg-grid texture, 8px radius, 1px gridline border, filling the section height (min 560px desktop / 420px mobile). Docked to the panel's bottom on a raised strip: three filter groups in mono 12px — SPEED [All / Standard 22 / Fast 50 / Rapid 150], CONNECTOR [All / CCS / Type 2], AVAILABILITY [All / Available now]; active chips are volt ground with graphite text. Legend bottom-right, mono 11px steel: '● AVAILABLE ● BUSY ● OFFLINE — SAMPLE DATA'. Hovering any dot opens a mono tooltip: 'AM-117 · OLD MILL RD' / 'RAPID 150 KW · CCS' / '● AVAILABLE — SAMPLE'. Layout: 12-column grid, min-h 92vh: text columns 1–5 (self-center), map panel columns 6–12 (self-stretch). Mobile: map first (420px), text below; filter chips scroll horizontally. Motion: Dots pulse on load, staggered; filter changes re-light the map in 300ms; dot hover scales 1.3 with a tooltip fade; reduced motion: static dots, instant filters. 3. **Network strip** — A single hairline-topped row of four mono stats, 13px, cloud values with steel labels, separated by 1px gridlines: '[STATIONS] / STATIONS ACROSS THE METRO' · '150 KW / MAX RATE ON RAPID BAYS' · 'CCS + TYPE 2 / CONNECTORS AT EVERY SITE' · '24/7 / PHONE SUPPORT FOR EVERY SESSION'. Beneath, mono 11px steel right-aligned: 'DEMO NETWORK — EVERY NUMBER IS SAMPLE DATA'. Layout: max-w-6xl, 4 equal cells with gridline separators (stacked 2×2 on mobile). Motion: Cells fade up staggered 70ms; no counters. 4. **Pricing** — id=pricing. Mono label 'PRICING'; headline: 'One price, posted on the pylon.' A 24-hour rate bar drawn in CSS: a full-width 56px bar where 07:00–22:00 is voltdeep (labeled '[RATE]' in mono cloud) and 22:00–07:00 is amber (labeled '$0.21 / kWh'), with hour ticks 00/06/12/18/24 in mono 11px steel below. Under it a three-row tariff table with gridline rules (mono): 'PAY-AS-YOU-GO — [RATE] day · $0.21 night · no membership, tap to charge' / '[BRAND] PLUS — $7.99 / MO · $0.29 day · $0.17 night · lower rates across the metro' / 'FLEET & BUSINESS — CUSTOM · depot and corridor rates · per-kWh invoicing → link to #fleet'. Footnote mono 11px steel: 'Sample rates for the demo — real tariffs vary by site.' Layout: Rate bar full content width; table rows as 3-column CSS grids (tier / rates / note) with 1px gridline row rules; mobile stacks the note under each tier. Motion: The day block fills from left to right once on reveal (600ms); rows fade up staggered 70ms. 5. **App preview** — id=app. Left copy: mono label 'THE APP'; headline: 'Four taps, no fumbling.' Bullets (Space Grotesk 16px, each with a lucide icon in volt): 'Find — filter by speed and connector' (search), 'Plug — the handle talks to the app' (plug-zap), 'Charge — watch it fill' (battery-charging), 'Pay — one tap, one receipt' (check). Right: a CSS phone mockup on a raised panel with the .bg-grid texture — 280×580px, 8px radius, 1px gridline border, a simple notch; screen shows a session card in mono: 'AM-117 · OLD MILL RD' at top, the BatteryRing at 68% center with '31.4 kWh' beside it, below 'SESSION 24 MIN' and '$10.68 SO FAR' in cloud, and a fake pause bar (gridline fill, volt 68% filled). Layout: 12-column grid: copy columns 1–5, phone columns 8–11 (rotate -3deg, 24px drop shadow of pure #000 at 40%). Mobile: phone first, centered, no rotation below 640px. Motion: The ring animates 0→68% once on reveal (1.8s) with the kWh counter ticking alongside; the phone straightens from -3deg to 0 on hover (300ms); reduced motion: ring renders full, no counter. 6. **Fleet and business** — id=fleet. Mono label 'FLEET'; headline: 'Vans charge on schedule.' Intro steel: 'Depot charging overnight, rapid bays on the corridors your routes actually use, and one invoice per month.' Three hairline cards: 'Overnight depots' (lucide warehouse) — '22 kW banks sized to your fleet and your off-peak window.' / 'Corridor planning' (route) — 'We model your routes and place rapid bays where the vans empty.' / 'One invoice' (receipt) — 'Per-kWh reporting per vehicle, exported monthly.' CTA line: 'Talk to the fleet desk — [email protected]' (volt mono link, from content.ts). Layout: 3-column card grid with 1px gridline borders, 24px padding, 4px radius; stacked on mobile. Motion: Cards fade up staggered 100ms; hover turns the border voltdeep (200ms); icons never animate. 7. **Host a charger** — id=host. Mono label 'HOST'; headline: 'Turn a parking spot into a station.' Left, a mono checklist (lucide check in volt): 'We supply and install the hardware' / 'You keep the spot; we keep it working' / '70% of session revenue, paid monthly — sample terms'. Right, the form on a raised panel (labels Space Grotesk 600 13px cloud; inputs graphite ground, gridline border, 4px radius): name; email; property chips ('Home driveway' / 'Shop lot' / 'Office park', single select); address text input, placeholder 'Rough address is fine'; spots stepper 1–4. Button 'Save my interest' (volt ground). On click: save to localStorage key 'hostInterest' and show an inline note (300ms fade, mono 13px steel): 'Saved on this device only — this demo form sends nothing. When it's real, write [email protected].' Nothing submits anywhere. Layout: 12-column grid: checklist columns 1–5, form columns 7–12. Mobile stacks. Motion: Chips and steppers transition 200ms; the saved note fades in; reduced motion keeps color-only changes. 8. **Footer** — 1px gridline top hairline. Left: the [BRAND] wordmark with the volt zap, and one mono 12px steel line: 'AN INVENTED DEMO NETWORK FOR [CITY] — EVERY NUMBER ON THIS PAGE IS SAMPLE DATA.' Right: anchor links 'Map · Pricing · App · Fleet · Host' in mono steel; optional [CREDIT] link. No dates, no social row. Layout: py-12, max-w-6xl, flex row wrapping to column on mobile. Motion: None. ## Assets - icon: lucide-react (ISC) via npm — zap (brand mark and header), search, plug-zap, battery-charging and check (app bullets), warehouse, route and receipt (fleet cards), check (host checklist), plus/minus (steppers), menu and x (mobile header), arrow-right (CTAs). No other iconography: no emoji, no car logos, no connector-brand marks. Every other visual — the city map, battery ring, phone mockup and rate bar — is drawn in SVG/CSS by the builder following the section specs; no image files are used anywhere. - font: @fontsource/space-grotesk (OFL, weights 500 and 700) and @fontsource/jetbrains-mono (OFL, weights 400, 500, 700), imported in src/main.tsx; never loaded from fonts.googleapis.com or any CDN. List both families and the lucide icon package in ASSETS.md at the project root: path, source, license — there are no image assets to list. ## Don'ts - No backend, no network calls, no analytics, no payments: the map, availability states, session numbers and stats are static sample data from src/content.ts, visibly labeled SAMPLE, and the host form saves to localStorage only with an inline note saying so — no form ever submits. - No photography or raster images anywhere: every visual (map, phone mockup, battery ring, rate bar, textures) is drawn in SVG/CSS; never use Unsplash/Pexels/Pixabay, generated photos or placeholder-image services. - No real map tiles or geodata — no Leaflet, Mapbox or Google Maps: the city is a stylized invented grid drawn in one SVG with fixed coordinates. - No real charging networks, automakers or connector-brand marks: the network, station names, streets and prices are invented, and [BRAND] is used everywhere a name appears. - No uptime or availability guarantees or claims: every station state and statistic is sample data and stays labeled as such. - No CDN anything: fonts ship through Fontsource packages, icons from lucide-react; no third-party scripts, links or embeds. - Production build: single command, minified, no source maps, no src/ in the output, relative paths (Vite base './'); keep dist/ tiny (well under 20 MB — there are no bitmaps). - Single page with anchor navigation only; must render cleanly at 1440×900 and 390×844 with zero console errors, and respect prefers-reduced-motion (pulses and the ring animation off; plain fades). - Keep the direction locked: graphite grounds with hairline grid textures, one electric volt green (amber strictly for busy states and the night rate), mono labels, 4/8px radii; no light mode, no glassmorphism, no neon glow beyond the station pulse rings, no gradients outside the rate bar. - All copy, labels, sample data and alt text in US English, living in src/content.ts; when [BRAND], [CITY], [RATE] or [STATIONS] change, rewrite station names, tariff rows and units to fit the new network (per-minute pricing for a different product, for example) instead of leaving kWh copy behind. - List every third-party file (two Fontsource families, lucide icons) in ASSETS.md at the project root: path, source, license. --- — Prompt by VibeFather · https://vibefather.ai/t/ev-charging-network-website · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 电动汽车充电网络网站 完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。 ## 简介 一个电动汽车充电网络的单页营销网站,所有视觉效果均用 SVG/CSS 绘制:首屏以一张风格化的城市地图为核心,地图上有脉动的站点圆点,并配有实时筛选器(速度、连接器类型、可用性),筛选后会重新点亮地图;一条等宽字体的数据条;按 kWh 计费的价格展示,包含昼夜费率条和资费表;一个 CSS 手机模型应用预览,带填充式电池环;一个车队区块;以及一个客户端托管的“成为充电桩主”表单。 - 受众:电动汽车充电网络和能源初创公司、电动出行与基础设施产品,以及为它们服务的设计工作室。 - 目标:先展示网络如何运作,再提出任何请求:让访客把玩地图和筛选器,十秒内理解定价,信任应用流程,然后完成转化——司机转向应用推介,企业转向车队联系,业主转向托管表单。 - 语气:技术化、冷静、精确——短句、真实数字、等宽字体标签;传递基础设施的自信,而非初创公司的炒作。 ## 技术栈 - 框架:Vite 5 + React 18 + TypeScript - 样式:Tailwind CSS 3.4 - 库:tailwindcss(MIT)、motion(MIT)、lucide-react(ISC)、@fontsource/space-grotesk(OFL)、@fontsource/jetbrains-mono(OFL) - 构建:`npm run build` → 静态文件输出到 `dist/`。无后端、无服务端代码、无外部 API。 - 配置: - 使用 npm create vite@latest ev-charging-network-website -- --template react-ts 搭建脚手架;将 [email protected]、postcss 和 autoprefixer 添加为开发依赖;将 motion、lucide-react、@fontsource/space-grotesk 和 @fontsource/jetbrains-mono 添加为依赖。 - vite.config.ts:base './',build.sourcemap false,构建输出 dist/。 - tailwind.config.js:扩展颜色 graphite #101214、raised #17191D、gridline #24282D、volt #3CE97E、voltdeep #17603A、cloud #E8ECEF、steel #8A939B、amber #E0A63F;fontFamily display 'Space Grotesk' 和 mono 'JetBrains Mono';圆角比例精简为 sm 4px 和 DEFAULT 8px。 - postcss.config.js:tailwindcss + autoprefixer。 - src/components/CityMap.tsx:风格化的虚构城市——单个 SVG,viewBox 0 0 800 600:垂直街道线每 100px 一条,水平线每 75px 一条(stroke gridline,1px),两条对角大道,一条河流路径(stroke raised,10px,从右上到左下弯曲);站点从 content.ts 中的固定示例数组渲染(14 个条目:id、x、y、name、speed 'standard'|'fast'|'rapid'、connector 'ccs'|'type2'、state 'available'|'busy'|'offline');每个点是一个 5px 的圆(available 为 volt,busy 为 amber,offline 为 steel),带有一个动画脉冲环(SVG 圆 r 5→16,opacity 0.6→0,2.4s,延迟为索引×170ms)。 - src/components/BatteryRing.tsx:一个 120px 的 SVG 环(stroke volt,8px,轨道为 gridline),其 stroke-dasharray 在 1.8s 内从 0→68% 动画,使用 Motion 的 whileInView 仅触发一次。 - src/index.css 中的细线网格纹理工具类:.bg-grid —— 在 graphite 底色上以 45% 不透明度每 48px 重复 1px gridline 的 repeating-linear-gradient —— 应用于地图面板和应用区块背景。 - src/lib/motion.ts:共享变体——reveal(opacity 0→1,y 18→0,500ms ease-out,70ms 交错,whileInView 仅一次)——配合 useReducedMotion 回退为普通的 200ms 不透明度淡入且无脉冲。 - 将所有面向用户的字符串和所有示例数据(品牌、城市、费率行、站点数组、统计数据、车队卡片、托管文案、电子邮件)保留在 src/content.ts 中;各区块从中读取,以便在一处替换值。 - index.html:<title>[BRAND] — EV Charging in [CITY]</title> 加上一个用代码绘制的 favicon.svg(graphite 底色上的 volt 绿色闪电);无其他 meta 工作。 ## 变量 - [BRAND] — 网络名称(默认:“Ampline”)。用于字标、站点 ID(AM-101…)、资费和联系邮箱(来自 content.ts)的虚构网络名称。 - [CITY] — 城市名称(默认:“Norhaven”)。演示地图和文案所描述的虚构地铁('the [CITY] grid'、'[STATIONS] stations across [CITY]')。 - [RATE] — 头条费率(默认:“$0.34 / kWh”)。日间按需付费费率——主视觉定价锚点、日/夜条形图标签和资费表;单位随产品而定(content.ts 会为按分钟计费的产品重写文案)。 - [STATIONS] — 站点数量(默认:“412”)。统计条和主视觉标签中的全网样本数量;地图本身始终显示 14 个样本点。 - [CREDIT] — 在页脚保留一个小型“Template by VibeFather”链接,指向 https://vibefather.ai/t/ev-charging-network-website(默认:是;删除此行即可移除) Pages & Sections 下的文案是按默认值编写的。如果你的值不同,请为它们重写每个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。 将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便日后无需改动组件即可替换内容。 ## 设计 ### 颜色 - 石墨色(Graphite)`#101214` — 所有页面的背景底色 — 深蓝石墨色,绝不使用纯 #000。 - 浮起色(Raised)`#17191D` — 地图面板底色、手机模型、表单面板、地图中的河流。 - 网格线(Grid line)`#24282D` — 街道线、细线、边框、背景网格纹理、环形轨道。 - 伏特绿(Volt)`#3CE97E` — 唯一的电光绿:可用站点、脉冲环、CTA、激活的筛选标签、电池环、价格强调。 - 深伏特绿(Volt deep)`#17603A` — 伏特绿上的按下态和填充态:标签填充、日费率条块、悬停边框。 - 云白(Cloud)`#E8ECEF` — 主文本 — 冷调米白,用于标题和正文。 - 钢灰(Steel)`#8A939B` — 次要文本、元信息行、离线站点、等宽字体说明文字。 - 琥珀色(Amber)`#E0A63F` — 严格用于功能:繁忙站点和夜间费率块 — 绝不用于装饰。 ### 字体排印 - 展示与正文 — 标题、项目符号、表单标签(技术感 grotesque 字体):Space Grotesk(OFL),字重 500/700 - 等宽 — 站点读数、筛选标签、统计数据、价格、区块标签(大写,字距 0.12em):JetBrains Mono(OFL),字重 400/500/700 ### 布局与动效 - 间距:紧凑且工程化:区块桌面端 py-24(96px)/ 移动端 py-16(64px);内容 max-w-6xl px-6/px-10;面板内边距 24px,配 1px 网格线细线;地图面板是唯一全高元素。 - 圆角:小而技术化:标签、输入框和按钮 4px,面板和手机模型 8px;不用胶囊形,不用大圆角。 - 动效:地图脉冲:每个可用站点的环从 r 5→16 扩展,透明度 0.6→0,历时 2.4s,按 index×170ms 错开 — 城市感觉在供电,而非繁忙。 - 动效:筛选重新点亮:更改任一筛选标签时,匹配的圆点过渡到全伏特绿并带脉冲,不匹配的圆点过渡到 15% 透明度并停止脉冲(300ms);图例中的计数同步更新。 - 动效:圆点悬停:站点缩放至 1.3(150ms),其等宽提示卡在上方淡入;移开时淡出(120ms)。 - 动效:电池环:当应用区块进入视口时,stroke-dasharray 从 0→68% 以 1.8s ease-out 动画一次;kWh 计数器同步递增。 - 动效:揭示:区块和卡片淡入上移(y 18→0,500ms ease-out),通过 Motion 的 whileInView 以 70ms 错开,仅一次。 - 动效:筛选和表单标签切换为伏特绿底色配石墨色文字(200ms);主机表单步进器带小幅 y 轴弹跳。 - 动效:prefers-reduced-motion:所有脉冲和环形动画关闭(环形立即渲染为 68%),揭示变为普通 200ms 透明度淡入,提示卡无动效出现。 - 图像:零摄影 — 一切都在石墨色底上以代码绘制:风格化城市地图(细街道网格、河流、脉冲站点星座)是主视觉锚点;应用预览是 CSS 手机模型;费率条和电池环是 SVG。细线网格纹理衬托面板。唯一的图像是网络本身,以一种电光绿点亮。 ## 页面与区块 ### [BRAND] — [CITY] 的电动汽车充电(`index.html`) 1. **页头(Header)** — 固定顶栏,64px,石墨色(graphite)底,底部有 1px 网格线细线。左侧:[BRAND] 字标,Space Grotesk 700 20px 云白(cloud),前面有一个小的 lucide zap 图标,电压色(volt)。右侧(桌面端):锚点链接 'Map'、'Pricing'、'App'、'Fleet'、'Host',JetBrains Mono 13px 钢灰(steel)→ 悬停时变为云白;然后是 CTA 'Get the app'(电压色底,石墨色文字,4px 圆角)→ #app。移动端:字标 + CTA + lucide menu/x 切换按钮,打开一个抬升面板,五个链接以等宽字体纵向堆叠。 布局:position fixed,z-40,在背后的主视觉地图上做背景模糊。 动效:移动端面板下滑 250ms;链接悬停从钢灰 → 云白(150ms);zap 图标从不做动画。 2. **主视觉 — 实时站点地图** — 左侧区块:电压色等宽标签,带字距:'[STATIONS] STATIONS · [CITY] GRID · SAMPLE DATA';标题 Space Grotesk 700,clamp(2.75rem, 6vw, 4.75rem),云白:'The city, charged.' 副标题,Space Grotesk 400 17px 钢灰,max-w 44ch:'Find a fast charger on the way, not across town. Filter by speed, connector and availability — this demo map runs on invented sample data.' 两个 CTA:'See pricing'(电压色底)→ #pricing;'Host a charger'(描边,网格线边框)→ #host。右侧:地图面板 — CityMap.tsx,位于抬升底色上,带 .bg-grid 纹理,8px 圆角,1px 网格线边框,填满区块高度(桌面端最小 560px / 移动端 420px)。停靠在面板底部的一条抬升条带上:三组等宽 12px 筛选器 — SPEED [All / Standard 22 / Fast 50 / Rapid 150]、CONNECTOR [All / CCS / Type 2]、AVAILABILITY [All / Available now];激活的标签为电压色底、石墨色文字。图例位于右下角,等宽 11px 钢灰:'● AVAILABLE ● BUSY ● OFFLINE — SAMPLE DATA'。悬停任意圆点会打开等宽提示框:'AM-117 · OLD MILL RD' / 'RAPID 150 KW · CCS' / '● AVAILABLE — SAMPLE'。 布局:12 列网格,min-h 92vh:文字列 1–5(self-center),地图面板列 6–12(self-stretch)。移动端:地图在前(420px),文字在下;筛选标签横向滚动。 动效:圆点加载时脉冲,错峰;筛选变化时地图在 300ms 内重新点亮;圆点悬停缩放 1.3,提示框淡入;减少动效:静态圆点,筛选即时生效。 3. **网络条带** — 单行,顶部细线,四个等宽统计,13px,云白数值配钢灰标签,以 1px 网格线分隔:'[STATIONS] / STATIONS ACROSS THE METRO' · '150 KW / MAX RATE ON RAPID BAYS' · 'CCS + TYPE 2 / CONNECTORS AT EVERY SITE' · '24/7 / PHONE SUPPORT FOR EVERY SESSION'。下方,等宽 11px 钢灰右对齐:'DEMO NETWORK — EVERY NUMBER IS SAMPLE DATA'。 布局:max-w-6xl,4 个等宽单元格,带网格线分隔(移动端堆叠为 2×2)。 动效:单元格错峰 70ms 淡入上移;无计数器。 4. **定价(Pricing)** — id=pricing。等宽标签 'PRICING';标题:'One price, posted on the pylon.' 用 CSS 绘制的 24 小时费率条:一条全宽 56px 的条,其中 07:00–22:00 为 voltdeep(标注 '[RATE]',等宽云白),22:00–07:00 为琥珀色(amber)(标注 '$0.21 / kWh'),下方有 00/06/12/18/24 的小时刻度,等宽 11px 钢灰。其下是一个三行资费表,带网格线分隔(等宽):'PAY-AS-YOU-GO — [RATE] day · $0.21 night · no membership, tap to charge' / '[BRAND] PLUS — $7.99 / MO · $0.29 day · $0.17 night · lower rates across the metro' / 'FLEET & BUSINESS — CUSTOM · depot and corridor rates · per-kWh invoicing → link to #fleet'。脚注等宽 11px 钢灰:'Sample rates for the demo — real tariffs vary by site.' 布局:费率条占满内容宽度;表格行作为 3 列 CSS 网格(档位 / 费率 / 备注),带 1px 网格线行分隔;移动端将备注堆叠在每个档位下方。 动效:日间区块在出现时从左到右填充一次(600ms);行错峰 70ms 淡入上移。 5. **应用预览(App preview)** — id=app。左侧文案:等宽标签 'THE APP';标题:'Four taps, no fumbling.' 项目符号(Space Grotesk 16px,每个带一个电压色 lucide 图标):'Find — filter by speed and connector'(search)、'Plug — the handle talks to the app'(plug-zap)、'Charge — watch it fill'(battery-charging)、'Pay — one tap, one receipt'(check)。右侧:一个 CSS 手机模型,位于抬升面板上,带 .bg-grid 纹理 — 280×580px,8px 圆角,1px 网格线边框,一个简单的刘海;屏幕以等宽字体显示一张会话卡片:顶部 'AM-117 · OLD MILL RD',中央 BatteryRing 显示 68%,旁边 '31.4 kWh',下方 'SESSION 24 MIN' 和 '$10.68 SO FAR' 为云白,以及一个假的暂停条(网格线填充,电压色填充 68%)。 布局:12 列网格:文案列 1–5,手机列 8–11(旋转 -3deg,24px 投影,纯 #000 40%)。移动端:手机在前,居中,640px 以下不旋转。 动效:圆环在出现时从 0→68% 动画一次(1.8s),kWh 计数器同步跳动;手机在悬停时从 -3deg 回正到 0(300ms);减少动效:圆环直接渲染完整,无计数器。 6. **车队与业务(Fleet and business)** — id=fleet。等宽标签 'FLEET';标题:'Vans charge on schedule.' 引言钢灰:'Depot charging overnight, rapid bays on the corridors your routes actually use, and one invoice per month.' 三张细线卡片:'Overnight depots'(lucide warehouse)— '22 kW banks sized to your fleet and your off-peak window.' / 'Corridor planning'(route)— 'We model your routes and place rapid bays where the vans empty.' / 'One invoice'(receipt)— 'Per-kWh reporting per vehicle, exported monthly.' CTA 行:'Talk to the fleet desk — [email protected]'(电压色等宽链接,来自 content.ts)。 布局:3 列卡片网格,1px 网格线边框,24px 内边距,4px 圆角;移动端堆叠。 动效:卡片错峰 100ms 淡入上移;悬停时边框变为 voltdeep(200ms);图标从不做动画。 7. **托管充电桩(Host a charger)** — id=host。等宽标签 'HOST';标题:'Turn a parking spot into a station.' 左侧,等宽清单(lucide check 为电压色):'We supply and install the hardware' / 'You keep the spot; we keep it working' / '70% of session revenue, paid monthly — sample terms'。右侧,表单位于抬升面板上(标签 Space Grotesk 600 13px 云白;输入框石墨色底,网格线边框,4px 圆角):姓名;邮箱;物业标签('Home driveway' / 'Shop lot' / 'Office park',单选);地址文本输入,占位符 'Rough address is fine';车位步进器 1–4。按钮 'Save my interest'(电压色底)。点击时:保存到 localStorage 键 'hostInterest' 并显示一条内联提示(300ms 淡入,等宽 13px 钢灰):'Saved on this device only — this demo form sends nothing. When it's real, write [email protected].' 不会提交到任何地方。 布局:12 列网格:清单列 1–5,表单列 7–12。移动端堆叠。 动效:标签和步进器过渡 200ms;保存提示淡入;减少动效仅保留颜色变化。 8. **页脚(Footer)** — 顶部 1px 网格线细线。左侧:[BRAND] 字标配电压色 zap,以及一行等宽 12px 钢灰:'AN INVENTED DEMO NETWORK FOR [CITY] — EVERY NUMBER ON THIS PAGE IS SAMPLE DATA.' 右侧:锚点链接 'Map · Pricing · App · Fleet · Host',等宽钢灰;可选 [CREDIT] 链接。无日期,无社交行。 布局:py-12,max-w-6xl,flex 行在移动端换行为列。 动效:无。 ## 资产 - 图标:lucide-react(ISC)通过 npm 引入——zap(品牌标识和页眉)、search、plug-zap、battery-charging 和 check(应用要点)、warehouse、route 和 receipt(车队卡片)、check(主机清单)、plus/minus(步进器)、menu 和 x(移动端页眉)、arrow-right(CTA)。不使用其他图标:不使用 emoji、不使用汽车标志、不使用连接器品牌标识。其他所有视觉元素——城市地图、电池环、手机模型和费率条——均由构建者按照各节规范用 SVG/CSS 绘制;任何地方都不使用图片文件。 - 字体:@fontsource/space-grotesk(OFL,字重 500 和 700)和 @fontsource/jetbrains-mono(OFL,字重 400、500、700),在 src/main.tsx 中导入;绝不从 fonts.googleapis.com 或任何 CDN 加载。在项目根目录的 ASSETS.md 中列出这两个字体家族和 lucide 图标包:路径、来源、许可证——没有图片资产需要列出。 ## 禁止事项 - 无后端、无网络请求、无分析、无支付:地图、可用状态、会话编号和统计数据均为来自 src/content.ts 的静态示例数据,并明确标注为 SAMPLE,主机表单仅保存至 localStorage,并附有内联说明——任何表单均不会提交。 - 任何位置均不得使用摄影图片或位图图像:所有视觉元素(地图、手机模型、电池环、费率条、纹理)均以 SVG/CSS 绘制;绝不使用 Unsplash/Pexels/Pixabay、生成式照片或占位图服务。 - 不得使用真实地图瓦片或地理数据——不得使用 Leaflet、Mapbox 或 Google Maps:城市为风格化的虚构网格,绘制于单个具有固定坐标的 SVG 中。 - 不得使用真实充电网络、汽车制造商或连接器品牌标识:网络、站点名称、街道和价格均为虚构,凡出现名称之处均使用 [BRAND]。 - 不得提供正常运行时间或可用性保证或声明:每个站点状态和统计数据均为示例数据,并始终如此标注。 - 不得使用任何 CDN:字体通过 Fontsource 包提供,图标来自 lucide-react;不得使用第三方脚本、链接或嵌入内容。 - 生产构建:单条命令、压缩、无 source map、输出中不含 src/、相对路径(Vite base './');保持 dist/ 极小(远低于 20 MB——因为没有任何位图)。 - 仅单页,使用锚点导航;必须在 1440×900 和 390×844 下干净渲染,控制台零错误,并遵循 prefers-reduced-motion(脉冲和环形动画关闭;使用普通淡入淡出)。 - 保持方向锁定:石墨色基底配细线网格纹理,一种电伏绿(琥珀色严格用于忙碌状态和夜间费率),等宽标签,4/8px 圆角;无浅色模式、无玻璃拟态、除站点脉冲环外无霓虹辉光、费率条之外无渐变。 - 所有文案、标签、示例数据和替代文本均使用美式英语,存放于 src/content.ts;当 [BRAND]、[CITY]、[RATE] 或 [STATIONS] 变更时,重写站点名称、资费行和单位以适配新网络(例如,为不同产品采用按分钟计价),而不是留下 kWh 文案。 - 在项目根目录的 ASSETS.md 中列出每个第三方文件(两个 Fontsource 字体家族、lucide 图标):路径、来源、许可证。 --- — Prompt by VibeFather · https://vibefather.ai/t/ev-charging-network-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: "EV Charging Network Website"
colors:
graphite: "#101214"
raised: "#17191D"
grid_line: "#24282D"
volt: "#3CE97E"
volt_deep: "#17603A"
cloud: "#E8ECEF"
steel: "#8A939B"
amber: "#E0A63F"
typography:
display_and_body_headlines_bullets_form_labels_technical_grotesque: { family: "Space Grotesk", weights: [500, 700] }
mono_station_readouts_filter_chips_stats_prices_section_labels_uppercase_tracked_0_12em: { family: "JetBrains Mono", weights: [400, 500, 700] }
spacing: "Dense and engineered: sections py-24 (96px) desktop / py-16 (64px) mobile; content max-w-6xl px-6/px-10; panels carry 24px padding with 1px gridline hairlines; the map panel is the only full-height element."
radius: "Small and technical: 4px on chips, inputs and buttons, 8px on panels and the phone mockup; no pills, no large rounding."
---
# EV Charging Network 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
- **Graphite** `#101214` — Page ground everywhere — dark blue-graphite, never pure #000.
- **Raised** `#17191D` — Map panel ground, phone mockup, form panels, the river in the map.
- **Grid line** `#24282D` — Street lines, hairlines, borders, the background grid texture, ring track.
- **Volt** `#3CE97E` — The one electric green: available stations, pulse rings, CTAs, active filter chips, the battery ring, price accents.
- **Volt deep** `#17603A` — Pressed and filled states on volt: chip fills, day-rate bar block, hover borders.
- **Cloud** `#E8ECEF` — Primary text — cool off-white for headlines and body.
- **Steel** `#8A939B` — Secondary text, meta rows, offline stations, mono captions.
- **Amber** `#E0A63F` — Strictly functional: busy stations and the night-rate block — never decorative.
## Typography
- **Display and body — headlines, bullets, form labels (technical grotesque)** — Space Grotesk (OFL), weights 500/700. Self-host the font files.
- **Mono — station readouts, filter chips, stats, prices, section labels (uppercase, tracked 0.12em)** — JetBrains Mono (OFL), weights 400/500/700. Self-host the font files.
## Spacing & shape
- Spacing: Dense and engineered: sections py-24 (96px) desktop / py-16 (64px) mobile; content max-w-6xl px-6/px-10; panels carry 24px padding with 1px gridline hairlines; the map panel is the only full-height element.
- Radius: Small and technical: 4px on chips, inputs and buttons, 8px on panels and the phone mockup; no pills, no large rounding.
## Motion
- Map pulse: each available station's ring expands r 5→16 with opacity 0.6→0 over 2.4s, staggered by index×170ms — the city feels powered, not busy.
- Filter re-light: changing any filter chip transitions matching dots to full volt with pulses and non-matching dots to 15% opacity with pulses stopped (300ms); counts in the legend update.
- Dot hover: the station scales to 1.3 (150ms) and its mono tooltip card fades in above; leaving fades it out (120ms).
- Battery ring: animates stroke-dasharray 0→68% over 1.8s ease-out, once, when the app section enters; the kWh counter ticks up alongside it.
- Reveals: sections and cards fade up (y 18→0, 500ms ease-out) with 70ms stagger via Motion whileInView, once.
- Filter and form chips toggle to volt ground with graphite text (200ms); host-form steppers tick with a small y-bounce.
- prefers-reduced-motion: all pulses and the ring animation off (ring renders at 68% instantly), reveals become plain 200ms opacity fades, tooltips appear without motion.
## Imagery
Zero photography — everything is drawn in code on the graphite ground: the stylized city map (thin street grid, river, pulsing station constellation) is the hero anchor; the app preview is a CSS phone mockup; the rate bar and battery ring are SVG. Hairline grid textures back the panels. The only imagery is the network itself, lit in one electric green.
## Tone
Technical, calm, exact — short lines, real numbers, mono labels; the confidence of infrastructure, not the hype of startups.
---
— Prompt by VibeFather · https://vibefather.ai/t/ev-charging-network-website · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 区域充电网络:将 BRAND 设置为你的名称,CITY 设置为你的城市,RATE 设置为你的日间价格,STATIONS 设置为你的实时数量,然后用你自己的位置替换示例充电站。
- 电动自行车共享运营商:保留地图和筛选器,将充电站重命名为停车桩,将速度和接口标签替换为电池电量,并围绕车库规划重写车队部分。
- 托管充电器的商业物业业主:将托管表单指向你自己的咨询收件箱,并重写车队卡片以描述你场所内的租户和访客充电。
- 推出费率产品的能源初创公司:保留昼夜费率条和三级费率表,将 RATE 设置为你的发布价格,并重写首屏副标题以标明你的城市。
电动汽车充电网络网站:常见问题
电动汽车充电网络网站模板包含哪些内容?
电动汽车充电网络网站模板是一个单页网站,包含一个虚构城市的首屏地图、速度、接口和可用性的筛选标签、等宽字体统计条、按千瓦计费且带有昼夜费率条和三级费率表的定价、一个 CSS 手机模型且电池环填充到 68%、一个车队部分以及一个仅保存到本地存储的托管充电器表单。所有视觉元素均用 SVG 和 CSS 绘制,没有摄影图片。
怎么用 AI 做一个电动汽车充电网络网站?
复制本页的提示词,或者运行 npx vibefather add ev-charging-network-website,把 [CITY]、[RATE]、[BRAND]、[STATIONS] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。