用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
这是一个建筑与装修公司的单页网站:顶部是完工项目主视觉加报价按钮,上方展示公司承诺;四项业务(翻新、扩建、厨房与卫浴、外墙)标注起步价;六个项目的作品集可按类别筛选,并附改造前后说明;安全与资质栏包含虚构的执照信息、保险和清理承诺;五步流程从现场勘察到最终清洁;报价申请表(项目类型标签、预算区间、时间线、联系方式)在客户端确认;还有一张工地负责人肖像(AI 生成的虚构人物)作为团队板块的视觉锚点。默认内容围绕一家虚构的家族企业展开,但这一结构适用于任何总承包商或装修公司。视觉风格是蓝图式的坦诚:白色与蓝图海军蓝搭配安全橙点缀,粗壮窄体标题配以务实无衬线字体,工地摄影带有硬朗细节和手绘蓝图纹样。要适配自己的品牌,只需替换变量并在一个内容文件中重写文案。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Construction Company Website
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
A single-page site for [COMPANY], a construction and renovation company in [CITY] — [TRADE] for [YEARS] years. It must look like a firm that cleans up after itself: four services with from-pricing, a filterable six-project gallery, a plain safety/credentials strip, a five-step process, and a quote request confirming client-side. One page: index.html with sections (#services, #work, #safety, #process, #quote). Everything runs in the browser; nothing is submitted anywhere.
- Audience: Homeowners 35–65 with a renovation budget and a horror story about their cousin's contractor. They want proof of finished work, straight pricing signals and someone accountable by name.
- Goal: Produce quote requests. Within ten seconds a visitor sees craft and the quote CTA; within two minutes they've filtered the gallery to their project type and opened the form.
- Tone: Straight builder-talk: short sentences, exact numbers, pride without shouting. One joke about dust.
## Stack
- Framework: Vite 5 + React 18 + TypeScript
- Styling: Tailwind CSS 3.4
- Libraries: react (MIT), react-dom (MIT), motion (motion.dev, import from 'motion/react') (MIT), lucide-react (MIT), tailwindcss (MIT), postcss (MIT), autoprefixer (MIT), vite (MIT), @vitejs/plugin-react (MIT), typescript (Apache-2.0), @fontsource/barlow-condensed (OFL-1.1), @fontsource-variable/barlow (OFL-1.1)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
- Scaffold with npm create vite@latest using the react-ts template. One HTML page at the project root: index.html (entry src/main.tsx).
- vite.config.ts: base './', plugins [react()], build { outDir 'dist', sourcemap false, assetsInlineLimit 0 }. Do not copy src/ into dist/.
- Tailwind 3.4 through PostCSS, content ['./index.html', './src/**/*.{ts,tsx}']. In tailwind.config.ts add every color under Design to theme.extend.colors with kebab-case keys (scaffoldwhite, mist, card, blueprint, blueprint-deep, blueprint-mist, ink, slate, safety, safety-deep, rule, good) and fontFamily display ['Barlow Condensed', 'Arial Narrow', 'sans-serif'], sans ['Barlow Variable', 'system-ui', 'sans-serif']. Set borderRadius DEFAULT to 4px and add maxWidth { container: '1200px' }.
- In src/fonts.ts import '@fontsource/barlow-condensed/500.css', '@fontsource/barlow-condensed/600.css' and '@fontsource-variable/barlow'; import src/fonts.ts and src/index.css from the entry file.
- File layout: src/content.ts (every string, service, project, step, credential, hour and image path, typed), src/lib/brand.ts (companySlug = [COMPANY] lowercased with every run of non-alphanumeric characters replaced by '-', emailDomain = companySlug without hyphens + '.com', phoneDigits for tel:), src/lib/storage.ts (safe localStorage get/set wrapped in try/catch, keys prefixed with companySlug + ':'), src/lib/gallery.ts (applyCategory(projects, key)).
- State: src/store/quote.ts is a tiny external store (useSyncExternalStore) holding { type, budget, timeline, name, phone, email, note, sent } persisted to localStorage key companySlug + ':quote'.
- Components in src/components/: Header.tsx, Reveal.tsx (Motion whileInView wrapper), Eyebrow.tsx, Footer.tsx, BlueprintRule.tsx (a drawn dimension-line divider); Hero.tsx, Services.tsx (ServiceCard.tsx), Work.tsx (FilterChips.tsx, ProjectCard.tsx), Safety.tsx (CredRow.tsx), Process.tsx (StepRow.tsx), CrewNote.tsx, QuoteForm.tsx (TypeChips.tsx, BudgetPills.tsx, Sent.tsx). src/pages/Home.tsx composes them.
- Before the first build, download every image listed under Assets into public/images/ with curl -L -o using the exact file names given. The build itself never fetches anything.
- public/favicon.svg as described under Assets. index.html: lang en, <meta name='theme-color' content='#F7F8F9'>, <link rel='icon' href='./favicon.svg' type='image/svg+xml'>, <title>[COMPANY] — [TRADE] in [CITY]</title>.
- Write ASSETS.md at the project root as described under Assets.
- dist/ holds index.html, hashed JS/CSS, the woff2 fonts, favicon.svg and the six images. Keep it under 10 MB.
## Variables
- [COMPANY] — Company name (default: "Rourke & Sons"). Invented company name. Used in the wordmark, title, footer, email (build@ + companySlug without hyphens + '.com') and localStorage keys. Never a real firm.
- [CITY] — City (default: "Pittsburgh, Pennsylvania"). Where the firm works. Used in the title, hero, project neighborhoods and footer. Real cities fine; streets invented.
- [TRADE] — Trade (default: "renovations and additions"). One lowercase phrase naming the core work. Drives the title, the first service card and one case. Keep it plain.
- [YEARS] — Years in business (default: "18"). Two-digit year count. Used once in the trust strip and the hero eyebrow. Keep it 8–40.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/construction-company-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
- Scaffold White `#F7F8F9` — Page background throughout.
- Mist `#EDF0F2` — Alternate section background (Services, Process), chips, hover fill.
- Card `#FFFFFF` — Project cards, the quote panel, sent state.
- Blueprint `#1F3A5F` — Primary: headlines' ink, primary buttons, selected chips, step numbers, focus ring.
- Blueprint Deep `#162B47` — Hover and pressed, footer background.
- Blueprint Mist `#E4EAF2` — Selected chip fills, icon wells, dimension ticks.
- Ink `#23272C` — Body text, icon color.
- Slate `#5B6670` — Secondary text, captions, eyebrows, unavailable states.
- Safety `#F26B21` — The one accent: the quote CTA, from-prices, filter active, dimension numbers, focus-visible extras.
- Safety Deep `#D5560E` — CTA hover and pressed.
- Rule `#D9DEE3` — 1px hairlines, card borders, input borders, blueprint grid lines.
- Good `#2F855A` — Credential ticks, sent check, warranty note.
### Typography
- Display: H1, H2, service names, project names, from-prices, the wordmark — Barlow Condensed, sturdy and workmanlike: Barlow Condensed (OFL), weights 500/600
- Text and UI: body, eyebrows, buttons, forms, captions; tabular numerals for prices and spans: Barlow (OFL), weights 400/600/700
### Layout & motion
- Spacing: 8px base unit. Container max-width 1200px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. 12-column grid, column gap 24px. Section vertical padding 100px desktop, 76px under 1024px, 60px under 640px. Type scale: H1 clamp(44px, 6.6vw, 84px) Barlow Condensed 600 uppercase, line-height 0.98; H2 clamp(30px, 4vw, 50px) Condensed 600 uppercase; service names Condensed 600 22px; from-prices Condensed 600 24px Safety tabular; lead Barlow 400 17.5px / 1.65 Ink at 90%; body 15.5px / 1.7 (max-width 64ch); eyebrow Barlow 700 12px uppercase letter-spacing 0.18em Slate; caption 13px Slate. Buttons: height 52px, Barlow 700 14px uppercase letter-spacing 0.06em. Primary: Blueprint fill, Card text. Quote CTA: Safety fill, Card text. Secondary: 1px Ink border. Inputs: height 50px, 1px Rule border, Card fill, focus Blueprint border. Focus ring everywhere: 2px Blueprint outline with 3px offset.
- Radius: 4px on cards, buttons, inputs, chips and photos — site-plan corners. 999px only for pills and filter chips.
- Motion: Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1) for reveals and gallery shuffles; --ease-io cubic-bezier(0.65, 0, 0.35, 1) for the form swap. Level and sure.
- Motion: Reveal: blocks wrapped in <Reveal> start at opacity 0, translateY(12px) and settle over 650ms --ease-out when 12% visible (Motion whileInView, viewport once). Siblings stagger 65ms.
- Motion: Hero: the project photo scales 1.03→1.0 over 2000ms; the H1 rises 14px; a dimension-line rule draws under the eyebrow once with Safety tick numbers.
- Motion: Service cards: hover slides a 2px Blueprint rule from the left and the from-price ticks up 2px.
- Motion: Gallery filtering: cards use Motion layout popLayout (200ms out / 380ms glide); the live count crossfades; the empty state reads 'No projects in that combination yet — the portfolio grows weekly.'
- Motion: Project cards: hover lifts 3px and the category chip fills Blueprint.
- Motion: Process: the connector line draws downward as the section scrolls; step numbers pop in sequence.
- Motion: Quote form: chips fill Blueprint Mist→Blueprint on select (150ms); invalid submit shakes 4px with inline labels; sending swaps to Sent (300ms --ease-io) — a drawn Safety 'ON THE BOARD' job-ticket stamp rotating in -6deg→-2deg, 'Got it, [NAME].' 'We call within two business days to schedule the walkthrough.' selection echo, 'Edit the request' pre-filled. Persisted in localStorage.
- Motion: Links: .link-draw grows a 1px currentColor underline over 250ms on hover and focus-visible.
- Motion: prefers-reduced-motion: reduce — no scales, draws, shuffles or stamps; everything at rest; color/border hovers stay. Use CSS @media in index.css plus Motion's useReducedMotion in components.
- Imagery: Real photography, all six made for this template in one consistent style: crisp daylight, finished craftsmanship and honest jobsite detail — generic unbranded tools and materials, no logos. The site-lead portrait is an AI-generated fictional person (hard hat under arm, plans in hand) — a placeholder a real firm swaps for its own lead's photo. No readable text or signage. Every photo uses object-fit cover with the object-position given under Assets, 4px corners, no shadow. Captions in Barlow 13px Slate. Drawn in code: the favicon, dimension-line dividers, the job-ticket stamp, chips and the filter dots. Icons: lucide-react only, stroke width 2.
## Pages & Sections
### Company (`index.html`)
1. **Content file and copy rules** — All copy below is written for the default values ([COMPANY] = Rourke & Sons, [CITY] = Pittsburgh, Pennsylvania, [TRADE] = renovations and additions, [YEARS] = 18). Put every string and number in src/content.ts and render from it. If any variable value differs, rewrite the hero, four services, six projects, safety rows, five steps and quote copy so they are specific and believable for the new firm, keeping the same structure and counts. All projects, clients and figures are invented; before/after notes describe work, not addresses. Facts: address '2210 Forge Street, [CITY]' invented; phone (412) 555-0182; office Mon–Fri 7:00–17:00; license 'GC-4471 (invented)'; fully insured, $2M general liability; five-person crew plus licensed subs; two-year workmanship warranty. Services: 'Whole-home renovations' 'kitchens, baths, floors and the walls between them' from $18,000; 'Additions' 'sunrooms, dormers and the permits that come with them' from $45,000; 'Kitchens & baths' 'the two rooms that sell a house and start a marriage debate' from $12,000; 'Exteriors' 'decks, porches, siding and roofs that keep the rain honest' from $6,500. Projects (name · category · note · figure): 'The Squirrel Hill double-gable' Additions 'a dormer that paid for itself in bedrooms' 14 weeks; 'A millworker''s kitchen' Renovation 'quarter-sawn oak, quiet hardware, zero trends' 9 weeks; 'The brick row-house gut' Renovation 'down to the joists, back to better' 16 weeks; 'Forge Street deck & pergola' Exteriors 'steel-footed, snow-rated, dinner-tested' 3 weeks; 'The sunroom that replaced the porch' Additions 'four seasons, one skylight argument, settled' 7 weeks; 'Bathroom, re-plumbed' Renovation 'moved the stack, kept the tile line' 5 weeks. Safety rows: 'Licensed & insured' 'GC-4471 (invented), $2M liability, certificates on request' Good; 'Site safety' 'OSHA-trained crew (generic), dust barriers on every interior job' Good; 'Clean sites' 'broom-clean at day''s end; magnet sweep on nails' Good; 'Two-year warranty' 'workmanship, in writing, on every invoice' Good. Process: 1 'Walkthrough & estimate' 'we measure, listen, and price in ranges before quoting'; 2 'Scope & contract' 'one page of numbers you can hold us to'; 3 'Permits & scheduling' 'we pull them, we sequence them, you get a calendar'; 4 'Build weeks' 'daily photos to your phone, weekly walkthroughs'; 5 'Punch list & clean' 'we leave it better than the drawings, or we aren''t done'.
Layout: n/a
Motion: n/a
2. **Header** — Left: the wordmark '[COMPANY]' (Condensed 600 20px uppercase) over '[TRADE] · [CITY]' (10px uppercase Slate) linking ./index.html. Right nav (Barlow 600 13px uppercase): 'Services' → #services, 'Our work' → #work, 'Safety' → #safety, 'Process' → #process; a small Safety 'Get a quote' → #quote. Under 780px: wordmark + quote button.
Layout: Sticky top, height 70px, Scaffold White/95% blur, Rule border.
3. **Hero** — Two columns. Left: eyebrow 'EST. [YEARS] YEARS · [CITY]'; H1 'BUILT RIGHT.' / '*CLEANED UP AFTER.*' Lead (max-width 500px): '[COMPANY] does [TRADE] with a five-person crew, daily photos and a broom-clean site every evening — quoted flat, finished on the calendar we hand you.' Primary 'Get a quote' → #quote and secondary 'See the work' → #work; trust row: 'Flat quotes, in writing'; 'Two-year warranty'; 'Daily photo updates'. Right: work-kitchen.webp (4:3) with the caption 'A millworker''s kitchen, week nine'.
Layout: Scaffold White background, vertical padding 104px top; left 6 cols, right 5 cols offset 1.
4. **Services** — Section id='services'. Eyebrow 'WHAT WE BUILD' and H2 'FOUR TRADES, ONE CREW.' Four ServiceCards (icon, name, line, from-price): the roster. A caption: 'Every price is a starting point we sharpen after the walkthrough — never a hook.'
Layout: Mist background. 2x2 grid 20px gap; cards on Card Rule-bordered; from-prices in Safety Condensed.
5. **Work** — Section id='work'. Eyebrow 'RECENT WORK' and H2 'SIX PROJECTS, FILTERED HONESTLY.' FilterChips (All · Renovation · Addition · Exterior) with a live count; six ProjectCards (photo 4:3, name Condensed, note, weeks badge): the roster; reshuffle on filter. A closing line: 'Addresses withheld, references gladly shared — ask on the walkthrough.'
Layout: Scaffold White background. 3x2 grid 20px gap (2 under 900px); weeks badges as Blueprint-mist pills.
6. **Safety and crew note** — Section id='safety'. Eyebrow 'LICENSED, INSURED, TIDY' and H2 'THE BORING STUFF, DONE RIGHT.' Four CredRows with Good ticks: the roster. Beside them the CrewNote: lead-ray.webp portrait (3:4, blueprint-mist frame) with the caption 'Ray Rourke, site lead — a fictional builder' and the note: 'Ray runs every job you''ve seen above. Ask him about the deck that survived four winters and one graduation party (sample story).' A trust strip under: '[YEARS] years · ~300 projects (sample) · two-year workmanship warranty'.
Layout: Mist background. Cred rows 7 cols hairline-divided; note 4 cols offset 1 with portrait atop; trust strip a hairline-bounded row.
7. **Process and quote form** — Section id='process'. Eyebrow 'HOW IT GOES' and H2 'FIVE STEPS, NO MYSTERY.' Five StepRows with the drawing connector. Section id='quote'. Eyebrow 'GET A QUOTE' and H2 'TELL US WHAT YOU''RE DREAMING.' QuoteForm on Card: TypeChips (the four services); BudgetPills ('Under $15k' / '$15–50k' / '$50–100k' / '$100k+'); timeline select ('ASAP' / 'This season' / 'Planning ahead'); name + phone + email; note textarea (placeholder 'The room, the problem, the Pinterest board — any of it helps.'); primary Safety 'Request the quote' with caption 'Saved in this browser — the real page emails the office. Nothing is sent here.' Sent: the ON THE BOARD stamp, 'Got it, [NAME].' 'We call within two business days to schedule the walkthrough.' type/budget echo, 'Edit the request' pre-filled. Persisted in localStorage. Footer (Blueprint Deep, bone text): wordmark, '[TRADE] · [CITY] · [YEARS] years', '2210 Forge Street', (412) 555-0182 tel:, build@ + emailDomain; bottom line '© [COMPANY]. Figures are sample data; the dust jokes are real.'
Layout: Process max-width 760px; the quote panel max-width 640px; footer three-part row with bottom line.
## Assets
- image: Template photos made for this design (free to redistribute with the template). Download each with curl -L -o into public/images/: https://media.vibefather.ai/assets/be395f9c-fe2c-45e3-ab70-797207f645fb/work-kitchen.webp → public/images/work-kitchen.webp (Hero, kitchen project card; alt 'A finished craftsman kitchen with oak cabinets and stone counters'); https://media.vibefather.ai/assets/be395f9c-fe2c-45e3-ab70-797207f645fb/work-dormer.webp → public/images/work-dormer.webp (Additions cards; alt 'A new dormer gable on a brick family home'); https://media.vibefather.ai/assets/be395f9c-fe2c-45e3-ab70-797207f645fb/work-gut.webp → public/images/work-gut.webp (Renovation card; alt 'A gutted row-house interior with new framing exposed'); https://media.vibefather.ai/assets/be395f9c-fe2c-45e3-ab70-797207f645fb/work-deck.webp → public/images/work-deck.webp (Exteriors cards; alt 'A steel-footed cedar deck with a pergola at dusk'); https://media.vibefather.ai/assets/be395f9c-fe2c-45e3-ab70-797207f645fb/work-bath.webp → public/images/work-bath.webp (Renovation card; alt 'A re-plumbed bathroom with subway tile and brass fixtures'); https://media.vibefather.ai/assets/be395f9c-fe2c-45e3-ab70-797207f645fb/lead-ray.webp → public/images/lead-ray.webp (Crew note; alt 'Ray Rourke, a fictional builder, hard hat under arm'). Six files in total.
- image: Write ASSETS.md at the project root with a table: path, source URL, author, license — one row for each photo (source 'media.vibefather.ai, made for this template', author 'VibeFather', license 'Distributed with the template'), plus rows for @fontsource/barlow-condensed and @fontsource-variable/barlow (OFL-1.1) and lucide-react (ISC). The site-lead portrait is an AI-generated fictional person per the portrait rules; tools and materials stay generic/unbranded; no readable signage.
- icon: lucide-react only: Hammer, Home, ChefHat, Layers, FileCheck, ShieldCheck, Camera, Broom, Check, Plus. Stroke width 2, 16–24px, color inherits. The dimension-line dividers, the ON THE BOARD stamp, chips and favicon are drawn SVG. public/favicon.svg: viewBox 0 0 32 32, a 32x32 square filled #1F3A5F, a Safety (#F26B21) house-gable outline with a Card (#FFFFFF) dimension tick. No other logo: the company name is always set as type.
- font: Install @fontsource/barlow-condensed and @fontsource-variable/barlow and import them in src/fonts.ts as listed in Setup. Vite bundles the woff2 files into dist/.
- image: Drawn in code: the dimension-line dividers with Safety ticks, the job-ticket stamp, chips, filter dots and the favicon. No other bitmaps beyond the six photos; no illustrations; no map tiles.
## Don'ts
- No backend, no form submission, no fetch to any API: the quote request saves in the browser only (localStorage) and says so; tel: links are built from the phone digits.
- All links on this single page are anchors (./index.html#services, #work, #safety, #process, #quote) plus the footer mailto.
- No real firms, clients, addresses or project locations; license and insurance described generically with invented numbers; no OSHA or certification-body logos — ticks and text only.
- Self-host everything: fonts through Fontsource, icons as npm packages or inline SVG, images downloaded into public/images/. No CDN <script> or <link> tags, no Google Fonts, no analytics.
- Production build: minified, no source maps, no src/ copied into dist/, single command npm run build, output in dist/ under 10 MB.
- The site-lead portrait is an AI-generated fictional person, not any real individual; no other people in photos; no readable text, signage or brand marks on tools, materials or vans.
- No dates or years anywhere except 'EST. [YEARS] YEARS'; projects carry week counts, never dates; the site never shows today's date.
- Never mention VibeFather or any other brand inside the site except the optional credit footer link; all copy is invented US English.
- Respect prefers-reduced-motion: no scales, draws, shuffles or stamps; everything at rest; color/border hovers stay.
- The page must work at 1440x900 desktop and 390x844 mobile with zero console errors; chips, selects and the form work with keyboard only and visible focus rings.
- Keep copy builder-plain: no lorem, no 'dream space' clichés; every price, week and credential lives in src/content.ts.
---
— Prompt by VibeFather · https://vibefather.ai/t/construction-company-website · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 建筑公司网站
完全按照以下描述构建此网站。将 [VARIABLES] 替换为您自己的值;其余内容保持不变。
## 简介
为 [COMPANY] 打造的单页网站,[COMPANY] 是 [CITY] 的一家建筑与翻新公司——从事 [TRADE] 已有 [YEARS] 年。它必须看起来像一家会把自己收拾干净的的公司:四项服务并附起价、一个可筛选的六项目图库、一条朴素的安全/资质信息条、一个五步流程,以及一个在客户端确认的报价请求。单页:index.html,包含各区块(#services、#work、#safety、#process、#quote)。一切都在浏览器中运行;不会提交到任何地方。
- 受众:35–65 岁的房主,有翻新预算,并且有一段关于他们表亲的承包商的恐怖故事。他们想要完工成果的证明、直截了当的价格信号,以及一个能指名道姓负责的人。
- 目标:产生报价请求。访客在十秒内看到工艺和报价 CTA;在两分钟内,他们已将图库筛选到自己的项目类型并打开了表单。
- 语气:直截了当的建筑工式谈话:短句、精确数字、自豪但不张扬。一个关于灰尘的笑话。
## 技术栈
- 框架:Vite 5 + React 18 + TypeScript
- 样式:Tailwind CSS 3.4
- 库:react(MIT)、react-dom(MIT)、motion(motion.dev,从 'motion/react' 导入)(MIT)、lucide-react(MIT)、tailwindcss(MIT)、postcss(MIT)、autoprefixer(MIT)、vite(MIT)、@vitejs/plugin-react(MIT)、typescript(Apache-2.0)、@fontsource/barlow-condensed(OFL-1.1)、@fontsource-variable/barlow(OFL-1.1)
- 构建:`npm run build` → `dist/` 中的静态文件。无后端、无服务器代码、无外部 API。
- 设置:
- 使用 react-ts 模板通过 npm create vite@latest 搭建脚手架。项目根目录下有一个 HTML 页面:index.html(入口 src/main.tsx)。
- vite.config.ts:base './',plugins [react()],build { outDir 'dist',sourcemap false,assetsInlineLimit 0 }。不要将 src/ 复制到 dist/ 中。
- 通过 PostCSS 使用 Tailwind 3.4,content ['./index.html', './src/**/*.{ts,tsx}']。在 tailwind.config.ts 中,将 Design 下的每种颜色添加到 theme.extend.colors 中,使用 kebab-case 键名(scaffoldwhite、mist、card、blueprint、blueprint-deep、blueprint-mist、ink、slate、safety、safety-deep、rule、good),并设置 fontFamily display ['Barlow Condensed', 'Arial Narrow', 'sans-serif']、sans ['Barlow Variable', 'system-ui', 'sans-serif']。将 borderRadius DEFAULT 设为 4px,并添加 maxWidth { container: '1200px' }。
- 在 src/fonts.ts 中导入 '@fontsource/barlow-condensed/500.css'、'@fontsource/barlow-condensed/600.css' 和 '@fontsource-variable/barlow';从入口文件导入 src/fonts.ts 和 src/index.css。
- 文件布局:src/content.ts(每个字符串、服务、项目、步骤、凭证、营业时间和图片路径,带类型)、src/lib/brand.ts(companySlug = [COMPANY] 转为小写,并将每一段非字母数字字符替换为 '-',emailDomain = 去掉连字符的 companySlug + '.com',phoneDigits 用于 tel:)、src/lib/storage.ts(安全的 localStorage get/set,包裹在 try/catch 中,键前缀为 companySlug + ':')、src/lib/gallery.ts(applyCategory(projects, key))。
- 状态:src/store/quote.ts 是一个小型外部存储(useSyncExternalStore),持有 { type, budget, timeline, name, phone, email, note, sent },持久化到 localStorage 键 companySlug + ':quote'。
- src/components/ 中的组件:Header.tsx、Reveal.tsx(Motion whileInView 包装器)、Eyebrow.tsx、Footer.tsx、BlueprintRule.tsx(绘制的尺寸线分隔符);Hero.tsx、Services.tsx(ServiceCard.tsx)、Work.tsx(FilterChips.tsx、ProjectCard.tsx)、Safety.tsx(CredRow.tsx)、Process.tsx(StepRow.tsx)、CrewNote.tsx、QuoteForm.tsx(TypeChips.tsx、BudgetPills.tsx、Sent.tsx)。src/pages/Home.tsx 组合它们。
- 在首次构建之前,使用 curl -L -o 将 Assets 下列出的每张图片下载到 public/images/ 中,并使用给定的确切文件名。构建本身从不获取任何内容。
- public/favicon.svg 如 Assets 下所述。index.html:lang en,<meta name='theme-color' content='#F7F8F9'>,<link rel='icon' href='./favicon.svg' type='image/svg+xml'>,<title>[COMPANY] — [TRADE] in [CITY]</title>。
- 在项目根目录下编写 ASSETS.md,如 Assets 下所述。
- dist/ 包含 index.html、带哈希的 JS/CSS、woff2 字体、favicon.svg 和六张图片。保持在 10 MB 以下。
## 变量
- [COMPANY] — 公司名称(默认:“Rourke & Sons”)。虚构的公司名称。用于字标、标题、页脚、电子邮件(build@ + 不含连字符的 companySlug + '.com')和 localStorage 键。绝不是真实公司。
- [CITY] — 城市(默认:“Pittsburgh, Pennsylvania”)。公司开展业务的地方。用于标题、主视觉区、项目街区和页脚。真实城市可以;街道为虚构。
- [TRADE] — 行业(默认:“renovations and additions”)。一个命名核心业务的小写短语。驱动标题、第一张服务卡片和一个案例。保持简洁。
- [YEARS] — 经营年限(默认:“18”)。两位数年份。在信任条和主视觉区眉题中各使用一次。保持在 8–40。
- [CREDIT] — 在页脚保留一个指向 https://vibefather.ai/t/construction-company-website 的小型“Template by VibeFather”链接(默认:是;删除此行即可移除)
页面与区块下的文案是为默认值编写的。如果你的值不同,请为它们重写每个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便之后无需改动组件即可替换内容。
## 设计
### 颜色
- Scaffold White `#F7F8F9` — 全站页面背景。
- Mist `#EDF0F2` — 交替区块背景(Services、Process)、标签、悬停填充。
- Card `#FFFFFF` — 项目卡片、报价面板、已发送状态。
- Blueprint `#1F3A5F` — 主色:标题文字、主按钮、选中标签、步骤编号、焦点环。
- Blueprint Deep `#162B47` — 悬停与按下状态、页脚背景。
- Blueprint Mist `#E4EAF2` — 选中标签填充、图标槽、尺寸刻度。
- Ink `#23272C` — 正文文字、图标颜色。
- Slate `#5B6670` — 次要文字、说明文字、眉题、不可用状态。
- Safety `#F26B21` — 唯一强调色:报价 CTA、起价、筛选激活态、尺寸数字、focus-visible 附加样式。
- Safety Deep `#D5560E` — CTA 悬停与按下。
- Rule `#D9DEE3` — 1px 细线、卡片边框、输入框边框、蓝图网格线。
- Good `#2F855A` — 资质勾选、已发送对勾、保修说明。
### 字体排印
- 展示字体:H1、H2、服务名称、项目名称、起价、字标 — Barlow Condensed,结实而务实:Barlow Condensed(OFL),字重 500/600
- 文本与 UI:正文、眉题、按钮、表单、说明文字;价格与跨度使用等宽数字:Barlow(OFL),字重 400/600/700
### 布局与动效
- 间距:8px 基准单位。容器最大宽度 1200px,居中,侧边内边距桌面端 48px、平板端 32px、640px 以下 20px。12 列网格,列间距 24px。区块垂直内边距桌面端 100px、1024px 以下 76px、640px 以下 60px。字号比例:H1 clamp(44px, 6.6vw, 84px) Barlow Condensed 600 大写,行高 0.98;H2 clamp(30px, 4vw, 50px) Condensed 600 大写;服务名称 Condensed 600 22px;起价 Condensed 600 24px Safety 等宽数字;导语 Barlow 400 17.5px / 1.65 Ink 90%;正文 15.5px / 1.7(最大宽度 64ch);眉题 Barlow 700 12px 大写 字距 0.18em Slate;说明文字 13px Slate。按钮:高度 52px,Barlow 700 14px 大写 字距 0.06em。主按钮:Blueprint 填充,Card 文字。报价 CTA:Safety 填充,Card 文字。次按钮:1px Ink 边框。输入框:高度 50px,1px Rule 边框,Card 填充,聚焦时 Blueprint 边框。全局焦点环:2px Blueprint 轮廓,偏移 3px。
- 圆角:卡片、按钮、输入框、标签和照片均为 4px — 场地平面图式的转角。仅胶囊和筛选标签使用 999px。
- 动效:缓动:--ease-out cubic-bezier(0.22, 0.61, 0.36, 1) 用于显现和画廊重排;--ease-io cubic-bezier(0.65, 0, 0.35, 1) 用于表单切换。平稳而确定。
- 动效:显现:包裹在 <Reveal> 中的区块初始 opacity 0、translateY(12px),在 12% 可见时(Motion whileInView,viewport once)以 650ms --ease-out 落定。同级元素错开 65ms。
- 动效:首屏:项目照片从 1.03→1.0 缩放,历时 2000ms;H1 上升 14px;眉题下方绘制一条尺寸线,带 Safety 刻度数字,仅一次。
- 动效:服务卡片:悬停时一条 2px Blueprint 线从左侧滑入,起价上移 2px。
- 动效:画廊筛选:卡片使用 Motion layout popLayout(200ms 退出 / 380ms 滑行);实时计数交叉淡入淡出;空状态显示 'No projects in that combination yet — the portfolio grows weekly.'
- 动效:项目卡片:悬停上浮 3px,分类标签填充 Blueprint。
- 动效:流程:连接线随区块滚动向下绘制;步骤编号依次弹出。
- 动效:报价表单:标签选中时从 Blueprint Mist→Blueprint 填充(150ms);无效提交抖动 4px 并显示内联标签;发送时切换为 Sent(300ms --ease-io)— 一枚绘制的 Safety 'ON THE BOARD' 工单印章从 -6deg→-2deg 旋转进入,'Got it, [NAME].' 'We call within two business days to schedule the walkthrough.' 选择回显,'Edit the request' 预填。持久化到 localStorage。
- 动效:链接:.link-draw 在悬停和 focus-visible 时以 250ms 生长出 1px currentColor 下划线。
- 动效:prefers-reduced-motion: reduce — 无缩放、绘制、重排或印章;一切静止;颜色/边框悬停保留。在 index.css 中使用 CSS @media,并在组件中使用 Motion 的 useReducedMotion。
- 图像:真实摄影,全部六张为本模板以统一风格制作:清透日光、完工的工艺质感和真实的工地细节 — 通用无品牌工具与材料,无标识。站点负责人肖像为 AI 生成的虚构人物(臂下夹安全帽,手持图纸)— 占位图,真实公司可替换为其负责人的照片。无可读文字或标牌。每张照片使用 object-fit cover,object-position 见 Assets 部分,4px 圆角,无阴影。说明文字为 Barlow 13px Slate。代码绘制:favicon、尺寸线分隔符、工单印章、标签和筛选圆点。图标:仅 lucide-react,描边宽度 2。
## 页面与区块
### 公司(`index.html`)
1. **内容文件与文案规则** — 以下所有文案均按默认值编写([COMPANY] = Rourke & Sons,[CITY] = Pittsburgh, Pennsylvania,[TRADE] = renovations and additions,[YEARS] = 18)。将每个字符串和数字放入 src/content.ts 并从中渲染。若任何变量值不同,请重写主视觉、四项服务、六个项目、安全行、五个步骤和报价文案,使其对新公司具体且可信,同时保持相同的结构和数量。所有项目、客户和数字均为虚构;前后对比说明描述的是工作内容,而非地址。事实:地址 '2210 Forge Street, [CITY]' 为虚构;电话 (412) 555-0182;办公时间周一至周五 7:00–17:00;许可证 'GC-4471 (invented)';全额保险,$2M 一般责任险;五人团队加持证分包商;两年工艺保修。服务:'Whole-home renovations' 'kitchens, baths, floors and the walls between them' 起价 $18,000;'Additions' 'sunrooms, dormers and the permits that come with them' 起价 $45,000;'Kitchens & baths' 'the two rooms that sell a house and start a marriage debate' 起价 $12,000;'Exteriors' 'decks, porches, siding and roofs that keep the rain honest' 起价 $6,500。项目(名称 · 类别 · 备注 · 数字):'The Squirrel Hill double-gable' Additions 'a dormer that paid for itself in bedrooms' 14 周;'A millworker''s kitchen' Renovation 'quarter-sawn oak, quiet hardware, zero trends' 9 周;'The brick row-house gut' Renovation 'down to the joists, back to better' 16 周;'Forge Street deck & pergola' Exteriors 'steel-footed, snow-rated, dinner-tested' 3 周;'The sunroom that replaced the porch' Additions 'four seasons, one skylight argument, settled' 7 周;'Bathroom, re-plumbed' Renovation 'moved the stack, kept the tile line' 5 周。安全行:'Licensed & insured' 'GC-4471 (invented), $2M liability, certificates on request' Good;'Site safety' 'OSHA-trained crew (generic), dust barriers on every interior job' Good;'Clean sites' 'broom-clean at day''s end; magnet sweep on nails' Good;'Two-year warranty' 'workmanship, in writing, on every invoice' Good。流程:1 'Walkthrough & estimate' 'we measure, listen, and price in ranges before quoting';2 'Scope & contract' 'one page of numbers you can hold us to';3 'Permits & scheduling' 'we pull them, we sequence them, you get a calendar';4 'Build weeks' 'daily photos to your phone, weekly walkthroughs';5 'Punch list & clean' 'we leave it better than the drawings, or we aren''t done'。
布局:不适用
动效:不适用
2. **页眉** — 左侧:字标 '[COMPANY]'(Condensed 600 20px 大写)位于 '[TRADE] · [CITY]'(10px 大写 Slate)之上,链接至 ./index.html。右侧导航(Barlow 600 13px 大写):'Services' → #services,'Our work' → #work,'Safety' → #safety,'Process' → #process;一个小号 Safety 'Get a quote' → #quote。低于 780px:字标 + 报价按钮。
布局:顶部粘性,高度 70px,Scaffold White/95% 模糊,Rule 边框。
3. **主视觉** — 两栏。左侧:眉题 'EST. [YEARS] YEARS · [CITY]';H1 'BUILT RIGHT.' / '*CLEANED UP AFTER.*' 导语(最大宽度 500px):'[COMPANY] does [TRADE] with a five-person crew, daily photos and a broom-clean site every evening — quoted flat, finished on the calendar we hand you.' 主按钮 'Get a quote' → #quote 和次按钮 'See the work' → #work;信任行:'Flat quotes, in writing';'Two-year warranty';'Daily photo updates'。右侧:work-kitchen.webp(4:3),配文 'A millworker''s kitchen, week nine'。
布局:Scaffold White 背景,顶部垂直内边距 104px;左侧 6 列,右侧 5 列偏移 1。
4. **服务** — 区块 id='services'。眉题 'WHAT WE BUILD' 和 H2 'FOUR TRADES, ONE CREW.' 四个 ServiceCards(图标、名称、一行说明、起价):即名册。配文:'Every price is a starting point we sharpen after the walkthrough — never a hook.'
布局:Mist 背景。2x2 网格 20px 间距;卡片在 Card Rule 边框上;起价用 Safety Condensed。
5. **作品** — 区块 id='work'。眉题 'RECENT WORK' 和 H2 'SIX PROJECTS, FILTERED HONESTLY.' FilterChips(All · Renovation · Addition · Exterior)带实时计数;六个 ProjectCards(照片 4:3,名称 Condensed,备注,周数徽章):即名册;筛选时重新排列。结尾行:'Addresses withheld, references gladly shared — ask on the walkthrough.'
布局:Scaffold White 背景。3x2 网格 20px 间距(900px 以下为 2 列);周数徽章为 Blueprint-mist 药丸形。
6. **安全与团队说明** — 区块 id='safety'。眉题 'LICENSED, INSURED, TIDY' 和 H2 'THE BORING STUFF, DONE RIGHT.' 四个 CredRows 带 Good 勾选:即名册。旁边是 CrewNote:lead-ray.webp 肖像(3:4,blueprint-mist 边框),配文 'Ray Rourke, site lead — a fictional builder' 和说明:'Ray runs every job you''ve seen above. Ask him about the deck that survived four winters and one graduation party (sample story).' 下方信任条:'[YEARS] years · ~300 projects (sample) · two-year workmanship warranty'。
布局:Mist 背景。Cred 行 7 列细线分隔;说明 4 列偏移 1,肖像置于上方;信任条为细线边界行。
7. **流程与报价表单** — 区块 id='process'。眉题 'HOW IT GOES' 和 H2 'FIVE STEPS, NO MYSTERY.' 五个 StepRows 带绘图连接线。区块 id='quote'。眉题 'GET A QUOTE' 和 H2 'TELL US WHAT YOU''RE DREAMING.' QuoteForm 在 Card 上:TypeChips(四项服务);BudgetPills('Under $15k' / '$15–50k' / '$50–100k' / '$100k+');时间线选择('ASAP' / 'This season' / 'Planning ahead');姓名 + 电话 + 邮箱;备注文本域(占位符 'The room, the problem, the Pinterest board — any of it helps.');主按钮 Safety 'Request the quote',配文 'Saved in this browser — the real page emails the office. Nothing is sent here.' 已发送:ON THE BOARD 印章,'Got it, [NAME].' 'We call within two business days to schedule the walkthrough.' 类型/预算回显,'Edit the request' 预填。持久化在 localStorage。页脚(Blueprint Deep,bone 文字):字标,'[TRADE] · [CITY] · [YEARS] years','2210 Forge Street',(412) 555-0182 tel:,build@ + emailDomain;底行 '© [COMPANY]. Figures are sample data; the dust jokes are real.'
布局:流程最大宽度 760px;报价面板最大宽度 640px;页脚三部分行带底行。
## 资产
- 图片:为本设计制作的模板照片(可随模板自由再分发)。用 curl -L -o 将每个文件下载到 public/images/:https://media.vibefather.ai/assets/be395f9c-fe2c-45e3-ab70-797207f645fb/work-kitchen.webp → public/images/work-kitchen.webp(Hero、厨房项目卡片;alt 'A finished craftsman kitchen with oak cabinets and stone counters');https://media.vibefather.ai/assets/be395f9c-fe2c-45e3-ab70-797207f645fb/work-dormer.webp → public/images/work-dormer.webp(Additions 卡片;alt 'A new dormer gable on a brick family home');https://media.vibefather.ai/assets/be395f9c-fe2c-45e3-ab70-797207f645fb/work-gut.webp → public/images/work-gut.webp(Renovation 卡片;alt 'A gutted row-house interior with new framing exposed');https://media.vibefather.ai/assets/be395f9c-fe2c-45e3-ab70-797207f645fb/work-deck.webp → public/images/work-deck.webp(Exteriors 卡片;alt 'A steel-footed cedar deck with a pergola at dusk');https://media.vibefather.ai/assets/be395f9c-fe2c-45e3-ab70-797207f645fb/work-bath.webp → public/images/work-bath.webp(Renovation 卡片;alt 'A re-plumbed bathroom with subway tile and brass fixtures');https://media.vibefather.ai/assets/be395f9c-fe2c-45e3-ab70-797207f645fb/lead-ray.webp → public/images/lead-ray.webp(Crew note;alt 'Ray Rourke, a fictional builder, hard hat under arm')。共六个文件。
- 图片:在项目根目录写入 ASSETS.md,包含一个表格:path、source URL、author、license——每张照片一行(source 'media.vibefather.ai, made for this template',author 'VibeFather',license 'Distributed with the template'),另加 @fontsource/barlow-condensed 和 @fontsource-variable/barlow(OFL-1.1)以及 lucide-react(ISC)的行。site-lead 肖像是按肖像规则生成的 AI 虚构人物;工具和材料保持通用/无品牌;无可读标识。
- 图标:仅 lucide-react:Hammer、Home、ChefHat、Layers、FileCheck、ShieldCheck、Camera、Broom、Check、Plus。描边宽度 2,16–24px,颜色继承。尺寸线分隔线、ON THE BOARD 印章、chips 和 favicon 为绘制的 SVG。public/favicon.svg:viewBox 0 0 32 32,一个 32x32 的方块填充 #1F3A5F,一个 Safety(#F26B21)房屋山墙轮廓,带一个 Card(#FFFFFF)尺寸刻度。无其他 logo:公司名称始终以文字排版呈现。
- 字体:安装 @fontsource/barlow-condensed 和 @fontsource-variable/barlow,并按 Setup 中所述在 src/fonts.ts 中导入它们。Vite 会将 woff2 文件打包进 dist/。
- 图片:在代码中绘制:带 Safety 刻度的尺寸线分隔线、job-ticket 印章、chips、筛选圆点和 favicon。除六张照片外无其他位图;无插图;无地图瓦片。
## 禁止事项
- 无后端、无表单提交、不向任何 API 发起 fetch 请求:报价请求仅保存在浏览器中(localStorage)并明确说明这一点;tel: 链接由电话号码数字构建。
- 此单页上的所有链接均为锚点(./index.html#services、#work、#safety、#process、#quote)加上页脚 mailto。
- 不使用真实公司、客户、地址或项目地点;许可证和保险以通用方式描述并使用虚构编号;不使用 OSHA 或认证机构标志——仅使用勾选标记和文字。
- 全部自托管:字体通过 Fontsource,图标作为 npm 包或内联 SVG,图片下载到 public/images/。不使用 CDN <script> 或 <link> 标签,不使用 Google Fonts,不使用分析工具。
- 生产构建:压缩,无 source maps,不将 src/ 复制到 dist/,单条命令 npm run build,输出在 dist/ 下且小于 10 MB。
- 站点负责人肖像为 AI 生成的虚构人物,非任何真实个人;照片中不出现其他人物;工具、材料或货车上无可读文字、标牌或品牌标记。
- 除 'EST. [YEARS] YEARS' 外,任何地方不出现日期或年份;项目以周数标注,绝不使用日期;站点永不显示当天日期。
- 除可选的页脚署名链接外,站点内绝不提及 VibeFather 或任何其他品牌;所有文案均为虚构的美式英语。
- 尊重 prefers-reduced-motion:不使用缩放、绘制、洗牌或盖章效果;一切处于静止状态;颜色/边框悬停效果保留。
- 页面必须在 1440x900 桌面端和 390x844 移动端正常工作且控制台零错误;标签、选择器和表单仅用键盘即可操作,并具有可见的焦点环。
- 保持文案简洁直白:不使用 lorem,不使用“梦想空间”之类的陈词滥调;每个价格、周数和资质都存放在 src/content.ts 中。
---
— Prompt by VibeFather · https://vibefather.ai/t/construction-company-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: "Construction Company Website"
colors:
scaffold_white: "#F7F8F9"
mist: "#EDF0F2"
card: "#FFFFFF"
blueprint: "#1F3A5F"
blueprint_deep: "#162B47"
blueprint_mist: "#E4EAF2"
ink: "#23272C"
slate: "#5B6670"
safety: "#F26B21"
safety_deep: "#D5560E"
rule: "#D9DEE3"
good: "#2F855A"
typography:
display_h1_h2_service_names_project_names_from_prices_the_wordmark_barlow_condensed_sturdy_and_workmanlike: { family: "Barlow Condensed", weights: [500, 600] }
text_and_ui_body_eyebrows_buttons_forms_captions_tabular_numerals_for_prices_and_spans: { family: "Barlow", weights: [400, 600, 700] }
spacing: "8px base unit. Container max-width 1200px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. 12-column grid, column gap 24px. Section vertical padding 100px desktop, 76px under 1024px, 60px under 640px. Type scale: H1 clamp(44px, 6.6vw, 84px) Barlow Condensed 600 uppercase, line-height 0.98; H2 clamp(30px, 4vw, 50px) Condensed 600 uppercase; service names Condensed 600 22px; from-prices Condensed 600 24px Safety tabular; lead Barlow 400 17.5px / 1.65 Ink at 90%; body 15.5px / 1.7 (max-width 64ch); eyebrow Barlow 700 12px uppercase letter-spacing 0.18em Slate; caption 13px Slate. Buttons: height 52px, Barlow 700 14px uppercase letter-spacing 0.06em. Primary: Blueprint fill, Card text. Quote CTA: Safety fill, Card text. Secondary: 1px Ink border. Inputs: height 50px, 1px Rule border, Card fill, focus Blueprint border. Focus ring everywhere: 2px Blueprint outline with 3px offset."
radius: "4px on cards, buttons, inputs, chips and photos — site-plan corners. 999px only for pills and filter chips."
---
# Construction Company 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
- **Scaffold White** `#F7F8F9` — Page background throughout.
- **Mist** `#EDF0F2` — Alternate section background (Services, Process), chips, hover fill.
- **Card** `#FFFFFF` — Project cards, the quote panel, sent state.
- **Blueprint** `#1F3A5F` — Primary: headlines' ink, primary buttons, selected chips, step numbers, focus ring.
- **Blueprint Deep** `#162B47` — Hover and pressed, footer background.
- **Blueprint Mist** `#E4EAF2` — Selected chip fills, icon wells, dimension ticks.
- **Ink** `#23272C` — Body text, icon color.
- **Slate** `#5B6670` — Secondary text, captions, eyebrows, unavailable states.
- **Safety** `#F26B21` — The one accent: the quote CTA, from-prices, filter active, dimension numbers, focus-visible extras.
- **Safety Deep** `#D5560E` — CTA hover and pressed.
- **Rule** `#D9DEE3` — 1px hairlines, card borders, input borders, blueprint grid lines.
- **Good** `#2F855A` — Credential ticks, sent check, warranty note.
## Typography
- **Display: H1, H2, service names, project names, from-prices, the wordmark — Barlow Condensed, sturdy and workmanlike** — Barlow Condensed (OFL), weights 500/600. Self-host the font files.
- **Text and UI: body, eyebrows, buttons, forms, captions; tabular numerals for prices and spans** — Barlow (OFL), weights 400/600/700. Self-host the font files.
## Spacing & shape
- Spacing: 8px base unit. Container max-width 1200px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. 12-column grid, column gap 24px. Section vertical padding 100px desktop, 76px under 1024px, 60px under 640px. Type scale: H1 clamp(44px, 6.6vw, 84px) Barlow Condensed 600 uppercase, line-height 0.98; H2 clamp(30px, 4vw, 50px) Condensed 600 uppercase; service names Condensed 600 22px; from-prices Condensed 600 24px Safety tabular; lead Barlow 400 17.5px / 1.65 Ink at 90%; body 15.5px / 1.7 (max-width 64ch); eyebrow Barlow 700 12px uppercase letter-spacing 0.18em Slate; caption 13px Slate. Buttons: height 52px, Barlow 700 14px uppercase letter-spacing 0.06em. Primary: Blueprint fill, Card text. Quote CTA: Safety fill, Card text. Secondary: 1px Ink border. Inputs: height 50px, 1px Rule border, Card fill, focus Blueprint border. Focus ring everywhere: 2px Blueprint outline with 3px offset.
- Radius: 4px on cards, buttons, inputs, chips and photos — site-plan corners. 999px only for pills and filter chips.
## Motion
- Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1) for reveals and gallery shuffles; --ease-io cubic-bezier(0.65, 0, 0.35, 1) for the form swap. Level and sure.
- Reveal: blocks wrapped in <Reveal> start at opacity 0, translateY(12px) and settle over 650ms --ease-out when 12% visible (Motion whileInView, viewport once). Siblings stagger 65ms.
- Hero: the project photo scales 1.03→1.0 over 2000ms; the H1 rises 14px; a dimension-line rule draws under the eyebrow once with Safety tick numbers.
- Service cards: hover slides a 2px Blueprint rule from the left and the from-price ticks up 2px.
- Gallery filtering: cards use Motion layout popLayout (200ms out / 380ms glide); the live count crossfades; the empty state reads 'No projects in that combination yet — the portfolio grows weekly.'
- Project cards: hover lifts 3px and the category chip fills Blueprint.
- Process: the connector line draws downward as the section scrolls; step numbers pop in sequence.
- Quote form: chips fill Blueprint Mist→Blueprint on select (150ms); invalid submit shakes 4px with inline labels; sending swaps to Sent (300ms --ease-io) — a drawn Safety 'ON THE BOARD' job-ticket stamp rotating in -6deg→-2deg, 'Got it, [NAME].' 'We call within two business days to schedule the walkthrough.' selection echo, 'Edit the request' pre-filled. Persisted in localStorage.
- Links: .link-draw grows a 1px currentColor underline over 250ms on hover and focus-visible.
- prefers-reduced-motion: reduce — no scales, draws, shuffles or stamps; everything at rest; color/border hovers stay. Use CSS @media in index.css plus Motion's useReducedMotion in components.
## Imagery
Real photography, all six made for this template in one consistent style: crisp daylight, finished craftsmanship and honest jobsite detail — generic unbranded tools and materials, no logos. The site-lead portrait is an AI-generated fictional person (hard hat under arm, plans in hand) — a placeholder a real firm swaps for its own lead's photo. No readable text or signage. Every photo uses object-fit cover with the object-position given under Assets, 4px corners, no shadow. Captions in Barlow 13px Slate. Drawn in code: the favicon, dimension-line dividers, the job-ticket stamp, chips and the filter dots. Icons: lucide-react only, stroke width 2.
## Tone
Straight builder-talk: short sentences, exact numbers, pride without shouting. One joke about dust.
---
— Prompt by VibeFather · https://vibefather.ai/t/construction-company-website · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 商业承包商:将 COMPANY 和 CITY 设为你公司,将四项业务替换为你的建筑类别,并将作品集项目改写为商业项目。
- 厨房与卫浴装修商:将 TRADE 设为厨房与卫浴装修,保留四张服务卡片但以厨房和卫浴为主,并根据房间大小来定价作品集。
- 屋顶与外墙专家:将 TRADE 设为外墙,将服务列表替换为屋顶、壁板和窗户,并利用改造前后作品集展示风暴损坏和维修。
- 单干总承包商:将 COMPANY 设为你自己的名字,保留五步流程作为你的个人承诺,并利用团队板块按名字介绍你自己。
建筑公司网站:常见问题
建筑公司网站模板包含哪些区块?
建筑公司网站模板是一个单页,包含五个锚点区块:服务、作品、安全、流程和报价。服务列出四项业务及起步价;作品是六个项目的作品集,可按类别筛选并附改造前后说明;安全栏展示执照和保险资质;流程是从现场勘察到最终清洁的五步;报价是一个申请表,包含项目类型标签、预算区间、时间线和联系方式字段。
怎么用 AI 做一个建筑公司网站?
复制本页的提示词,或者运行 npx vibefather add construction-company-website,把 [CITY]、[TRADE]、[YEARS]、[COMPANY] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。