用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
Brightwell 是一个双页网站,适合想要看起来像人们已经信赖之地的本地健康诊所。默认版本是 Wrenfield Dental,一家虚构的家庭和美容牙科诊所,位于虚构小镇 Calder Springs。首页承载完整故事:可关闭的紧急横幅、带有实时营业中卡片和下一个空档时段的头图区、信任背书条、89 美元新患者优惠、六张带价格区间的治疗卡片、诊所内部照片画廊、团队、评价、保险和分期付款计划、带营业时间和手绘地图的预约区,以及关于疼痛和费用的常见问题。第二页按类别列出十六种治疗项目,每项包含价格区间、时长、保险说明和简短的“预期内容”列表,随后是隐形矫正器特色介绍和分期付款计算器。
它适合牙医、物理治疗师、兽医、皮肤科和验光诊所,以及为他们建站的自由职业者和小型工作室。外观沉稳、临床但温暖:亚麻色背景、柔和的鼠尾草绿表面、深青色文字,以及仅用于预约按钮和紧急横幅的陶土色点缀。标题使用 Fraunces,正文使用 Figtree。团队以带资质的字母组合头像呈现,而非肖像照,每张照片都展示房间和设备,绝不出现患者。
预约请求表单完全在浏览器中运行。访客选择原因、从未来十四天中选一天,并从按上午、下午和晚上分组的时段标签中选择时间,填写详细信息后看到带有参考编号的确认信息。不会发送到任何地方。治疗页面的链接会预选原因。
要适配它,请更改品牌、城镇、诊所类型、新患者优惠和电话号码,然后在单一内容文件中编辑治疗项目、价格、营业时间和团队。将内部照片替换为您自己的房间照片。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Dental 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], an independent practice offering [SPECIALTY] in [CITY], a mid-size town. The look is calm, clean and trustworthy, clinical but warm: linen and soft sage surfaces, deep teal ink, one clay accent, generous whitespace, rounded cards and real photographs of the clinic's rooms and equipment (never patients). index.html carries the whole visit decision: emergency banner, hero with a live open-now card, reassurance strip, new-patient offer ([NEW_PATIENT_OFFER]), six treatment cards with price ranges, a clinic gallery, the team as monogram cards with credentials, patient reviews, insurance and payment plans, a client-side appointment request form with a day strip, time-slot chips and a success state, opening hours with an open-now indicator, a drawn map, an FAQ about pain and cost and a footer. treatments.html lists every treatment by category with a price range, duration, insurance note and what to expect, a clear aligner feature, a payment plan calculator and a closing call-to-action. It must read like a real practice that has been open for years: concrete prices, hours, an invented street address, named (invented) clinicians and patients, and plain-spoken answers.
- Audience: Local adults booking for themselves or their family: parents with young children, people who have avoided the dentist for years and are nervous, and people comparing costs because they have no insurance or a basic plan. Most visit on a phone, often from a search, and want to know three things fast: is it near me, what will it cost, and can I get in soon.
- Goal: Get the visitor to send an appointment request. Primary CTA everywhere: 'Book a visit' (to ./index.html#book). Secondary: call [PHONE] (tel: link) and 'See treatments & prices' (./treatments.html). For emergencies the banner and booking side panel push the phone call instead of the form.
- Tone: Warm, plain and reassuring, like a good receptionist on the phone. Short sentences, real numbers, no jargon without a plain explanation, no fear tactics, no hype words (no world-class, state-of-the-art, cutting-edge, best-in-class, revolutionary). Address the reader as 'you'; the practice speaks as 'we'.
## Stack
- Framework: Vite 5 + React 18 + TypeScript
- Styling: Tailwind CSS 3.4
- Libraries: react (MIT), react-dom (MIT), lucide-react (ISC), tailwindcss (MIT), postcss (MIT), autoprefixer (MIT), vite (MIT), @vitejs/plugin-react (MIT), typescript (Apache-2.0), @fontsource-variable/fraunces (OFL-1.1), @fontsource-variable/figtree (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 entry files at the project root: index.html (mounts src/home.tsx) and treatments.html (mounts src/treatments.tsx). Both share the same components, styles and content file.
- vite.config.ts: base './', plugins [react()], build { outDir 'dist', sourcemap false, assetsInlineLimit 0, rollupOptions { input { index: resolve(__dirname, 'index.html'), treatments: resolve(__dirname, 'treatments.html') } } }. Do not copy src/ into dist/.
- Tailwind 3.4 through PostCSS (tailwindcss + postcss + autoprefixer), content ['./index.html', './treatments.html', './src/**/*.{ts,tsx}']. In tailwind.config.ts add every color under Design to theme.extend.colors with the lowercase keys linen, paper, sage-50, sage-100, sage-300, teal, teal-700, ink, slate, line, clay, clay-700, clay-50, open; fontFamily display ['Fraunces Variable', 'Georgia', 'serif'] and sans ['Figtree Variable', 'system-ui', 'sans-serif']; boxShadow card '0 1px 2px rgba(28,38,36,0.06), 0 8px 24px -12px rgba(28,38,36,0.18)' and lift '0 2px 4px rgba(28,38,36,0.06), 0 18px 40px -16px rgba(28,38,36,0.28)'.
- In both entry files import '@fontsource-variable/fraunces', '@fontsource-variable/figtree' and './index.css'.
- File layout: src/content.ts (every string, price, treatment, team member, review, FAQ, opening hours, image path and alt text, typed), src/index.css (Tailwind layers, .reveal styles, keyframes pulse-dot and banner-collapse, reduced-motion overrides), src/lib/hours.ts (open-now status, today's row, next opening), src/lib/slots.ts (day strip and time-slot generation), src/lib/reveal.ts (one shared IntersectionObserver), src/lib/params.ts (reads ?treatment= from the URL).
- Components in src/components/: EmergencyBanner, Nav, MobileMenu, Footer, Hero, OpenNowCard, Reassurance, NewPatientOffer, TreatmentPreview, Gallery, Team, MonogramAvatar, Reviews, Stars, InsurancePlans, BookingForm, DayStrip, SlotPicker, BookingSuccess, VisitPanel, HoursTable, MapDrawing, Faq, Accordion, TreatmentsHeader, PricePromise, CategoryNav, TreatmentCategory, TreatmentRow, AlignerFeature, PaymentCalculator, ClosingCta. Pages in src/pages/Home.tsx and src/pages/Treatments.tsx.
- 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 never fetches anything.
- public/favicon.svg as described in the Head section. index.html <title>[BRAND] · [SPECIALTY] in [CITY]</title> (capitalize the first letter of the specialty); treatments.html <title>Treatments & prices · [BRAND]</title>. lang en, theme-color #F7F4EE. No other head tags beyond charset, viewport, title, theme-color and the favicon link.
- dist/ holds index.html, treatments.html, hashed JS/CSS, the woff2 fonts, favicon.svg and the nine images. Keep it under 8 MB.
## Variables
- [BRAND] — Practice name (default: "Wrenfield Dental"). Shown in the nav wordmark, titles, footer, booking success text and FAQ answers. The care plan is called '[BRAND] Care Plan' with the trailing word Dental dropped ('Wrenfield Care Plan').
- [CITY] — Town or city (default: "Calder Springs"). An invented or real town name. Used in the hero eyebrow, titles, the address block and the footer.
- [SPECIALTY] — Practice type (default: "family & cosmetic dentistry"). Lowercase phrase. Drives the hero eyebrow, the titles and all treatments, prices, team credentials, FAQ answers and photos. Rewrite those for another kind of practice.
- [NEW_PATIENT_OFFER] — New-patient offer (default: "$89 first visit: exam, cleaning & X-rays"). Price first, then what it includes. Feeds the offer section, the hero trust row, the booking reason list and the FAQ.
- [PHONE] — Phone number (default: "(320) 555-0142"). Use a 555-01xx number for demos. Shown in the emergency banner, nav, booking panel, footer and as tel: links (digits only in the href, e.g. tel:+13205550142).
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/dental-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
- Linen `#F7F4EE` — Page background, text on Teal and Clay surfaces
- Paper `#FFFFFF` — Cards, form surface, floating hero cards, inputs
- Sage 50 `#EEF3EF` — Alternating section background (Reassurance, Team, Book & visit), chip backgrounds
- Sage 100 `#DFE8E1` — Icon circles, monogram avatar tint A, selected day chip border, hover fill of ghost buttons
- Sage 300 `#B7CBBE` — Monogram avatar tint B, rating bar track, map park areas, decorative arches
- Teal `#1F4A47` — Headings, wordmark, secondary buttons, selected chips, footer and closing CTA background
- Teal 700 `#163634` — Teal button hover, footer bottom row
- Ink `#1C2624` — Body text on light surfaces
- Slate `#5B6966` — Secondary text, captions, field help, durations, unavailable slots
- Line `#DCE3DD` — 1px borders of cards, inputs, dividers, table rows
- Clay `#BF4F35` — The only accent: primary 'Book a visit' buttons, emergency banner background, star icons, focus ring, the map pin. Never used for large surfaces other than the banner.
- Clay 700 `#A3412A` — Clay button hover and active
- Clay 50 `#FBEAE4` — Emergency notice box in the booking form and side panel, error field background
- Open `#2F7D5B` — Open-now dot and text, success check, 'often covered' insurance chip text
### Typography
- Display (H1, H2, prices, big rating number, monograms, wordmark): Fraunces Variable (OFL), weights 400/500/600
- Text (body, nav, buttons, labels, chips, form fields, H3): Figtree Variable (OFL), weights 400/500/600/700
### Layout & motion
- Spacing: 8px base unit. Container max-width 1200px, side gutter clamp(20px, 4vw, 40px). Section vertical padding 112px on desktop, 72px under 768px. H1 Fraunces 500 clamp(42px, 5.4vw, 72px), line-height 1.04, letter-spacing -0.02em, color Teal. H2 Fraunces 500 clamp(32px, 3.6vw, 48px), line-height 1.1, letter-spacing -0.015em, Teal; one word or short phrase per H2 is set in Fraunces 400 italic (marked with <em> in the copy below). H3 Figtree 600 20px/1.3 Ink. Body Figtree 400 17px/1.65 Ink (16px under 768px); lead paragraphs 19px Slate. Eyebrows Figtree 600 13px uppercase, letter-spacing 0.12em, Teal at 80%, with a 6px Clay dot 10px before the text. Prices Fraunces 500 with font-variant-numeric tabular-nums. Section headers: eyebrow, H2 and a max-width 56ch lead, 48px below the header before content.
- Radius: Cards and photo tiles 24px, the new-patient offer card and the booking form card 28px, inputs and select 14px, buttons, chips, the day strip chips and time-slot chips fully rounded (999px), icon circles and monogram avatars are circles. Primary buttons are 52px tall pills (44px in the nav), padding 0 26px, Figtree 600 16px, Clay background, Linen text, with a lucide ArrowRight 18px that moves 3px right on hover. Secondary buttons are the same size with a 1.5px Teal border, Teal text, transparent background, Sage 100 fill on hover.
- Motion: Easing everywhere: cubic-bezier(0.22, 1, 0.36, 1). Durations: 200ms for hovers and chip selection, 300ms for accordions and menus, 600ms for reveals.
- Motion: Reveal: elements with class .reveal start at opacity 0 and translateY(16px) and go to rest over 600ms when 15% visible, once (one shared IntersectionObserver in src/lib/reveal.ts adds .is-in). Siblings in a grid stagger by 70ms via a --i CSS variable (transition-delay calc(var(--i) * 70ms)). Elements already in the viewport on load reveal immediately with the same stagger.
- Motion: Card hover (treatment cards, team cards, plan cards, gallery tiles): translateY(-3px) and shadow card to lift over 200ms; gallery images also scale to 1.03 over 600ms inside their overflow-hidden tile.
- Motion: Open-now dot: an 8px Open circle with a ring that pulses (keyframes pulse-dot: box-shadow 0 0 0 0 rgba(47,125,91,0.45) to 0 0 0 8px rgba(47,125,91,0), 2000ms, infinite). When closed the dot is Slate and does not pulse.
- Motion: Accordions (FAQ, what-to-expect, mobile menu groups): height animates with the CSS grid trick (grid-template-rows 0fr to 1fr, inner overflow hidden) over 300ms; the lucide Plus icon rotates 45 degrees when open.
- Motion: Chips: day and slot chips scale to 0.97 on press; the selected state swaps background and text color over 200ms.
- Motion: Emergency banner dismiss: collapses height to 0 and fades over 250ms, then unmounts.
- Motion: Booking success: the form fades out (200ms), the success card fades in and rises 12px over 400ms, and the page scrolls so the card's top sits 96px below the viewport top.
- Motion: Reduced motion (prefers-reduced-motion: reduce): reveals show immediately with no transform, no stagger, no hover lift or image zoom, no dot pulse, accordions open and close instantly, smooth scrolling is replaced with instant jumps, the banner disappears without animation.
- Imagery: Real photographs of the clinic's rooms, furniture and equipment in soft daylight: sage walls, light white oak, cream upholstery, plants in terracotta. Never patients, never faces, never before/after mouths. Six photos are made for this template and hosted by its author; three CC0 photos (a quiet treatment-room lounge, handpieces on a dental unit, bamboo toothbrushes) add real-world detail. Photos are always shown in 24px-radius tiles with object-fit cover and the exact object-position given, never full-bleed behind text. People are shown as monogram avatars. Icons come from lucide-react; the favicon, wordmark glyph, the map, rating bars and decorative arches are drawn in SVG or CSS. No illustrations, no stock smiling-model photos, no 3D, no gradients other than the subtle ones specified.
## Pages & Sections
### Home (`index.html`)
1. **Shared: content file, data rules and head** — src/content.ts exports: brand, city, specialty, phone (display) and phoneHref ('tel:+13205550142'), email '[email protected]', address {line1 '218 Larkspur Avenue, Suite 2', line2 'Calder Springs', note 'Free parking behind the building · Bus 4 stops at Larkspur & 3rd'}, hours, treatments, categories, team, reviews, faqs, plans, images. Hours (one source for the table, open-now logic and slots): Mon 8:00–17:00, Tue 8:00–19:00, Wed 8:00–17:00, Thu 8:00–19:00, Fri 8:00–14:00, Sat 9:00–13:00, Sun closed; lunch break 12:30–13:30 Mon–Thu (no slots, but the clinic counts as open). Display times in 12-hour US format: '8:00 am', '5:00 pm'. Head: <title>Wrenfield Dental · Family & cosmetic dentistry in Calder Springs</title>. public/favicon.svg, viewBox 0 0 32 32: rect width 32 height 32 rx 9 fill #1F4A47; a tooth path fill #F7F4EE: 'M11 7.5c-2.9 0-4.7 2.3-4.7 5.4 0 2.6 1 4.6 1.8 6.9.8 2.3 1.1 6.2 2.8 6.2 1.6 0 1.8-3.5 2.5-5.3.4-1 1-1.5 2.6-1.5s2.2.5 2.6 1.5c.7 1.8.9 5.3 2.5 5.3 1.7 0 2-3.9 2.8-6.2.8-2.3 1.8-4.3 1.8-6.9 0-3.1-1.8-5.4-4.7-5.4-2.1 0-3.2 1.2-5 1.2s-2.9-1.2-5-1.2z'; a 3px circle at cx 23 cy 9 fill #BF4F35. The same tooth glyph (without the rounded square, fill Teal) is the 22px mark before the wordmark. This is an invented mark.
Layout: All copy, numbers and image paths are read from src/content.ts; components contain no hard-coded strings. When the variable values change, rewrite every string in content.ts to fit the new practice (treatments, prices, credentials, FAQ, alt text) and keep the structure, counts and layout. Times are computed from the visitor's local clock, treated as the clinic's local time.
Motion: None.
2. **Emergency banner (shared, top of both pages)** — lucide Siren 18px, then 'Toothache, swelling or a knocked-out tooth? We keep same-day emergency slots every weekday.' (under 768px shortened to 'Dental emergency? Same-day slots.'), then an underlined link 'Call (320) 555-0142' (tel:) and a close button (lucide X 18px, aria-label 'Dismiss emergency notice').
Layout: Full width, Clay background, Linen text, Figtree 500 15px, height 44px (auto with 8px padding when wrapping), content centered in the container with 12px gaps; the close button sits at the right edge, 32px square. Not sticky: it scrolls away. Dismissal is saved in sessionStorage key 'banner-dismissed' and applies to both pages for the session.
Motion: Collapse on dismiss as in Design motion.
3. **Navigation (shared)** — Left: tooth glyph + wordmark 'Wrenfield Dental' (Fraunces 600 21px, Teal), linking to ./index.html. Center links (≥1024px), Figtree 500 15px Ink, hover Teal with a 2px Clay underline that grows from the left: 'Treatments & prices' (./treatments.html), 'Team' (./index.html#team), 'Reviews' (./index.html#reviews), 'Insurance' (./index.html#insurance), 'Visit us' (./index.html#visit). The current page's link (Treatments on treatments.html) is Teal with the underline shown. Right: phone link with lucide Phone 16px '(320) 555-0142' (≥1280px only, Figtree 600 15px Teal) and the Clay primary button 'Book a visit' (44px tall) to ./index.html#book.
Layout: Sticky top 0, z-index 40, height 76px (64px under 768px), background Linen at 92% with backdrop-blur 10px, 1px Line bottom border that only appears after scrollY > 8. Container 1200px, flex justify-between items-center. Under 1024px the center links hide and a 44px round button with lucide Menu 22px appears to the right of 'Book a visit' (which shrinks to 40px tall, label 'Book'); it opens MobileMenu: a full-width Paper panel dropping below the bar with the five links as 56px rows separated by Line, then a full-width Teal secondary button 'Call (320) 555-0142' and the hours line for today ('Today 8:00 am – 5:00 pm'). Escape, a link tap or the X icon closes it; body scroll locks while it is open.
Motion: Menu panel opens with opacity 0 to 1 and translateY(-8px) to 0 over 300ms.
4. **Hero** — Eyebrow 'Family & cosmetic dentistry in Calder Springs'. H1 'Calm, careful dentistry for the <em>whole family.</em>'. Lead: 'Unhurried appointments, prices you can see before you sit down, and a team that explains every step. New patients welcome: kids, nervous adults and everyone in between.' Buttons: Clay primary 'Book a visit' (#book) and secondary 'See treatments & prices' (./treatments.html). Trust row under the buttons, Figtree 500 14px Slate, three items separated by 4px Line dots, each with a 16px lucide icon in Teal: Star (filled Clay) '4.9 from 418 patient reviews'; ShieldCheck 'In-network with most PPO plans'; Clock 'Open until 7:00 pm Tue & Thu'. Photo public/images/hero.webp (alt 'Bright treatment room with a cream dental chair, sage walls and a window with linen curtains'). Two floating cards over the photo: OpenNowCard at bottom-left: Open dot + 'Open now' (Figtree 700 15px Open) and 'Closes 5:00 pm today' (Slate 14px), or when closed a Slate dot + 'Closed now' and 'Opens Tue 8:00 am'; below a 1px Line and the address '218 Larkspur Avenue' with lucide MapPin 14px. Next-slot card at top-right: lucide CalendarCheck 18px Teal, 'Next free appointment' (Slate 13px) and the computed first available slot from src/lib/slots.ts, e.g. 'Tomorrow, 9:30 am' (Figtree 700 16px Teal; 'Tomorrow' when it is the next day, otherwise 'Thu 5 Nov'), linking to #book with that day and slot preselected.
Layout: Linen background, padding 64px top, 96px bottom. Container grid 12 columns, gap 48px, items center. Text spans columns 1–6, max-width 580px. Photo spans columns 7–12 in a frame with aspect 4/5, radius 28px, overflow hidden, object-fit cover, object-position 55% 50%, loading eager, fetchpriority high. Behind the frame a decorative Sage 100 arch (a rounded-top rectangle, border-radius 999px 999px 28px 28px) offset 24px left and 24px down, z-index below the photo. OpenNowCard: Paper, radius 20px, padding 16px 20px, shadow lift, absolute left -32px bottom 40px, width 260px. Next-slot card: Paper, radius 20px, padding 14px 18px, shadow lift, absolute right 24px top 24px. Under 1024px: one column, text first, the photo full width with aspect 4/3 (object-position 55% 40%), the arch hidden, OpenNowCard moves inside the photo at left 16px bottom 16px, next-slot card at right 16px top 16px with the label hidden. H1 is 42px under 768px; buttons stack full width.
Motion: Text block children reveal with --i 0–4 on load, the photo frame reveals with --i 2, the two cards with --i 5 and 6. The open dot pulses when open.
5. **Reassurance strip** — Four items, each a 48px Sage 100 circle with a 22px Teal lucide icon, an H3 at 17px and one Slate line: ShieldCheck 'Insurance, filed for you' — 'In-network with most PPO plans. We send the claim and show your share first.'; Wallet 'Payment plans at 0%' — 'Spread treatment over 6 or 12 months, no credit check under $2,000.'; Siren 'Same-day emergencies' — 'Slots held every weekday morning for pain, swelling and broken teeth.'; HandHeart 'Gentle by default' — 'Numbing gel before every injection, headphones, and a pause whenever you raise a hand.'
Layout: Sage 50 background, padding 56px 0. Container grid 4 columns, gap 32px, each item a row: icon left, text right (gap 16px). Under 1024px 2 columns, under 640px 1 column with 24px gaps.
Motion: Items reveal with --i 0–3.
6. **New-patient offer** — Image public/images/toothbrushes.jpg (alt 'Two bamboo toothbrushes on a woven bamboo mat'). Eyebrow 'New patients'. H2 'Your first visit: <em>$89,</em> everything included.' (from [NEW_PATIENT_OFFER]). Checklist with lucide CircleCheck 20px Open: 'A full exam with Dr. Marsh or Dr. Nandakumar', 'A professional cleaning and polish', 'Low-dose digital X-rays', 'A written treatment plan with prices, and no pressure to start anything'. Small print Slate 14px: 'Usually $240. Applies to patients paying without insurance. Most insured patients pay $0 for this visit.' Buttons: Clay primary 'Claim the $89 visit' (link ?treatment=new-patient#book) and a text link 'What happens at the first visit' (#faq, opens the FAQ item 'What happens at my first visit?').
Layout: Linen background. Container, a single card: Paper, radius 28px, 1px Line border, overflow hidden, grid 2 columns (5fr 7fr). Left: the image filling the column, min-height 440px, object-fit cover, object-position 72% 70%. Right: padding 56px, flex column justify-center, checklist rows with 14px gaps. Top-right corner of the card a Clay 50 chip 'Save $151' (Figtree 700 13px Clay) at top 24px right 24px. Under 768px: one column, the image aspect 16/10 on top, padding 28px.
Motion: Card reveals; checklist rows reveal with --i 0–3.
7. **Treatments preview** — Eyebrow 'Treatments'. H2 'Treatments, with the <em>price up front.</em>'. Lead 'Every price below is the range our patients actually pay before insurance. You get an exact written estimate before anything starts.' Six cards, each with a 40px Sage 100 icon circle (Teal lucide icon 20px), name (H3), one Slate line, a price row and a duration chip: Stethoscope 'New-patient visit' — 'Exam, cleaning and X-rays in one unhurried hour.' — '$89' — '60–75 min'; Sparkles 'Cleaning & check-up' — 'Twice a year keeps most problems small and cheap.' — '$145–$210' — '45 min'; Layers 'Tooth-colored fillings' — 'Matched to your tooth, done in one visit.' — '$160–$320 per tooth' — '30–60 min'; Sun 'Whitening' — 'In-chair in 90 minutes, or custom trays for home.' — '$280–$650' — '90 min'; Smile 'Clear aligners' — 'Straighter teeth with removable trays, planned with a 3D scan.' — '$3,400–$5,200' — '6–18 months'; Anchor 'Dental implants' — 'A permanent tooth replacement: post, abutment and crown.' — '$3,800–$4,900' — '3–6 months'. Each card ends with a Teal link 'Details' + ArrowRight 16px to ./treatments.html#t-<id> (ids new-patient, cleaning, fillings, whitening, aligners, implants). Below the grid a centered secondary button 'All 16 treatments & prices' to ./treatments.html.
Layout: Linen background. Container grid 3 columns, gap 20px (2 columns under 1024px, 1 under 640px). Card: Paper, radius 24px, 1px Line border, padding 28px, flex column; the price row sits at the bottom (margin-top auto) with the price in Fraunces 500 28px Teal on the left and the duration chip on the right (Sage 50, Slate 13px Figtree 600, padding 6px 12px, lucide Clock 14px). The whole card is the link (one <a> wrapping it), focus ring 2px Clay offset 3px.
Motion: Cards reveal with --i 0–5 and lift on hover; the ArrowRight moves 3px right on hover.
8. **Inside the clinic (gallery)** — Eyebrow 'The clinic'. H2 'A clinic that feels more like a <em>living room.</em>'. Lead 'Daylight in every treatment room, a ceiling screen to watch something during long visits, and a play corner by reception for brothers and sisters who come along.' Four tiles with a caption chip (Paper at 92%, radius 999px, Figtree 600 13px Teal, padding 8px 14px) at bottom-left 16px: A public/images/reception.webp 'Reception & waiting room' (alt 'Reception with an oak counter, a sage bench and plants'); B public/images/lounge.jpg 'Consult lounge' (alt 'Lounge with a tan sofa and a glass wall to a treatment room'); C public/images/kids-corner.webp 'Play corner' (alt 'Children's corner with a small oak table and picture books'); D public/images/instruments.jpg 'Sterilized every visit' (alt 'Handpieces on a dental unit beside a tray of instruments').
Layout: Sage 50 background. Container grid 12 columns, two rows of 260px, gap 16px: A columns 1–6 rows 1–2; B columns 7–9 rows 1–2; C columns 10–12 row 1; D columns 10–12 row 2. Every tile radius 24px, overflow hidden, image object-fit cover. Exact crops: A object-position 50% 50%; B object-position 78% 50% (the crop must keep the left part of this photo, with its desk, out of view); C 50% 50%; D 40% 50%. Under 768px: a single column, A aspect 4/3, B aspect 4/5 (object-position 78% 50%), C aspect 1/1, D aspect 4/3. Images loading lazy.
Motion: Tiles reveal with --i 0–3; image zoom on hover.
9. **Team (#team)** — Eyebrow 'Team'. H2 'The people <em>you'll see.</em>'. Lead 'Four clinicians, and the same faces at every visit. Here is who they are and what they trained in.' Four cards: (1) monogram 'HM', 'Dr. Helena Marsh', role 'Founder · General dentist', credentials list: 'DDS, 2008', '16 years in practice, 9 in Calder Springs', '600+ implants restored', 'Speaks English and Portuguese'; (2) 'TL', 'Dr. Theo Lindqvist', 'Cosmetic dentistry & aligners', 'DMD, 2014', 'Clear aligner provider since 2016', 'Porcelain veneers and bonding', 'Certified in nitrous oxide sedation'; (3) 'PN', 'Dr. Priya Nandakumar', 'Family & children's dentistry', 'DDS, 2012', 'Pediatric dentistry residency, 2 years', 'Sees patients from age 2', 'Gentle care for anxious patients'; (4) 'RD', 'Rosa Delgado, RDH', 'Lead dental hygienist', 'Registered dental hygienist, 2011', 'Deep cleaning and gum care', 'Local anesthesia certified', 'Known for very gentle cleanings'. Under the grid one Slate line: 'Questions about cost or insurance? Sam Okoro, our patient coordinator, answers weekdays 8:00 am – 5:00 pm.'
Layout: Linen background. Container grid 4 columns, gap 20px (2 columns under 1024px, 1 under 640px). Card: Paper, radius 24px, 1px Line border, padding 28px. MonogramAvatar: 72px circle, Fraunces 500 26px Teal initials, letter-spacing 0.02em, background tints cycling Sage 100, Sage 300, Clay 50, Sage 100, with a 1px inner ring rgba(31,74,71,0.12). Below: name Fraunces 500 22px Teal, role Figtree 600 14px Slate, 1px Line, then the credentials as a list with lucide BadgeCheck 16px Open and Figtree 15px Ink, 10px gaps. No photos of people anywhere.
Motion: Cards reveal with --i 0–3 and lift on hover.
10. **Reviews (#reviews)** — Eyebrow 'Reviews'. H2 'What patients say <em>after the visit.</em>'. Summary block: '4.9' (Fraunces 500 88px Teal), five Clay stars (lucide Star, filled, 20px), 'Average of 418 reviews from our patients' (Slate 15px), then five rating bars: 5 stars 92%, 4 stars 6%, 3 stars 1%, 2 stars 1%, 1 star 0% (label Figtree 600 13px, Sage 300 track 8px tall radius 999px, Teal fill to the percentage, percentage right in Slate 13px). Six review cards (5 stars unless noted): 'I hadn't been to a dentist in eleven years and was dreading it. Dr. Marsh showed me every X-ray, told me exactly what it would cost, and never once made me feel bad.' — Marcus T., new patient; 'Both kids now ask when they can go back. Dr. Nandakumar lets them hold the mirror and count their own teeth.' — Elena R., family of four; 'Cracked a molar on a Saturday morning, called at 9:10 and was in the chair by 11. The crown was done the following week.' — Owen B., emergency visit; 'The estimate said $1,240 after insurance and the bill said $1,240. That has never happened to me before.' — Priyanka S., crown; 'Rosa is the gentlest hygienist I have ever had. She stops before you even need to ask.' — Hannah L., cleaning; (4 stars) 'Evening slots fill fast, so book a couple of weeks ahead. Otherwise everything about my aligner treatment has been easy.' — Jordan K., clear aligners. Each card: stars 16px, the quote in Figtree 400 17px Ink, then name Figtree 700 15px Teal and treatment Slate 14px.
Layout: Sage 50 background. Container grid 12 columns, gap 48px. Summary spans columns 1–4 and is sticky top 112px on ≥1024px. Cards span columns 5–12 in a CSS columns layout (column-count 2, column-gap 20px; cards break-inside avoid, margin-bottom 20px): Paper, radius 24px, 1px Line border, padding 28px; a Fraunces 400 64px Sage 300 opening quote mark sits at the top-left of each card, line-height 0.5. Under 1024px a single column, the summary first and not sticky, cards in 1 column.
Motion: Summary reveals, rating bar fills animate from width 0 to their value over 800ms when visible (instant under reduced motion), cards reveal with --i 0–5.
11. **Insurance & payment plans (#insurance)** — Eyebrow 'Paying for care'. H2 'Insurance, memberships and <em>payment plans.</em>'. Lead 'Whichever way you pay, you see the number before we start.' Three cards: (1) lucide ShieldCheck 'Dental insurance' — 'We're in-network with most PPO plans and file every claim for you. Before treatment you get a written estimate of what your plan pays and what you pay.' rows: 'PPO plans' – 'In-network'; 'HMO / DHMO plans' – 'Call to check'; 'Out-of-network' – 'We file, you're reimbursed'. (2) lucide HeartHandshake 'Wrenfield Care Plan' — for patients without insurance: price '$29 / month' (Fraunces 500 40px) with 'or $319 a year · kids $19 / month' (Slate), checklist 'Two cleanings and exams a year', 'All routine X-rays', 'One emergency exam', '15% off every treatment'. Badge chip 'Most chosen without insurance' (Clay 50 background, Clay text) at top-right. (3) lucide CalendarRange 'Payment plans at 0%' — 'For treatment over $500. Split the cost into equal monthly payments with no interest.' rows: 'Terms' – '6 or 12 months'; 'Interest' – '0%'; 'Credit check' – 'None under $2,000'; 'Down payment' – '20%'. Below the cards a Teal text link 'Estimate your monthly payment' + ArrowRight to ./treatments.html#payment-plans.
Layout: Linen background. Container grid 3 columns, gap 20px (1 column under 1024px). Cards: Paper, radius 24px, 1px Line border, padding 32px, flex column; the middle card has a 2px Teal border and Sage 50 background. Rows are definition pairs with a 1px Line top border, padding 12px 0, label Slate 15px left, value Figtree 600 15px Ink right. Do not name any insurance company.
Motion: Cards reveal with --i 0–2 and lift on hover.
12. **Book & visit (#book, #visit)** — Eyebrow 'Book a visit'. H2 'Request an appointment <em>in a minute.</em>'. Lead 'Pick a time that suits you. We call or text within one business hour to confirm. Requests sent after hours are confirmed the next morning.' BookingForm card with four numbered steps (step number in a 28px Teal circle with Linen Figtree 700 14px digits, step title Figtree 700 17px Teal): 1 'What is the visit for?' — a select with options (value: label): new-patient: 'New-patient visit ($89)'; cleaning: 'Cleaning & check-up'; kids: 'Child's check-up'; emergency: 'Tooth pain or emergency'; whitening: 'Whitening consultation'; aligners: 'Clear aligner consultation (free)'; implants: 'Implant or crown consultation'; fillings: 'Fillings or other treatment'; other: 'Something else'. Default new-patient; if the URL has ?treatment=<value> (or a treatment id from treatments.html, mapped: crowns, root-canal and extraction to implants or fillings as listed in content.ts) it is preselected. Under it a segmented control 'I am a' with 'New patient' (default) and 'Returning patient'. When 'emergency' is selected, a Clay 50 notice appears under the select: lucide Siren in Clay, 'In pain right now? Calling is faster. We hold same-day emergency slots every weekday morning.' and a Clay button 'Call (320) 555-0142' (tel:). 2 'Choose a day' — DayStrip. 3 'Choose a time' — SlotPicker. 4 'Your details' — fields: 'Full name' (required), 'Mobile phone' (required, at least 10 digits), 'Email' (required, valid [email protected]), 'How will you pay?' select ('I have dental insurance', 'Wrenfield Care Plan member', 'Paying myself', 'Not sure yet'), 'Anything we should know? (optional)' textarea 3 rows with a live counter '0 / 300', and a checkbox 'Send me a text reminder the day before' (checked). Submit: Clay primary full-width button 'Request this appointment' with a summary line above it in Figtree 600 15px Teal: e.g. 'New-patient visit · Tue 3 Nov · 10:30 am' (or Slate 'Choose a day and time' when incomplete). Under the button Slate 13px: 'This sends a request, not a confirmed booking. We never share your details.' BookingSuccess: a 56px Open circle with a lucide Check 28px in Linen, H3 at 26px Fraunces 500 Teal 'Request received, Marcus.' (first word of the name), body 'We'll call you at (320) 555-0199 within one business hour to confirm your new-patient visit on Tuesday, 3 November at 10:30 am.' (all values from the form), a reference chip 'Reference WD-1030-03' (format WD-HHMM-DD from the chosen slot and day), a Sage 50 box with three lines 'Bring a photo ID and your insurance card', 'Arrive 10 minutes early for a short health form', 'Free parking behind the building', and two buttons: secondary 'Make another request' (resets the form) and a text link 'Back to top'. VisitPanel (right column) has three stacked cards: Hours card — 'Opening hours' title with the open-now status line (dot + 'Open now · closes 5:00 pm' or 'Closed · opens Tue 8:00 am'), HoursTable with seven rows Mon–Sun (day Figtree 600, hours right-aligned tabular-nums; Sun 'Closed' in Slate; lunch note under the table 'Closed for lunch 12:30–1:30 pm Mon–Thu' Slate 13px); today's row has Sage 50 background, radius 10px and a small 'Today' chip. Address card — MapDrawing on top, then '218 Larkspur Avenue, Suite 2', 'Calder Springs', the parking/bus note in Slate, phone link and email link with lucide Phone and Mail 16px. Emergency card — Clay 50 background, lucide Siren Clay, 'Dental emergency?' Figtree 700, 'Call before 10:00 am for a same-day slot. After hours, our message tells you who is on call.' and the phone as a Clay link.
Layout: Sage 50 background, padding 112px 0. #visit anchor sits on the VisitPanel. Container grid 12 columns, gap 32px: the header spans 12 columns; the form card spans columns 1–7 (Paper, radius 28px, 1px Line, padding 40px, 28px under 768px; steps separated by 1px Line with 28px padding); VisitPanel spans columns 8–12 and is sticky top 104px on ≥1024px, cards Paper radius 24px padding 24px with 16px gaps. Under 1024px a single column with the form first. Fields: label Figtree 600 14px Ink above, input 52px tall, Paper background, 1px Line border, radius 14px, padding 0 16px, Figtree 16px; focus: border Teal and a 3px ring rgba(191,79,53,0.25); errors: border Clay, background Clay 50 and an error line in Clay Figtree 500 14px with lucide AlertCircle 14px ('Please enter your name', 'Enter a phone number with at least 10 digits', 'Enter a valid email', 'Choose a day', 'Choose a time'). Name and phone sit side by side ≥768px. Segmented control: Sage 50 track radius 999px padding 4px, two 40px options, selected option Paper with shadow card and Teal text. DayStrip: a horizontally scrollable row (scroll-snap x, hidden scrollbar, left/right 36px round arrow buttons with lucide ChevronLeft/ChevronRight on ≥768px) of the next 14 days starting tomorrow; each chip 64px wide × 76px tall, radius 18px, Paper with 1px Line border: weekday 'Tue' (Figtree 600 12px uppercase Slate), date '3' (Fraunces 500 24px Teal), month 'Nov' (Slate 12px). Sundays are disabled: Slate text at 50%, dashed border, label 'Closed' instead of the month. Selected chip: Teal background, Linen text, no border. The first open day is selected by default. SlotPicker: three groups 'Morning', 'Afternoon', 'Evening' (group label Figtree 600 13px uppercase Slate; a group with no slots is not rendered), chips in a wrapping flex row with 8px gaps, each 40px tall, min-width 92px, Paper with 1px Line border, Figtree 600 15px Ink, tabular-nums, label '10:30 am'. Slot rules in src/lib/slots.ts: start times every 30 minutes from opening until 30 minutes before closing; skip 12:30 pm and 1:00 pm Mon–Thu (lunch); a slot is shown as taken when (dayOfMonth * 3 + slotIndex * 7) % 6 === 0 (Slate at 45%, line-through, disabled, aria-label '10:30 am, taken'); groups: Morning before 12:00, Afternoon 12:00–16:59, Evening 17:00 and later. Selected slot: Teal background, Linen text. Changing the day clears the slot. Accessibility: the day strip and each slot group are radiogroups with arrow-key navigation, every input has a label, errors are linked with aria-describedby, the success card is in an aria-live polite region and receives focus. On submit: preventDefault, validate, focus and scroll to the first invalid field if any; otherwise show BookingSuccess in place of the form. Nothing is sent anywhere and nothing is stored. MapDrawing: inline SVG viewBox 0 0 400 220, radius 18px, background Linen; a grid of streets as 14px wide Paper rounded strokes on a Sage 50 field (two horizontal streets at y 70 and 160, three vertical at x 90, 210, 330, one diagonal from 0,220 to 140,0), a Sage 300 park rectangle (rx 12) between x 230–310 and y 90–140, a 6px Sage 300 river curve along the bottom, street labels in Figtree 600 10px Slate ('Larkspur Ave' along y 70, '3rd St' along x 210), the clinic pin at 210,70: a Clay teardrop 28px with a Linen 8px circle, and a small Teal 'P' parking square at 250,40. No map tiles, no external map service.
Motion: Form steps reveal with --i 0–3; the emergency notice expands with the grid-rows trick; chip selection as in Design motion; the success swap as in Design motion. The VisitPanel cards reveal with --i 0–2.
13. **FAQ (#faq)** — Eyebrow 'FAQ'. H2 'Honest answers about <em>pain and cost.</em>'. Left side under the heading: Slate line 'Still unsure? Call (320) 555-0142 and ask for Sam. No question is too small.' Eight questions, the first open by default: 'Will it hurt?' — 'Most visits don't. Cleanings can feel scratchy, never sharp. Before any injection we numb the gum with a gel first, and we wait until you're fully numb before starting. You can raise a hand at any time and we stop.'; 'I haven't been to a dentist in years. Will I be judged?' — 'Never. About one in five of our new patients hasn't been in over five years. We start with a look and a conversation, then agree on a plan at your pace.'; 'What happens at my first visit?' — 'About an hour: a short health form, low-dose digital X-rays, a full exam, a cleaning and a written plan with prices. For patients paying themselves the visit is $89, and you're never asked to start treatment on the same day.'; 'How much will treatment cost me?' — 'The price ranges on our treatments page are what patients actually pay before insurance. Before any treatment you get a written estimate with the exact amount and your insurance share. The estimate is the price.'; 'Do you take my insurance?' — 'We're in-network with most PPO plans and can file out-of-network claims for most others. Send us your plan name and member ID and Sam will check your benefits before your visit.'; 'What if I don't have insurance?' — 'Choose the Wrenfield Care Plan at $29 a month for two cleanings, exams, X-rays, an emergency exam and 15% off treatment, or pay per visit at the listed prices.'; 'How do payment plans work?' — 'For treatment over $500 you pay 20% on the day and the rest in 6 or 12 equal monthly payments with no interest. There is no credit check for amounts under $2,000.'; 'What counts as a dental emergency?' — 'Severe toothache, swelling in your face or gums, a knocked-out or broken tooth, or bleeding that won't stop. Call us before 10:00 am for a same-day slot. If your face is swelling and you have trouble breathing or swallowing, go to the emergency room.'
Layout: Linen background. Container grid 12 columns, gap 48px: heading block spans columns 1–4, sticky top 112px on ≥1024px; the accordion spans columns 6–12. Each item: 1px Line top border (and one at the bottom of the list), a full-width button with the question in Fraunces 500 21px Teal on the left and a 36px Sage 50 circle with lucide Plus 18px on the right, padding 22px 0; answer Figtree 17px Ink at 85%, max-width 62ch, padding-bottom 24px. Several items may be open at once. Buttons have aria-expanded and aria-controls. Links that target an FAQ item (the offer's 'What happens at the first visit') open it and scroll to it. Under 1024px one column, the heading not sticky.
Motion: Accordion as in Design motion; items reveal with --i 0–7.
14. **Footer (shared)** — Column 1: tooth glyph (Linen) + 'Wrenfield Dental' (Fraunces 600 22px Linen), the line 'Family & cosmetic dentistry in Calder Springs since 2017.' and a Clay primary button 'Book a visit' (./index.html#book). Column 2 'Visit': '218 Larkspur Avenue, Suite 2', 'Calder Springs', 'Free parking behind the building'. Column 3 'Hours': compact rows 'Mon, Wed 8:00 am – 5:00 pm', 'Tue, Thu 8:00 am – 7:00 pm', 'Fri 8:00 am – 2:00 pm', 'Sat 9:00 am – 1:00 pm', 'Sun Closed'. Column 4 'Clinic': links 'Treatments & prices' (./treatments.html), 'Team' (./index.html#team), 'Reviews' (./index.html#reviews), 'Insurance' (./index.html#insurance), 'FAQ' (./index.html#faq), plus the phone and email links. Bottom row: '© Wrenfield Dental. Prices are typical ranges before insurance; your written estimate is final.' and, if [CREDIT] is kept, a small 'Template by VibeFather' link on the right.
Layout: Teal background, Linen text, padding 88px 0 0. Container grid 4 columns (2fr 1fr 1fr 1fr), gap 40px; column titles Figtree 700 13px uppercase letter-spacing 0.12em Linen at 60%; items Figtree 15px Linen at 88%, links underline on hover. Bottom row: Teal 700 background, margin-top 64px, padding 20px 0, Figtree 13px Linen at 65%, flex justify-between, wraps under 768px. Under 1024px 2 columns, under 640px 1 column. A decorative Sage 300 arch at 8% opacity, 420px wide, sits at the right edge cropped by the bottom.
Motion: None beyond link hovers.
### Treatments & prices (`treatments.html`)
1. **Shared chrome** — Emergency banner, navigation (with 'Treatments & prices' marked current) and footer exactly as on index.html. All links back to the home page use ./index.html#<anchor>; booking links use ./index.html?treatment=<id>#book. On load of index.html with ?treatment= present, the booking select is preset and, if the hash is #book, the page scrolls to #book after layout.
Layout: Same components as the home page.
Motion: Same as the home page.
2. **Treatments header** — Breadcrumb Figtree 500 14px Slate: 'Home' (./index.html) / 'Treatments & prices'. Eyebrow 'Treatments & prices'. H1 'Every treatment, with the <em>price in plain sight.</em>' Lead 'These are the ranges our patients actually pay before insurance, including X-rays and a follow-up check. Your written estimate before treatment is the final price.' Buttons: Clay 'Book a visit' (./index.html#book) and secondary 'Call (320) 555-0142' (tel:). Photo public/images/treatment-wide.webp (alt 'Wide view of a sage treatment room with a cream dental chair and a large window').
Layout: Linen background, padding 56px 0 72px. Container grid 12 columns, gap 48px, items center: text columns 1–6, photo columns 7–12 in a frame with aspect 4/3, radius 28px, object-fit cover, object-position 40% 50%, loading eager. A Sage 100 arch behind the frame offset 24px right and 24px down. Under 1024px one column, photo aspect 16/10 below the text.
Motion: Text children reveal with --i 0–4, photo with --i 2.
3. **Price promise strip** — Three items with Teal lucide icons in 44px Sage 100 circles: FileText 'Written estimate first' — 'You see the exact amount and your insurance share before we start.'; Receipt 'X-rays and follow-up included' — 'No separate charge for the images or the check after treatment.'; BadgeDollarSign 'No surprise fees' — 'If something changes mid-treatment, we stop and ask first.'
Layout: Sage 50 band, padding 40px 0, container grid 3 columns, gap 32px, each item icon left and text right; 1 column under 768px.
Motion: Items reveal with --i 0–2.
4. **Category navigation** — Five pill links with counts: 'Preventive 5' (#preventive), 'Restorative 5' (#restorative), 'Cosmetic 3' (#cosmetic), 'Orthodontics 2' (#orthodontics), 'Emergency 1' (#emergency). Count in a small 22px circle inside the pill.
Layout: Sticky below the nav (top 76px, 64px under 768px), z-index 30, Linen at 92% with backdrop-blur 10px, 1px Line bottom border, height 64px. Pills: 40px tall, padding 0 16px, Figtree 600 15px, Paper with 1px Line border, Teal text; active pill Teal background, Linen text. On mobile the row scrolls horizontally with scroll-snap and the active pill scrolls into view. Scroll-spy: an IntersectionObserver (rootMargin '-45% 0px -50% 0px') sets the active pill to the category section crossing the middle of the viewport. Clicking a pill scrolls so the category heading sits 24px below the sticky bar (scroll-margin-top 164px on each category section).
Motion: Active pill colors change over 200ms.
5. **Treatment categories (#preventive, #restorative, #cosmetic, #orthodontics, #emergency)** — Each category: lucide icon in a 52px Sage 100 circle, H2 name, a Slate description, and an insurance note chip. Preventive (ShieldPlus) — 'Keep small problems small. Most plans cover these at 80–100%.' chip 'Usually covered'. Rows: #t-new-patient 'New-patient visit' — 'Exam, cleaning, low-dose digital X-rays and a written plan.' — '$89' (unit 'first visit') — 60–75 min, 1 visit — expect: 'Short health form and a chat about any worries', 'X-rays and a full exam, shown to you on screen', 'Cleaning and polish, then your written plan'. #t-cleaning 'Cleaning & check-up' — 'Plaque and tartar removed, gums checked, teeth polished.' — '$145–$210' — 45 min, 1 visit — 'Gum measurements and a quick exam', 'Scaling and polishing by our hygienist', 'Advice on brushing spots you miss'. #t-kids 'Child's check-up' — 'For ages 2 to 13: a gentle look, a clean and fluoride.' — '$75–$120' — 30 min — 'Your child meets the chair and the mirror first', 'Counting teeth, a gentle clean and fluoride', 'A sticker and tips for parents'. #t-deep-cleaning 'Deep cleaning' — 'Cleaning below the gumline for early gum disease.' — '$220–$320' (unit 'per quarter of the mouth') — 60 min, 2 visits — 'Numbing gel and local anesthetic so you feel pressure, not pain', 'Roots smoothed so gums can reattach', 'A re-check after 6 weeks'. #t-night-guard 'Night guard' — 'A custom guard for clenching and grinding.' — '$380–$520' — 2 visits of 20 min — 'A quick 3D scan, no goopy impressions', 'Fitting visit two weeks later', 'Free adjustment in the first year'. Restorative (Wrench) — 'Repairs that look like your own teeth. Plans typically cover 50–80%.' chip 'Partly covered'. Rows: #t-fillings 'Tooth-colored filling' — 'Decay removed and the tooth rebuilt in matched resin.' — '$160–$320' ('per tooth') — 30–60 min — 'Numbing, then the decay is removed', 'Resin shaded to your tooth and hardened with light', 'Bite checked and polished'; #t-root-canal 'Root canal' — 'Saves an infected tooth instead of removing it.' — '$950–$1,400' ('molar') — 90 min, 1–2 visits — 'Full numbing; most patients say it feels like a long filling', 'Infection cleaned out and the canals sealed', 'A crown is usually advised afterwards'; #t-crowns 'Ceramic crown' — 'A full cover for a cracked or heavily filled tooth.' — '$1,150–$1,550' — 2 visits — 'Tooth shaped and scanned', 'Temporary crown for about two weeks', 'Final ceramic crown bonded in place'; #t-implants 'Dental implant' — 'A titanium post, abutment and ceramic crown for a missing tooth.' — '$3,800–$4,900' — 3–6 months — 'CT scan and planning visit', 'Post placed under local anesthetic', 'Crown fitted once the bone has healed'; #t-extraction 'Tooth removal' — 'Simple extraction when a tooth can't be saved.' — '$180–$350' — 30 min — 'Numbing and gentle loosening', 'Gauze, aftercare sheet and a call the next day', 'Options to replace the tooth later'. Cosmetic (Sparkles) — 'Changes to color and shape. Rarely covered by insurance; payment plans apply.' chip 'Rarely covered'. Rows: #t-whitening 'Whitening' — 'In-chair whitening in one visit, or custom trays for home.' — '$280–$650' (unit 'trays $280–$340 · in-chair $450–$650') — 90 min — 'Shade measured before and after', 'Gums protected, gel applied in three rounds', 'Sensitivity gel to take home'; #t-bonding 'Bonding' — 'Chips and gaps reshaped with resin in one visit.' — '$250–$480' ('per tooth') — 45–60 min — 'No numbing needed in most cases', 'Resin sculpted and hardened', 'Polished to match your enamel'; #t-veneers 'Porcelain veneers' — 'Thin porcelain shells for shape, size and color.' — '$1,100–$1,600' ('per tooth') — 3 visits — 'Smile design and a preview in temporary resin', 'Teeth prepared and scanned', 'Veneers bonded and the bite adjusted'. Orthodontics (Smile) — 'Straightening for teens and adults. Some plans cover up to $1,500 for under-19s.' chip 'Sometimes covered'. Rows: #t-aligners 'Clear aligners' — 'Removable trays, changed every two weeks, planned with a 3D scan.' — '$3,400–$5,200' — 6–18 months — 'Free consultation and 3D scan', 'See your planned result before you decide', 'Check-ins every 8 weeks'; #t-retainers 'Retainers' — 'Keeps teeth where they are after orthodontics.' — '$220–$450' ('pair') — 2 visits — 'Scan after treatment ends', 'Clear or bonded retainer fitted', 'Wear at night, checked at cleanings'. Emergency (Siren) — 'Pain, swelling or a broken tooth. Same-day slots every weekday.' chip 'Usually covered'. Row: #t-emergency 'Emergency exam' — 'Diagnosis, X-ray and pain relief the same day.' — '$120' ('flat, X-ray included') — 30 min — 'Call before 10:00 am for a same-day slot', 'X-ray and a clear explanation of options', 'Pain relieved before you leave, treatment planned'.
Layout: Linen background. Each category section: padding 72px 0, 1px Line top border; container grid 12 columns, gap 48px. Left: columns 1–4, sticky top 164px on ≥1024px, holding the icon circle, the H2 (Fraunces 500 36px), the description (Slate 17px) and the insurance chip (Sage 50 background, Figtree 600 13px, Open text for 'Usually covered', Teal for 'Partly covered' and 'Sometimes covered', Slate for 'Rarely covered'). Right: columns 5–12, a stack of TreatmentRow cards with 12px gaps. TreatmentRow: Paper, radius 20px, 1px Line border, padding 24px 28px, grid 2 columns (1fr auto), gap 24px. Left: name Figtree 700 19px Teal, description Slate 16px, then meta chips (Sage 50, Slate 13px Figtree 600, radius 999px, padding 5px 12px, lucide Clock or CalendarDays 14px) for duration and visits. Right, top-aligned and right-aligned: price Fraunces 500 30px Teal tabular-nums, unit line Slate 13px below. Bottom of the card, spanning both columns, a row with a toggle button 'What to expect' (Figtree 600 14px Teal, lucide ChevronDown 16px that rotates 180° when open) on the left and a Teal link 'Book this' + ArrowRight 16px on the right (./index.html?treatment=<booking reason id>#book). The expanded panel shows the three steps as a numbered list with 22px Sage 100 number circles. Each row has id t-<id> and scroll-margin-top 164px; when the page loads with a matching hash, that row is opened and gets a 2px Clay outline that fades out over 1600ms. Under 1024px a single column; the category intro is not sticky; in each row the price moves under the name.
Motion: Category intros reveal; rows reveal with --i by index; the expect panel uses the grid-rows accordion; rows lift slightly on hover (translateY(-2px)).
6. **Clear aligner feature** — Image public/images/aligners.webp (alt 'Clear aligner trays beside a sage case on an oak table'). Eyebrow 'Most asked about'. H2 'Clear aligners, planned <em>in one visit.</em>' Lead 'A free consultation includes a 3D scan of your teeth and a preview of where they will move, so you know the result, the number of months and the price before you decide.' Stats row of three: '$3,400–$5,200' / 'full treatment'; 'from $227' / 'per month on a 12-month plan, after 20% down'; '6–18 months' / 'typical length'. Checklist with lucide CircleCheck Open: 'Free consultation and 3D scan', 'Refinement trays included at no extra cost', 'First pair of retainers included'. Clay button 'Book a free aligner consult' (./index.html?treatment=aligners#book).
Layout: Sage 50 background, padding 96px 0. Container grid 12 columns, gap 48px, items center: image columns 1–6 in a frame aspect 4/3, radius 28px, object-fit cover, object-position 65% 50%; text columns 7–12. Stats: 3 columns separated by 1px Line vertical rules, value Fraunces 500 30px Teal, label Slate 14px. Under 1024px one column, image first.
Motion: Image and text reveal, stats with --i 0–2.
7. **Payment plan calculator (#payment-plans)** — Image public/images/consult.webp (alt 'Consultation desk with a model of teeth and two sage chairs'). Eyebrow 'Payment plans'. H2 'See your monthly payment <em>before you book.</em>' Calculator card: (1) 'Treatment' select listing every treatment whose upper price is at least $500, with its midpoint as the default amount (e.g. 'Ceramic crown · $1,350'), plus 'Custom amount'; (2) 'Treatment cost' range slider $500 to $6,000, step $50, with the value shown above the thumb in Fraunces 500 40px Teal ('$1,350'); moving the slider switches the select to 'Custom amount'; (3) 'Plan length' segmented control '6 months' / '12 months' (default 12). Results: 'Due on the day (20%)' = round(amount × 0.2); 'Then per month' = ceil((amount − due today) / months), shown in Fraunces 500 56px Teal with '/ month'; 'Total' = amount, 'Interest' '0%'. A note line: amounts up to $2,000 show 'No credit check needed' with lucide CircleCheck in Open; above $2,000 'A soft credit check that doesn't affect your score' in Slate. Buttons: Clay 'Book a visit' (./index.html#book) and a Teal text link 'Ask Sam about your insurance' (tel:). Default state: Ceramic crown, $1,350, 12 months gives $270 today and $90 per month.
Layout: Linen background, padding 96px 0. Container grid 12 columns, gap 48px: left columns 1–5 holds the heading block and the image below it (aspect 4/3, radius 24px, object-fit cover, object-position 50% 55%); right columns 6–12 holds the calculator card: Paper, radius 28px, 1px Line, padding 40px. Results area: Sage 50 box radius 20px padding 24px, rows separated by 1px Line. Slider: 6px Sage 300 track with a Teal fill to the thumb, 24px Paper thumb with a 2px Teal border and shadow card, keyboard accessible (native input type range styled). Under 1024px one column, the calculator before the image.
Motion: Result numbers update instantly; the monthly value briefly scales from 0.98 to 1 over 200ms on change (not under reduced motion).
8. **Closing call-to-action** — H2 (Linen) 'Not sure what you'll <em>pay?</em>' Lead (Linen at 80%) 'Send a booking request or call, and we'll check your insurance and reply with an estimate within one business day.' Buttons: Clay 'Book a visit' (./index.html#book) and a Linen-outlined secondary 'Call (320) 555-0142' (1.5px Linen border, Linen text, hover background rgba(247,244,238,0.1)). Right side: OpenNowCard (same component as the hero, Paper).
Layout: Container, a Teal panel radius 28px, padding 64px, grid 2 columns (7fr 5fr), items center, overflow hidden; a decorative Sage 300 arch at 14% opacity, 360px wide, anchored to the bottom-right inside the panel. Under 768px one column, padding 32px, buttons full width. Margin 0 auto 112px.
Motion: Panel reveals.
## 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/b79d3426-5243-4ac1-9cd0-6b60aa93ace6/hero.webp → public/images/hero.webp (Home hero; alt 'Bright treatment room with a cream dental chair, sage walls and a window with linen curtains'); https://media.vibefather.ai/assets/b79d3426-5243-4ac1-9cd0-6b60aa93ace6/reception.webp → public/images/reception.webp (Gallery tile A; alt 'Reception with an oak counter, a sage bench and plants'); https://media.vibefather.ai/assets/b79d3426-5243-4ac1-9cd0-6b60aa93ace6/kids-corner.webp → public/images/kids-corner.webp (Gallery tile C; alt 'Children's corner with a small oak table and picture books'); https://media.vibefather.ai/assets/b79d3426-5243-4ac1-9cd0-6b60aa93ace6/treatment-wide.webp → public/images/treatment-wide.webp (Treatments header; alt 'Wide view of a sage treatment room with a cream dental chair and a large window'); https://media.vibefather.ai/assets/b79d3426-5243-4ac1-9cd0-6b60aa93ace6/aligners.webp → public/images/aligners.webp (Clear aligner feature; alt 'Clear aligner trays beside a sage case on an oak table'); https://media.vibefather.ai/assets/b79d3426-5243-4ac1-9cd0-6b60aa93ace6/consult.webp → public/images/consult.webp (Payment plan calculator; alt 'Consultation desk with a model of teeth and two sage chairs').
- image: CC0 photo: https://pd.w.org/2026/01/473697e76686ae8d2.18620605-2048x1365.jpg → public/images/lounge.jpg. Gallery tile B, a treatment-room lounge with a tan sofa, arc lamp and glass wall. Always crop with object-position 78% 50% in a portrait tile so the desk at the left of the photo stays out of view. Source page https://wordpress.org/photos/photo/473697e766/, author Kevin Baharvand (WordPress Photo Directory), license CC0 1.0.
- image: CC0 photo: https://pd.w.org/2026/04/67469efbf72491a05.40591059-2048x1536.jpg → public/images/instruments.jpg. Gallery tile D, dental handpieces on a unit beside an instrument tray. Source page https://wordpress.org/photos/photo/67469efbf7/, author Nilo Velez (WordPress Photo Directory), license CC0 1.0.
- image: CC0 photo: https://pd.w.org/2023/03/574641d8aa020bb64.64728093-1536x1536.jpg → public/images/toothbrushes.jpg. New-patient offer image, two bamboo toothbrushes on a bamboo mat (object-position 72% 70%). Source page https://wordpress.org/photos/photo/574641d8aa/, author Nora Ferreirós (WordPress Photo Directory), license CC0 1.0.
- image: Write ASSETS.md at the project root with a table: path, source URL, author, license, for all nine images (the six template photos list source 'media.vibefather.ai, made for this template', author 'VibeFather', license 'Distributed with the template'), plus the two font packages and lucide-react with their licenses. If you change [SPECIALTY], replace the six template photos with photos of your own rooms in the same style (daylight, sage, oak, no people) and swap any CC0 photo that no longer fits for another CC0 or public-domain photo with the same rules.
- icon: lucide-react only: Siren, X, Menu, Phone, Mail, MapPin, Clock, Star, ShieldCheck, ShieldPlus, Wallet, HandHeart, HeartHandshake, CalendarRange, CalendarCheck, CalendarDays, Stethoscope, Sparkles, Layers, Sun, Smile, Anchor, Wrench, BadgeCheck, CircleCheck, Check, AlertCircle, ArrowRight, ChevronDown, ChevronLeft, ChevronRight, Plus, FileText, Receipt, BadgeDollarSign. Stroke width 1.75, sizes as specified. If an icon name is missing in the installed version, use the closest lucide icon. No emoji.
- icon: public/favicon.svg and the tooth glyph before the wordmark are hand-written SVG as described in the shared head section. The brand itself is text in Fraunces; there is no other logo.
- font: Install @fontsource-variable/fraunces and @fontsource-variable/figtree and import them in both entry files. Vite bundles the woff2 files into dist/.
- image: Drawn in code: the map (inline SVG), monogram avatars, rating bars, decorative arches, the day strip and slot chips. No other bitmaps.
## Don'ts
- No backend of any kind: no server code, API routes, databases, auth, payments, email services, analytics or third-party APIs. The booking form calls preventDefault, validates in the browser and only swaps to the success state; it never submits, sends or stores anything.
- No map embeds or map tile services; the map is the inline SVG described.
- Do not load fonts from fonts.googleapis.com, fonts.gstatic.com, Adobe Fonts or any CDN. Self-host through the two Fontsource packages only.
- No CDN <script>, <link> or import maps. Every script, style, font, icon and image is in the project and bundled into dist/.
- No hotlinked images: every photo is downloaded into public/images/ once and served from there, and every third-party file is listed in ASSETS.md.
- No source maps in the production build (build.sourcemap false), and src/ is not copied into dist/.
- Relative asset paths (Vite base './'). The site is two real HTML files; every internal link points to ./index.html, ./treatments.html or a hash on them, never to a bare directory or /.
- Do not change the stack (Vite 5 + React 18 + TypeScript + Tailwind CSS 3.4 + lucide-react + Fontsource) unless the user asks. No animation library, no UI kit, no router: two entries and hash anchors.
- No real clinic's name, logo, slogan or copy, and no real dentists' names or credentials. All clinicians, patients, reviews, prices and the address are invented.
- No photos or illustrations of people: no faces, no patients, no before/after mouths, no stock smiling models. Team members appear only as monogram avatars.
- No real insurance companies, dental brands, equipment makers or product names anywhere in copy or images. Describe insurance only as PPO, HMO / DHMO and out-of-network.
- No medical claims beyond what is written here: no guarantees, no 'painless', no success-rate numbers. Keep the advice to go to the emergency room for swelling with trouble breathing or swallowing.
- Only the listed images, with the exact crops given (lounge.jpg always at object-position 78% 50% so its left side stays hidden). No Unsplash, Pexels, Pixabay or other stock sites with their own licenses, no placeholder-image services.
- Clay is the only accent and is reserved for booking buttons, the emergency banner and notices, stars, the map pin and the focus ring. No other bright colors, no blue medical gradients, no glassmorphism, no dark mode.
- No commercial or custom fonts: only Fraunces and Figtree (OFL).
- Only dependencies under MIT, ISC, BSD, Apache-2.0, 0BSD, CC0 or Unlicense (OFL for fonts). No Aceternity UI, Tailwind Plus / Tailwind UI or purchased template code.
- Respect prefers-reduced-motion exactly as described under Design motion.
- Must render at 1440×900 and 390×844 with zero console errors and no horizontal page scroll (only the day strip and the mobile category pills scroll inside themselves). Every interactive element is keyboard reachable with a visible Clay focus ring.
- Keep dist/ under 20 MB (target under 8 MB).
- No lorem ipsum, filler or hype words. Use the exact headlines, prices, hours and CTAs given here for the default values. No meta descriptions, Open Graph tags, JSON-LD or sitemap: only the <title> and favicon.
---
— Prompt by VibeFather · https://vibefather.ai/t/dental-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] 这个中型城镇提供 [SPECIALTY] 服务。整体观感平静、干净、值得信赖,兼具临床感与温度:亚麻色与柔和鼠尾草绿的表面、深青色的文字、一抹陶土色点缀、充裕的留白、圆角卡片,以及诊所房间与设备的真实照片(绝不出现患者)。index.html 承载整个就诊决策:急诊横幅、带实时“现在营业”卡片的主视觉区、安心承诺条、新患者优惠([NEW_PATIENT_OFFER])、六张含价格区间的治疗卡片、诊所图集、以字母组合卡片呈现并附资质的团队介绍、患者评价、保险与分期付款方案、带日期条、时段选项按钮和成功状态的客户端预约请求表单、带“现在营业”指示的营业时间、手绘地图、关于疼痛与费用的常见问题,以及页脚。treatments.html 按类别列出每一项治疗,附价格区间、时长、保险说明和就诊预期,另有一个隐形矫治器特色板块、一个分期付款计算器和结尾的行动号召。它必须读起来像一家已开业多年的真实诊所:具体的价格、营业时间、虚构的街道地址、有名有姓(虚构)的临床医生和患者,以及直白平实的回答。
- 受众:为自己或家人预约的本地成年人:有幼儿的父母、多年回避看牙且感到紧张的成年人,以及因为没有保险或只有基础保险计划而比较费用的人。大多数人用手机访问,往往来自搜索,想快速知道三件事:是否离我近、要花多少钱、能不能尽快约上。
- 目标:让访客提交预约请求。各处的主要 CTA:'Book a visit'(指向 ./index.html#book)。次要 CTA:致电 [PHONE](tel: 链接)和 'See treatments & prices'(./treatments.html)。遇到急诊时,横幅和预约侧栏改为推动电话致电,而非表单。
- 语气:温暖、平实、令人安心,像电话那头一位优秀的接待员。句子简短,用真实数字,术语必附通俗解释,不制造恐惧,不用炒作词汇(不用 world-class、state-of-the-art、cutting-edge、best-in-class、revolutionary)。以“你”称呼读者;诊所自称“我们”。
## 技术栈
- 框架:Vite 5 + React 18 + TypeScript
- 样式:Tailwind CSS 3.4
- 库:react(MIT)、react-dom(MIT)、lucide-react(ISC)、tailwindcss(MIT)、postcss(MIT)、autoprefixer(MIT)、vite(MIT)、@vitejs/plugin-react(MIT)、typescript(Apache-2.0)、@fontsource-variable/fraunces(OFL-1.1)、@fontsource-variable/figtree(OFL-1.1)
- 构建:`npm run build` → 静态文件输出到 `dist/`。无后端、无服务端代码、无外部 API。
- 初始化设置:
- 使用 react-ts 模板通过 npm create vite@latest 脚手架创建项目。项目根目录下有两个真实的 HTML 入口文件:index.html(挂载 src/home.tsx)和 treatments.html(挂载 src/treatments.tsx)。两者共享相同的组件、样式和内容文件。
- vite.config.ts:base 设为 './',plugins 为 [react()],build 配置 { outDir 'dist', sourcemap false, assetsInlineLimit 0, rollupOptions { input { index: resolve(__dirname, 'index.html'), treatments: resolve(__dirname, 'treatments.html') } } }。不要将 src/ 复制到 dist/ 中。
- 通过 PostCSS 使用 Tailwind 3.4(tailwindcss + postcss + autoprefixer),content 配置为 ['./index.html', './treatments.html', './src/**/*.{ts,tsx}']。在 tailwind.config.ts 中,将 Design 下的每种颜色以小写键名添加到 theme.extend.colors:linen、paper、sage-50、sage-100、sage-300、teal、teal-700、ink、slate、line、clay、clay-700、clay-50、open;fontFamily 配置 display 为 ['Fraunces Variable', 'Georgia', 'serif'],sans 为 ['Figtree Variable', 'system-ui', 'sans-serif'];boxShadow 配置 card 为 '0 1px 2px rgba(28,38,36,0.06), 0 8px 24px -12px rgba(28,38,36,0.18)',lift 为 '0 2px 4px rgba(28,38,36,0.06), 0 18px 40px -16px rgba(28,38,36,0.28)'。
- 在两个入口文件中导入 '@fontsource-variable/fraunces'、'@fontsource-variable/figtree' 和 './index.css'。
- 文件布局:src/content.ts(所有字符串、价格、治疗项目、团队成员、评价、FAQ、营业时间、图片路径和 alt 文本,均带类型)、src/index.css(Tailwind 层、.reveal 样式、keyframes pulse-dot 和 banner-collapse、reduced-motion 覆盖)、src/lib/hours.ts(当前营业状态、今日行、下次开门时间)、src/lib/slots.ts(日期条和时间段生成)、src/lib/reveal.ts(一个共享的 IntersectionObserver)、src/lib/params.ts(从 URL 读取 ?treatment=)。
- src/components/ 中的组件:EmergencyBanner、Nav、MobileMenu、Footer、Hero、OpenNowCard、Reassurance、NewPatientOffer、TreatmentPreview、Gallery、Team、MonogramAvatar、Reviews、Stars、InsurancePlans、BookingForm、DayStrip、SlotPicker、BookingSuccess、VisitPanel、HoursTable、MapDrawing、Faq、Accordion、TreatmentsHeader、PricePromise、CategoryNav、TreatmentCategory、TreatmentRow、AlignerFeature、PaymentCalculator、ClosingCta。页面位于 src/pages/Home.tsx 和 src/pages/Treatments.tsx。
- 在首次构建之前,使用 curl -L -o 将 Assets 下列出的每张图片下载到 public/images/ 中,并使用给定的确切文件名。构建过程从不获取任何内容。
- public/favicon.svg 如 Head 部分所述。index.html 的 <title>[BRAND] · [SPECIALTY] in [CITY]</title>(将 specialty 的首字母大写);treatments.html 的 <title>Treatments & prices · [BRAND]</title>。lang 为 en,theme-color 为 #F7F4EE。除 charset、viewport、title、theme-color 和 favicon 链接外,不添加其他 head 标签。
- dist/ 包含 index.html、treatments.html、带哈希的 JS/CSS、woff2 字体、favicon.svg 和九张图片。保持在 8 MB 以下。
## 变量
- [BRAND] — 诊所名称(默认:"Wrenfield Dental")。显示在导航文字标识、标题、页脚、预约成功文本和 FAQ 回答中。护理计划称为 '[BRAND] Care Plan',末尾的 Dental 一词省略('Wrenfield Care Plan')。
- [CITY] — 城镇或城市(默认:"Calder Springs")。虚构或真实的城镇名称。用于主视觉眉题、标题、地址区块和页脚。
- [SPECIALTY] — 诊所类型(默认:"family & cosmetic dentistry")。小写短语。决定主视觉眉题、标题以及所有治疗项目、价格、团队资质、FAQ 回答和照片。若为其他类型的诊所,需重写这些内容。
- [NEW_PATIENT_OFFER] — 新患者优惠(默认:"$89 first visit: exam, cleaning & X-rays")。先写价格,再写包含内容。用于优惠区块、主视觉信任行、预约原因列表和 FAQ。
- [PHONE] — 电话号码(默认:"(320) 555-0142")。演示时使用 555-01xx 号码。显示在紧急横幅、导航、预约面板、页脚中,并作为 tel: 链接(href 中仅使用数字,例如 tel:+13205550142)。
- [CREDIT] — 在页脚保留一个小型 "Template by VibeFather" 链接,指向 https://vibefather.ai/t/dental-clinic-website(默认:是;删除此行即可移除)
页面与区块下的文案按默认值编写。如果你的值不同,请为它们重写每个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便日后无需改动组件即可替换内容。
## 设计
### 颜色
- Linen `#F7F4EE` — 页面背景,Teal 和 Clay 表面上的文字
- Paper `#FFFFFF` — 卡片、表单表面、浮动主视觉卡片、输入框
- Sage 50 `#EEF3EF` — 交替区块背景(安心保障、团队、预约与到访),标签背景
- Sage 100 `#DFE8E1` — 图标圆圈、字母组合头像色调 A、选中日期标签边框、幽灵按钮悬停填充
- Sage 300 `#B7CBBE` — 字母组合头像色调 B、评分条轨道、地图公园区域、装饰拱形
- Teal `#1F4A47` — 标题、文字标识、次要按钮、选中标签、页脚和结尾 CTA 背景
- Teal 700 `#163634` — Teal 按钮悬停、页脚底行
- Ink `#1C2624` — 浅色表面上的正文文字
- Slate `#5B6966` — 次要文字、说明文字、字段帮助、时长、不可用时段
- Line `#DCE3DD` — 卡片、输入框、分隔线、表格行的 1px 边框
- Clay `#BF4F35` — 唯一的强调色:主要“Book a visit”按钮、紧急横幅背景、星形图标、焦点环、地图图钉。除横幅外,绝不用于大面积表面。
- Clay 700 `#A3412A` — Clay 按钮悬停和激活
- Clay 50 `#FBEAE4` — 预约表单和侧面板中的紧急通知框、错误字段背景
- Open `#2F7D5B` — 营业中圆点和文字、成功勾选、“often covered”保险标签文字
### 字体排印
- Display(H1、H2、价格、大号评分数字、字母组合、文字标识):Fraunces Variable(OFL),字重 400/500/600
- Text(正文、导航、按钮、标签、标签、表单字段、H3):Figtree Variable(OFL),字重 400/500/600/700
### 布局与动效
- 间距:8px 基准单位。容器最大宽度 1200px,侧边留白 clamp(20px, 4vw, 40px)。桌面端区块垂直内边距 112px,768px 以下 72px。H1 Fraunces 500 clamp(42px, 5.4vw, 72px),行高 1.04,字距 -0.02em,颜色 Teal。H2 Fraunces 500 clamp(32px, 3.6vw, 48px),行高 1.1,字距 -0.015em,Teal;每个 H2 中有一个词或短语使用 Fraunces 400 斜体(在下方文案中用 <em> 标记)。H3 Figtree 600 20px/1.3 Ink。正文 Figtree 400 17px/1.65 Ink(768px 以下 16px);导语段落 19px Slate。眉题 Figtree 600 13px 大写,字距 0.12em,Teal 80% 不透明度,文字前 10px 处有一个 6px Clay 圆点。价格 Fraunces 500,使用 font-variant-numeric tabular-nums。区块标题:眉题、H2 和最大宽度 56ch 的导语,标题下方距内容 48px。
- 圆角:卡片和照片图块 24px,新患者优惠卡片和预约表单卡片 28px,输入框和选择框 14px,按钮、标签、日期条标签和时间段标签完全圆角(999px),图标圆圈和字母组合头像是圆形。主要按钮是 52px 高的胶囊形(导航中 44px),内边距 0 26px,Figtree 600 16px,Clay 背景,Linen 文字,带一个 lucide ArrowRight 18px,悬停时向右移动 3px。次要按钮尺寸相同,1.5px Teal 边框,Teal 文字,透明背景,悬停时 Sage 100 填充。
- 动效:全局缓动:cubic-bezier(0.22, 1, 0.36, 1)。时长:悬停和标签选择 200ms,手风琴和菜单 300ms,显现 600ms。
- 动效:显现:带有 .reveal 类的元素从 opacity 0 和 translateY(16px) 开始,在 15% 可见时于 600ms 内过渡到静止状态,仅一次(src/lib/reveal.ts 中一个共享的 IntersectionObserver 添加 .is-in)。网格中的同级元素通过 --i CSS 变量错开 70ms(transition-delay calc(var(--i) * 70ms))。加载时已在视口内的元素立即显现,使用相同的错开。
- 动效:卡片悬停(治疗卡片、团队卡片、方案卡片、画廊图块):translateY(-3px) 和 shadow card 在 200ms 内抬升;画廊图片还在其 overflow-hidden 图块内于 600ms 内缩放到 1.03。
- 动效:营业中圆点:一个 8px 的 Open 圆圈,带有一个脉冲环(关键帧 pulse-dot:box-shadow 0 0 0 0 rgba(47,125,91,0.45) 到 0 0 0 8px rgba(47,125,91,0),2000ms,无限循环)。关闭时圆点为 Slate 且不脉冲。
- 动效:手风琴(FAQ、what-to-expect、移动菜单分组):高度使用 CSS grid 技巧动画(grid-template-rows 0fr 到 1fr,内部 overflow hidden),时长 300ms;打开时 lucide Plus 图标旋转 45 度。
- 动效:标签:日期和时间段标签按下时缩放到 0.97;选中状态在 200ms 内切换背景和文字颜色。
- 动效:紧急横幅关闭:高度折叠到 0 并在 250ms 内淡出,然后卸载。
- 动效:预约成功:表单淡出(200ms),成功卡片淡入并在 400ms 内上升 12px,页面滚动使卡片顶部位于视口顶部下方 96px 处。
- 动效:减少动态效果(prefers-reduced-motion: reduce):显现立即显示,无变换、无错开、无悬停抬升或图片缩放、无圆点脉冲,手风琴立即打开和关闭,平滑滚动替换为即时跳转,横幅无动画消失。
- 图像:诊所房间、家具和设备的真实照片,柔和日光:鼠尾草绿墙壁、浅色白橡木、奶油色软包、陶土色花盆中的植物。绝无患者,绝无面部,绝无前后对比的口腔照片。六张照片为本模板制作并由其作者托管;三张 CC0 照片(安静的诊疗室休息区、牙科设备上的手机、竹牙刷)增添现实细节。照片始终以 24px 圆角图块显示,使用 object-fit cover 和指定的精确 object-position,绝不作为文字背后的全出血背景。人物以字母组合头像显示。图标来自 lucide-react;favicon、文字标识字形、地图、评分条和装饰拱形用 SVG 或 CSS 绘制。无插画,无库存微笑模特照片,无 3D,除指定细微渐变外无渐变。
## 页面与区块
### 首页(`index.html`)
1. **共享:内容文件、数据规则与 head** — src/content.ts 导出:brand、city、specialty、phone(显示用)和 phoneHref('tel:+13205550142')、email '[email protected]'、address {line1 '218 Larkspur Avenue, Suite 2', line2 'Calder Springs', note 'Free parking behind the building · Bus 4 stops at Larkspur & 3rd'}、hours、treatments、categories、team、reviews、faqs、plans、images。营业时间(表格、当前营业逻辑和时段共用的唯一数据源):周一 8:00–17:00,周二 8:00–19:00,周三 8:00–17:00,周四 8:00–19:00,周五 8:00–14:00,周六 9:00–13:00,周日休息;周一至周四午休 12:30–13:30(不设时段,但诊所仍计为营业)。时间以美国 12 小时制显示:'8:00 am'、'5:00 pm'。Head:<title>Wrenfield Dental · Family & cosmetic dentistry in Calder Springs</title>。public/favicon.svg,viewBox 0 0 32 32:rect width 32 height 32 rx 9 fill #1F4A47;一颗牙齿路径 fill #F7F4EE:'M11 7.5c-2.9 0-4.7 2.3-4.7 5.4 0 2.6 1 4.6 1.8 6.9.8 2.3 1.1 6.2 2.8 6.2 1.6 0 1.8-3.5 2.5-5.3.4-1 1-1.5 2.6-1.5s2.2.5 2.6 1.5c.7 1.8.9 5.3 2.5 5.3 1.7 0 2-3.9 2.8-6.2.8-2.3 1.8-4.3 1.8-6.9 0-3.1-1.8-5.4-4.7-5.4-2.1 0-3.2 1.2-5 1.2s-2.9-1.2-5-1.2z';一个 3px 圆点,cx 23 cy 9,fill #BF4F35。同一个牙齿图形(不含圆角方块,fill 为 Teal)是字标前 22px 的标记。这是一个虚构的标记。
布局:所有文案、数字和图片路径均从 src/content.ts 读取;组件中不含硬编码字符串。当变量值变化时,重写 content.ts 中的每个字符串以适配新的诊所(治疗项目、价格、资质、FAQ、alt 文本),并保持结构、数量和布局不变。时间根据访客的本地时钟计算,视为诊所的本地时间。
动效:无。
2. **紧急提示横幅(共享,两个页面顶部)** — lucide Siren 18px,然后是 'Toothache, swelling or a knocked-out tooth? We keep same-day emergency slots every weekday.'(低于 768px 时缩短为 'Dental emergency? Same-day slots.'),然后是一个带下划线的链接 'Call (320) 555-0142'(tel:)和一个关闭按钮(lucide X 18px,aria-label 'Dismiss emergency notice')。
布局:全宽,Clay 背景,Linen 文字,Figtree 500 15px,高度 44px(换行时自动高度,内边距 8px),内容在容器中居中,间距 12px;关闭按钮位于右边缘,32px 方形。非粘性:随页面滚动移出。关闭状态保存在 sessionStorage 键 'banner-dismissed' 中,并在本次会话中对两个页面生效。
动效:关闭时按设计动效中的方式折叠。
3. **导航(共享)** — 左侧:牙齿图形 + 字标 'Wrenfield Dental'(Fraunces 600 21px,Teal),链接到 ./index.html。中间链接(≥1024px),Figtree 500 15px Ink,悬停时 Teal 并带一条从左侧展开的 2px Clay 下划线:'Treatments & prices'(./treatments.html)、'Team'(./index.html#team)、'Reviews'(./index.html#reviews)、'Insurance'(./index.html#insurance)、'Visit us'(./index.html#visit)。当前页面的链接(treatments.html 上的 Treatments)为 Teal 并显示下划线。右侧:带 lucide Phone 16px 的电话链接 '(320) 555-0142'(仅 ≥1280px,Figtree 600 15px Teal)以及 Clay 主按钮 'Book a visit'(高 44px),指向 ./index.html#book。
布局:粘性定位 top 0,z-index 40,高度 76px(低于 768px 时为 64px),背景 Linen 92% 不透明度并带 backdrop-blur 10px,1px Line 底边框仅在 scrollY > 8 后出现。容器 1200px,flex justify-between items-center。低于 1024px 时中间链接隐藏,'Book a visit' 右侧出现一个 44px 圆形按钮,内含 lucide Menu 22px('Book a visit' 缩至 40px 高,标签为 'Book');点击打开 MobileMenu:一个全宽 Paper 面板从栏下方展开,五个链接为 56px 行,以 Line 分隔,然后是一个全宽 Teal 次要按钮 'Call (320) 555-0142' 和今天的营业时间行('Today 8:00 am – 5:00 pm')。按 Escape、点击链接或 X 图标可关闭;打开时锁定 body 滚动。
动效:菜单面板以 opacity 0 到 1、translateY(-8px) 到 0 在 300ms 内打开。
4. **Hero** — 眉题 'Family & cosmetic dentistry in Calder Springs'。H1 'Calm, careful dentistry for the <em>whole family.</em>'。导语:'Unhurried appointments, prices you can see before you sit down, and a team that explains every step. New patients welcome: kids, nervous adults and everyone in between.' 按钮:Clay 主按钮 'Book a visit'(#book)和次要按钮 'See treatments & prices'(./treatments.html)。按钮下方的信任行,Figtree 500 14px Slate,三项以 4px Line 圆点分隔,每项带一个 16px Teal 的 lucide 图标:Star(填充 Clay)'4.9 from 418 patient reviews';ShieldCheck 'In-network with most PPO plans';Clock 'Open until 7:00 pm Tue & Thu'。照片 public/images/hero.webp(alt 'Bright treatment room with a cream dental chair, sage walls and a window with linen curtains')。照片上两张浮动卡片:OpenNowCard 位于左下:Open 圆点 + 'Open now'(Figtree 700 15px Open)和 'Closes 5:00 pm today'(Slate 14px),或关闭时为 Slate 圆点 + 'Closed now' 和 'Opens Tue 8:00 am';下方一条 1px Line 和地址 '218 Larkspur Avenue' 带 lucide MapPin 14px。右上角下一个可用时段卡片:lucide CalendarCheck 18px Teal,'Next free appointment'(Slate 13px)以及从 src/lib/slots.ts 计算出的第一个可用时段,例如 'Tomorrow, 9:30 am'(Figtree 700 16px Teal;若为次日则显示 'Tomorrow',否则显示 'Thu 5 Nov'),链接到 #book 并预选该日期和时段。
布局:Linen 背景,上内边距 64px,下内边距 96px。容器 12 列网格,间距 48px,items center。文本占第 1–6 列,最大宽度 580px。照片占第 7–12 列,置于一个宽高比 4/5 的框架中,圆角 28px,overflow hidden,object-fit cover,object-position 55% 50%,loading eager,fetchpriority high。框架后方是一个装饰性 Sage 100 拱形(顶部圆角的矩形,border-radius 999px 999px 28px 28px),向左偏移 24px、向下偏移 24px,z-index 低于照片。OpenNowCard:Paper,圆角 20px,内边距 16px 20px,shadow lift,绝对定位 left -32px bottom 40px,宽度 260px。下一个时段卡片:Paper,圆角 20px,内边距 14px 18px,shadow lift,绝对定位 right 24px top 24px。低于 1024px:单列,文本在前,照片全宽,宽高比 4/3(object-position 55% 40%),拱形隐藏,OpenNowCard 移入照片内 left 16px bottom 16px,下一个时段卡片位于 right 16px top 16px 且标签隐藏。低于 768px 时 H1 为 42px;按钮堆叠为全宽。
动效:文本块子元素在加载时以 --i 0–4 依次显现,照片框架以 --i 2 显现,两张卡片以 --i 5 和 6 显现。营业时 Open 圆点脉动。
5. **安心条** — 四项,每项为一个 48px Sage 100 圆形,内含 22px Teal 的 lucide 图标,一个 17px 的 H3 和一行 Slate 文字:ShieldCheck 'Insurance, filed for you' — 'In-network with most PPO plans. We send the claim and show your share first.';Wallet 'Payment plans at 0%' — 'Spread treatment over 6 or 12 months, no credit check under $2,000.';Siren 'Same-day emergencies' — 'Slots held every weekday morning for pain, swelling and broken teeth.';HandHeart 'Gentle by default' — 'Numbing gel before every injection, headphones, and a pause whenever you raise a hand.'
布局:Sage 50 背景,内边距 56px 0。容器 4 列网格,间距 32px,每项为一行:图标在左,文字在右(间距 16px)。低于 1024px 为 2 列,低于 640px 为 1 列,间距 24px。
动效:各项以 --i 0–3 依次显现。
6. **新患者优惠** — 图片 public/images/toothbrushes.jpg(alt 'Two bamboo toothbrushes on a woven bamboo mat')。眉题 'New patients'。H2 'Your first visit: <em>$89,</em> everything included.'(来自 [NEW_PATIENT_OFFER])。清单带 lucide CircleCheck 20px Open:'A full exam with Dr. Marsh or Dr. Nandakumar'、'A professional cleaning and polish'、'Low-dose digital X-rays'、'A written treatment plan with prices, and no pressure to start anything'。小字 Slate 14px:'Usually $240. Applies to patients paying without insurance. Most insured patients pay $0 for this visit.' 按钮:Clay 主按钮 'Claim the $89 visit'(链接 ?treatment=new-patient#book)和一个文字链接 'What happens at the first visit'(#faq,打开 FAQ 项 'What happens at my first visit?')。
布局:Linen 背景。容器内单张卡片:Paper,圆角 28px,1px Line 边框,overflow hidden,2 列网格(5fr 7fr)。左侧:图片填满该列,min-height 440px,object-fit cover,object-position 72% 70%。右侧:内边距 56px,flex column justify-center,清单行间距 14px。卡片右上角一个 Clay 50 标签 'Save $151'(Figtree 700 13px Clay),位于 top 24px right 24px。低于 768px:单列,图片在上,宽高比 16/10,内边距 28px。
动效:卡片显现;清单行以 --i 0–3 依次显现。
7. **治疗项目预览(Treatments preview)** — 眉题(Eyebrow)'Treatments'。H2 'Treatments, with the <em>price up front.</em>'。导语(Lead)'Every price below is the range our patients actually pay before insurance. You get an exact written estimate before anything starts.' 六张卡片,每张包含一个 40px 的 Sage 100 图标圆(Teal 色 lucide 图标 20px)、名称(H3)、一行 Slate 文字、一行价格和一枚时长标签(chip):Stethoscope 'New-patient visit' — 'Exam, cleaning and X-rays in one unhurried hour.' — '$89' — '60–75 min';Sparkles 'Cleaning & check-up' — 'Twice a year keeps most problems small and cheap.' — '$145–$210' — '45 min';Layers 'Tooth-colored fillings' — 'Matched to your tooth, done in one visit.' — '$160–$320 per tooth' — '30–60 min';Sun 'Whitening' — 'In-chair in 90 minutes, or custom trays for home.' — '$280–$650' — '90 min';Smile 'Clear aligners' — 'Straighter teeth with removable trays, planned with a 3D scan.' — '$3,400–$5,200' — '6–18 months';Anchor 'Dental implants' — 'A permanent tooth replacement: post, abutment and crown.' — '$3,800–$4,900' — '3–6 months'。每张卡片末尾有一个 Teal 色链接 'Details' + ArrowRight 16px,指向 ./treatments.html#t-<id>(id 分别为 new-patient、cleaning、fillings、whitening、aligners、implants)。网格下方是一个居中的次级按钮 'All 16 treatments & prices',指向 ./treatments.html。
布局(Layout):Linen 背景。容器网格 3 列,间距 20px(1024px 以下 2 列,640px 以下 1 列)。卡片:Paper,圆角 24px,1px Line 边框,内边距 28px,flex 纵向排列;价格行位于底部(margin-top auto),左侧价格使用 Fraunces 500 28px Teal,右侧为时长标签(Sage 50 背景,Slate 13px Figtree 600,内边距 6px 12px,lucide Clock 14px)。整张卡片即链接(用一个 <a> 包裹),聚焦环(focus ring)2px Clay,偏移 3px。
动效(Motion):卡片以 --i 0–5 依次显现,悬停时上浮;ArrowRight 悬停时右移 3px。
8. **诊所内部(画廊)** — 眉题 'The clinic'。H2 'A clinic that feels more like a <em>living room.</em>'。导语 'Daylight in every treatment room, a ceiling screen to watch something during long visits, and a play corner by reception for brothers and sisters who come along.' 四个图块,左下角 16px 处各有一枚说明标签(Paper 92% 不透明度,圆角 999px,Figtree 600 13px Teal,内边距 8px 14px):A public/images/reception.webp 'Reception & waiting room'(alt 'Reception with an oak counter, a sage bench and plants');B public/images/lounge.jpg 'Consult lounge'(alt 'Lounge with a tan sofa and a glass wall to a treatment room');C public/images/kids-corner.webp 'Play corner'(alt 'Children's corner with a small oak table and picture books');D public/images/instruments.jpg 'Sterilized every visit'(alt 'Handpieces on a dental unit beside a tray of instruments')。
布局:Sage 50 背景。容器网格 12 列,两行各 260px,间距 16px:A 占第 1–6 列、第 1–2 行;B 占第 7–9 列、第 1–2 行;C 占第 10–12 列、第 1 行;D 占第 10–12 列、第 2 行。每个图块圆角 24px,overflow hidden,图片 object-fit cover。精确裁切:A object-position 50% 50%;B object-position 78% 50%(裁切必须把这张照片的左侧部分连同其书桌排除在视野之外);C 50% 50%;D 40% 50%。768px 以下:单列,A 宽高比 4/3,B 宽高比 4/5(object-position 78% 50%),C 宽高比 1/1,D 宽高比 4/3。图片使用 loading lazy。
动效:图块以 --i 0–3 依次显现;悬停时图片缩放。
9. **团队(#team)** — 眉题 'Team'。H2 'The people <em>you'll see.</em>'。导语 'Four clinicians, and the same faces at every visit. Here is who they are and what they trained in.' 四张卡片:(1) 字母组合 'HM','Dr. Helena Marsh',职位 'Founder · General dentist',资质列表:'DDS, 2008'、'16 years in practice, 9 in Calder Springs'、'600+ implants restored'、'Speaks English and Portuguese';(2) 'TL','Dr. Theo Lindqvist','Cosmetic dentistry & aligners','DMD, 2014'、'Clear aligner provider since 2016'、'Porcelain veneers and bonding'、'Certified in nitrous oxide sedation';(3) 'PN','Dr. Priya Nandakumar','Family & children's dentistry','DDS, 2012'、'Pediatric dentistry residency, 2 years'、'Sees patients from age 2'、'Gentle care for anxious patients';(4) 'RD','Rosa Delgado, RDH','Lead dental hygienist','Registered dental hygienist, 2011'、'Deep cleaning and gum care'、'Local anesthesia certified'、'Known for very gentle cleanings'。网格下方一行 Slate 文字:'Questions about cost or insurance? Sam Okoro, our patient coordinator, answers weekdays 8:00 am – 5:00 pm.'
布局:Linen 背景。容器网格 4 列,间距 20px(1024px 以下 2 列,640px 以下 1 列)。卡片:Paper,圆角 24px,1px Line 边框,内边距 28px。MonogramAvatar:72px 圆形,Fraunces 500 26px Teal 首字母,letter-spacing 0.02em,背景色循环使用 Sage 100、Sage 300、Clay 50、Sage 100,并带 1px 内环 rgba(31,74,71,0.12)。下方:姓名 Fraunces 500 22px Teal,职位 Figtree 600 14px Slate,1px Line,然后资质以列表呈现,每项带 lucide BadgeCheck 16px Open 和 Figtree 15px Ink,间距 10px。任何地方都不使用人物照片。
动效:卡片以 --i 0–3 依次显现,悬停时上浮。
10. **评价(#reviews)** — 眉题 'Reviews'。H2 'What patients say <em>after the visit.</em>'。摘要区块:'4.9'(Fraunces 500 88px Teal),五颗 Clay 色星星(lucide Star,实心,20px),'Average of 418 reviews from our patients'(Slate 15px),然后是五条评分条:5 星 92%,4 星 6%,3 星 1%,2 星 1%,1 星 0%(标签 Figtree 600 13px,Sage 300 轨道高 8px、圆角 999px,Teal 填充至对应百分比,百分比在右侧 Slate 13px)。六张评价卡片(除注明外均为 5 星):'I hadn't been to a dentist in eleven years and was dreading it. Dr. Marsh showed me every X-ray, told me exactly what it would cost, and never once made me feel bad.' — Marcus T., new patient;'Both kids now ask when they can go back. Dr. Nandakumar lets them hold the mirror and count their own teeth.' — Elena R., family of four;'Cracked a molar on a Saturday morning, called at 9:10 and was in the chair by 11. The crown was done the following week.' — Owen B., emergency visit;'The estimate said $1,240 after insurance and the bill said $1,240. That has never happened to me before.' — Priyanka S., crown;'Rosa is the gentlest hygienist I have ever had. She stops before you even need to ask.' — Hannah L., cleaning;(4 星)'Evening slots fill fast, so book a couple of weeks ahead. Otherwise everything about my aligner treatment has been easy.' — Jordan K., clear aligners。每张卡片:星星 16px,引文 Figtree 400 17px Ink,然后是姓名 Figtree 700 15px Teal 和治疗项目 Slate 14px。
布局:Sage 50 背景。容器网格 12 列,间距 48px。摘要占第 1–4 列,在 ≥1024px 时 sticky top 112px。卡片占第 5–12 列,采用 CSS columns 布局(column-count 2,column-gap 20px;卡片 break-inside avoid,margin-bottom 20px):Paper,圆角 24px,1px Line 边框,内边距 28px;每张卡片左上角有一个 Fraunces 400 64px Sage 300 的开引号,line-height 0.5。1024px 以下为单列,摘要排在最前且不 sticky,卡片为 1 列。
动效:摘要显现,评分条在可见时以 800ms 从宽度 0 动画到对应数值(减少动态效果模式下为瞬时),卡片以 --i 0–5 依次显现。
11. **保险与支付计划(#insurance)** — 眉题 'Paying for care'。H2 'Insurance, memberships and <em>payment plans.</em>'。导语 'Whichever way you pay, you see the number before we start.' 三张卡片:(1) lucide ShieldCheck 'Dental insurance' — 'We're in-network with most PPO plans and file every claim for you. Before treatment you get a written estimate of what your plan pays and what you pay.' 行:'PPO plans' – 'In-network';'HMO / DHMO plans' – 'Call to check';'Out-of-network' – 'We file, you're reimbursed'。(2) lucide HeartHandshake 'Wrenfield Care Plan' — 面向没有保险的患者:价格 '$29 / month'(Fraunces 500 40px)以及 'or $319 a year · kids $19 / month'(Slate),清单 'Two cleanings and exams a year'、'All routine X-rays'、'One emergency exam'、'15% off every treatment'。右上角徽章标签 'Most chosen without insurance'(Clay 50 背景,Clay 文字)。(3) lucide CalendarRange 'Payment plans at 0%' — 'For treatment over $500. Split the cost into equal monthly payments with no interest.' 行:'Terms' – '6 or 12 months';'Interest' – '0%';'Credit check' – 'None under $2,000';'Down payment' – '20%'。卡片下方一个 Teal 文字链接 'Estimate your monthly payment' + ArrowRight,指向 ./treatments.html#payment-plans。
布局:Linen 背景。容器网格 3 列,间距 20px(1024px 以下 1 列)。卡片:Paper,圆角 24px,1px Line 边框,内边距 32px,flex 纵向排列;中间卡片为 2px Teal 边框和 Sage 50 背景。行是定义对(definition pairs),顶部 1px Line 边框,内边距 12px 0,标签 Slate 15px 居左,值 Figtree 600 15px Ink 居右。不要提及任何保险公司名称。
动效:卡片以 --i 0–2 依次显现,悬停时上浮。
12. **预约与到访(#book、#visit)** — 眉题(Eyebrow)为 'Book a visit'。H2 为 'Request an appointment <em>in a minute.</em>'。导语为 'Pick a time that suits you. We call or text within one business hour to confirm. Requests sent after hours are confirmed the next morning.'。BookingForm 卡片包含四个编号步骤(步骤编号位于 28px 的 Teal 圆形中,使用 Linen 色、Figtree 700、14px 的数字;步骤标题使用 Figtree 700、17px、Teal 色):1 'What is the visit for?' — 一个下拉选择框,选项(值:标签)为:new-patient: 'New-patient visit ($89)';cleaning: 'Cleaning & check-up';kids: 'Child's check-up';emergency: 'Tooth pain or emergency';whitening: 'Whitening consultation';aligners: 'Clear aligner consultation (free)';implants: 'Implant or crown consultation';fillings: 'Fillings or other treatment';other: 'Something else'。默认选中 new-patient;如果 URL 带有 ?treatment=<value>(或来自 treatments.html 的治疗 ID,映射关系:crowns、root-canal 和 extraction 按 content.ts 中所列映射到 implants 或 fillings),则预选该项。其下方是一个分段控件 'I am a',包含 'New patient'(默认)和 'Returning patient'。当选中 'emergency' 时,下拉选择框下方会出现一个 Clay 50 的提示:Clay 色的 lucide Siren 图标,文字 'In pain right now? Calling is faster. We hold same-day emergency slots every weekday morning.',以及一个 Clay 按钮 'Call (320) 555-0142'(tel:)。2 'Choose a day' — DayStrip。3 'Choose a time' — SlotPicker。4 'Your details' — 字段:'Full name'(必填)、'Mobile phone'(必填,至少 10 位数字)、'Email'(必填,有效格式 [email protected])、'How will you pay?' 下拉选择框('I have dental insurance'、'Wrenfield Care Plan member'、'Paying myself'、'Not sure yet')、'Anything we should know? (optional)' 文本域 3 行,带实时计数器 '0 / 300',以及一个复选框 'Send me a text reminder the day before'(默认勾选)。提交:Clay 色主按钮,全宽,文字 'Request this appointment',其上方有一行摘要,使用 Figtree 600、15px、Teal 色:例如 'New-patient visit · Tue 3 Nov · 10:30 am'(未完成时显示 Slate 色的 'Choose a day and time')。按钮下方为 Slate 色 13px 文字:'This sends a request, not a confirmed booking. We never share your details.'。BookingSuccess:一个 56px 的 Open 圆形,内含 28px 的 Linen 色 lucide Check 图标,H3 使用 26px、Fraunces 500、Teal 色,文字 'Request received, Marcus.'(名字的第一个词),正文 'We'll call you at (320) 555-0199 within one business hour to confirm your new-patient visit on Tuesday, 3 November at 10:30 am.'(所有值均来自表单),一个参考编号标签 'Reference WD-1030-03'(格式为 WD-HHMM-DD,来自所选时段和日期),一个 Sage 50 的方框,内含三行文字 'Bring a photo ID and your insurance card'、'Arrive 10 minutes early for a short health form'、'Free parking behind the building',以及两个按钮:次要按钮 'Make another request'(重置表单)和一个文本链接 'Back to top'。VisitPanel(右栏)有三张堆叠的卡片:营业时间卡片 — 标题 'Opening hours',带当前营业状态行(圆点 + 'Open now · closes 5:00 pm' 或 'Closed · opens Tue 8:00 am'),HoursTable 包含七行周一至周日(星期使用 Figtree 600,时间右对齐并使用 tabular-nums;周日 'Closed' 使用 Slate 色;表格下方有午餐说明 'Closed for lunch 12:30–1:30 pm Mon–Thu',Slate 色 13px);今天的行有 Sage 50 背景、10px 圆角和一个小 'Today' 标签。地址卡片 — 顶部为 MapDrawing,然后是 '218 Larkspur Avenue, Suite 2'、'Calder Springs',停车/公交说明使用 Slate 色,电话链接和邮箱链接带 16px 的 lucide Phone 和 Mail 图标。急诊卡片 — Clay 50 背景,Clay 色的 lucide Siren 图标,'Dental emergency?' 使用 Figtree 700,'Call before 10:00 am for a same-day slot. After hours, our message tells you who is on call.',电话为 Clay 色链接。
布局:Sage 50 背景,内边距 112px 0。#visit 锚点位于 VisitPanel 上。容器为 12 列网格,间距 32px:页头横跨 12 列;表单卡片横跨第 1–7 列(Paper 色,圆角 28px,1px Line 边框,内边距 40px,768px 以下为 28px;步骤之间用 1px Line 分隔,内边距 28px);VisitPanel 横跨第 8–12 列,在 ≥1024px 时 sticky 定位,top 104px,卡片为 Paper 色、圆角 24px、内边距 24px、间距 16px。1024px 以下为单列,表单在前。字段:标签使用 Figtree 600、14px、Ink 色,位于上方;输入框高 52px,Paper 背景,1px Line 边框,圆角 14px,内边距 0 16px,Figtree 16px;聚焦时:边框为 Teal 色,并带 3px 光环 rgba(191,79,53,0.25);错误时:边框为 Clay 色,背景为 Clay 50,并有一行 Clay 色的错误提示,使用 Figtree 500、14px,带 14px 的 lucide AlertCircle 图标('Please enter your name'、'Enter a phone number with at least 10 digits'、'Enter a valid email'、'Choose a day'、'Choose a time')。姓名和电话在 ≥768px 时并排显示。分段控件:Sage 50 轨道,圆角 999px,内边距 4px,两个 40px 的选项,选中项为 Paper 色,带阴影卡片和 Teal 色文字。DayStrip:一个水平可滚动的行(scroll-snap x,隐藏滚动条,在 ≥768px 时左右各有 36px 的圆形箭头按钮,带 lucide ChevronLeft/ChevronRight 图标),显示从明天开始的未来 14 天;每个芯片宽 64px × 高 76px,圆角 18px,Paper 色带 1px Line 边框:星期 'Tue'(Figtree 600、12px、大写、Slate 色),日期 '3'(Fraunces 500、24px、Teal 色),月份 'Nov'(Slate 色、12px)。周日禁用:Slate 色文字 50% 透明度,虚线边框,标签显示 'Closed' 而非月份。选中的芯片:Teal 背景,Linen 文字,无边框。默认选中第一个开放日。SlotPicker:三个分组 'Morning'、'Afternoon'、'Evening'(分组标签使用 Figtree 600、13px、大写、Slate 色;无时段的分组不渲染),芯片在可换行的 flex 行中,间距 8px,每个高 40px,最小宽度 92px,Paper 色带 1px Line 边框,Figtree 600、15px、Ink 色,tabular-nums,标签 '10:30 am'。src/lib/slots.ts 中的时段规则:开始时间从开门起每 30 分钟一个,直到关门前 30 分钟;周一至周四跳过 12:30 pm 和 1:00 pm(午餐);当 (dayOfMonth * 3 + slotIndex * 7) % 6 === 0 时,时段显示为已占用(Slate 色 45% 透明度,删除线,禁用,aria-label '10:30 am, taken');分组:Morning 为 12:00 之前,Afternoon 为 12:00–16:59,Evening 为 17:00 及之后。选中的时段:Teal 背景,Linen 文字。更改日期会清除已选时段。无障碍:日期条和每个时段分组都是 radiogroup,支持方向键导航,每个输入框都有标签,错误通过 aria-describedby 关联,成功卡片位于 aria-live polite 区域并获得焦点。提交时:preventDefault,验证,如果有无效字段则聚焦并滚动到第一个无效字段;否则用 BookingSuccess 替换表单。不会向任何地方发送数据,也不会存储任何内容。MapDrawing:内联 SVG viewBox 0 0 400 220,圆角 18px,背景 Linen;街道网格为 14px 宽的 Paper 色圆角描边,位于 Sage 50 底面上(两条水平街道在 y 70 和 160,三条垂直街道在 x 90、210、330,一条对角线从 0,220 到 140,0),一个 Sage 300 的公园矩形(rx 12)位于 x 230–310 和 y 90–140 之间,一条 6px 的 Sage 300 河流曲线沿底部延伸,街道标签使用 Figtree 600、10px、Slate 色('Larkspur Ave' 沿 y 70,'3rd St' 沿 x 210),诊所图钉位于 210,70:一个 28px 的 Clay 色泪滴形,内含 8px 的 Linen 色圆形,以及一个小的 Teal 色 'P' 停车方块位于 250,40。无地图瓦片,无外部地图服务。
动效:表单步骤以 --i 0–3 依次显现;急诊提示使用 grid-rows 技巧展开;芯片选择如设计动效中所述;成功切换如设计动效中所述。VisitPanel 卡片以 --i 0–2 依次显现。
13. **FAQ (#faq)** — 眉标 'FAQ'。H2 'Honest answers about <em>pain and cost.</em>'。标题下方左侧:Slate 行 'Still unsure? Call (320) 555-0142 and ask for Sam. No question is too small.'。八个问题,第一个默认展开:'Will it hurt?' — 'Most visits don't. Cleanings can feel scratchy, never sharp. Before any injection we numb the gum with a gel first, and we wait until you're fully numb before starting. You can raise a hand at any time and we stop.';'I haven't been to a dentist in years. Will I be judged?' — 'Never. About one in five of our new patients hasn't been in over five years. We start with a look and a conversation, then agree on a plan at your pace.';'What happens at my first visit?' — 'About an hour: a short health form, low-dose digital X-rays, a full exam, a cleaning and a written plan with prices. For patients paying themselves the visit is $89, and you're never asked to start treatment on the same day.';'How much will treatment cost me?' — 'The price ranges on our treatments page are what patients actually pay before insurance. Before any treatment you get a written estimate with the exact amount and your insurance share. The estimate is the price.';'Do you take my insurance?' — 'We're in-network with most PPO plans and can file out-of-network claims for most others. Send us your plan name and member ID and Sam will check your benefits before your visit.';'What if I don't have insurance?' — 'Choose the Wrenfield Care Plan at $29 a month for two cleanings, exams, X-rays, an emergency exam and 15% off treatment, or pay per visit at the listed prices.';'How do payment plans work?' — 'For treatment over $500 you pay 20% on the day and the rest in 6 or 12 equal monthly payments with no interest. There is no credit check for amounts under $2,000.';'What counts as a dental emergency?' — 'Severe toothache, swelling in your face or gums, a knocked-out or broken tooth, or bleeding that won't stop. Call us before 10:00 am for a same-day slot. If your face is swelling and you have trouble breathing or swallowing, go to the emergency room.'
布局:Linen 背景。容器网格 12 列,gap 48px:标题块跨第 1–4 列,在 ≥1024px 时 sticky top 112px;手风琴跨第 6–12 列。每一项:顶部 1px Line 边框(列表底部也有一条),一个全宽按钮,问题在左侧,Fraunces 500 21px Teal,右侧一个 36px Sage 50 圆形,内含 lucide Plus 18px,padding 22px 0;答案 Figtree 17px Ink 85% 不透明度,max-width 62ch,padding-bottom 24px。可同时展开多项。按钮带有 aria-expanded 和 aria-controls。指向某个 FAQ 项的链接(offer 中的 'What happens at the first visit')会展开该项并滚动到它。低于 1024px 单列,标题不 sticky。
动效:手风琴如 Design motion 中所述;各项以 --i 0–7 依次显现。
14. **Footer(共享)** — 第 1 列:牙齿图标(Linen)+ 'Wrenfield Dental'(Fraunces 600 22px Linen),一行 'Family & cosmetic dentistry in Calder Springs since 2017.',以及一个 Clay 主按钮 'Book a visit'(./index.html#book)。第 2 列 'Visit':'218 Larkspur Avenue, Suite 2'、'Calder Springs'、'Free parking behind the building'。第 3 列 'Hours':紧凑行 'Mon, Wed 8:00 am – 5:00 pm'、'Tue, Thu 8:00 am – 7:00 pm'、'Fri 8:00 am – 2:00 pm'、'Sat 9:00 am – 1:00 pm'、'Sun Closed'。第 4 列 'Clinic':链接 'Treatments & prices'(./treatments.html)、'Team'(./index.html#team)、'Reviews'(./index.html#reviews)、'Insurance'(./index.html#insurance)、'FAQ'(./index.html#faq),外加电话和邮箱链接。底部行:'© Wrenfield Dental. Prices are typical ranges before insurance; your written estimate is final.',以及,如果保留 [CREDIT],右侧一个小 'Template by VibeFather' 链接。
布局:Teal 背景,Linen 文字,padding 88px 0 0。容器网格 4 列(2fr 1fr 1fr 1fr),gap 40px;列标题 Figtree 700 13px 大写 letter-spacing 0.12em Linen 60% 不透明度;条目 Figtree 15px Linen 88% 不透明度,链接悬停时下划线。底部行:Teal 700 背景,margin-top 64px,padding 20px 0,Figtree 13px Linen 65% 不透明度,flex justify-between,低于 768px 换行。低于 1024px 2 列,低于 640px 1 列。一个装饰性 Sage 300 拱形,8% 不透明度,420px 宽,位于右边缘,被底部裁切。
动效:除链接悬停外无。
### Treatments & prices(`treatments.html`)
1. **共享外壳** — 紧急横幅、导航('Treatments & prices' 标记为当前页)和页脚与 index.html 完全一致。所有返回首页的链接使用 ./index.html#<anchor>;预约链接使用 ./index.html?treatment=<id>#book。加载 index.html 时若存在 ?treatment=,预约下拉框会预选,且如果 hash 为 #book,页面在布局后滚动到 #book。
布局:与首页相同的组件。
动效:与首页相同。
2. **Treatments 页头** — 面包屑 Figtree 500 14px Slate:'Home'(./index.html)/ 'Treatments & prices'。眉标 'Treatments & prices'。H1 'Every treatment, with the <em>price in plain sight.</em>' 导语 'These are the ranges our patients actually pay before insurance, including X-rays and a follow-up check. Your written estimate before treatment is the final price.' 按钮:Clay 'Book a visit'(./index.html#book)和次级 'Call (320) 555-0142'(tel:)。照片 public/images/treatment-wide.webp(alt 'Wide view of a sage treatment room with a cream dental chair and a large window')。
布局:Linen 背景,padding 56px 0 72px。容器网格 12 列,gap 48px,items center:文字第 1–6 列,照片第 7–12 列,置于一个 aspect 4/3、radius 28px、object-fit cover、object-position 40% 50%、loading eager 的框架中。框架后方一个 Sage 100 拱形,向右偏移 24px、向下偏移 24px。低于 1024px 单列,照片在文字下方,aspect 16/10。
动效:文字子元素以 --i 0–4 显现,照片以 --i 2 显现。
3. **价格承诺条** — 三项,Teal lucide 图标置于 44px Sage 100 圆形中:FileText 'Written estimate first' — 'You see the exact amount and your insurance share before we start.';Receipt 'X-rays and follow-up included' — 'No separate charge for the images or the check after treatment.';BadgeDollarSign 'No surprise fees' — 'If something changes mid-treatment, we stop and ask first.'
布局:Sage 50 色带,padding 40px 0,容器网格 3 列,gap 32px,每项图标在左、文字在右;低于 768px 1 列。
动效:各项以 --i 0–2 显现。
4. **分类导航** — 五个带计数的胶囊链接:'Preventive 5'(#preventive)、'Restorative 5'(#restorative)、'Cosmetic 3'(#cosmetic)、'Orthodontics 2'(#orthodontics)、'Emergency 1'(#emergency)。计数位于胶囊内一个 22px 小圆中。
布局:sticky 于导航下方(top 76px,低于 768px 时 64px),z-index 30,Linen 92% 不透明度并带 backdrop-blur 10px,底部 1px Line 边框,高度 64px。胶囊:高 40px,padding 0 16px,Figtree 600 15px,Paper 背景带 1px Line 边框,Teal 文字;激活胶囊 Teal 背景,Linen 文字。移动端该行水平滚动并带 scroll-snap,激活胶囊滚动进入视野。滚动监听:一个 IntersectionObserver(rootMargin '-45% 0px -50% 0px')将激活胶囊设为穿过视口中线的分类区块。点击胶囊滚动使分类标题位于 sticky 栏下方 24px 处(每个分类区块上 scroll-margin-top 164px)。
动效:激活胶囊颜色在 200ms 内变化。
5. **治疗类别(#preventive、#restorative、#cosmetic、#orthodontics、#emergency)** — 每个类别:52px Sage 100 圆形中的 lucide 图标、H2 名称、Slate 描述和保险说明标签。Preventive(ShieldPlus)— 'Keep small problems small. Most plans cover these at 80–100%.' 标签 'Usually covered'。行:#t-new-patient 'New-patient visit' — 'Exam, cleaning, low-dose digital X-rays and a written plan.' — '$89'(单位 'first visit')— 60–75 分钟,1 次就诊 — 预期:'Short health form and a chat about any worries'、'X-rays and a full exam, shown to you on screen'、'Cleaning and polish, then your written plan'。#t-cleaning 'Cleaning & check-up' — 'Plaque and tartar removed, gums checked, teeth polished.' — '$145–$210' — 45 分钟,1 次就诊 — 'Gum measurements and a quick exam'、'Scaling and polishing by our hygienist'、'Advice on brushing spots you miss'。#t-kids 'Child's check-up' — 'For ages 2 to 13: a gentle look, a clean and fluoride.' — '$75–$120' — 30 分钟 — 'Your child meets the chair and the mirror first'、'Counting teeth, a gentle clean and fluoride'、'A sticker and tips for parents'。#t-deep-cleaning 'Deep cleaning' — 'Cleaning below the gumline for early gum disease.' — '$220–$320'(单位 'per quarter of the mouth')— 60 分钟,2 次就诊 — 'Numbing gel and local anesthetic so you feel pressure, not pain'、'Roots smoothed so gums can reattach'、'A re-check after 6 weeks'。#t-night-guard 'Night guard' — 'A custom guard for clenching and grinding.' — '$380–$520' — 2 次就诊,每次 20 分钟 — 'A quick 3D scan, no goopy impressions'、'Fitting visit two weeks later'、'Free adjustment in the first year'。Restorative(Wrench)— 'Repairs that look like your own teeth. Plans typically cover 50–80%.' 标签 'Partly covered'。行:#t-fillings 'Tooth-colored filling' — 'Decay removed and the tooth rebuilt in matched resin.' — '$160–$320'('per tooth')— 30–60 分钟 — 'Numbing, then the decay is removed'、'Resin shaded to your tooth and hardened with light'、'Bite checked and polished';#t-root-canal 'Root canal' — 'Saves an infected tooth instead of removing it.' — '$950–$1,400'('molar')— 90 分钟,1–2 次就诊 — 'Full numbing; most patients say it feels like a long filling'、'Infection cleaned out and the canals sealed'、'A crown is usually advised afterwards';#t-crowns 'Ceramic crown' — 'A full cover for a cracked or heavily filled tooth.' — '$1,150–$1,550' — 2 次就诊 — 'Tooth shaped and scanned'、'Temporary crown for about two weeks'、'Final ceramic crown bonded in place';#t-implants 'Dental implant' — 'A titanium post, abutment and ceramic crown for a missing tooth.' — '$3,800–$4,900' — 3–6 个月 — 'CT scan and planning visit'、'Post placed under local anesthetic'、'Crown fitted once the bone has healed';#t-extraction 'Tooth removal' — 'Simple extraction when a tooth can't be saved.' — '$180–$350' — 30 分钟 — 'Numbing and gentle loosening'、'Gauze, aftercare sheet and a call the next day'、'Options to replace the tooth later'。Cosmetic(Sparkles)— 'Changes to color and shape. Rarely covered by insurance; payment plans apply.' 标签 'Rarely covered'。行:#t-whitening 'Whitening' — 'In-chair whitening in one visit, or custom trays for home.' — '$280–$650'(单位 'trays $280–$340 · in-chair $450–$650')— 90 分钟 — 'Shade measured before and after'、'Gums protected, gel applied in three rounds'、'Sensitivity gel to take home';#t-bonding 'Bonding' — 'Chips and gaps reshaped with resin in one visit.' — '$250–$480'('per tooth')— 45–60 分钟 — 'No numbing needed in most cases'、'Resin sculpted and hardened'、'Polished to match your enamel';#t-veneers 'Porcelain veneers' — 'Thin porcelain shells for shape, size and color.' — '$1,100–$1,600'('per tooth')— 3 次就诊 — 'Smile design and a preview in temporary resin'、'Teeth prepared and scanned'、'Veneers bonded and the bite adjusted'。Orthodontics(Smile)— 'Straightening for teens and adults. Some plans cover up to $1,500 for under-19s.' 标签 'Sometimes covered'。行:#t-aligners 'Clear aligners' — 'Removable trays, changed every two weeks, planned with a 3D scan.' — '$3,400–$5,200' — 6–18 个月 — 'Free consultation and 3D scan'、'See your planned result before you decide'、'Check-ins every 8 weeks';#t-retainers 'Retainers' — 'Keeps teeth where they are after orthodontics.' — '$220–$450'('pair')— 2 次就诊 — 'Scan after treatment ends'、'Clear or bonded retainer fitted'、'Wear at night, checked at cleanings'。Emergency(Siren)— 'Pain, swelling or a broken tooth. Same-day slots every weekday.' 标签 'Usually covered'。行:#t-emergency 'Emergency exam' — 'Diagnosis, X-ray and pain relief the same day.' — '$120'('flat, X-ray included')— 30 分钟 — 'Call before 10:00 am for a same-day slot'、'X-ray and a clear explanation of options'、'Pain relieved before you leave, treatment planned'。
布局:Linen 背景。每个类别区块:padding 72px 0,1px Line 顶部边框;容器网格 12 列,gap 48px。左侧:第 1–4 列,在 ≥1024px 时 sticky top 164px,包含图标圆形、H2(Fraunces 500 36px)、描述(Slate 17px)和保险标签(Sage 50 背景,Figtree 600 13px,'Usually covered' 用 Open 文本色,'Partly covered' 和 'Sometimes covered' 用 Teal,'Rarely covered' 用 Slate)。右侧:第 5–12 列,一叠 TreatmentRow 卡片,gap 12px。TreatmentRow:Paper,radius 20px,1px Line 边框,padding 24px 28px,网格 2 列(1fr auto),gap 24px。左侧:名称 Figtree 700 19px Teal,描述 Slate 16px,然后是元信息标签(Sage 50,Slate 13px Figtree 600,radius 999px,padding 5px 12px,lucide Clock 或 CalendarDays 14px)用于时长和就诊次数。右侧,顶部对齐且右对齐:价格 Fraunces 500 30px Teal tabular-nums,单位行 Slate 13px 在下方。卡片底部,跨两列,一行左侧是切换按钮 'What to expect'(Figtree 600 14px Teal,lucide ChevronDown 16px,打开时旋转 180°),右侧是 Teal 链接 'Book this' + ArrowRight 16px(./index.html?treatment=<booking reason id>#book)。展开面板以带 22px Sage 100 数字圆圈的编号列表显示三个步骤。每行有 id t-<id> 和 scroll-margin-top 164px;当页面加载时带有匹配的 hash,该行会打开并获得 2px Clay 轮廓,在 1600ms 内淡出。低于 1024px 时单列;类别介绍不 sticky;每行中价格移到名称下方。
动效:类别介绍显现;行以 --i 按索引显现;expect 面板使用 grid-rows 手风琴;行在悬停时轻微上浮(translateY(-2px))。
6. **隐形矫治器特色** — 图片 public/images/aligners.webp(alt 'Clear aligner trays beside a sage case on an oak table')。Eyebrow 'Most asked about'。H2 'Clear aligners, planned <em>in one visit.</em>' Lead 'A free consultation includes a 3D scan of your teeth and a preview of where they will move, so you know the result, the number of months and the price before you decide.' 三个统计行:'$3,400–$5,200' / 'full treatment';'from $227' / 'per month on a 12-month plan, after 20% down';'6–18 months' / 'typical length'。清单使用 lucide CircleCheck Open:'Free consultation and 3D scan'、'Refinement trays included at no extra cost'、'First pair of retainers included'。Clay 按钮 'Book a free aligner consult'(./index.html?treatment=aligners#book)。
布局:Sage 50 背景,padding 96px 0。容器网格 12 列,gap 48px,items center:图片第 1–6 列,框架 aspect 4/3,radius 28px,object-fit cover,object-position 65% 50%;文本第 7–12 列。统计:3 列,由 1px Line 垂直分隔线隔开,值 Fraunces 500 30px Teal,标签 Slate 14px。低于 1024px 时单列,图片在前。
动效:图片和文本显现,统计以 --i 0–2 显现。
7. **付款计划计算器(#payment-plans)** — 图片 public/images/consult.webp(alt 'Consultation desk with a model of teeth and two sage chairs')。Eyebrow 'Payment plans'。H2 'See your monthly payment <em>before you book.</em>' 计算器卡片:(1)'Treatment' 选择器列出所有最高价格至少为 $500 的治疗项目,默认金额为其价格中点(例如 'Ceramic crown · $1,350'),外加 'Custom amount';(2)'Treatment cost' 范围滑块 $500 到 $6,000,步长 $50,数值以 Fraunces 500 40px Teal 显示在滑块上方('$1,350');移动滑块会将选择器切换为 'Custom amount';(3)'Plan length' 分段控件 '6 months' / '12 months'(默认 12)。结果:'Due on the day (20%)' = round(amount × 0.2);'Then per month' = ceil((amount − due today) / months),以 Fraunces 500 56px Teal 显示,带 '/ month';'Total' = amount,'Interest' '0%'。一行注释:金额不超过 $2,000 时显示 'No credit check needed',带 lucide CircleCheck 用 Open 色;超过 $2,000 时显示 'A soft credit check that doesn't affect your score',用 Slate。按钮:Clay 'Book a visit'(./index.html#book)和 Teal 文本链接 'Ask Sam about your insurance'(tel:)。默认状态:Ceramic crown,$1,350,12 个月,得出今天 $270 和每月 $90。
布局:亚麻色(Linen)背景,内边距 96px 0。容器为 12 列网格,间距 48px:左侧第 1–5 列放置标题区块及其下方的图片(宽高比 4/3,圆角 24px,object-fit cover,object-position 50% 55%);右侧第 6–12 列放置计算器卡片:纸白色(Paper),圆角 28px,1px 线条色(Line)边框,内边距 40px。结果区域:鼠尾草色 50(Sage 50)盒子,圆角 20px,内边距 24px,各行之间以 1px 线条色(Line)分隔。滑块:6px 鼠尾草色 300(Sage 300)轨道,从滑块拇指处起为青绿色(Teal)填充,24px 纸白色(Paper)滑块拇指,带 2px 青绿色(Teal)边框和阴影卡片,支持键盘操作(原生 input type range 样式化)。低于 1024px 时变为单列,计算器位于图片之前。
动效:结果数字即时更新;月度数值在变化时于 200ms 内从 0.98 短暂缩放至 1(在减少动态效果模式下不启用)。
8. **结尾行动号召** — H2(亚麻色(Linen))'Not sure what you'll <em>pay?</em>' 引导文案(亚麻色(Linen)80%)'Send a booking request or call, and we'll check your insurance and reply with an estimate within one business day.' 按钮:陶土色(Clay)'Book a visit'(./index.html#book)和亚麻色描边的次级按钮 'Call (320) 555-0142'(1.5px 亚麻色(Linen)边框,亚麻色(Linen)文字,悬停背景 rgba(247,244,238,0.1))。右侧:OpenNowCard(与 hero 相同的组件,纸白色(Paper))。
布局:容器,青绿色(Teal)面板,圆角 28px,内边距 64px,2 列网格(7fr 5fr),项目居中,溢出隐藏;一个装饰性鼠尾草色 300(Sage 300)拱形,14% 不透明度,360px 宽,锚定在面板内部右下角。低于 768px 时变为单列,内边距 32px,按钮全宽。外边距 0 auto 112px。
动效:面板显现。
## 资源
- 图片:为本设计制作的模板照片(可随模板自由再分发)。用 curl -L -o 将每张图片下载到 public/images/:https://media.vibefather.ai/assets/b79d3426-5243-4ac1-9cd0-6b60aa93ace6/hero.webp → public/images/hero.webp(首页主视觉;alt 'Bright treatment room with a cream dental chair, sage walls and a window with linen curtains');https://media.vibefather.ai/assets/b79d3426-5243-4ac1-9cd0-6b60aa93ace6/reception.webp → public/images/reception.webp(画廊图块 A;alt 'Reception with an oak counter, a sage bench and plants');https://media.vibefather.ai/assets/b79d3426-5243-4ac1-9cd0-6b60aa93ace6/kids-corner.webp → public/images/kids-corner.webp(画廊图块 C;alt 'Children's corner with a small oak table and picture books');https://media.vibefather.ai/assets/b79d3426-5243-4ac1-9cd0-6b60aa93ace6/treatment-wide.webp → public/images/treatment-wide.webp(诊疗项目页头图;alt 'Wide view of a sage treatment room with a cream dental chair and a large window');https://media.vibefather.ai/assets/b79d3426-5243-4ac1-9cd0-6b60aa93ace6/aligners.webp → public/images/aligners.webp(隐形矫治器特色图;alt 'Clear aligner trays beside a sage case on an oak table');https://media.vibefather.ai/assets/b79d3426-5243-4ac1-9cd0-6b60aa93ace6/consult.webp → public/images/consult.webp(付款计划计算器;alt 'Consultation desk with a model of teeth and two sage chairs')。
- 图片:CC0 照片:https://pd.w.org/2026/01/473697e76686ae8d2.18620605-2048x1365.jpg → public/images/lounge.jpg。画廊图块 B,一间诊疗室休息区,内有棕褐色沙发、弧形落地灯和玻璃墙。始终在竖版图块中以 object-position 78% 50% 裁剪,使照片左侧的桌子保持在视野之外。来源页面 https://wordpress.org/photos/photo/473697e766/,作者 Kevin Baharvand(WordPress Photo Directory),许可证 CC0 1.0。
- 图片:CC0 照片:https://pd.w.org/2026/04/67469efbf72491a05.40591059-2048x1536.jpg → public/images/instruments.jpg。画廊图块 D,牙科手机放在器械托盘旁的设备上。来源页面 https://wordpress.org/photos/photo/67469efbf7/,作者 Nilo Velez(WordPress Photo Directory),许可证 CC0 1.0。
- 图片:CC0 照片:https://pd.w.org/2023/03/574641d8aa020bb64.64728093-1536x1536.jpg → public/images/toothbrushes.jpg。新患者优惠图片,竹垫上的两把竹牙刷(object-position 72% 70%)。来源页面 https://wordpress.org/photos/photo/574641d8aa/,作者 Nora Ferreirós(WordPress Photo Directory),许可证 CC0 1.0。
- 图片:在项目根目录写入 ASSETS.md,包含一个表格:路径、来源 URL、作者、许可证,覆盖全部九张图片(六张模板照片的来源列写 'media.vibefather.ai, made for this template',作者写 'VibeFather',许可证写 'Distributed with the template'),外加两个字体包和 lucide-react 及其许可证。如果你更改 [SPECIALTY],请用你自己房间的照片以相同风格(日光、鼠尾草绿、橡木、无人物)替换六张模板照片,并将任何不再合适的 CC0 照片按相同规则换成另一张 CC0 或公有领域照片。
- 图标:仅使用 lucide-react:Siren、X、Menu、Phone、Mail、MapPin、Clock、Star、ShieldCheck、ShieldPlus、Wallet、HandHeart、HeartHandshake、CalendarRange、CalendarCheck、CalendarDays、Stethoscope、Sparkles、Layers、Sun、Smile、Anchor、Wrench、BadgeCheck、CircleCheck、Check、AlertCircle、ArrowRight、ChevronDown、ChevronLeft、ChevronRight、Plus、FileText、Receipt、BadgeDollarSign。描边宽度 1.75,尺寸按指定要求。如果已安装版本中缺少某个图标名称,请使用最接近的 lucide 图标。不使用 emoji。
- 图标:public/favicon.svg 和字标前的牙齿图形是手写 SVG,如共享 head 部分所述。品牌本身是 Fraunces 字体的文本;没有其他标志。
- 字体:安装 @fontsource-variable/fraunces 和 @fontsource-variable/figtree,并在两个入口文件中导入它们。Vite 会将 woff2 文件打包进 dist/。
- 图片:在代码中绘制:地图(内联 SVG)、字母组合头像、评分条、装饰拱形、日期条和时段标签。不使用其他位图。
## 禁止事项
- 不得有任何形式的后端:不得有服务器代码、API 路由、数据库、认证、支付、邮件服务、分析或第三方 API。预约表单调用 preventDefault,在浏览器中校验,并且只切换到成功状态;它从不提交、发送或存储任何内容。
- 不得嵌入地图或使用地图瓦片服务;地图就是所描述的内联 SVG。
- 不得从 fonts.googleapis.com、fonts.gstatic.com、Adobe Fonts 或任何 CDN 加载字体。只能通过两个 Fontsource 包自托管。
- 不得使用 CDN 的 <script>、<link> 或 import maps。每个脚本、样式、字体、图标和图像都在项目中,并打包进 dist/。
- 不得热链图像:每张照片都下载到 public/images/ 一次并从那里提供,每个第三方文件都列在 ASSETS.md 中。
- 生产构建中不得有 source maps(build.sourcemap false),并且 src/ 不会复制到 dist/。
- 使用相对资源路径(Vite base './')。网站是两个真实的 HTML 文件;每个内部链接都指向 ./index.html、./treatments.html 或它们上面的哈希,绝不指向裸目录或 /。
- 除非用户要求,否则不得更改技术栈(Vite 5 + React 18 + TypeScript + Tailwind CSS 3.4 + lucide-react + Fontsource)。不得使用动画库、UI 套件、路由器:两个入口和哈希锚点。
- 不得使用真实诊所的名称、标志、标语或文案,也不得使用真实牙医的姓名或资质。所有临床医生、患者、评价、价格和地址均为虚构。
- 不得使用人物照片或插图:不得有面孔、患者、治疗前后口腔照片、库存微笑模特。团队成员仅以字母组合头像出现。
- 文案或图像中不得出现真实保险公司、牙科品牌、设备制造商或产品名称。保险仅描述为 PPO、HMO / DHMO 和 out-of-network。
- 不得有超出此处所写内容的医疗声明:不得有保证、不得有“无痛”、不得有成功率数字。保留关于肿胀并伴有呼吸困难或吞咽困难时应去急诊室的建议。
- 仅使用所列图像,并采用给定的精确裁剪(lounge.jpg 始终使用 object-position 78% 50%,以使其左侧保持隐藏)。不得使用 Unsplash、Pexels、Pixabay 或其他拥有自己许可证的库存网站,不得使用占位图像服务。
- Clay 是唯一的强调色,仅用于预约按钮、紧急横幅和通知、星星、地图图钉和焦点环。不得使用其他亮色、不得使用蓝色医疗渐变、不得使用玻璃拟态、不得使用深色模式。
- 不得使用商业或自定义字体:仅使用 Fraunces 和 Figtree(OFL)。
- 仅使用 MIT、ISC、BSD、Apache-2.0、0BSD、CC0 或 Unlicense 下的依赖(字体使用 OFL)。不得使用 Aceternity UI、Tailwind Plus / Tailwind UI 或购买的模板代码。
- 严格按照 Design motion 下所述尊重 prefers-reduced-motion。
- 必须在 1440×900 和 390×844 下渲染,控制台零错误且页面无水平滚动(仅日期条和移动端分类胶囊在自身内部滚动)。每个交互元素都可通过键盘到达,并带有可见的 Clay 焦点环。
- 保持 dist/ 低于 20 MB(目标低于 8 MB)。
- 不得使用 lorem ipsum、填充内容或炒作性词语。默认值使用此处给出的确切标题、价格、营业时间和 CTA。不得有元描述、Open Graph 标签、JSON-LD 或站点地图:仅使用 <title> 和 favicon。
---
— Prompt by VibeFather · https://vibefather.ai/t/dental-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: "Dental Clinic Website"
colors:
linen: "#F7F4EE"
paper: "#FFFFFF"
sage_50: "#EEF3EF"
sage_100: "#DFE8E1"
sage_300: "#B7CBBE"
teal: "#1F4A47"
teal_700: "#163634"
ink: "#1C2624"
slate: "#5B6966"
line: "#DCE3DD"
clay: "#BF4F35"
clay_700: "#A3412A"
clay_50: "#FBEAE4"
open: "#2F7D5B"
typography:
display_h1_h2_prices_big_rating_number_monograms_wordmark: { family: "Fraunces Variable", weights: [400, 500, 600] }
text_body_nav_buttons_labels_chips_form_fields_h3: { family: "Figtree Variable", weights: [400, 500, 600, 700] }
spacing: "8px base unit. Container max-width 1200px, side gutter clamp(20px, 4vw, 40px). Section vertical padding 112px on desktop, 72px under 768px. H1 Fraunces 500 clamp(42px, 5.4vw, 72px), line-height 1.04, letter-spacing -0.02em, color Teal. H2 Fraunces 500 clamp(32px, 3.6vw, 48px), line-height 1.1, letter-spacing -0.015em, Teal; one word or short phrase per H2 is set in Fraunces 400 italic (marked with <em> in the copy below). H3 Figtree 600 20px/1.3 Ink. Body Figtree 400 17px/1.65 Ink (16px under 768px); lead paragraphs 19px Slate. Eyebrows Figtree 600 13px uppercase, letter-spacing 0.12em, Teal at 80%, with a 6px Clay dot 10px before the text. Prices Fraunces 500 with font-variant-numeric tabular-nums. Section headers: eyebrow, H2 and a max-width 56ch lead, 48px below the header before content."
radius: "Cards and photo tiles 24px, the new-patient offer card and the booking form card 28px, inputs and select 14px, buttons, chips, the day strip chips and time-slot chips fully rounded (999px), icon circles and monogram avatars are circles. Primary buttons are 52px tall pills (44px in the nav), padding 0 26px, Figtree 600 16px, Clay background, Linen text, with a lucide ArrowRight 18px that moves 3px right on hover. Secondary buttons are the same size with a 1.5px Teal border, Teal text, transparent background, Sage 100 fill on hover."
---
# Dental 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
- **Linen** `#F7F4EE` — Page background, text on Teal and Clay surfaces
- **Paper** `#FFFFFF` — Cards, form surface, floating hero cards, inputs
- **Sage 50** `#EEF3EF` — Alternating section background (Reassurance, Team, Book & visit), chip backgrounds
- **Sage 100** `#DFE8E1` — Icon circles, monogram avatar tint A, selected day chip border, hover fill of ghost buttons
- **Sage 300** `#B7CBBE` — Monogram avatar tint B, rating bar track, map park areas, decorative arches
- **Teal** `#1F4A47` — Headings, wordmark, secondary buttons, selected chips, footer and closing CTA background
- **Teal 700** `#163634` — Teal button hover, footer bottom row
- **Ink** `#1C2624` — Body text on light surfaces
- **Slate** `#5B6966` — Secondary text, captions, field help, durations, unavailable slots
- **Line** `#DCE3DD` — 1px borders of cards, inputs, dividers, table rows
- **Clay** `#BF4F35` — The only accent: primary 'Book a visit' buttons, emergency banner background, star icons, focus ring, the map pin. Never used for large surfaces other than the banner.
- **Clay 700** `#A3412A` — Clay button hover and active
- **Clay 50** `#FBEAE4` — Emergency notice box in the booking form and side panel, error field background
- **Open** `#2F7D5B` — Open-now dot and text, success check, 'often covered' insurance chip text
## Typography
- **Display (H1, H2, prices, big rating number, monograms, wordmark)** — Fraunces Variable (OFL), weights 400/500/600. Self-host the font files.
- **Text (body, nav, buttons, labels, chips, form fields, H3)** — Figtree Variable (OFL), weights 400/500/600/700. Self-host the font files.
## Spacing & shape
- Spacing: 8px base unit. Container max-width 1200px, side gutter clamp(20px, 4vw, 40px). Section vertical padding 112px on desktop, 72px under 768px. H1 Fraunces 500 clamp(42px, 5.4vw, 72px), line-height 1.04, letter-spacing -0.02em, color Teal. H2 Fraunces 500 clamp(32px, 3.6vw, 48px), line-height 1.1, letter-spacing -0.015em, Teal; one word or short phrase per H2 is set in Fraunces 400 italic (marked with <em> in the copy below). H3 Figtree 600 20px/1.3 Ink. Body Figtree 400 17px/1.65 Ink (16px under 768px); lead paragraphs 19px Slate. Eyebrows Figtree 600 13px uppercase, letter-spacing 0.12em, Teal at 80%, with a 6px Clay dot 10px before the text. Prices Fraunces 500 with font-variant-numeric tabular-nums. Section headers: eyebrow, H2 and a max-width 56ch lead, 48px below the header before content.
- Radius: Cards and photo tiles 24px, the new-patient offer card and the booking form card 28px, inputs and select 14px, buttons, chips, the day strip chips and time-slot chips fully rounded (999px), icon circles and monogram avatars are circles. Primary buttons are 52px tall pills (44px in the nav), padding 0 26px, Figtree 600 16px, Clay background, Linen text, with a lucide ArrowRight 18px that moves 3px right on hover. Secondary buttons are the same size with a 1.5px Teal border, Teal text, transparent background, Sage 100 fill on hover.
## Motion
- Easing everywhere: cubic-bezier(0.22, 1, 0.36, 1). Durations: 200ms for hovers and chip selection, 300ms for accordions and menus, 600ms for reveals.
- Reveal: elements with class .reveal start at opacity 0 and translateY(16px) and go to rest over 600ms when 15% visible, once (one shared IntersectionObserver in src/lib/reveal.ts adds .is-in). Siblings in a grid stagger by 70ms via a --i CSS variable (transition-delay calc(var(--i) * 70ms)). Elements already in the viewport on load reveal immediately with the same stagger.
- Card hover (treatment cards, team cards, plan cards, gallery tiles): translateY(-3px) and shadow card to lift over 200ms; gallery images also scale to 1.03 over 600ms inside their overflow-hidden tile.
- Open-now dot: an 8px Open circle with a ring that pulses (keyframes pulse-dot: box-shadow 0 0 0 0 rgba(47,125,91,0.45) to 0 0 0 8px rgba(47,125,91,0), 2000ms, infinite). When closed the dot is Slate and does not pulse.
- Accordions (FAQ, what-to-expect, mobile menu groups): height animates with the CSS grid trick (grid-template-rows 0fr to 1fr, inner overflow hidden) over 300ms; the lucide Plus icon rotates 45 degrees when open.
- Chips: day and slot chips scale to 0.97 on press; the selected state swaps background and text color over 200ms.
- Emergency banner dismiss: collapses height to 0 and fades over 250ms, then unmounts.
- Booking success: the form fades out (200ms), the success card fades in and rises 12px over 400ms, and the page scrolls so the card's top sits 96px below the viewport top.
- Reduced motion (prefers-reduced-motion: reduce): reveals show immediately with no transform, no stagger, no hover lift or image zoom, no dot pulse, accordions open and close instantly, smooth scrolling is replaced with instant jumps, the banner disappears without animation.
## Imagery
Real photographs of the clinic's rooms, furniture and equipment in soft daylight: sage walls, light white oak, cream upholstery, plants in terracotta. Never patients, never faces, never before/after mouths. Six photos are made for this template and hosted by its author; three CC0 photos (a quiet treatment-room lounge, handpieces on a dental unit, bamboo toothbrushes) add real-world detail. Photos are always shown in 24px-radius tiles with object-fit cover and the exact object-position given, never full-bleed behind text. People are shown as monogram avatars. Icons come from lucide-react; the favicon, wordmark glyph, the map, rating bars and decorative arches are drawn in SVG or CSS. No illustrations, no stock smiling-model photos, no 3D, no gradients other than the subtle ones specified.
## Tone
Warm, plain and reassuring, like a good receptionist on the phone. Short sentences, real numbers, no jargon without a plain explanation, no fear tactics, no hype words (no world-class, state-of-the-art, cutting-edge, best-in-class, revolutionary). Address the reader as 'you'; the practice speaks as 'we'.
---
— Prompt by VibeFather · https://vibefather.ai/t/dental-clinic-website · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 社区兽医诊所:将 BRAND 和 SPECIALTY 设置为兽医护理,将十六种治疗项目改写为疫苗接种、牙科检查和手术,并保持紧急横幅指向你的电话号码。
- 物理治疗诊所:将治疗卡片改为运动损伤、背痛和术后康复,将矫正器特色替换为康复计划部分,并调整付款计算器。
- 独立牙医搭建第一个网站:将 BRAND 设置为你自己的名字,为自己使用字母组合团队卡片,并将 NEW_PATIENT_OFFER 设置为你真实的初诊价格。
- 自由职业者向诊所推销:为每个客户复制模板,更改 CITY 和 PHONE,并在发送演示前将画廊照片替换为每个诊所自己的房间照片。
牙科诊所网站:常见问题
有没有可以用 AI 搭建的免费牙科诊所网站模板?
是的。VibeFather 上的牙科诊所网站模板是免费的,其提示词和 DESIGN.md 在 CC BY-NC 4.0 下可免费用于个人非商业用途。你会得到一个包含预约表单、治疗价格和团队卡片的双页网站。商业或客户项目需要 Pro,Pro 还会解锁完整提示词和演示源代码。你可以使用命令 npx vibefather add dental-clinic-website 添加它。
预约表单如何工作,会把请求发送到某处吗?
牙科诊所网站模板中的预约请求表单完全在浏览器中运行。访客选择原因、从未来十四天中选一天,并从按上午、下午和晚上分组的时段标签中选择时间,然后看到带有参考编号的确认信息。不会发送到服务器。要接收真实请求,请将表单连接到您自己的预约系统或电子邮件服务,或者保留电话号码作为主要途径。
在哪里可以获取 HTML 和 CSS 格式或来自 GitHub 的牙科诊所网站模板?
牙科诊所网站模板使用 Vite、React、TypeScript 和 Tailwind CSS 构建,并构建为 dist 文件夹中的静态 HTML、CSS 和 JavaScript 文件,你可以托管在任何地方。你可以使用 npx vibefather add dental-clinic-website 将其添加到项目中。演示的源代码随 Pro 提供。该模板不以纯 HTML 和 CSS 下载形式或通过 GitHub 仓库分发。