用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
一个两页式的兽医诊所网站:首页包含温暖的动物摄影、醒目但沉稳的急诊横幅、用平实语言写成的六项服务、三位兽医的个人简介(配有 AI 生成的工作肖像,人物为虚构,用户可替换为自己员工的照片)、专业方向与医患沟通风格引言,以及四条常青护理贴士;到访页包含营业时间与当前营业状态指示、手绘迷你地图、详细的非营业时间指引,以及新患者表单(宠物名字、物种、年龄、就诊原因、主人联系方式),表单在客户端确认并保存在浏览器中。默认内容设定为阿什维尔一家虚构诊所,但结构适用于任何小型动物诊所:更改名称、城市、电话和创立年份后,每个部分依然读起来真实可信。整体视觉是友好的临床 calm 风格:暖白色搭配深青色主色和蜂蜜色点缀,Comfortaa 的圆润展示字体搭配 Albert Sans,卡片采用柔和圆角,爪印和爱心细节以 SVG 绘制。摄影展示动物和不露脸的诊所空间——没有人物面部——护理贴士保持常青,不包含医疗建议。要适配它,只需替换变量并在一个内容文件中重写文案;服务、兽医、贴士和营业时间都从该文件读取。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Veterinary 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 [BRAND], a small-animal veterinary clinic in [CITY], reachable at [PHONE] and open since [FOUNDED]. It must feel like a good clinic smells: calm, warm, competent. Home: hero with the promise, an emergency band that is impossible to miss and impossible to panic at, six services, three vet profiles, four evergreen care tips. Visit: hours with an open-now indicator, a drawn mini-map, out-of-hours detail and the new-patient form (client-side). Pages: index.html, visit.html. Everything runs in the browser; nothing is submitted anywhere.
- Audience: Pet owners within a short drive: families with dogs and cats, the occasional rabbit, first-time adopters panicking slightly. They want services, hours, an emergency number and a vet they can picture — in that order, quickly, usually on a phone.
- Goal: Book first visits and be the number saved for emergencies. Within ten seconds a visitor sees the care promise, the hours status and the emergency line.
- Tone: Warm, plain, unhurried — the receptionist everyone hopes for. Short sentences, no jargon without a translation, gentle humor about pets (never about owners).
## 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/comfortaa (OFL-1.1), @fontsource-variable/albert-sans (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 visit.html (entry src/main-visit.tsx).
- vite.config.ts: base './', plugins [react()], build { outDir 'dist', sourcemap false, assetsInlineLimit 0, rollupOptions { input { index: resolve(__dirname, 'index.html'), visit: resolve(__dirname, 'visit.html') } } }. Do not copy src/ into dist/.
- Tailwind 3.4 through PostCSS, content ['./index.html', './visit.html', './src/**/*.{ts,tsx}']. In tailwind.config.ts add every color under Design to theme.extend.colors with kebab-case keys (warm-white, mist, card, teal, teal-deep, teal-mist, ink, slate, honey, honey-deep, coral-alert, rule) and fontFamily display ['Comfortaa', 'Georgia', 'serif'], sans ['Albert Sans Variable', 'system-ui', 'sans-serif']. Set borderRadius DEFAULT to 16px and add maxWidth { container: '1160px' }.
- In src/fonts.ts import '@fontsource/comfortaa/500.css', '@fontsource/comfortaa/700.css' and '@fontsource-variable/albert-sans'; import src/fonts.ts and src/index.css from both entry files.
- File layout: src/content.ts (every string, service, vet, tip, hour, emergency line, form label and image path, typed), src/lib/brand.ts (brandSlug = [BRAND] lowercased with every run of non-alphanumeric characters replaced by '-', phoneDigits = [PHONE] digits only for tel:, emailDomain = brandSlug without hyphens + '.com'), src/lib/storage.ts (safe localStorage get/set wrapped in try/catch, keys prefixed with brandSlug + ':'), src/lib/useOpenNow.ts (open-now from the hours table and the client clock).
- State: src/store/patient.ts is a tiny external store (useSyncExternalStore) holding the form draft { petName, species, age, reason, ownerName, ownerPhone } and the submitted flag, persisted to localStorage key brandSlug + ':patient'. A saved registration renders a confirmation card; 'Start another' clears it.
- Components in src/components/: Header.tsx, MobileMenu.tsx, Reveal.tsx (Motion whileInView wrapper), Eyebrow.tsx, PawIcon.tsx (drawn SVG paw), Footer.tsx; home: Hero.tsx, EmergencyBand.tsx, Services.tsx (ServiceCard.tsx), Vets.tsx (VetCard.tsx), CareTips.tsx; visit: HoursCard.tsx (OpenNowPill.tsx), MiniMap.tsx (inline SVG), OutOfHours.tsx, PatientForm.tsx (SpeciesPicker.tsx, ConfirmationCard.tsx). src/pages/Home.tsx and Visit.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='#FDFBF7'>, <link rel='icon' href='./favicon.svg' type='image/svg+xml'>. Titles: index.html '<title>[BRAND] — Gentle care for [CITY]''s pets</title>', visit.html '<title>Visit us — [BRAND]</title>'. (Keep the apostrophe entity correct.)
- 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
- [BRAND] — Clinic name (default: "Pinebrook Animal Clinic"). Invented clinic name. Used in the wordmark, titles, footer, email (hello@ + brandSlug without hyphens + .com) and localStorage keys. Never a real clinic or franchise.
- [CITY] — City (default: "Asheville, North Carolina"). Where the clinic is. Used in the hero, the mini-map label, directions copy and the footer. Real cities are fine; the street stays invented.
- [PHONE] — Phone (default: "(828) 555-0143"). The main line, formatted with a 555 exchange. Used in the header, emergency band (main line), footer and tel: links. The out-of-hours line is a second invented number in content.ts.
- [FOUNDED] — Year opened (default: "2009"). Four-digit year. Drives the wordmark line 'Caring since [FOUNDED]', the story line and one vet's tenure.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/veterinary-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
- Warm White `#FDFBF7` — Page background on both pages.
- Mist `#F0EFE9` — Alternate section background (Services, Care tips), hover fill.
- Card `#FFFFFF` — Cards, the form panel, confirmation, hours card.
- Teal `#2C6E63` — Primary: headlines' accents, primary buttons, service icons, open-now dot, focus ring.
- Teal Deep `#1F5349` — Primary hover, footer background, emergency band text.
- Teal Mist `#E3EEEA` — Selected chips, vet avatar circles, service icon wells.
- Ink `#22302C` — Headlines and body text, icon color.
- Slate `#5E6B66` — Secondary text, captions, eyebrows, hours labels.
- Honey `#D9A441` — The warm accent: prices-free highlights, star moments, paw prints, care-tip icons, 'new patient' chip.
- Honey Deep `#B8862F` — Honey hover states, form focus ticks.
- Coral Alert `#C75146` — Emergency band only: the band border, phone figure and pulse dot — calm, sparing, never flashing.
- Rule `#E4E1D8` — 1px hairlines, card borders, input borders, map contour lines.
### Typography
- Display: H1, H2, H3, service and vet names, the wordmark, form headings: Comfortaa (OFL), weights 500/700
- Text and UI: body, eyebrows, buttons, forms, captions, hours (tabular numerals for times): Albert Sans (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 104px desktop, 80px under 1024px, 64px under 640px. Type scale: H1 clamp(42px, 6vw, 76px) Comfortaa 700, line-height 1.05; H2 clamp(30px, 4vw, 48px) Comfortaa 700; H3 22px Comfortaa 700; lead Albert Sans 400 18px / 1.7 Ink at 90%; body 16px / 1.7 (max-width 64ch); eyebrow Albert Sans 700 12px uppercase letter-spacing 0.16em Slate with a small drawn paw before it in Teal; caption 13px Slate. Buttons: height 52px, Albert Sans 700 15px. Primary: Teal fill, Card text. Secondary: 1px Teal border, Teal text. Emergency CTA: Coral Alert outline, Coral Alert text (never a fill — calm). Inputs: height 50px, 1px Rule border, Card fill, focus Teal border. Focus ring everywhere: 2px Teal outline with 3px offset.
- Radius: 16px on cards, buttons, inputs, chips, photos, the form panel. 999px only for pills, the open-now dot, vet initials and paw 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, unhurried — a waiting-room pace.
- Motion: Reveal: blocks wrapped in <Reveal> start at opacity 0, translateY(14px) and settle over 700ms --ease-out when 15% visible (Motion whileInView, viewport once). Siblings stagger 80ms.
- Motion: Hero photo: scales 1.05→1.0 over 2400ms on load; a drawn paw print trail (three small SVG paws) fades in along the hero's bottom edge, staggered 200ms (off under reduced motion).
- Motion: Emergency band: the pulse dot breathes (scale 1→1.2, 1800ms loop, off under reduced motion); the band itself is static — urgency without alarm.
- Motion: Service cards: hover lifts 3px and the icon well fills Teal Mist; the icon's stroke re-draws once per hover.
- Motion: Vet cards: hover lifts the avatar 2px and swaps the specialty line to the bedside quote (a 240ms crossfade).
- Motion: Form: species chips fill Teal Mist on select (150ms); invalid submit shakes 4px once with inline hints; submitting slides the panel to the ConfirmationCard (280ms --ease-io) with a drawn heart-plus-paw stamp scaling in; 'Start another' reverses.
- Motion: Hours: the open-now dot pulses only while open; the today-row carries a 2px Teal left rule that slides between days at midnight (crossfade).
- Motion: MiniMap: on view, the road lines draw (900ms), then the pin bobs in with one soft overshoot; the park block fills last.
- Motion: Links: .link-draw grows a 1px currentColor underline over 280ms on hover and focus-visible.
- Motion: prefers-reduced-motion: reduce — no pulses, draws, staggers or scales; color/border hovers stay. Use CSS @media in index.css plus Motion's useReducedMotion in components.
- Imagery: Warm real photography, all six made for this template in one consistent style: soft daylight, warm whites and wood with teal accents, animals relaxed, vet portraits are AI-generated fictional people shown at work with animal patients (consistent warm clinic light); they are placeholders a real clinic swaps for its own staff photos; all other photos stay animal-and-room only. Every photo uses object-fit cover with the object-position given under Assets, 16px corners, no shadow; photos on Warm White get a 1px Rule outline. Captions in Albert Sans 13px Slate. Drawn in code: the paw prints, service icons stay lucide, the heart-paw stamp, the mini-map, chips and the favicon. 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 ([BRAND] = Pinebrook Animal Clinic, [CITY] = Asheville, North Carolina, [PHONE] = (828) 555-0143, [FOUNDED] = 2009). 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, services, vets, tips, hours, emergency lines and form copy so they are specific and believable for the new clinic, keeping the same structure and counts (6 services, 3 vets, 4 tips, 5 emergency steps). All vets, staff and stories are invented. Facts: address '47 Fernbrook Lane, [CITY]'; hours Mon–Fri 8:00–18:00, Sat 9:00–14:00, Sun closed; out-of-hours line '(828) 555-0190' (invented); cats, dogs and small pets (rabbits, guinea pigs); three vets: Dr. Ana Reyes (cats and senior care), Dr. Owen Baptiste (dogs and surgery), Dr. Priya Nair (small pets and dentistry); new-patient visits 40 minutes; treats at the front desk, 'freeze-dried liver, the good stuff'. Vet portraits are AI-generated fictional people matching the default roster (not resembling any real individuals); alt stays 'A fictional veterinarian at work'.
Layout: n/a
Motion: n/a
2. **Header (all pages)** — Left: the wordmark — a drawn paw glyph in Teal + '[BRAND]' (Comfortaa 700 18px) over 'Caring since [FOUNDED] · [CITY]' (Albert Sans 600 10px uppercase letter-spacing 0.18em) — linking to ./index.html. Right nav (Albert Sans 600 14px): 'Services' → ./index.html#services, 'Our vets' → ./index.html#vets, 'Visit us' → ./visit.html, and a small Teal 'New patient' button → ./visit.html#register. Under 820px: hamburger opening a full-screen Mist menu (Comfortaa links 26px, the button pinned bottom).
Layout: Sticky top, height 76px, Warm White/92% blur with a Rule border. Mobile menu slides from the right.
3. **Hero** — Two columns. Left: eyebrow paw 'SMALL-ANIMAL CARE IN [CITY]'; H1 'They''re family.' / '*We treat them that way.*'; lead (max-width 520px): 'Cats, dogs and the small furry friends in between — seen gently, explained clearly, and sent home with a treat they didn''t earn but deserve. Independent and neighborhood-run since [FOUNDED].'; buttons: primary 'Book a first visit' → ./visit.html#register, secondary 'Call [PHONE]' (tel:). Trust row: three short items with drawn checks — '40-minute first visits'; 'Fear-free handling, treats first'; 'Same-day sick appointments'. Right: hero-clinic.webp (4:3, the clinic cat asleep on the reception counter) with the caption 'Buttercup, head of greetings'.
Layout: Warm White background, vertical padding 112px top. Left 6 cols, right 5 cols offset 1. Trust row as a hairline-topped row of three, 16px gaps.
4. **Emergency band** — A full-width band between hero and services: a 2px Coral Alert left border on Card, a breathing Coral Alert dot, 'Emergencies: don''t wait, don''t Google' (Comfortaa 700 20px), and the two lines: 'In hours: call [PHONE] — we hold space every day for emergencies.' / 'Out of hours: call (828) 555-0190 — the answering service pages the on-call vet.' Right side: a small link 'What counts as an emergency →' → ./visit.html#emergency. Calm typography, no red fills, nothing flashing.
Layout: Container-aligned band, 20px vertical padding, Card fill, 1px Rule border with the 2px Coral left rule; under 768px the link wraps below.
5. **Services** — Section id='services'. Eyebrow 'WHAT WE DO' and H2 'Six things, done gently.' Cards (icon, title Comfortaa 700 18px, two lines): 1) Stethoscope 'Wellness exams' — 'Nose-to-tail once a year, longer for seniors; you leave with a plan, not a pamphlet.' 2) Scissors 'Dentistry' — 'Cleanings, extractions and the breath conversation, handled kindly both ways.' 3) Syringe 'Surgery & recovery' — 'Routine to complex, with soft warm blankets and a call the moment they''re awake.' 4) Microscope 'Diagnostics in-house' — 'Bloodwork and x-rays on site — answers while you wait, not next week.' 5) HeartHandshake 'Senior care' — 'Comfort-first plans for gray muzzles: joints, kidneys, and quality of Tuesday.' 6) Plane 'Travel papers' — 'Health certificates for trips, minus the paperwork panic.'
Layout: Mist background. 3x2 grid 20px gap; cards on Card 1px Rule border 20px padding; icons 22px Teal in 44px Teal Mist rounded squares. Under 860px: 2 columns, under 640px: one.
6. **Our vets** — Section id='vets'. Eyebrow 'The vets' and H2 'Three people your pet will actually like.' Cards with AI-generated working portraits (4:3) — fictional veterinarians in the clinic's teal world: 1) vet-ana.webp, alt 'Dr. Reyes examining a tabby cat, a fictional veterinarian' — Dr. Ana Reyes — 'Cats · Senior care' — 'Twelve years of bribing cats into friendship; slow blinks preferred.' — quote '*"The exam starts in the carrier, not on the table."*' — 'Mon–Thu'. 2) vet-owen.webp, alt 'Dr. Baptiste with a golden retriever, a fictional veterinarian' — Dr. Owen Baptiste — 'Dogs · Surgery' — 'Ex-big-animal vet; still speaks fluent farm dog. Gentle hands, terrible dog jokes.' — '*"A wagging tail is vital data."*' — 'Tue–Fri'. 3) vet-priya.webp, alt 'Dr. Nair weighing a lop-eared rabbit, a fictional veterinarian' — Dr. Priya Nair — 'Small pets · Dentistry' — 'Rabbits, guinea pigs, and anyone whose teeth need diplomacy.' — '*"Small patients, small instruments, same respect."*' — 'Wed–Sat'.
Layout: Warm White background. Three columns 24px gap; Card with 24px padding: working portrait top (aspect 4:3, 16px radius), name Comfortaa 700 20px, specialty Albert Sans 700 12px uppercase Honey Deep, line 14.5px Slate, quote Comfortaa 500 italic 15px Ink, days caption.
7. **Care tips and CTA** — Eyebrow 'FOUR HABITS' and H2 'The boring stuff that adds years.' Tip cards (Honey icon, title, 2 lines): 1) Scale 'Weight is the whole game' — 'Most pets live longer lean; your vet can show you the ribs-to-rub test in ten seconds.' 2) Smile 'Teeth before trouble' — 'Dental pain hides; if chewing changes or breath changes, that''s the appointment to make.' 3) Puzzle 'A tired pet is a good pet' — 'Ten minutes of sniffing beats an hour of treadmill — brains need walks too.' 4) Car 'Practice the carrier' — 'Leave it out, feed in it, make it furniture; then it isn''t a trap on visit day.' CTA band on Teal Deep: 'First visits take forty minutes and end with a treat.' + primary-on-dark 'Register your pet' → ./visit.html#register + caption 'Or call [PHONE] — a human answers.'
Layout: Mist section with 2x2 tip grid (16px gap, Card tiles); CTA band full-width below, two columns, 72px padding.
8. **Footer (all pages)** — Teal Deep background, Card-toned text. Four columns: 1) paw wordmark + '[BRAND]' over 'Caring since [FOUNDED] · [CITY]'. 2) 'Find us': '47 Fernbrook Lane, [CITY]', [PHONE] tel:, hello@ + emailDomain. 3) 'Hours': Mon–Fri 8:00–18:00, Sat 9:00–14:00, Sun closed — 'Closed Sundays; emergencies page the on-call vet.' 4) 'Around': Services, Our vets, Visit us, New patient. Bottom line: '© [BRAND]. All patients, all treats.'
Layout: Vertical padding 72px, 4 columns, bottom line 40px below a Card/15% rule. Under 768px: two columns, then stacked.
### Visit (`visit.html`)
1. **Masthead** — Solid header. Eyebrow paw 'VISIT US', H1 'Where we are, when we''re in.', lead: 'Hours, directions, what to do at 2am, and the new-patient form — everything for a first visit on one page.'
Layout: Warm White background, vertical padding 136px top + 48px, bottom hairline. H1 max-width 720px.
2. **Hours and location** — Left: HoursCard (Card, 1px Rule) — OpenNowPill ('Open now · closes 6pm' / 'Closed · opens 8am Mon') and the table Mon–Fri 8:00–18:00 / Sat 9:00–14:00 / Sun Closed, today's row bold with the Teal left rule; caption 'Sick pets are seen same-day — call before noon when you can.' Right: MiniMap SVG — Fernbrook Lane as a curved Rule road with the Teal pin at the clinic, a park block in Teal Mist labeled 'Fernbrook Green', a small parking 'P' square, north arrow; caption '47 Fernbrook Lane · free parking behind the building · the treats jar is visible from the door.'
Layout: Two columns 5/6 offset 1, 24px gap; map SVG viewBox 0 0 640 480 width 100%. Under 900px: stacked.
3. **Emergency detail** — Section id='emergency'. Eyebrow 'AT 2AM, READ THIS' and H2 'When it can''t wait until morning.' Five steps on Card rows: 1) PhoneCall 'Call the out-of-hours line' — '(828) 555-0190 — the answering service pages the on-call vet, usually within ten minutes.' 2) MessageCircle 'Describe, don''t diagnose' — 'What happened, when, and what''s different now; the vet will ask the right questions.' 3) Thermometer 'Bring the obvious things' — 'Any medicine bottles, the food bag, and a favorite blanket — calm travels well.' 4) Car 'Drive like it''s raining, not flooding' — 'You are no help in a ditch; the ten minutes you save, spend on breathing.' 5) Heart 'When in doubt, call' — 'Better a false alarm at 2am than a real one at 8. We mean it.' A closing line: 'Poison concerns: keep the packaging and call — the vet will triage from there.'
Layout: Mist background. Rows on Card with hairline gaps, number circles in Coral Alert outline (no fills), 20px padding; container max-width 760px.
4. **New patient form** — Section id='register'. Eyebrow 'NEW PATIENTS' and H2 'Register your pet in two minutes.' Panel on Card: pet name input (placeholder 'Pet''s name'); SpeciesPicker chips — Cat / Dog / Rabbit / Guinea pig / Other (with an 'Other' free-text appearing when chosen); age input (placeholder 'Age (years, or ''about 4'')'); reason select (First check-up / Vaccines / Something minor / Something urgent / Second opinion); owner name + phone inputs; primary 'Save registration' with caption 'Saved in this browser — the real clinic page would send it to the front desk. Nothing is charged or sent here.' ConfirmationCard: a drawn heart-with-paw stamp scaling in, 'Registered!' (Comfortaa 26px), 'We can''t wait to meet [PETNAME].' summary lines (species · age · reason · owner), 'Bring: nothing but the pet (and any old paperwork if there is any).' and 'Start another' resetting the form. Persisted in localStorage.
Layout: Warm White background; panel max-width 640px, 28px padding, 1px Rule border, 16px radius; species chips 999px; steps swap 280ms --ease-io. Under 480px padding 20px.
5. **Photos and close** — A three-photo strip under the form: cat-window.webp 'Buttercup supervises the waiting room', dog-wait.webp 'Bailey, pre-treat, mid-wiggle', vet-owen.webp 'Dr. Baptiste and his favorite patient (sample)'. Captions 13px Slate. A closing line centered: 'See you and yours soon — the kettle''s on and the treats are out.'
Layout: Three equal columns 16px gap aspect 4:3, 16px radius; strip on Mist with 56px padding, closing line 40px 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/746cdbde-ca6e-4906-a7e2-24faa972b082/hero-clinic.webp → public/images/hero-clinic.webp (Home hero; object-position 50% 55%; alt 'A ginger cat asleep on a warm wooden reception counter'); https://media.vibefather.ai/assets/746cdbde-ca6e-4906-a7e2-24faa972b082/cat-window.webp → public/images/cat-window.webp (Visit strip; alt 'A tabby cat watching the waiting room from a window shelf'); https://media.vibefather.ai/assets/746cdbde-ca6e-4906-a7e2-24faa972b082/dog-wait.webp → public/images/dog-wait.webp (Visit strip; alt 'A golden retriever sitting expectantly on a waiting-room bench'); https://media.vibefather.ai/assets/746cdbde-ca6e-4906-a7e2-24faa972b082/vet-ana.webp → public/images/vet-ana.webp (Vet card Dr. Reyes; alt 'Dr. Reyes examining a tabby cat, a fictional veterinarian'); https://media.vibefather.ai/assets/746cdbde-ca6e-4906-a7e2-24faa972b082/vet-owen.webp → public/images/vet-owen.webp (Vet card Dr. Baptiste, Visit strip; alt 'Dr. Baptiste with a golden retriever, a fictional veterinarian'); https://media.vibefather.ai/assets/746cdbde-ca6e-4906-a7e2-24faa972b082/vet-priya.webp → public/images/vet-priya.webp (Vet card Dr. Nair; alt 'Dr. Nair weighing a lop-eared rabbit, a fictional veterinarian'). 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/comfortaa and @fontsource-variable/albert-sans (OFL-1.1) and lucide-react (ISC). Never replace photos with stock sites or images with people, faces or hands — animals and empty clinic spaces only.
- icon: lucide-react only: Stethoscope, Scissors, Syringe, Microscope, HeartHandshake, Plane, PhoneCall, MessageCircle, Thermometer, Car, Heart, Scale, Smile, Puzzle, Menu, X, Check, ArrowRight, MapPin, Clock. Stroke width 1.75, 16–24px, color inherits. The paw prints, the heart-paw stamp and the favicon are hand-drawn SVG. public/favicon.svg: viewBox 0 0 32 32, a 32x32 rect rx 9 filled #2C6E63, a Warm White paw glyph (one big pad circle plus three toe circles). No other logo: the clinic name is always set as type.
- font: Install @fontsource/comfortaa and @fontsource-variable/albert-sans and import them in src/fonts.ts as listed in Setup. Vite bundles the woff2 files into dist/.
- image: Drawn in code: the paw prints and eyebrow glyph, the heart-paw stamp, the mini-map (roads, pin, park), chips, the open-now dot 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 registration saves in the browser only (localStorage) and the form says so; tel: links are built from [PHONE].
- Every internal link points to a file name (./index.html, ./index.html#services, ./visit.html, ./visit.html#register, ./visit.html#emergency) — never to a bare directory.
- 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, vets, franchises or pets of real people; no photos with human faces or hands — animals and empty clinic spaces only; care tips stay evergreen with no medical advice or dosages.
- No dates or years anywhere except 'since [FOUNDED]'; 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 everywhere: no pulses, draws, staggers or scales; color/border hovers stay; the emergency band never flashes.
- The site must work at 1440x900 desktop and 390x844 mobile with zero console errors; the form, chips and accordion work with keyboard only, and every interactive element has a visible focus ring.
- Keep copy concrete: no lorem, no medical jargon without translation; every hour, service and tip lives in src/content.ts.
---
— Prompt by VibeFather · https://vibefather.ai/t/veterinary-clinic-website · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 兽医诊所网站
完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。
## 简介
为 [BRAND] 打造的两页网站,[BRAND] 是位于 [CITY] 的一家小动物兽医诊所,联系电话 [PHONE],自 [FOUNDED] 年起营业。它必须让人感觉像一家好诊所应有的气味:平静、温暖、专业。首页:带有承诺的主视觉区、一条让人不可能错过、也不可能引发恐慌的急诊信息带、六项服务、三位兽医简介、四条常青护理小贴士。到访页:营业时间及“当前营业”指示、手绘迷你地图、非营业时间详情以及新患者表单(客户端)。页面:index.html、visit.html。一切都在浏览器中运行;不会向任何地方提交数据。
- 受众:住在短途车程内的宠物主人:养狗和猫的家庭、偶尔养兔子的人、略带慌张的首次领养者。他们想要服务、营业时间、急诊电话和一位能想象出其样貌的兽医——按这个顺序,快速地,通常是在手机上。
- 目标:预约初诊,并成为紧急情况下被保存的号码。访客在十秒内看到护理承诺、营业状态和急诊电话。
- 语气:温暖、平实、不慌不忙——大家希望遇到的那位前台接待员。短句,术语必附解释,对宠物有温和的幽默(绝不针对主人)。
## 技术栈
- 框架: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/comfortaa(OFL-1.1)、@fontsource-variable/albert-sans(OFL-1.1)
- 构建:`npm run build` → 静态文件输出到 `dist/`。无后端、无服务端代码、无外部 API。
- 初始化设置:
- 使用 npm create vite@latest 并选择 react-ts 模板搭建项目。项目根目录下有两个真实的 HTML 页面:index.html(入口 src/main-home.tsx)和 visit.html(入口 src/main-visit.tsx)。
- vite.config.ts:base './',plugins [react()],build { outDir 'dist', sourcemap false, assetsInlineLimit 0, rollupOptions { input { index: resolve(__dirname, 'index.html'), visit: resolve(__dirname, 'visit.html') } } }。不要将 src/ 复制到 dist/ 中。
- 通过 PostCSS 使用 Tailwind 3.4,content 为 ['./index.html', './visit.html', './src/**/*.{ts,tsx}']。在 tailwind.config.ts 中,将 Design 下的所有颜色以 kebab-case 键名添加到 theme.extend.colors(warm-white、mist、card、teal、teal-deep、teal-mist、ink、slate、honey、honey-deep、coral-alert、rule),并设置 fontFamily display ['Comfortaa', 'Georgia', 'serif']、sans ['Albert Sans Variable', 'system-ui', 'sans-serif']。将 borderRadius 的 DEFAULT 设为 16px,并添加 maxWidth { container: '1160px' }。
- 在 src/fonts.ts 中导入 '@fontsource/comfortaa/500.css'、'@fontsource/comfortaa/700.css' 和 '@fontsource-variable/albert-sans';在两个入口文件中导入 src/fonts.ts 和 src/index.css。
- 文件布局:src/content.ts(所有字符串、服务、兽医、提示、营业时间、急诊电话、表单标签和图片路径,均带类型),src/lib/brand.ts(brandSlug = [BRAND] 转为小写并将每一段连续的非字母数字字符替换为 '-',phoneDigits = [PHONE] 仅保留数字用于 tel:,emailDomain = brandSlug 去掉连字符 + '.com'),src/lib/storage.ts(安全的 localStorage get/set,包裹在 try/catch 中,键名前缀为 brandSlug + ':'),src/lib/useOpenNow.ts(根据营业时间表和客户端时钟判断 open-now)。
- 状态:src/store/patient.ts 是一个小型外部 store(useSyncExternalStore),保存表单草稿 { petName, species, age, reason, ownerName, ownerPhone } 和 submitted 标志,持久化到 localStorage 键 brandSlug + ':patient'。已保存的登记会渲染确认卡片;'Start another' 会清除它。
- 组件位于 src/components/:Header.tsx、MobileMenu.tsx、Reveal.tsx(Motion whileInView 包装器)、Eyebrow.tsx、PawIcon.tsx(手绘 SVG 爪印)、Footer.tsx;首页:Hero.tsx、EmergencyBand.tsx、Services.tsx(ServiceCard.tsx)、Vets.tsx(VetCard.tsx)、CareTips.tsx;到访页:HoursCard.tsx(OpenNowPill.tsx)、MiniMap.tsx(内联 SVG)、OutOfHours.tsx、PatientForm.tsx(SpeciesPicker.tsx、ConfirmationCard.tsx)。src/pages/Home.tsx 和 Visit.tsx 组合它们;两个页面都渲染 Header 和 Footer。
- 首次构建前,使用 curl -L -o 并按照给定的确切文件名,将 Assets 下列出的每张图片下载到 public/images/ 中。构建本身从不获取任何内容。
- public/favicon.svg 如 Assets 所述。两个 HTML 文件:lang en,<meta name='theme-color' content='#FDFBF7'>,<link rel='icon' href='./favicon.svg' type='image/svg+xml'>。标题:index.html '<title>[BRAND] — Gentle care for [CITY]''s pets</title>',visit.html '<title>Visit us — [BRAND]</title>'。(保持撇号实体正确。)
- 在项目根目录下按 Assets 所述编写 ASSETS.md。
- dist/ 包含两个 HTML 文件、带哈希的 JS/CSS、woff2 字体、favicon.svg 和六张图片。保持在 10 MB 以下。
## 变量
- [BRAND] — 诊所名称(默认:"Pinebrook Animal Clinic")。虚构的诊所名称。用于字标、标题、页脚、电子邮件(hello@ + 不含连字符的 brandSlug + .com)以及 localStorage 键。绝不是真实诊所或连锁品牌。
- [CITY] — 城市(默认:"Asheville, North Carolina")。诊所所在地。用于主视觉区、迷你地图标签、路线指引文案和页脚。真实城市可以;街道保持虚构。
- [PHONE] — 电话(默认:"(828) 555-0143")。主线路,使用 555 交换号格式。用于页眉、紧急联系条(主线路)、页脚和 tel: 链接。非工作时间线路是 content.ts 中的第二个虚构号码。
- [FOUNDED] — 开业年份(默认:"2009")。四位数字年份。驱动字标行 'Caring since [FOUNDED]'、故事文案行和一位兽医的任职年限。
- [CREDIT] — 在页脚保留一个小型 "Template by VibeFather" 链接,指向 https://vibefather.ai/t/veterinary-clinic-website(默认:是;删除此行即可移除)
Pages & Sections 下的文案是按默认值编写的。如果你的值不同,请为它们重写每个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便之后无需改动组件即可替换内容。
## 设计
### 颜色
- 暖白(Warm White)`#FDFBF7` — 两个页面的页面背景。
- 薄雾(Mist)`#F0EFE9` — 交替区块背景(服务、护理小贴士)、悬停填充。
- 卡片(Card)`#FFFFFF` — 卡片、表单面板、确认信息、营业时间卡片。
- 青绿(Teal)`#2C6E63` — 主色:标题强调、主按钮、服务图标、营业中圆点、焦点环。
- 深青绿(Teal Deep)`#1F5349` — 主色悬停、页脚背景、紧急提示条文字。
- 青绿薄雾(Teal Mist)`#E3EEEA` — 选中标签、兽医头像圆圈、服务图标底槽。
- 墨色(Ink)`#22302C` — 标题和正文文字、图标颜色。
- 石板灰(Slate)`#5E6B66` — 次要文字、说明文字、眉题、营业时间标签。
- 蜂蜜色(Honey)`#D9A441` — 暖色强调:免费价格高亮、星级时刻、爪印、护理小贴士图标、“新患者”标签。
- 深蜂蜜色(Honey Deep)`#B8862F` — 蜂蜜色悬停状态、表单焦点刻度。
- 珊瑚警示(Coral Alert)`#C75146` — 仅用于紧急提示条:提示条边框、电话图标和脉冲圆点 — 平静、克制、绝不闪烁。
- 分隔线(Rule)`#E4E1D8` — 1px 细线、卡片边框、输入框边框、地图等高线。
### 字体排印
- 展示字体:H1、H2、H3、服务和兽医名称、字标、表单标题:Comfortaa (OFL),字重 500/700
- 文本和界面:正文、眉题、按钮、表单、说明文字、营业时间(时间使用等宽数字):Albert Sans (OFL),字重 400/600/700
### 布局与动效
- 间距:8px 基础单位。容器最大宽度 1160px,居中,侧边内边距桌面端 48px,平板端 32px,640px 以下 20px。12 列网格,列间距 24px。区块垂直内边距桌面端 104px,1024px 以下 80px,640px 以下 64px。字号比例:H1 clamp(42px, 6vw, 76px) Comfortaa 700,行高 1.05;H2 clamp(30px, 4vw, 48px) Comfortaa 700;H3 22px Comfortaa 700;导语 Albert Sans 400 18px / 1.7 Ink 90%;正文 16px / 1.7(最大宽度 64ch);眉题 Albert Sans 700 12px 大写 字间距 0.16em Slate,前面有一个小的手绘爪印,颜色为 Teal;说明文字 13px Slate。按钮:高度 52px,Albert Sans 700 15px。主按钮:Teal 填充,Card 文字。次按钮:1px Teal 边框,Teal 文字。紧急 CTA:Coral Alert 轮廓,Coral Alert 文字(绝不填充 — 保持平静)。输入框:高度 50px,1px Rule 边框,Card 填充,焦点时 Teal 边框。全局焦点环:2px Teal 轮廓,偏移 3px。
- 圆角:卡片、按钮、输入框、标签、照片、表单面板为 16px。仅胶囊、营业中圆点、兽医首字母和爪印圆点为 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(14px) 开始,在 15% 可见时(Motion whileInView,viewport once)以 700ms --ease-out 稳定下来。同级元素错开 80ms。
- 动效:主视觉照片:加载时在 2400ms 内从 1.05→1.0 缩放;一条手绘爪印轨迹(三个小 SVG 爪印)沿主视觉底部边缘淡入,错开 200ms(在减少动效下关闭)。
- 动效:紧急提示条:脉冲圆点呼吸(scale 1→1.2,1800ms 循环,在减少动效下关闭);提示条本身是静态的 — 紧迫但不惊慌。
- 动效:服务卡片:悬停上浮 3px,图标底槽填充 Teal Mist;图标的描边每次悬停重绘一次。
- 动效:兽医卡片:悬停时头像上浮 2px,并将专长行切换为床边引言(240ms 交叉淡入淡出)。
- 动效:表单:物种标签选中时填充 Teal Mist(150ms);无效提交抖动 4px 一次并显示内联提示;提交时面板滑向 ConfirmationCard(280ms --ease-io),同时一个手绘的心形爪印印章缩放进入;“开始另一个”反向执行。
- 动效:营业时间:营业中圆点仅在营业时脉冲;今日行带有 2px Teal 左边线,在午夜时在日期之间滑动(交叉淡入淡出)。
- 动效:MiniMap:进入视图时,道路线绘制(900ms),然后图钉带着一次柔和的过冲弹入;公园区块最后填充。
- 动效:链接:.link-draw 在悬停和 focus-visible 时于 280ms 内生长出 1px currentColor 下划线。
- 动效:prefers-reduced-motion: reduce — 无脉冲、绘制、错开或缩放;颜色/边框悬停保留。在 index.css 中使用 CSS @media,并在组件中使用 Motion 的 useReducedMotion。
- 图像:温暖的真实摄影,全部六张为本模板以一致风格制作:柔和日光、暖白和木色配青绿点缀、动物放松,兽医肖像为 AI 生成的虚构人物,展示与动物患者一起工作的场景(一致的温暖诊所光线);它们是占位符,真实诊所会替换为自己的员工照片;所有其他照片仅限动物和房间。每张照片使用 object-fit cover,object-position 见资源部分,16px 圆角,无阴影;暖白背景上的照片获得 1px Rule 轮廓。说明文字为 Albert Sans 13px Slate。代码绘制:爪印、服务图标保持 lucide、心形爪印印章、迷你地图、标签和 favicon。图标:仅 lucide-react,描边宽度 1.75。
## 页面与区块
### 首页(`index.html`)
1. **内容文件与文案规则** — 以下所有文案均按默认值编写([BRAND] = Pinebrook Animal Clinic,[CITY] = Asheville, North Carolina,[PHONE] = (828) 555-0143,[FOUNDED] = 2009)。将每个字符串和数字放入 src/content.ts 并从中渲染;两个页面共用一个内容文件。如果任何变量值不同,请重写 hero、services、vets、tips、hours、emergency 文案和表单文案,使其对新诊所具体且可信,同时保持相同的结构和数量(6 项服务、3 位兽医、4 条建议、5 个紧急步骤)。所有兽医、员工和故事均为虚构。事实:地址 '47 Fernbrook Lane, [CITY]';营业时间 Mon–Fri 8:00–18:00, Sat 9:00–14:00, Sun closed;非工作时间电话 '(828) 555-0190'(虚构);猫、狗和小型宠物(兔子、豚鼠);三位兽医:Dr. Ana Reyes(猫和老年护理)、Dr. Owen Baptiste(狗和手术)、Dr. Priya Nair(小型宠物和牙科);新患者就诊 40 分钟;前台提供零食,'freeze-dried liver, the good stuff'。兽医肖像为 AI 生成的虚构人物,与默认名单匹配(不 resemblance 任何真实个人);alt 保持 'A fictional veterinarian at work'。
布局:不适用
动效:不适用
2. **页眉(所有页面)** — 左侧:文字标识——一个绘制的爪形符号,Teal 色 + '[BRAND]'(Comfortaa 700 18px),下方为 'Caring since [FOUNDED] · [CITY]'(Albert Sans 600 10px 大写 字间距 0.18em)——链接到 ./index.html。右侧导航(Albert Sans 600 14px):'Services' → ./index.html#services,'Our vets' → ./index.html#vets,'Visit us' → ./visit.html,以及一个小的 Teal 色 'New patient' 按钮 → ./visit.html#register。低于 820px:汉堡菜单打开全屏 Mist 菜单(Comfortaa 链接 26px,按钮固定在底部)。
布局:粘性顶部,高度 76px,Warm White/92% 模糊,带 Rule 边框。移动菜单从右侧滑入。
3. **Hero** — 两列。左侧:眉题爪形 'SMALL-ANIMAL CARE IN [CITY]';H1 'They''re family.' / '*We treat them that way.*';导语(最大宽度 520px):'Cats, dogs and the small furry friends in between — seen gently, explained clearly, and sent home with a treat they didn''t earn but deserve. Independent and neighborhood-run since [FOUNDED].';按钮:主按钮 'Book a first visit' → ./visit.html#register,次按钮 'Call [PHONE]'(tel:)。信任行:三个短项,带绘制的对勾——'40-minute first visits';'Fear-free handling, treats first';'Same-day sick appointments'。右侧:hero-clinic.webp(4:3,诊所的猫在接待台上睡觉),配文 'Buttercup, head of greetings'。
布局:Warm White 背景,垂直内边距顶部 112px。左侧 6 列,右侧 5 列偏移 1。信任行作为一条细线顶部的三行,16px 间距。
4. **紧急横幅** — hero 和 services 之间的全宽横幅:Card 上 2px Coral Alert 左边框,一个呼吸的 Coral Alert 圆点,'Emergencies: don''t wait, don''t Google'(Comfortaa 700 20px),以及两行:'In hours: call [PHONE] — we hold space every day for emergencies.' / 'Out of hours: call (828) 555-0190 — the answering service pages the on-call vet.' 右侧:一个小链接 'What counts as an emergency →' → ./visit.html#emergency。平静的排版,无红色填充,无闪烁。
布局:容器对齐的横幅,20px 垂直内边距,Card 填充,1px Rule 边框带 2px Coral 左边线;低于 768px 时链接换行到下方。
5. **服务** — 区块 id='services'。眉题 'WHAT WE DO' 和 H2 'Six things, done gently.' 卡片(图标,标题 Comfortaa 700 18px,两行):1)Stethoscope 'Wellness exams' — 'Nose-to-tail once a year, longer for seniors; you leave with a plan, not a pamphlet.' 2)Scissors 'Dentistry' — 'Cleanings, extractions and the breath conversation, handled kindly both ways.' 3)Syringe 'Surgery & recovery' — 'Routine to complex, with soft warm blankets and a call the moment they''re awake.' 4)Microscope 'Diagnostics in-house' — 'Bloodwork and x-rays on site — answers while you wait, not next week.' 5)HeartHandshake 'Senior care' — 'Comfort-first plans for gray muzzles: joints, kidneys, and quality of Tuesday.' 6)Plane 'Travel papers' — 'Health certificates for trips, minus the paperwork panic.'
布局:Mist 背景。3x2 网格 20px 间距;卡片在 Card 上 1px Rule 边框 20px 内边距;图标 22px Teal 在 44px Teal Mist 圆角方块中。低于 860px:2 列,低于 640px:一列。
6. **我们的兽医** — 区块 id='vets'。眉题 'The vets' 和 H2 'Three people your pet will actually like.' 卡片带 AI 生成的工作肖像(4:3)——诊所 teal 世界中的虚构兽医:1)vet-ana.webp,alt 'Dr. Reyes examining a tabby cat, a fictional veterinarian' — Dr. Ana Reyes — 'Cats · Senior care' — 'Twelve years of bribing cats into friendship; slow blinks preferred.' — 引语 '*"The exam starts in the carrier, not on the table."*' — 'Mon–Thu'。2)vet-owen.webp,alt 'Dr. Baptiste with a golden retriever, a fictional veterinarian' — Dr. Owen Baptiste — 'Dogs · Surgery' — 'Ex-big-animal vet; still speaks fluent farm dog. Gentle hands, terrible dog jokes.' — '*"A wagging tail is vital data."*' — 'Tue–Fri'。3)vet-priya.webp,alt 'Dr. Nair weighing a lop-eared rabbit, a fictional veterinarian' — Dr. Priya Nair — 'Small pets · Dentistry' — 'Rabbits, guinea pigs, and anyone whose teeth need diplomacy.' — '*"Small patients, small instruments, same respect."*' — 'Wed–Sat'。
布局:Warm White 背景。三列 24px 间距;Card 带 24px 内边距:工作肖像顶部(宽高比 4:3,16px 圆角),姓名 Comfortaa 700 20px,专长 Albert Sans 700 12px 大写 Honey Deep,行 14.5px Slate,引语 Comfortaa 500 斜体 15px Ink,天数说明。
7. **护理建议和 CTA** — 眉题 'FOUR HABITS' 和 H2 'The boring stuff that adds years.' 建议卡片(Honey 图标,标题,2 行):1)Scale 'Weight is the whole game' — 'Most pets live longer lean; your vet can show you the ribs-to-rub test in ten seconds.' 2)Smile 'Teeth before trouble' — 'Dental pain hides; if chewing changes or breath changes, that''s the appointment to make.' 3)Puzzle 'A tired pet is a good pet' — 'Ten minutes of sniffing beats an hour of treadmill — brains need walks too.' 4)Car 'Practice the carrier' — 'Leave it out, feed in it, make it furniture; then it isn''t a trap on visit day.' CTA 横幅在 Teal Deep 上:'First visits take forty minutes and end with a treat.' + primary-on-dark 'Register your pet' → ./visit.html#register + 说明 'Or call [PHONE] — a human answers.'
布局:Mist 区块带 2x2 建议网格(16px 间距,Card 瓷砖);CTA 横幅全宽在下方,两列,72px 内边距。
8. **页脚(所有页面)** — Teal Deep 背景,Card 色调文字。四列:1)爪形文字标识 + '[BRAND]' 在 'Caring since [FOUNDED] · [CITY]' 上方。2)'Find us':'47 Fernbrook Lane, [CITY]',[PHONE] tel:,hello@ + emailDomain。3)'Hours':Mon–Fri 8:00–18:00, Sat 9:00–14:00, Sun closed — 'Closed Sundays; emergencies page the on-call vet.' 4)'Around':Services, Our vets, Visit us, New patient。底部行:'© [BRAND]. All patients, all treats.'
布局:垂直内边距 72px,4 列,底部行在 Card/15% 规则下方 40px。低于 768px:两列,然后堆叠。
### 到访(`visit.html`)
1. **页头(Masthead)** — 实心页头。眉题爪印 'VISIT US',H1 'Where we are, when we''re in.',导语:'Hours, directions, what to do at 2am, and the new-patient form — everything for a first visit on one page.'
布局:暖白(Warm White)背景,垂直内边距顶部 136px + 48px,底部细线。H1 最大宽度 720px。
2. **营业时间与位置** — 左侧:HoursCard(卡片,1px 分隔线)— OpenNowPill('Open now · closes 6pm' / 'Closed · opens 8am Mon')以及表格 周一至周五 8:00–18:00 / 周六 9:00–14:00 / 周日 休息,今天的行加粗并带青绿(Teal)左侧线;说明文字 'Sick pets are seen same-day — call before noon when you can.' 右侧:MiniMap SVG — Fernbrook Lane 作为一条弯曲的分隔线道路,诊所处有青绿(Teal)图钉,青绿雾(Teal Mist)色的公园区块标注为 'Fernbrook Green',一个小型停车 'P' 方块,指北针;说明文字 '47 Fernbrook Lane · free parking behind the building · the treats jar is visible from the door.'
布局:两列 5/6 偏移 1,24px 间距;地图 SVG viewBox 0 0 640 480 宽度 100%。低于 900px:堆叠。
3. **紧急情况详情** — 区块 id='emergency'。眉题 'AT 2AM, READ THIS' 和 H2 'When it can''t wait until morning.' 卡片行上的五个步骤:1) PhoneCall 'Call the out-of-hours line' — '(828) 555-0190 — the answering service pages the on-call vet, usually within ten minutes.' 2) MessageCircle 'Describe, don''t diagnose' — 'What happened, when, and what''s different now; the vet will ask the right questions.' 3) Thermometer 'Bring the obvious things' — 'Any medicine bottles, the food bag, and a favorite blanket — calm travels well.' 4) Car 'Drive like it''s raining, not flooding' — 'You are no help in a ditch; the ten minutes you save, spend on breathing.' 5) Heart 'When in doubt, call' — 'Better a false alarm at 2am than a real one at 8. We mean it.' 结尾一句:'Poison concerns: keep the packaging and call — the vet will triage from there.'
布局:雾(Mist)背景。行位于卡片上,带细线间隙,数字圆圈为珊瑚警报(Coral Alert)描边(无填充),20px 内边距;容器最大宽度 760px。
4. **新患者表单** — 区块 id='register'。眉题 'NEW PATIENTS' 和 H2 'Register your pet in two minutes.' 卡片上的面板:宠物名字输入框(占位符 'Pet''s name');SpeciesPicker 选项标签 — Cat / Dog / Rabbit / Guinea pig / Other(选择 'Other' 时出现一个 'Other' 自由文本输入);年龄输入框(占位符 'Age (years, or ''about 4'')');原因选择(First check-up / Vaccines / Something minor / Something urgent / Second opinion);主人姓名 + 电话输入框;主按钮 'Save registration',说明文字 'Saved in this browser — the real clinic page would send it to the front desk. Nothing is charged or sent here.' ConfirmationCard:一个手绘的心形带爪印印章缩放进入,'Registered!'(Comfortaa 26px),'We can''t wait to meet [PETNAME].' 摘要行(物种 · 年龄 · 原因 · 主人),'Bring: nothing but the pet (and any old paperwork if there is any).' 以及 'Start another' 重置表单。持久化在 localStorage 中。
布局:暖白(Warm White)背景;面板最大宽度 640px,28px 内边距,1px 分隔线边框,16px 圆角;物种选项标签 999px;步骤切换 280ms --ease-io。低于 480px 内边距 20px。
5. **照片与结尾** — 表单下方的一条三张照片横条:cat-window.webp 'Buttercup supervises the waiting room',dog-wait.webp 'Bailey, pre-treat, mid-wiggle',vet-owen.webp 'Dr. Baptiste and his favorite patient (sample)'。说明文字 13px 石板灰(Slate)。居中结尾一句:'See you and yours soon — the kettle''s on and the treats are out.'
布局:三个等宽列 16px 间距,宽高比 4:3,16px 圆角;横条位于雾(Mist)背景上,56px 内边距,结尾句在其下方 40px。
## 资源
- 图片:为本设计制作的模板照片(可随模板自由再分发)。用 curl -L -o 将每张图片下载到 public/images/:https://media.vibefather.ai/assets/746cdbde-ca6e-4906-a7e2-24faa972b082/hero-clinic.webp → public/images/hero-clinic.webp(首页主视觉;object-position 50% 55%;alt 'A ginger cat asleep on a warm wooden reception counter');https://media.vibefather.ai/assets/746cdbde-ca6e-4906-a7e2-24faa972b082/cat-window.webp → public/images/cat-window.webp(到访条带;alt 'A tabby cat watching the waiting room from a window shelf');https://media.vibefather.ai/assets/746cdbde-ca6e-4906-a7e2-24faa972b082/dog-wait.webp → public/images/dog-wait.webp(到访条带;alt 'A golden retriever sitting expectantly on a waiting-room bench');https://media.vibefather.ai/assets/746cdbde-ca6e-4906-a7e2-24faa972b082/vet-ana.webp → public/images/vet-ana.webp(兽医卡片 Dr. Reyes;alt 'Dr. Reyes examining a tabby cat, a fictional veterinarian');https://media.vibefather.ai/assets/746cdbde-ca6e-4906-a7e2-24faa972b082/vet-owen.webp → public/images/vet-owen.webp(兽医卡片 Dr. Baptiste,到访条带;alt 'Dr. Baptiste with a golden retriever, a fictional veterinarian');https://media.vibefather.ai/assets/746cdbde-ca6e-4906-a7e2-24faa972b082/vet-priya.webp → public/images/vet-priya.webp(兽医卡片 Dr. Nair;alt 'Dr. Nair weighing a lop-eared rabbit, a fictional veterinarian')。共六个文件。
- 图片:在项目根目录写入 ASSETS.md,包含一张表格:路径、来源 URL、作者、许可证——每张照片一行(来源 'media.vibefather.ai, made for this template',作者 'VibeFather',许可证 'Distributed with the template'),另加 @fontsource/comfortaa 和 @fontsource-variable/albert-sans(OFL-1.1)以及 lucide-react(ISC)的行。绝不用图库网站或含人物、面孔或手的图片替换照片——仅限动物和空诊所空间。
- 图标:仅使用 lucide-react:Stethoscope、Scissors、Syringe、Microscope、HeartHandshake、Plane、PhoneCall、MessageCircle、Thermometer、Car、Heart、Scale、Smile、Puzzle、Menu、X、Check、ArrowRight、MapPin、Clock。描边宽度 1.75,16–24px,颜色继承。爪印、心形爪印印章和 favicon 为手绘 SVG。public/favicon.svg:viewBox 0 0 32 32,一个 32x32 的 rect rx 9 填充 #2C6E63,一个 Warm White(暖白)爪形图案(一个大掌垫圆加三个趾圆)。无其他标志:诊所名称始终以文字排版呈现。
- 字体:安装 @fontsource/comfortaa 和 @fontsource-variable/albert-sans,并按 Setup 中所述在 src/fonts.ts 中导入它们。Vite 会将 woff2 文件打包进 dist/。
- 图片:在代码中绘制:爪印和眉题字形、心形爪印印章、迷你地图(道路、图钉、公园)、标签、营业中圆点和 favicon。除六张照片外无其他位图;无插图;无地图瓦片。
## 不要做
- 无后端、无表单提交、不向任何 API 发起 fetch:注册信息仅保存在浏览器中(localStorage),表单上要说明这一点;tel: 链接由 [PHONE] 构建。
- 每个内部链接都指向文件名(./index.html、./index.html#services、./visit.html、./visit.html#register、./visit.html#emergency)——绝不指向裸目录。
- 一切自托管:字体通过 Fontsource,图标用 npm 包或内联 SVG,图片下载到 public/images/。不使用 CDN 的 <script> 或 <link> 标签,不使用 Google Fonts,不使用分析工具。
- 生产构建:压缩、无 source map、不把 src/ 复制进 dist/、单条命令 npm run build、输出在 dist/ 下且小于 10 MB。
- 不使用真实诊所、兽医、连锁店或真人的宠物;不使用含人脸或人手的照片——只出现动物和空诊所空间;护理提示保持常青,不含医疗建议或剂量。
- 除 'since [FOUNDED]' 外,任何地方都不出现日期或年份;网站永不显示当天日期。
- 除可选的页脚署名链接外,网站内绝不提及 VibeFather 或任何其他品牌;所有文案均为虚构的美式英语。
- 处处尊重 prefers-reduced-motion:无脉冲、描画、交错或缩放;颜色/边框悬停保留;紧急横幅绝不闪烁。
- 网站必须在 1440x900 桌面端和 390x844 移动端正常工作且控制台零错误;表单、chips 和手风琴仅用键盘即可操作,每个交互元素都有可见的焦点环。
- 文案保持具体:不用 lorem,不用未加解释的医学术语;每个营业时间、服务和提示都放在 src/content.ts 中。
---
— Prompt by VibeFather · https://vibefather.ai/t/veterinary-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: "Veterinary Clinic Website"
colors:
warm_white: "#FDFBF7"
mist: "#F0EFE9"
card: "#FFFFFF"
teal: "#2C6E63"
teal_deep: "#1F5349"
teal_mist: "#E3EEEA"
ink: "#22302C"
slate: "#5E6B66"
honey: "#D9A441"
honey_deep: "#B8862F"
coral_alert: "#C75146"
rule: "#E4E1D8"
typography:
display_h1_h2_h3_service_and_vet_names_the_wordmark_form_headings: { family: "Comfortaa", weights: [500, 700] }
text_and_ui_body_eyebrows_buttons_forms_captions_hours_tabular_numerals_for_times: { family: "Albert Sans", 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 104px desktop, 80px under 1024px, 64px under 640px. Type scale: H1 clamp(42px, 6vw, 76px) Comfortaa 700, line-height 1.05; H2 clamp(30px, 4vw, 48px) Comfortaa 700; H3 22px Comfortaa 700; lead Albert Sans 400 18px / 1.7 Ink at 90%; body 16px / 1.7 (max-width 64ch); eyebrow Albert Sans 700 12px uppercase letter-spacing 0.16em Slate with a small drawn paw before it in Teal; caption 13px Slate. Buttons: height 52px, Albert Sans 700 15px. Primary: Teal fill, Card text. Secondary: 1px Teal border, Teal text. Emergency CTA: Coral Alert outline, Coral Alert text (never a fill — calm). Inputs: height 50px, 1px Rule border, Card fill, focus Teal border. Focus ring everywhere: 2px Teal outline with 3px offset."
radius: "16px on cards, buttons, inputs, chips, photos, the form panel. 999px only for pills, the open-now dot, vet initials and paw dots."
---
# Veterinary 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
- **Warm White** `#FDFBF7` — Page background on both pages.
- **Mist** `#F0EFE9` — Alternate section background (Services, Care tips), hover fill.
- **Card** `#FFFFFF` — Cards, the form panel, confirmation, hours card.
- **Teal** `#2C6E63` — Primary: headlines' accents, primary buttons, service icons, open-now dot, focus ring.
- **Teal Deep** `#1F5349` — Primary hover, footer background, emergency band text.
- **Teal Mist** `#E3EEEA` — Selected chips, vet avatar circles, service icon wells.
- **Ink** `#22302C` — Headlines and body text, icon color.
- **Slate** `#5E6B66` — Secondary text, captions, eyebrows, hours labels.
- **Honey** `#D9A441` — The warm accent: prices-free highlights, star moments, paw prints, care-tip icons, 'new patient' chip.
- **Honey Deep** `#B8862F` — Honey hover states, form focus ticks.
- **Coral Alert** `#C75146` — Emergency band only: the band border, phone figure and pulse dot — calm, sparing, never flashing.
- **Rule** `#E4E1D8` — 1px hairlines, card borders, input borders, map contour lines.
## Typography
- **Display: H1, H2, H3, service and vet names, the wordmark, form headings** — Comfortaa (OFL), weights 500/700. Self-host the font files.
- **Text and UI: body, eyebrows, buttons, forms, captions, hours (tabular numerals for times)** — Albert Sans (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 104px desktop, 80px under 1024px, 64px under 640px. Type scale: H1 clamp(42px, 6vw, 76px) Comfortaa 700, line-height 1.05; H2 clamp(30px, 4vw, 48px) Comfortaa 700; H3 22px Comfortaa 700; lead Albert Sans 400 18px / 1.7 Ink at 90%; body 16px / 1.7 (max-width 64ch); eyebrow Albert Sans 700 12px uppercase letter-spacing 0.16em Slate with a small drawn paw before it in Teal; caption 13px Slate. Buttons: height 52px, Albert Sans 700 15px. Primary: Teal fill, Card text. Secondary: 1px Teal border, Teal text. Emergency CTA: Coral Alert outline, Coral Alert text (never a fill — calm). Inputs: height 50px, 1px Rule border, Card fill, focus Teal border. Focus ring everywhere: 2px Teal outline with 3px offset.
- Radius: 16px on cards, buttons, inputs, chips, photos, the form panel. 999px only for pills, the open-now dot, vet initials and paw 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, unhurried — a waiting-room pace.
- Reveal: blocks wrapped in <Reveal> start at opacity 0, translateY(14px) and settle over 700ms --ease-out when 15% visible (Motion whileInView, viewport once). Siblings stagger 80ms.
- Hero photo: scales 1.05→1.0 over 2400ms on load; a drawn paw print trail (three small SVG paws) fades in along the hero's bottom edge, staggered 200ms (off under reduced motion).
- Emergency band: the pulse dot breathes (scale 1→1.2, 1800ms loop, off under reduced motion); the band itself is static — urgency without alarm.
- Service cards: hover lifts 3px and the icon well fills Teal Mist; the icon's stroke re-draws once per hover.
- Vet cards: hover lifts the avatar 2px and swaps the specialty line to the bedside quote (a 240ms crossfade).
- Form: species chips fill Teal Mist on select (150ms); invalid submit shakes 4px once with inline hints; submitting slides the panel to the ConfirmationCard (280ms --ease-io) with a drawn heart-plus-paw stamp scaling in; 'Start another' reverses.
- Hours: the open-now dot pulses only while open; the today-row carries a 2px Teal left rule that slides between days at midnight (crossfade).
- MiniMap: on view, the road lines draw (900ms), then the pin bobs in with one soft overshoot; the park block fills last.
- Links: .link-draw grows a 1px currentColor underline over 280ms on hover and focus-visible.
- prefers-reduced-motion: reduce — no pulses, draws, staggers or scales; color/border hovers stay. Use CSS @media in index.css plus Motion's useReducedMotion in components.
## Imagery
Warm real photography, all six made for this template in one consistent style: soft daylight, warm whites and wood with teal accents, animals relaxed, vet portraits are AI-generated fictional people shown at work with animal patients (consistent warm clinic light); they are placeholders a real clinic swaps for its own staff photos; all other photos stay animal-and-room only. Every photo uses object-fit cover with the object-position given under Assets, 16px corners, no shadow; photos on Warm White get a 1px Rule outline. Captions in Albert Sans 13px Slate. Drawn in code: the paw prints, service icons stay lucide, the heart-paw stamp, the mini-map, chips and the favicon. Icons: lucide-react only, stroke width 1.75.
## Tone
Warm, plain, unhurried — the receptionist everyone hopes for. Short sentences, no jargon without a translation, gentle humor about pets (never about owners).
---
— Prompt by VibeFather · https://vibefather.ai/t/veterinary-clinic-website · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 单人移动兽医:将 BRAND 设为你诊所的名称,将六项服务精简为上门出诊和疫苗接种,并将急诊横幅指向你的直线手机号码。
- 猫咪专属诊所:保留两页式结构,重写服务和护理贴士以针对猫科护理,并将三位兽医的肖像替换为你自己团队的照片。
- 动物救援或收容所:将新患者表单的标签替换为领养咨询,并将护理贴士部分用于为新宠物准备家庭环境。
- 乡村混合诊所:将 CITY 设为你所在的地区,在小动物服务之外增加大动物服务,并用你的值班表扩展非营业时间指引。
兽医诊所网站:常见问题
如何更改兽医诊所网站模板上的诊所名称、城市、电话号码和创立年份?
兽医诊所网站模板从一个内容文件中读取所有内容。将 BRAND 设为你诊所的名称,CITY 设为你所在城镇,PHONE 设为主电话,FOUNDED 设为开业年份,然后重写提及这些内容的标题和段落,确保文案真实。文字标识、页面标题、页脚、电子邮件地址和保存的表单数据都会自动跟随品牌值。
我可以将 AI 生成的兽医肖像替换为自己团队的照片吗?
可以。三个兽医简介使用虚构人物的 AI 生成工作肖像,兽医诊所网站模板期望你将其替换为自己员工的照片。替换图像文件,并在内容文件中更新每位兽医的姓名、专业方向和引言。布局保持相同的圆形头像和卡片,因此任何类似裁剪的肖像都能适配。
兽医诊所网站模板是免费的吗?Pro 能获得什么?
兽医诊所网站模板是免费的,其提示词和 DESIGN.md 在 CC BY-NC 4.0 许可下可免费用于个人非商业用途。商业或客户项目需要 Pro,Pro 还会解锁完整提示词和演示的源代码。无论哪种方式,页面都会公开展示简介、技术栈和变量。