用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
一个物理治疗诊所的两页式网站:首页在明亮的治疗室照片上呈现“动得更好”的承诺,用通俗语言列出八种常见病症(绝不使用诊断术语),三步式治疗理念,三位治疗师的简介配 AI 生成的工作照(虚构人物,用户可替换为自己员工的照片),一个如实说明合作网络和自费价格的保险板块,以及一段以体验方式呈现的疗效说明;新患者页面包含接诊表单(病症选择、病史复选框、联系方式),在客户端确认,营业时间带“现在营业”指示,以及到店说明。默认内容基于一家虚构诊所,但结构适用于任何门诊物理治疗或康复机构。视觉风格临床而温暖:白色和浅石板色搭配平静的青色主色和一点珊瑚色点缀,圆润友好的标题配人文无衬线字体,治疗室摄影和轻柔的渐显效果。疗效被描述为典型疗程并配有示例标签——绝不保证或声称治愈。要适配,只需替换变量并在一个内容文件中重写文案。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Physical Therapy Clinic Website
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
A two-page website for [CLINIC], a physical therapy clinic in [CITY] serving [FOCUS], self-pay visits from $[SELF_PAY]. It must be warm and honest: conditions in plain words, a three-step approach, three therapists with AI portraits (fictional placeholders), an insurance block that answers the awkward questions, a new-patient intake form confirming client-side, and hours with an open-now indicator. Pages: index.html, newpatient.html. No diagnosis language, no outcome guarantees. Everything runs in the browser; nothing is submitted anywhere.
- Audience: Adults 30–70 with a twinge that won't quit and a deductible they don't understand: post-op knees, desk backs, runner's everything. They want to know the clinic fixes their kind of problem, takes their insurance, and won't shame them for waiting.
- Goal: Get the intake form filled. Within ten seconds a visitor sees the promise, a therapist's face and the new-patient CTA; within two minutes they've found their condition and opened the form.
- Tone: Encouraging and matter-of-fact, like a PT who's seen the same shoulder a thousand times. Plain words for anatomy, typical journeys for outcomes (sample-labeled), one joke about homework compliance.
## 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/nunito (OFL-1.1), @fontsource-variable/source-sans-3 (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. Two real HTML pages at the project root: index.html (entry src/main-home.tsx) and newpatient.html (entry src/main-new.tsx).
- vite.config.ts: base './', plugins [react()], build { outDir 'dist', sourcemap false, assetsInlineLimit 0, rollupOptions { input { index: resolve(__dirname, 'index.html'), newpatient: resolve(__dirname, 'newpatient.html') } } }. Do not copy src/ into dist/.
- Tailwind 3.4 through PostCSS, content ['./index.html', './newpatient.html', './src/**/*.{ts,tsx}']. In tailwind.config.ts add every color under Design to theme.extend.colors with kebab-case keys (white-page, slate-mist, card, teal, teal-deep, teal-mist, ink, slate, coral, rule, good) and fontFamily display ['Nunito', 'system-ui', 'sans-serif'], sans ['Source Sans 3 Variable', 'system-ui', 'sans-serif']. Set borderRadius DEFAULT to 14px and add maxWidth { container: '1160px' }.
- In src/fonts.ts import '@fontsource/nunito/600.css', '@fontsource/nunito/700.css' and '@fontsource-variable/source-sans-3'; import src/fonts.ts and src/index.css from both entry files.
- File layout: src/content.ts (every string, condition, step, therapist, insurance line, hour and image path, typed), src/lib/brand.ts (clinicSlug = [CLINIC] lowercased with every run of non-alphanumeric characters replaced by '-', emailDomain = clinicSlug without hyphens + '.com', phoneDigits for tel:), src/lib/storage.ts (safe localStorage get/set wrapped in try/catch, keys prefixed with clinicSlug + ':'), src/lib/useOpenNow.ts (open-now from the hours table and the client clock).
- State: src/store/intake.ts is a tiny external store (useSyncExternalStore) holding { condition, history: string[], name, phone, sent } persisted to localStorage key clinicSlug + ':intake'.
- Components in src/components/: Header.tsx, Reveal.tsx (Motion whileInView wrapper), Eyebrow.tsx, Footer.tsx; home: Hero.tsx, Conditions.tsx (ConditionCard.tsx), Approach.tsx (StepCard.tsx), Therapists.tsx (TherapistCard.tsx), Insurance.tsx (InsRow.tsx); newpatient: IntakeForm.tsx (ConditionSelect.tsx, HistoryChecks.tsx, Confirmed.tsx), HoursBlock.tsx (OpenNowPill.tsx), GettingHere.tsx. src/pages/Home.tsx and NewPatient.tsx compose them; both pages render Header and Footer.
- 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. Both HTML files: lang en, <meta name='theme-color' content='#FDFDFB'>, <link rel='icon' href='./favicon.svg' type='image/svg+xml'>. Titles: index.html '<title>[CLINIC] — Physical therapy in [CITY]</title>', newpatient.html '<title>New patients — [CLINIC]</title>'.
- Write ASSETS.md at the project root as described under Assets.
- dist/ holds the two HTML files, hashed JS/CSS, the woff2 fonts, favicon.svg and the six images. Keep it under 10 MB.
## Variables
- [CLINIC] — Clinic name (default: "Bridge Physical Therapy"). Invented clinic name. Used in the wordmark, titles, footer, email (hello@ + clinicSlug without hyphens + .com) and localStorage keys. Never a real clinic or chain.
- [CITY] — City (default: "Minneapolis, Minnesota"). Where the clinic is. Used in the title, hero, hours block and footer. Real cities fine; street invented.
- [FOCUS] — Who they treat (default: "adults with stubborn joints"). One lowercase phrase naming the clientele. Drives the hero line, conditions voice and one FAQ. Keep it warm and specific.
- [SELF_PAY] — Self-pay visit (default: "95"). The self-pay per-visit rate as digits. Drives the insurance block's honesty math and one FAQ. Keep it 75–150.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/physical-therapy-clinic-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
- White Page `#FDFDFB` — Page background on both pages.
- Slate Mist `#EFF3F2` — Alternate section background (Conditions, Insurance), chips, hover fill.
- Card `#FFFFFF` — Condition cards, therapist cards, the intake panel, confirmation.
- Teal `#1F7A6D` — Primary: headlines' accents, primary buttons, selected chips, step numbers, focus ring.
- Teal Deep `#155F55` — Hover and pressed, footer background.
- Teal Mist `#E0F0ED` — Selected chip fills, icon wells, open dot glow.
- Ink `#22302D` — Headlines and body text, icon color.
- Slate `#5C6B68` — Secondary text, captions, eyebrows, closed states.
- Coral `#E2795B` — The one warm tick: the new-patient CTA, journey dots, sample-outcome labels, hover ticks.
- Rule `#DEE5E2` — 1px hairlines, card borders, input borders, dividers.
- Good `#2E8B62` — Confirmation checks, insurance-accepted ticks, open-now dot.
### Typography
- Display: H1, H2, H3, condition names, therapist names, the wordmark — Nunito, rounded and friendly: Nunito (OFL), weights 600/700
- Text and UI: body, eyebrows, buttons, forms, captions; tabular numerals for hours and prices: Source Sans 3 (OFL), weights 400/600/700
### Layout & motion
- Spacing: 8px base unit. Container max-width 1160px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. 12-column grid, column gap 24px. Section vertical padding 96px desktop, 72px under 1024px, 56px under 640px. Type scale: H1 clamp(40px, 6vw, 72px) Nunito 700, line-height 1.06; H2 clamp(28px, 3.8vw, 44px) Nunito 700; H3 20px Nunito 700; lead Source Sans 400 17.5px / 1.65 Ink at 90%; body 15.5px / 1.7 (max-width 62ch); eyebrow Source Sans 700 12px uppercase letter-spacing 0.14em Slate; caption 13px Slate. Buttons: height 50px, Source Sans 700 14px. Primary: Teal fill, Card text. New-patient CTA: Coral fill, Card text. Secondary: 1px Teal border, Teal text. Inputs: height 50px, 1px Rule border, Card fill, focus Teal border. Focus ring everywhere: 2px Teal outline with 3px offset.
- Radius: 14px on cards, buttons, inputs, chips and photos. 999px only for pills, the open dot and journey dots.
- Motion: Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1) for reveals; --ease-io cubic-bezier(0.65, 0, 0.35, 1) for the form swap and accordion. Gentle and steady.
- Motion: Reveal: blocks wrapped in <Reveal> start at opacity 0, translateY(12px) and settle over 700ms --ease-out when 15% visible (Motion whileInView, viewport once). Siblings stagger 70ms.
- Motion: Hero: the room photo scales 1.04→1.0 over 2000ms; the H1 rises; a small journey dot (coral) pulses once.
- Motion: Condition cards: hover lifts 3px and the icon well fills Teal Mist.
- Motion: Approach: the three step cards' connecting line draws left-to-right as the section scrolls; numbers pop sequentially.
- Motion: Therapist cards: portraits scale 1.03 on hover; the specialty pill crossfades to the one-liner.
- Motion: Insurance rows: the accepted-network ticks stagger in 60ms.
- Motion: Intake: history checkboxes tick with a drawn check; invalid submit shakes 4px once with kind inline labels; sending swaps to Confirmed (300ms --ease-io) with a Good check drawing and 'See you soon, [NAME].' plus the echoed condition line.
- Motion: Links: .link-draw grows a 1px currentColor underline over 280ms on hover and focus-visible.
- Motion: prefers-reduced-motion: reduce — no scales, draws, pops or staggered reveals; everything at rest; color/border hovers stay. Use CSS @media in index.css plus Motion's useReducedMotion in components.
- Imagery: Bright real photography, all six made for this template in one consistent style: treatment rooms in soft daylight, pale wood and gentle greens, hands-free scenes — no patients, no faces. Therapist portraits are AI-generated fictional people at work (guiding a shoulder stretch, watching gait, demonstrating a band exercise) — placeholders a real clinic swaps for its own staff photos. No readable text or signage. Every photo uses object-fit cover with the object-position given under Assets, 14px corners, no shadow; photos on White get a 1px Rule outline. Captions in Source Sans 13px Slate. Drawn in code: the favicon, journey dots, ticks, chips and the confirmation check. Icons: lucide-react only, stroke width 1.75.
## Pages & Sections
### Home (`index.html`)
1. **Content file and copy rules** — All copy below is written for the default values ([CLINIC] = Bridge Physical Therapy, [CITY] = Minneapolis, Minnesota, [FOCUS] = adults with stubborn joints, [SELF_PAY] = 95). Put every string and number in src/content.ts and render from it; both pages share one content file. If any variable value differs, rewrite the hero, all eight conditions, the steps, therapists, insurance lines and FAQ so they are specific and believable for the new clinic, keeping the same structure and counts (8 conditions, 3 steps, 3 therapists, 4 insurance rows, 4 FAQs). All patients, therapists and journeys are invented; outcomes stay experiential with '(typical journey, sample)' labels. Facts: address '88 Shepherd Lane, [CITY]' invented; phone (612) 555-0172; hours Mon–Thu 7:00–19:00, Fri 7:00–15:00, Sat 8:00–12:00 (manual therapy only), Sun closed; self-pay $[SELF_PAY]/visit; in-network with 'most major plans — we check your card in five minutes and tell you before visit two'; conditions (name · plain line · journey): 'Necks & desk-backs' 'the monitor won, for now' 'most people feel freer turning their head within 3–4 visits (typical journey, sample)'; 'Shoulders' 'overhead, underpaid, over-40 — we get it' '6–8 weeks is the common arc for rotator-cuff irritation (typical journey, sample)'; 'Knees' 'stairs, squats and the kneecap''s opinions' 'many return to stairs comfortably in 4–6 visits (typical journey, sample)'; 'Hips & backs' 'the pair that carries everything' 'most report easier mornings by week two or three (typical journey, sample)'; 'Post-op rehab' 'knee and shoulder replacements, protocols followed' 'we sync with your surgeon''s protocol from visit one'; 'Runners'' legs' 'shins, IT bands, plantar fascia' 'a return-to-run plan from week one, progressed with you'; 'Wrists & thumbs' 'keyboards, phones, guitars' '2–3 weeks of calm work is typical (typical journey, sample)'; 'Dizziness & balance' 'vestibular-friendly, unhurried' 'positional work often settles spells in 1–3 visits (typical journey, sample)'. Steps: 1) 'Listen & measure' 'your story first, then the movement screen — noTreatment before we agree the problem'; 2) 'Treat & teach' 'hands-on when it helps, homework you''ll actually do, dosed like a prescription'; 3) 'Build the bridge' 'from the table to the trail, the gym, or the garden — your version of normal'. Therapists (portrait · name · line · days): 'pt-dana.webp' 'Dana Whitfield, DPT (fictional)' 'necks, headache-adjacent, vestibular' 'Mon–Thu'; 'pt-marcus.webp' 'Marcus Oyelaran, DPT (fictional)' 'post-op knees, runners, kettlebells' 'Tue–Sat'; 'pt-lin.webp' 'Lin Zhao, DPT (fictional)' 'shoulders, hands-on craft, weekend golfers' 'Mon–Fri'. Insurance rows: 'In-network' 'most major PPOs — we verify before visit two' Good; 'Self-pay' '$[SELF_PAY] a visit, no packages, homework included' Good; 'Medicare' 'accepted, assignment taken — bring the card' Good; 'Out-of-network?' 'we give superbills and honest odds — sometimes it''s cheaper self-pay' Good. FAQs: 'Do I need a referral?' 'State rules allow direct access — most people start without one; we check yours specifically.'; 'Will it hurt?' 'The treatment shouldn''t; the homework might, mildly, on day two. We scale to your Yes-line.'; 'What do I wear?' 'Comfortable clothes you can move in; shorts for knees, a tank for shoulders. We have spares.'; 'How many visits?' 'Honest ranges on day one — many conditions run 4–8 visits (typical journey, sample), and we re-check the plan every visit.'
Layout: n/a
Motion: n/a
2. **Header (all pages)** — Left: the wordmark '[CLINIC]' (Nunito 700 18px) over 'Move better · [CITY]' (10px uppercase Slate) linking ./index.html. Right nav (Source Sans 600 14px): 'Conditions' → ./index.html#conditions, 'Our approach' → ./index.html#approach, 'Therapists' → ./index.html#therapists, 'Insurance' → ./index.html#insurance; a Coral 'New patient' → ./newpatient.html. Under 800px: wordmark + new-patient button.
Layout: Sticky top, height 72px, White/94% blur, Rule border.
3. **Hero** — Two columns. Left: eyebrow 'PHYSICAL THERAPY · [CITY]'; H1 'Stubborn joints,' / '*unstubborned.*' Lead (max-width 500px): '[CLINIC] helps [FOCUS] get back to stairs, gardens, gyms and golf — with a plan you understand from visit one and homework you''ll actually do.' Primary 'Start as a new patient' → ./newpatient.html and secondary 'See the conditions' → #conditions; trust row: 'Direct access — no referral needed for most'; 'Insurance verified before visit two'; 'Self-pay $[SELF_PAY], no packages'. Right: room-treatment.webp (4:3) with the caption 'Room two — where the kneeling happens'.
Layout: White background, vertical padding 104px top; left 6 cols, right 5 cols offset 1.
4. **Conditions** — Section id='conditions'. Eyebrow 'WHAT WE SEE WEEKLY' and H2 'EIGHT FAMILIAR STORIES.' Eight ConditionCards (icon, name, plain line, journey note in Coral): the roster above. Caption: 'Journeys shown are typical (sample) — yours gets its own honest range on day one.'
Layout: Slate Mist background. 4x2 grid 20px gap; cards on Card Rule-bordered; icon in a 44px Teal Mist rounded square; journey note 13px Coral. Under 900px: 2 columns, under 600px: one.
5. **Approach and therapists** — Section id='approach'. Eyebrow 'HOW IT GOES' and H2 'LISTEN. TREAT. BRIDGE.' Three StepCards with the connecting line. Section id='therapists'. Eyebrow 'THE TEAM' and H2 'THREE PTS, ZERO DRILLS.' TherapistCards: portrait (4:3, hover scale), name, one-liner specialty, days caption; a note under: 'You''ll see the same PT every visit — continuity is the treatment's best-kept secret.'
Layout: White background. Steps three columns with a drawing connector; therapists three columns 24px gap; portraits with hover scale and a specialty→one-liner crossfade.
6. **Insurance and footer** — Section id='insurance'. Eyebrow 'THE MONEY PART, ANSWERED' and H2 'NO SURPRISES AT THE FRONT DESK.' InsRows on Card with Good ticks: the four roster rows. A quiet photo beside: room-gym.webp 'Where the bridges get built' (4:3). Footer (Teal Deep, bone text): wordmark + 'Move better · [CITY]'; '88 Shepherd Lane, [CITY]', (612) 555-0172 tel:, hello@ + emailDomain; hours block; bottom line '© [CLINIC]. Journeys shown are typical (sample); your plan is written with you.'
Layout: Slate Mist for insurance (rows 6 cols, photo 4 cols offset 1 stacked under 900px); footer three-part row.
### New patients (`newpatient.html`)
1. **Masthead** — Solid header. Eyebrow 'NEW PATIENTS', H1 'Let''s start with your story.' Lead: 'Sixty seconds of forms, saved in this browser — the real clinic would send it ahead so your first visit is all assessment, no clipboard.'
Layout: White background, vertical padding 136px top + 48px, bottom hairline.
2. **Intake form** — The IntakeForm on Card: ConditionSelect (the eight conditions + 'Something else — we''ll figure it out'); HistoryChecks (multi: 'This started after an injury' / 'I''ve had imaging (MRI/X-ray)' / 'Surgery is on the table' / 'I''ve tried PT before'); name + phone; primary 'Send my intake' with caption 'Saved in this browser — nothing is sent here.' Confirmed: the Good check drawing, 'See you soon, [NAME].' 'We''ll call to book your first hour — bring shorts and a question list.' the echoed condition; 'Edit my intake' returning pre-filled. Persisted in localStorage. HoursBlock beside with OpenNowPill and the week's hours (today highlighted).
Layout: Slate Mist background; form 7 cols, hours 4 cols offset 1; under 900px stacked.
3. **Getting here** — Three quiet rows with icons: MapPin '88 Shepherd Lane — ground floor, no steps to the door'; Car 'Free lot behind the building, and the meters on Shepherd forgive a session''s length'; TrainFront 'Two blocks from the green line; a walk we''d count as a warm-up'. Closing line: 'First visits take an hour. Bring the paperwork energy; we''ll bring the coffee.'
Layout: White background; rows hairline-divided max-width 720px; closing line centered 48px below.
## 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/a35d3b49-4f19-45ea-be6d-2a4e4d5ee899/room-treatment.webp → public/images/room-treatment.webp (Hero; object-position 50% 55%; alt 'A bright treatment room with a low table and resistance bands'); https://media.vibefather.ai/assets/a35d3b49-4f19-45ea-be6d-2a4e4d5ee899/pt-dana.webp → public/images/pt-dana.webp (Therapist card Dana; alt 'Dana guiding a shoulder stretch, a fictional physical therapist'); https://media.vibefather.ai/assets/a35d3b49-4f19-45ea-be6d-2a4e4d5ee899/pt-marcus.webp → public/images/pt-marcus.webp (Therapist card Marcus; alt 'Marcus watching a patient''s gait, a fictional physical therapist'); https://media.vibefather.ai/assets/a35d3b49-4f19-45ea-be6d-2a4e4d5ee899/pt-lin.webp → public/images/pt-lin.webp (Therapist card Lin; alt 'Lin demonstrating a band exercise, a fictional physical therapist'); https://media.vibefather.ai/assets/a35d3b49-4f19-45ea-be6d-2a4e4d5ee899/room-gym.webp → public/images/room-gym.webp (Insurance side; alt 'A rehab gym corner with racks, bands and a treadmill'); https://media.vibefather.ai/assets/a35d3b49-4f19-45ea-be6d-2a4e4d5ee899/room-wait.webp → public/images/room-wait.webp (New-patient side small; alt 'A calm waiting corner with two chairs and plants'). 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/nunito and @fontsource-variable/source-sans-3 (OFL-1.1) and lucide-react (ISC). Therapist portraits are AI-generated fictional people per the portrait rules; no patients appear in any photo.
- icon: lucide-react only: Activity, Bone, Footprints, Dumbbell, PersonStanding, Keyboard, Waves, HeartPulse, Check, MapPin, Car, TrainFront. Stroke width 1.75, 16–24px, color inherits. The journey dots, drawn ticks, chips and favicon are SVG. public/favicon.svg: viewBox 0 0 32 32, a 32x32 rect rx 9 filled #1F7A6D, a Card (#FFFFFF) bridge-glyph (a gentle arch). No other logo: the clinic name is always set as type.
- font: Install @fontsource/nunito and @fontsource-variable/source-sans-3 and import them in src/fonts.ts as listed in Setup. Vite bundles the woff2 files into dist/.
- image: Drawn in code: the journey dots, drawn checks, step connector, chips, 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 intake saves in the browser only (localStorage) and says so; tel: links are built from the phone digits.
- Every internal link points to a file name (./index.html, ./index.html#conditions, ./index.html#approach, ./index.html#therapists, ./index.html#insurance, ./newpatient.html) — never to a bare directory.
- No diagnosis, cure or guaranteed-outcome language: conditions are described experientially, outcomes as typical journeys with (sample) labels, and the copy says individual plans are written with the patient.
- 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.
- No real clinics, hospitals or insurers (networks described generically, no insurer logos); therapist portraits are AI-generated fictional people, not any real individual; no patients or faces in any photo; no readable signage.
- No dates or years anywhere; 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, connector draws, pops or staggered reveals; everything at rest; color/border hovers stay.
- The site must work at 1440x900 desktop and 390x844 mobile with zero console errors; selects, checkboxes and the form work with keyboard only and visible focus rings.
- Keep copy warm and plain: no lorem, no 'holistic healing journey'; every condition, hour and fee lives in src/content.ts.
---
— Prompt by VibeFather · https://vibefather.ai/t/physical-therapy-clinic-website · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 物理治疗诊所网站
完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。
## 简介
为 [CLINIC] 打造的两页网站,这是一家位于 [CITY] 的物理治疗诊所,服务对象为 [FOCUS],自费就诊起价 $[SELF_PAY]。网站必须温暖而诚实:用平实的语言描述病症,三步疗法,三位治疗师配 AI 肖像(虚构占位符),一个解答尴尬问题的保险区块,一份在客户端确认的新患者登记表,以及带有"当前营业"指示的营业时间。页面:index.html、newpatient.html。不使用诊断性语言,不承诺疗效。一切都在浏览器中运行;不会向任何地方提交数据。
- 受众:30–70 岁的成年人,带着挥之不去的疼痛和一份他们看不懂的免赔额:术后膝盖、办公背痛、跑者全身痛。他们想知道这家诊所能否解决他们这类问题、是否接受他们的保险,并且不会因为他们拖延就诊而让他们难堪。
- 目标:让访客填写登记表。访客在十秒内看到承诺、一位治疗师的面孔和新患者 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/nunito(OFL-1.1)、@fontsource-variable/source-sans-3(OFL-1.1)
- 构建:`npm run build` → 静态文件输出到 `dist/`。无后端、无服务端代码、无外部 API。
- 设置:
- 使用 npm create vite@latest 和 react-ts 模板搭建脚手架。项目根目录下有两个真实的 HTML 页面:index.html(入口 src/main-home.tsx)和 newpatient.html(入口 src/main-new.tsx)。
- vite.config.ts:base './',plugins [react()],build { outDir 'dist', sourcemap false, assetsInlineLimit 0, rollupOptions { input { index: resolve(__dirname, 'index.html'), newpatient: resolve(__dirname, 'newpatient.html') } } }。不要将 src/ 复制到 dist/。
- 通过 PostCSS 使用 Tailwind 3.4,content ['./index.html', './newpatient.html', './src/**/*.{ts,tsx}']。在 tailwind.config.ts 中,将 Design 下的每种颜色以 kebab-case 键添加到 theme.extend.colors(white-page、slate-mist、card、teal、teal-deep、teal-mist、ink、slate、coral、rule、good),并设置 fontFamily display ['Nunito', 'system-ui', 'sans-serif']、sans ['Source Sans 3 Variable', 'system-ui', 'sans-serif']。将 borderRadius DEFAULT 设为 14px,并添加 maxWidth { container: '1160px' }。
- 在 src/fonts.ts 中导入 '@fontsource/nunito/600.css'、'@fontsource/nunito/700.css' 和 '@fontsource-variable/source-sans-3';从两个入口文件导入 src/fonts.ts 和 src/index.css。
- 文件布局:src/content.ts(每个字符串、病症、步骤、治疗师、保险条目、营业时间和图片路径,均带类型),src/lib/brand.ts(clinicSlug = [CLINIC] 转为小写并将每一段连续的非字母数字字符替换为 '-',emailDomain = 去掉连字符的 clinicSlug + '.com',phoneDigits 用于 tel:),src/lib/storage.ts(安全的 localStorage get/set,包裹在 try/catch 中,键前缀为 clinicSlug + ':'),src/lib/useOpenNow.ts(根据营业时间表和客户端时钟判断 open-now)。
- 状态:src/store/intake.ts 是一个小型外部 store(useSyncExternalStore),持有 { condition, history: string[], name, phone, sent },持久化到 localStorage 键 clinicSlug + ':intake'。
- 组件位于 src/components/:Header.tsx、Reveal.tsx(Motion whileInView 包装器)、Eyebrow.tsx、Footer.tsx;首页:Hero.tsx、Conditions.tsx(ConditionCard.tsx)、Approach.tsx(StepCard.tsx)、Therapists.tsx(TherapistCard.tsx)、Insurance.tsx(InsRow.tsx);新患者页:IntakeForm.tsx(ConditionSelect.tsx、HistoryChecks.tsx、Confirmed.tsx)、HoursBlock.tsx(OpenNowPill.tsx)、GettingHere.tsx。src/pages/Home.tsx 和 NewPatient.tsx 组合它们;两个页面都渲染 Header 和 Footer。
- 首次构建前,使用 curl -L -o 将 Assets 下列出的每张图片以给定的确切文件名下载到 public/images/。构建本身从不获取任何内容。
- public/favicon.svg 如 Assets 所述。两个 HTML 文件:lang en,<meta name='theme-color' content='#FDFDFB'>,<link rel='icon' href='./favicon.svg' type='image/svg+xml'>。标题:index.html '<title>[CLINIC] — Physical therapy in [CITY]</title>',newpatient.html '<title>New patients — [CLINIC]</title>'。
- 在项目根目录编写 ASSETS.md,如 Assets 所述。
- dist/ 包含两个 HTML 文件、带哈希的 JS/CSS、woff2 字体、favicon.svg 和六张图片。保持在 10 MB 以下。
## 变量
- [CLINIC] — 诊所名称(默认:“Bridge Physical Therapy”)。虚构的诊所名称。用于字标、标题、页脚、电子邮件(hello@ + 不含连字符的 clinicSlug + .com)以及 localStorage 键。绝不使用真实诊所或连锁品牌。
- [CITY] — 城市(默认:“Minneapolis, Minnesota”)。诊所所在地。用于标题、首屏、营业时间区块和页脚。可以使用真实城市;街道为虚构。
- [FOCUS] — 治疗对象(默认:“adults with stubborn joints”)。一个全小写短语,说明客户群体。驱动首屏文案、病症语气和一个 FAQ。保持温暖且具体。
- [SELF_PAY] — 自费就诊(默认:“95”)。自费每次就诊费率,以数字表示。驱动保险区块的诚实计算和一个 FAQ。保持在 75–150。
- [CREDIT] — 在页脚保留一个小型“Template by VibeFather”链接,指向 https://vibefather.ai/t/physical-therapy-clinic-website(默认:是;删除此行以移除它)
Pages & Sections 下的文案是为默认值编写的。如果你的值不同,请为它们重写每个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便之后无需改动组件即可替换内容。
## 设计
### 颜色
- White Page `#FDFDFB` — 两个页面的页面背景。
- Slate Mist `#EFF3F2` — 交替区块背景(Conditions、Insurance)、标签、悬停填充。
- Card `#FFFFFF` — 病症卡片、治疗师卡片、接诊面板、确认。
- Teal `#1F7A6D` — 主色:标题强调、主按钮、选中标签、步骤编号、焦点环。
- Teal Deep `#155F55` — 悬停和按下、页脚背景。
- Teal Mist `#E0F0ED` — 选中标签填充、图标槽、开放圆点光晕。
- Ink `#22302D` — 标题和正文文本、图标颜色。
- Slate `#5C6B68` — 次要文本、说明文字、眉题、关闭状态。
- Coral `#E2795B` — 唯一的暖色点缀:新患者 CTA、旅程圆点、示例结果标签、悬停刻度。
- Rule `#DEE5E2` — 1px 细线、卡片边框、输入框边框、分隔线。
- Good `#2E8B62` — 确认勾选、保险接受刻度、当前开放圆点。
### 排版
- 展示字体:H1、H2、H3、病症名称、治疗师姓名、字标 — Nunito,圆润友好:Nunito (OFL),字重 600/700
- 文本和 UI:正文、眉题、按钮、表单、说明文字;时间和价格使用表格数字:Source Sans 3 (OFL),字重 400/600/700
### 布局与动效
- 间距:8px 基础单位。容器最大宽度 1160px,居中,侧边内边距桌面 48px、平板 32px、640px 以下 20px。12 列网格,列间距 24px。区块垂直内边距桌面 96px、1024px 以下 72px、640px 以下 56px。字号比例:H1 clamp(40px, 6vw, 72px) Nunito 700,行高 1.06;H2 clamp(28px, 3.8vw, 44px) Nunito 700;H3 20px Nunito 700;导语 Source Sans 400 17.5px / 1.65 Ink 90%;正文 15.5px / 1.7(最大宽度 62ch);眉题 Source Sans 700 12px 大写 字间距 0.14em Slate;说明文字 13px Slate。按钮:高度 50px,Source Sans 700 14px。主按钮:Teal 填充,Card 文本。新患者 CTA:Coral 填充,Card 文本。次要按钮:1px Teal 边框,Teal 文本。输入框:高度 50px,1px Rule 边框,Card 填充,焦点 Teal 边框。全局焦点环:2px Teal 轮廓,偏移 3px。
- 圆角:卡片、按钮、输入框、标签和照片 14px。仅药丸、开放圆点和旅程圆点使用 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) 开始,在 15% 可见时(Motion whileInView,viewport once)以 700ms --ease-out 稳定下来。同级元素错开 70ms。
- 动效:Hero:房间照片在 2000ms 内从 1.04 缩放到 1.0;H1 上升;一个小旅程圆点(coral)脉冲一次。
- 动效:病症卡片:悬停上浮 3px,图标槽填充 Teal Mist。
- 动效:方法:三个步骤卡片的连接线随区块滚动从左到右绘制;数字依次弹出。
- 动效:治疗师卡片:肖像悬停时缩放 1.03;专长药丸交叉淡入到一句话简介。
- 动效:保险行:接受网络的刻度以 60ms 错开进入。
- 动效:接诊:病史复选框以绘制的勾选标记打勾;无效提交抖动 4px 一次,并显示友好的内联标签;发送切换为 Confirmed(300ms --ease-io),Good 勾选绘制,并显示 'See you soon, [NAME].' 以及回显的病症行。
- 动效:链接:.link-draw 在悬停和 focus-visible 时以 280ms 增长 1px currentColor 下划线。
- 动效:prefers-reduced-motion: reduce — 无缩放、绘制、弹出或错开显现;一切静止;颜色/边框悬停保留。在 index.css 中使用 CSS @media,并在组件中使用 Motion 的 useReducedMotion。
- 图像:明亮的真实摄影,全部六张为此模板以一致风格制作:柔和日光下的治疗室,浅色木材和柔和绿色,无手场景 — 无患者,无面孔。治疗师肖像是 AI 生成的虚构人物在工作(引导肩部拉伸、观察步态、演示弹力带练习)— 占位符,真实诊所可替换为自己员工的照片。无可读文字或标牌。每张照片使用 object-fit cover,object-position 在 Assets 下给出,14px 圆角,无阴影;White 上的照片获得 1px Rule 轮廓。说明文字使用 Source Sans 13px Slate。代码绘制:favicon、旅程圆点、刻度、标签和确认勾选。图标:仅 lucide-react,描边宽度 1.75。
## 页面与区块
### 首页(`index.html`)
1. **内容文件与文案规则** — 以下所有文案均按默认值编写([CLINIC] = Bridge Physical Therapy,[CITY] = Minneapolis, Minnesota,[FOCUS] = adults with stubborn joints,[SELF_PAY] = 95)。将每个字符串和数字放入 src/content.ts 并从中渲染;两个页面共用一个内容文件。如果任何变量值不同,请重写主视觉区、全部八个病症、步骤、治疗师、保险条目和常见问题,使其对新诊所而言具体且可信,同时保持相同的结构和数量(8 个病症、3 个步骤、3 位治疗师、4 行保险、4 个常见问题)。所有患者、治疗师和疗程均为虚构;结果保持体验性描述,并带有“(typical journey, sample)”标签。事实:地址 '88 Shepherd Lane, [CITY]' 为虚构;电话 (612) 555-0172;营业时间周一至周四 7:00–19:00,周五 7:00–15:00,周六 8:00–12:00(仅手法治疗),周日休息;自费 $[SELF_PAY]/次;与“most major plans — we check your card in five minutes and tell you before visit two”为网络内合作;病症(名称 · 通俗说明 · 疗程):'Necks & desk-backs' 'the monitor won, for now' 'most people feel freer turning their head within 3–4 visits (typical journey, sample)';'Shoulders' 'overhead, underpaid, over-40 — we get it' '6–8 weeks is the common arc for rotator-cuff irritation (typical journey, sample)';'Knees' 'stairs, squats and the kneecap''s opinions' 'many return to stairs comfortably in 4–6 visits (typical journey, sample)';'Hips & backs' 'the pair that carries everything' 'most report easier mornings by week two or three (typical journey, sample)';'Post-op rehab' 'knee and shoulder replacements, protocols followed' 'we sync with your surgeon''s protocol from visit one';'Runners'' legs' 'shins, IT bands, plantar fascia' 'a return-to-run plan from week one, progressed with you';'Wrists & thumbs' 'keyboards, phones, guitars' '2–3 weeks of calm work is typical (typical journey, sample)';'Dizziness & balance' 'vestibular-friendly, unhurried' 'positional work often settles spells in 1–3 visits (typical journey, sample)'。步骤:1) 'Listen & measure' 'your story first, then the movement screen — noTreatment before we agree the problem';2) 'Treat & teach' 'hands-on when it helps, homework you''ll actually do, dosed like a prescription';3) 'Build the bridge' 'from the table to the trail, the gym, or the garden — your version of normal'。治疗师(肖像 · 姓名 · 专长 · 出诊日):'pt-dana.webp' 'Dana Whitfield, DPT (fictional)' 'necks, headache-adjacent, vestibular' 'Mon–Thu';'pt-marcus.webp' 'Marcus Oyelaran, DPT (fictional)' 'post-op knees, runners, kettlebells' 'Tue–Sat';'pt-lin.webp' 'Lin Zhao, DPT (fictional)' 'shoulders, hands-on craft, weekend golfers' 'Mon–Fri'。保险行:'In-network' 'most major PPOs — we verify before visit two' Good;'Self-pay' '$[SELF_PAY] a visit, no packages, homework included' Good;'Medicare' 'accepted, assignment taken — bring the card' Good;'Out-of-network?' 'we give superbills and honest odds — sometimes it''s cheaper self-pay' Good。常见问题:'Do I need a referral?' 'State rules allow direct access — most people start without one; we check yours specifically.';'Will it hurt?' 'The treatment shouldn''t; the homework might, mildly, on day two. We scale to your Yes-line.';'What do I wear?' 'Comfortable clothes you can move in; shorts for knees, a tank for shoulders. We have spares.';'How many visits?' 'Honest ranges on day one — many conditions run 4–8 visits (typical journey, sample), and we re-check the plan every visit.'
布局:不适用
动效:不适用
2. **页眉(所有页面)** — 左侧:字标 '[CLINIC]'(Nunito 700 18px),其下为 'Move better · [CITY]'(10px 大写 Slate),链接至 ./index.html。右侧导航(Source Sans 600 14px):'Conditions' → ./index.html#conditions,'Our approach' → ./index.html#approach,'Therapists' → ./index.html#therapists,'Insurance' → ./index.html#insurance;一个 Coral 色的 'New patient' → ./newpatient.html。低于 800px:字标 + 新患者按钮。
布局:顶部粘性定位,高度 72px,White/94% 模糊,Rule 边框。
3. **主视觉区** — 两栏。左侧:眉题 'PHYSICAL THERAPY · [CITY]';H1 'Stubborn joints,' / '*unstubborned.*' 导语(最大宽度 500px):'[CLINIC] helps [FOCUS] get back to stairs, gardens, gyms and golf — with a plan you understand from visit one and homework you''ll actually do.' 主按钮 'Start as a new patient' → ./newpatient.html,次按钮 'See the conditions' → #conditions;信任行:'Direct access — no referral needed for most';'Insurance verified before visit two';'Self-pay $[SELF_PAY], no packages'。右侧:room-treatment.webp(4:3),配文 'Room two — where the kneeling happens'。
布局:白色背景,顶部垂直内边距 104px;左侧 6 列,右侧 5 列偏移 1。
4. **病症** — 区块 id='conditions'。眉题 'WHAT WE SEE WEEKLY',H2 'EIGHT FAMILIAR STORIES.' 八个 ConditionCards(图标、名称、通俗说明、Coral 色的疗程说明):即上述名册。配文:'Journeys shown are typical (sample) — yours gets its own honest range on day one.'
布局:Slate Mist 背景。4x2 网格,间距 20px;卡片使用 Card Rule 边框;图标位于 44px Teal Mist 圆角方块中;疗程说明 13px Coral。低于 900px:2 列,低于 600px:1 列。
5. **方法与治疗师** — 区块 id='approach'。眉题 'HOW IT GOES',H2 'LISTEN. TREAT. BRIDGE.' 三个 StepCards,带连接线。区块 id='therapists'。眉题 'THE TEAM',H2 'THREE PTS, ZERO DRILLS.' TherapistCards:肖像(4:3,悬停缩放)、姓名、一句话专长、出诊日说明;下方注释:'You''ll see the same PT every visit — continuity is the treatment''s best-kept secret.'
布局:白色背景。步骤三列,带手绘连接线;治疗师三列,间距 24px;肖像悬停缩放,专长→一句话说明交叉淡入淡出。
6. **保险与页脚** — 区块 id='insurance'。眉题 'THE MONEY PART, ANSWERED',H2 'NO SURPRISES AT THE FRONT DESK.' InsRows 位于 Card 上,带 Good 勾选:即上述四行名册。旁边一张安静的照片:room-gym.webp 'Where the bridges get built'(4:3)。页脚(Teal Deep,bone 文字):字标 + 'Move better · [CITY]';'88 Shepherd Lane, [CITY]',(612) 555-0172 tel:,hello@ + emailDomain;营业时间区块;底部行 '© [CLINIC]. Journeys shown are typical (sample); your plan is written with you.'
布局:保险区使用 Slate Mist(行 6 列,照片 4 列偏移 1,低于 900px 时堆叠);页脚三部分行。
### 新患者(`newpatient.html`)
1. **刊头** — 实心页眉。眉题 'NEW PATIENTS',H1 'Let''s start with your story.' 导语:'Sixty seconds of forms, saved in this browser — the real clinic would send it ahead so your first visit is all assessment, no clipboard.'
布局:白色背景,顶部垂直内边距 136px + 48px,底部细线。
2. **接诊表单** — IntakeForm 位于 Card 上:ConditionSelect(八个病症 + 'Something else — we''ll figure it out');HistoryChecks(多选:'This started after an injury' / 'I''ve had imaging (MRI/X-ray)' / 'Surgery is on the table' / 'I''ve tried PT before');姓名 + 电话;主按钮 'Send my intake',配文 'Saved in this browser — nothing is sent here.' 确认后:Good 勾选图形,'See you soon, [NAME].' 'We''ll call to book your first hour — bring shorts and a question list.' 回显的病症;'Edit my intake' 返回预填状态。持久化于 localStorage。旁边 HoursBlock,带 OpenNowPill 和本周营业时间(今天高亮)。
布局:Slate Mist 背景;表单 7 列,营业时间 4 列偏移 1;低于 900px 时堆叠。
3. **到达方式** — 三行安静的信息,带图标:MapPin '88 Shepherd Lane — ground floor, no steps to the door';Car 'Free lot behind the building, and the meters on Shepherd forgive a session''s length';TrainFront 'Two blocks from the green line; a walk we''d count as a warm-up'。结尾行:'First visits take an hour. Bring the paperwork energy; we''ll bring the coffee.'
布局:白色背景;各行以细线分隔,最大宽度 720px;结尾行居中,下方 48px。
## 资源
- 图片:为本设计制作的模板照片(可随模板自由再分发)。用 curl -L -o 将每张图片下载到 public/images/:https://media.vibefather.ai/assets/a35d3b49-4f19-45ea-be6d-2a4e4d5ee899/room-treatment.webp → public/images/room-treatment.webp(Hero;object-position 50% 55%;alt 'A bright treatment room with a low table and resistance bands');https://media.vibefather.ai/assets/a35d3b49-4f19-45ea-be6d-2a4e4d5ee899/pt-dana.webp → public/images/pt-dana.webp(治疗师卡片 Dana;alt 'Dana guiding a shoulder stretch, a fictional physical therapist');https://media.vibefather.ai/assets/a35d3b49-4f19-45ea-be6d-2a4e4d5ee899/pt-marcus.webp → public/images/pt-marcus.webp(治疗师卡片 Marcus;alt 'Marcus watching a patient''s gait, a fictional physical therapist');https://media.vibefather.ai/assets/a35d3b49-4f19-45ea-be6d-2a4e4d5ee899/pt-lin.webp → public/images/pt-lin.webp(治疗师卡片 Lin;alt 'Lin demonstrating a band exercise, a fictional physical therapist');https://media.vibefather.ai/assets/a35d3b49-4f19-45ea-be6d-2a4e4d5ee899/room-gym.webp → public/images/room-gym.webp(保险侧;alt 'A rehab gym corner with racks, bands and a treadmill');https://media.vibefather.ai/assets/a35d3b49-4f19-45ea-be6d-2a4e4d5ee899/room-wait.webp → public/images/room-wait.webp(新患者侧小图;alt 'A calm waiting corner with two chairs and plants')。共六个文件。
- 图片:在项目根目录写入 ASSETS.md,包含一张表:path、source URL、author、license——每张照片一行(source 'media.vibefather.ai, made for this template',author 'VibeFather',license 'Distributed with the template'),另加 @fontsource/nunito 和 @fontsource-variable/source-sans-3(OFL-1.1)以及 lucide-react(ISC)的行。治疗师肖像为按肖像规则由 AI 生成的虚构人物;任何照片中均不出现患者。
- 图标:仅使用 lucide-react:Activity、Bone、Footprints、Dumbbell、PersonStanding、Keyboard、Waves、HeartPulse、Check、MapPin、Car、TrainFront。描边宽度 1.75,16–24px,颜色继承。旅程圆点、绘制的对勾、chip 和 favicon 为 SVG。public/favicon.svg:viewBox 0 0 32 32,一个 32x32 的 rect,rx 9,填充 #1F7A6D,一个 Card(#FFFFFF)桥形符号(一道柔和的拱形)。无其他 logo:诊所名称始终以文字排版呈现。
- 字体:安装 @fontsource/nunito 和 @fontsource-variable/source-sans-3,并按 Setup 中所述在 src/fonts.ts 中导入它们。Vite 会将 woff2 文件打包进 dist/。
- 图片:在代码中绘制:旅程圆点、绘制的对勾、步骤连接线、chip、favicon。除六张照片外无其他位图;无插画;无地图瓦片。
## 不要做
- 无后端、无表单提交、不向任何 API 发起 fetch:接诊信息仅保存在浏览器中(localStorage),并在页面上说明这一点;tel: 链接由电话号码数字构建。
- 每个内部链接都指向文件名(./index.html、./index.html#conditions、./index.html#approach、./index.html#therapists、./index.html#insurance、./newpatient.html)——绝不指向裸目录。
- 不使用诊断、治愈或保证结果的语言:病症以体验性方式描述,结果以带有(示例)标签的典型旅程来描述,文案说明个体化方案是与患者共同制定的。
- 一切自托管:字体通过 Fontsource,图标作为 npm 包或内联 SVG,图片下载到 public/images/。不使用 CDN <script> 或 <link> 标签,不使用 Google Fonts,不使用分析工具。
- 生产构建:压缩,无 source map,不将 src/ 复制到 dist/,单一命令 npm run build,输出在 dist/ 下,小于 10 MB。
- 不使用真实诊所、医院或保险公司(网络以通用方式描述,无保险公司标志);治疗师肖像为 AI 生成的虚构人物,非任何真实个人;任何照片中无患者或面部;无可读标识。
- 任何地方不出现日期或年份;网站从不显示今天的日期。
- 除可选的页脚署名链接外,网站内绝不提及 VibeFather 或任何其他品牌;所有文案为虚构的美式英语。
- 尊重 prefers-reduced-motion:无缩放、连接线绘制、弹出或交错显现;一切处于静止状态;颜色/边框悬停保留。
- 网站必须在 1440x900 桌面端和 390x844 移动端正常工作,控制台零错误;选择框、复选框和表单仅用键盘即可操作,并有可见的焦点环。
- 保持文案温暖平实:无 lorem,无 'holistic healing journey';每个病症、时段和费用都存放在 src/content.ts 中。
---
— Prompt by VibeFather · https://vibefather.ai/t/physical-therapy-clinic-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: "Physical Therapy Clinic Website"
colors:
white_page: "#FDFDFB"
slate_mist: "#EFF3F2"
card: "#FFFFFF"
teal: "#1F7A6D"
teal_deep: "#155F55"
teal_mist: "#E0F0ED"
ink: "#22302D"
slate: "#5C6B68"
coral: "#E2795B"
rule: "#DEE5E2"
good: "#2E8B62"
typography:
display_h1_h2_h3_condition_names_therapist_names_the_wordmark_nunito_rounded_and_friendly: { family: "Nunito", weights: [600, 700] }
text_and_ui_body_eyebrows_buttons_forms_captions_tabular_numerals_for_hours_and_prices: { family: "Source Sans 3", weights: [400, 600, 700] }
spacing: "8px base unit. Container max-width 1160px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. 12-column grid, column gap 24px. Section vertical padding 96px desktop, 72px under 1024px, 56px under 640px. Type scale: H1 clamp(40px, 6vw, 72px) Nunito 700, line-height 1.06; H2 clamp(28px, 3.8vw, 44px) Nunito 700; H3 20px Nunito 700; lead Source Sans 400 17.5px / 1.65 Ink at 90%; body 15.5px / 1.7 (max-width 62ch); eyebrow Source Sans 700 12px uppercase letter-spacing 0.14em Slate; caption 13px Slate. Buttons: height 50px, Source Sans 700 14px. Primary: Teal fill, Card text. New-patient CTA: Coral fill, Card text. Secondary: 1px Teal border, Teal text. Inputs: height 50px, 1px Rule border, Card fill, focus Teal border. Focus ring everywhere: 2px Teal outline with 3px offset."
radius: "14px on cards, buttons, inputs, chips and photos. 999px only for pills, the open dot and journey dots."
---
# Physical Therapy Clinic 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
- **White Page** `#FDFDFB` — Page background on both pages.
- **Slate Mist** `#EFF3F2` — Alternate section background (Conditions, Insurance), chips, hover fill.
- **Card** `#FFFFFF` — Condition cards, therapist cards, the intake panel, confirmation.
- **Teal** `#1F7A6D` — Primary: headlines' accents, primary buttons, selected chips, step numbers, focus ring.
- **Teal Deep** `#155F55` — Hover and pressed, footer background.
- **Teal Mist** `#E0F0ED` — Selected chip fills, icon wells, open dot glow.
- **Ink** `#22302D` — Headlines and body text, icon color.
- **Slate** `#5C6B68` — Secondary text, captions, eyebrows, closed states.
- **Coral** `#E2795B` — The one warm tick: the new-patient CTA, journey dots, sample-outcome labels, hover ticks.
- **Rule** `#DEE5E2` — 1px hairlines, card borders, input borders, dividers.
- **Good** `#2E8B62` — Confirmation checks, insurance-accepted ticks, open-now dot.
## Typography
- **Display: H1, H2, H3, condition names, therapist names, the wordmark — Nunito, rounded and friendly** — Nunito (OFL), weights 600/700. Self-host the font files.
- **Text and UI: body, eyebrows, buttons, forms, captions; tabular numerals for hours and prices** — Source Sans 3 (OFL), weights 400/600/700. Self-host the font files.
## Spacing & shape
- Spacing: 8px base unit. Container max-width 1160px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. 12-column grid, column gap 24px. Section vertical padding 96px desktop, 72px under 1024px, 56px under 640px. Type scale: H1 clamp(40px, 6vw, 72px) Nunito 700, line-height 1.06; H2 clamp(28px, 3.8vw, 44px) Nunito 700; H3 20px Nunito 700; lead Source Sans 400 17.5px / 1.65 Ink at 90%; body 15.5px / 1.7 (max-width 62ch); eyebrow Source Sans 700 12px uppercase letter-spacing 0.14em Slate; caption 13px Slate. Buttons: height 50px, Source Sans 700 14px. Primary: Teal fill, Card text. New-patient CTA: Coral fill, Card text. Secondary: 1px Teal border, Teal text. Inputs: height 50px, 1px Rule border, Card fill, focus Teal border. Focus ring everywhere: 2px Teal outline with 3px offset.
- Radius: 14px on cards, buttons, inputs, chips and photos. 999px only for pills, the open dot and journey dots.
## Motion
- Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1) for reveals; --ease-io cubic-bezier(0.65, 0, 0.35, 1) for the form swap and accordion. Gentle and steady.
- Reveal: blocks wrapped in <Reveal> start at opacity 0, translateY(12px) and settle over 700ms --ease-out when 15% visible (Motion whileInView, viewport once). Siblings stagger 70ms.
- Hero: the room photo scales 1.04→1.0 over 2000ms; the H1 rises; a small journey dot (coral) pulses once.
- Condition cards: hover lifts 3px and the icon well fills Teal Mist.
- Approach: the three step cards' connecting line draws left-to-right as the section scrolls; numbers pop sequentially.
- Therapist cards: portraits scale 1.03 on hover; the specialty pill crossfades to the one-liner.
- Insurance rows: the accepted-network ticks stagger in 60ms.
- Intake: history checkboxes tick with a drawn check; invalid submit shakes 4px once with kind inline labels; sending swaps to Confirmed (300ms --ease-io) with a Good check drawing and 'See you soon, [NAME].' plus the echoed condition line.
- Links: .link-draw grows a 1px currentColor underline over 280ms on hover and focus-visible.
- prefers-reduced-motion: reduce — no scales, draws, pops or staggered reveals; everything at rest; color/border hovers stay. Use CSS @media in index.css plus Motion's useReducedMotion in components.
## Imagery
Bright real photography, all six made for this template in one consistent style: treatment rooms in soft daylight, pale wood and gentle greens, hands-free scenes — no patients, no faces. Therapist portraits are AI-generated fictional people at work (guiding a shoulder stretch, watching gait, demonstrating a band exercise) — placeholders a real clinic swaps for its own staff photos. No readable text or signage. Every photo uses object-fit cover with the object-position given under Assets, 14px corners, no shadow; photos on White get a 1px Rule outline. Captions in Source Sans 13px Slate. Drawn in code: the favicon, journey dots, ticks, chips and the confirmation check. Icons: lucide-react only, stroke width 1.75.
## Tone
Encouraging and matter-of-fact, like a PT who's seen the same shoulder a thousand times. Plain words for anatomy, typical journeys for outcomes (sample-labeled), one joke about homework compliance.
---
— Prompt by VibeFather · https://vibefather.ai/t/physical-therapy-clinic-website · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 运动康复诊所:将 FOCUS 设为跑者和运动员,针对膝盖、脚踝和肩膀重写八种病症,并将新患者行动号召指向你的接诊表单。
- 术后康复机构:保留三步式治疗理念,将病症卡片替换为康复里程碑,并调整疗效说明以描述典型的治疗疗程。
- 上门或居家物理治疗服务:将 CITY 改为你的服务覆盖区域,重写到店说明为出行说明,并将 SELF_PAY 设为你的上门服务价格。
- 自费健康与灵活性工作室:将 FOCUS 设为久坐办公人群,将保险板块替换为简单的定价说明,并保留接诊表单用于首次预约。
物理治疗诊所网站:常见问题
物理治疗诊所网站模板包含哪些板块?
物理治疗诊所网站模板包含两个页面。首页在治疗室照片上呈现“动得更好”的承诺,用通俗语言列出八种常见病症,三步式治疗理念,三位治疗师的简介配 AI 生成的占位照片,一个涵盖合作网络和自费价格的保险板块,以及一段以典型疗程方式呈现的疗效说明。新患者页面包含接诊表单、带“现在营业”指示的营业时间和到店说明。
如何将 AI 治疗师照片替换为我自己的员工照片?
物理治疗诊所网站模板中的三位治疗师简介使用虚构人物的 AI 生成照片作为占位。将每个图片文件替换为你自己临床医生的真实照片,保持相同的文件名和宽高比,并在内容文件中更新姓名、资质和简短简介。请使用你有权发布的照片,因为默认照片并非真实员工。