Dental clinic landing page with a treatment finder
A calm page for a dental practice: pick what brings you in and a drawn mouth answers, from tapping the sore tooth to teeth that brighten or a circle to breathe with, then the matching treatment leads into a day and time picker that books you in.
"use client";
import { useEffect, useRef, useState, type CSSProperties } from "react";
import "./clinic-page.css";
/**
* ClinicPage: a landing page for an independent dental practice.
* Its signature is "What brings you in?": pick a reason and a drawn mouth
* answers it. Tap the sore tooth for toothache, watch the teeth brighten for
* whitening, see a scan sweep for a check-up, or breathe with it if you're
* nervous. The matching treatment, time and price lead into a slot picker.
* It is a demo: connect `onBook` to your practice software.
*/
type Reason = "checkup" | "pain" | "chip" | "white" | "nervous";
const REASONS: { id: Reason; label: string; needsTooth?: boolean }[] = [
{ id: "checkup", label: "Check-up" },
{ id: "pain", label: "Toothache", needsTooth: true },
{ id: "chip", label: "Chipped tooth", needsTooth: true },
{ id: "white", label: "Whitening" },
{ id: "nervous", label: "I’m nervous" },
];
const PLAN: Record<Reason, { name: string; mins: number; price: string; note: string }> = {
checkup: { name: "Check-up and clean", mins: 40, price: "£65", note: "Exam, X-rays if you’re due, and a scale and polish with our hygienist." },
pain: { name: "Emergency appointment", mins: 30, price: "£55", note: "We find the cause, ease the pain the same day and plan any treatment with you." },
chip: { name: "Bonding repair", mins: 45, price: "from £120", note: "Tooth-coloured resin shaped to match. Usually done in one visit, no drilling." },
white: { name: "Home whitening kit", mins: 30, price: "£295", note: "Trays made for your teeth and gel for two weeks. We check the shade at the end." },
nervous: { name: "Calm first visit", mins: 30, price: "Free", note: "A chat in the lounge, not the chair. You set the pace and can stop at any point." },
};
const DAYS = [
{ id: "mon", label: "Mon 7", slots: ["08:30", "09:10", "11:40", "14:00", "16:20"], taken: ["09:10", "14:00"] },
{ id: "tue", label: "Tue 8", slots: ["08:30", "10:00", "12:30", "15:10", "17:40"], taken: ["08:30"] },
{ id: "wed", label: "Wed 9", slots: ["09:00", "11:20", "13:00", "16:00"], taken: ["11:20", "13:00", "16:00"] },
{ id: "thu", label: "Thu 10", slots: ["08:00", "10:40", "12:10", "18:00", "18:40"], taken: [] },
{ id: "fri", label: "Fri 11", slots: ["08:30", "09:50", "13:30"], taken: ["09:50"] },
];
type Tooth = { id: string; x: number; y: number; a: number; w: number; h: number; name: string };
const KIND = ["molar", "molar", "premolar", "premolar", "canine", "incisor", "incisor"];
function arch(upper: boolean): Tooth[] {
const cx = 200;
const cy = upper ? 178 : 192;
const out: Tooth[] = [];
for (let k = 0; k < 14; k++) {
const t = k / 13;
const ang = upper ? Math.PI + 0.22 + t * (Math.PI - 0.44) : 0.22 + t * (Math.PI - 0.44);
const fromEnd = Math.min(k, 13 - k);
const big = fromEnd < 2 ? 1 : fromEnd < 4 ? 0.82 : 0.68;
const side = k < 7 ? (upper ? "left" : "right") : upper ? "right" : "left";
out.push({
id: `${upper ? "u" : "l"}${k}`,
x: cx + Math.cos(ang) * 150,
y: cy + Math.sin(ang) * 128,
a: (ang * 180) / Math.PI + 90,
w: 34 * big,
h: 30 + 6 * big,
name: `${upper ? "Upper" : "Lower"} ${side} ${KIND[fromEnd]}`,
});
}
return out;
}
const TEETH = [...arch(true), ...arch(false)];
function Photo({ src, alt, tone, className = "" }: { src: string; alt: string; tone: string; className?: string }) {
const img = useRef<HTMLImageElement>(null);
const [missing, setMissing] = useState(false);
useEffect(() => {
const el = img.current;
if (el && el.complete && el.naturalWidth === 0) setMissing(true);
}, []);
return (
<span className={`gu-smile__photo ${className}`} style={{ "--tone": tone } as CSSProperties}>
{!missing && <img ref={img} src={src} alt={alt} loading="lazy" onError={() => setMissing(true)} />}
</span>
);
}
export function ClinicPage({
onBook,
}: {
onBook?: (b: { reason: Reason; tooth?: string; day: string; time: string; name: string; phone: string }) => void;
}) {
const [reason, setReason] = useState<Reason>("checkup");
const [tooth, setTooth] = useState<string | null>(null);
const [day, setDay] = useState("thu");
const [time, setTime] = useState<string | null>(null);
const [name, setName] = useState("");
const [phone, setPhone] = useState("");
const [done, setDone] = useState(false);
const r = REASONS.find((x) => x.id === reason)!;
const plan = PLAN[reason];
const toothName = TEETH.find((t) => t.id === tooth)?.name;
const d = DAYS.find((x) => x.id === day)!;
const canPickTooth = !!r.needsTooth;
return (
<div className="gu-smile">
<header className="gu-smile__bar">
<a href="#" className="gu-smile__mark">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M7 3c-3 0-4.5 2.5-4 6 .4 3 1.5 4.5 2 8 .3 2.5 1 4 2.2 4 1.6 0 1.8-5 4.8-5s3.2 5 4.8 5c1.2 0 1.9-1.5 2.2-4 .5-3.5 1.6-5 2-8 .5-3.5-1-6-4-6-2 0-3 1-5 1S9 3 7 3z" />
</svg>
Fernside Dental
</a>
<nav aria-label="Fernside Dental">
<a href="#smile-find">Treatments</a>
<a href="#smile-book" className="gu-smile__navcta">
Book online
</a>
</nav>
</header>
<section className="gu-smile__hero">
<div>
<h1>A dentist you won’t dread.</h1>
<p>
An independent practice in Didsbury with six chairs, long appointments and a waiting room that smells of
coffee, not cloves.
</p>
<ul className="gu-smile__facts">
<li>
<b>Same-day</b> pain appointments
</li>
<li>
<b>Open late</b> Tuesday and Thursday
</li>
<li>
<b>NHS and private</b> patients
</li>
</ul>
</div>
<Photo
src="/images/landing-clinic-room-01.jpg"
alt="A bright treatment room with a pale green chair and a window onto trees"
tone="#8fb8ad"
className="gu-smile__hero-img"
/>
</section>
<section id="smile-find" className="gu-smile__find" aria-labelledby="smile-find-title">
<h2 id="smile-find-title">What brings you in?</h2>
<div className="gu-smile__reasons" role="group" aria-label="Reason for visit">
{REASONS.map((x) => (
<button
key={x.id}
type="button"
aria-pressed={reason === x.id}
onClick={() => {
setReason(x.id);
setTooth(null);
}}
>
{x.label}
</button>
))}
</div>
<div className="gu-smile__mouth" data-mode={reason}>
<svg viewBox="0 0 400 370" role="group" aria-label="Teeth">
<ellipse cx="200" cy="185" rx="186" ry="170" className="gu-smile__gum" />
{TEETH.map((t, i) => {
const on = tooth === t.id;
return (
<g
key={t.id}
className="gu-smile__tooth"
data-on={on || undefined}
style={{ "--x": `${t.x}px`, "--y": `${t.y}px`, "--a": `${t.a}deg`, "--i": i % 14 } as CSSProperties}
role={canPickTooth ? "button" : undefined}
tabIndex={canPickTooth ? 0 : undefined}
aria-label={canPickTooth ? t.name : undefined}
aria-pressed={canPickTooth ? on : undefined}
onClick={() => canPickTooth && setTooth(t.id)}
onKeyDown={(e) => {
if (canPickTooth && (e.key === "Enter" || e.key === " ")) {
e.preventDefault();
setTooth(t.id);
}
}}
>
{on && reason === "pain" && (
<>
<circle r="22" className="gu-smile__throb" />
<circle r="22" className="gu-smile__throb gu-smile__throb--2" />
</>
)}
<rect
x={-t.w / 2}
y={-t.h / 2}
width={t.w}
height={t.h}
rx={t.w * 0.38}
className="gu-smile__enamel"
/>
{on && reason === "chip" && <path d={`M${t.w / 2 - 10} ${-t.h / 2} l10 0 l0 10z`} className="gu-smile__chip" />}
</g>
);
})}
{reason === "checkup" && <rect x="10" y="0" width="380" height="6" rx="3" className="gu-smile__scan" />}
{reason === "white" &&
[0, 1, 2, 3].map((k) => (
<path
key={k}
d="M0 -10 L2.5 -2.5 L10 0 L2.5 2.5 L0 10 L-2.5 2.5 L-10 0 L-2.5 -2.5Z"
className="gu-smile__spark"
style={{ "--x": `${110 + k * 60}px`, "--y": `${k % 2 ? 70 : 300}px`, "--k": k } as CSSProperties}
/>
))}
{reason === "nervous" && <circle cx="200" cy="185" r="60" className="gu-smile__breath" />}
</svg>
<p className="gu-smile__mouthnote" aria-live="polite">
{reason === "nervous"
? "Breathe in as the circle grows, out as it shrinks."
: canPickTooth
? toothName
? `${toothName} marked. We’ll start there.`
: "Tap the tooth that’s bothering you."
: reason === "white"
? "Most people go two to four shades lighter."
: "A full check every six months catches most things early."}
</p>
</div>
<article className="gu-smile__plan" key={reason}>
<h3>{plan.name}</h3>
<dl>
<div>
<dt>Time</dt>
<dd>{plan.mins} min</dd>
</div>
<div>
<dt>Price</dt>
<dd>{plan.price}</dd>
</div>
</dl>
<p>{plan.note}</p>
<a href="#smile-book" className="gu-smile__cta">
Find a time
</a>
</article>
</section>
<section id="smile-book" className="gu-smile__book" aria-labelledby="smile-book-title">
<div className="gu-smile__book-head">
<h2 id="smile-book-title">Pick a time</h2>
<p>
For: <b>{plan.name}</b>
{toothName && canPickTooth ? `, ${toothName.toLowerCase()}` : ""}
</p>
</div>
{done ? (
<div className="gu-smile__ticket" role="status">
<span className="gu-smile__ticket-day">{d.label}</span>
<span className="gu-smile__ticket-time">{time}</span>
<p>
You’re booked, {name.split(" ")[0]}. We’ll text {phone} the day before. Free parking behind the practice.
</p>
</div>
) : (
<>
<div className="gu-smile__days" role="group" aria-label="Day">
{DAYS.map((x) => {
const free = x.slots.length - x.taken.length;
return (
<button
key={x.id}
type="button"
aria-pressed={day === x.id}
onClick={() => {
setDay(x.id);
setTime(null);
}}
>
{x.label}
<span>{free} free</span>
</button>
);
})}
</div>
<div className="gu-smile__slots" role="group" aria-label="Time" key={day}>
{d.slots.map((s, i) => {
const taken = d.taken.includes(s);
return (
<button
key={s}
type="button"
disabled={taken}
aria-pressed={time === s}
style={{ "--i": i } as CSSProperties}
onClick={() => setTime(s)}
>
{s}
{taken && <span className="gu-smile__sr"> (taken)</span>}
</button>
);
})}
</div>
<form
className="gu-smile__form"
onSubmit={(e) => {
e.preventDefault();
if (!time) return;
onBook?.({ reason, tooth: tooth ?? undefined, day, time, name, phone });
setDone(true);
}}
>
<label>
Your name
<input required value={name} onChange={(e) => setName(e.target.value)} autoComplete="name" />
</label>
<label>
Mobile
<input required type="tel" value={phone} onChange={(e) => setPhone(e.target.value)} autoComplete="tel" />
</label>
<button type="submit" className="gu-smile__cta" disabled={!time}>
{time ? `Book ${d.label} at ${time}` : "Choose a time first"}
</button>
</form>
</>
)}
</section>
<section className="gu-smile__team">
<Photo
src="/images/landing-clinic-dentist-02.jpg"
alt="A smiling dentist in sage scrubs sitting on the edge of a treatment chair"
tone="#6f9aa0"
className="gu-smile__team-img"
/>
<blockquote>
<p>“I explain before I touch anything, and you can raise a hand to stop me. Every time.”</p>
<footer>Dr Amara Osei, principal dentist</footer>
</blockquote>
</section>
<footer className="gu-smile__foot">
<span>© 2026 Fernside Dental, 12 Fern Road, Didsbury</span>
<a href="#">Prices</a>
<a href="#">Find us</a>
</footer>
</div>
);
}
Paste this into ChatGPT, Claude, Cursor, v0, Lovable or Bolt. It describes the layout, motion, colors and accessibility and includes the code, so the AI can rebuild it in any framework.
# Build this UI piece: Dental clinic landing page with a treatment finder
You are a senior front-end engineer. Recreate the piece below in my project. If I don't say which framework I use, ask once, then build it in that framework (React, Vue, Svelte, Angular, Astro, plain HTML/CSS/JS or anything else). Keep the behavior, motion, colors, spacing and accessibility exactly as described. Keep the code clean and commented for beginners.
## What it is
A calm landing page for an independent dental practice ("Fernside Dental, Didsbury"). Its signature is "What brings you in?": five reason chips (Check-up, Toothache, Chipped tooth, Whitening, I’m nervous) and a drawn SVG mouth of 28 teeth on an upper and a lower arch (sized molar to incisor, each rotated to follow the curve, popping in one after another). The mouth answers each reason: a mint scan line sweeps for a check-up; for toothache or a chip the teeth become buttons, and the one you tap gets a coral outline with throbbing rings (pain) or a notch (chip), named in a line below; for whitening the teeth turn white one by one with sparkles; for nerves a mint circle grows and shrinks to breathe with and the mouth relaxes. A card beside it swaps in with the matching treatment, its time and price, and a note. Below, "Pick a time": five day buttons with free counts, staggered time slots (taken ones struck through and disabled), name and mobile, and a Book button that names the slot. Booking turns into a ticket that flips up.
## Palette
White #fbfcfb, soft mint #e8f3ef, deep teal ink #0f3b4a, muted #557079, mint #57c4a6, coral #ff7f61, gum pink #f6c6c0, enamel #f1ead8, focus #2b35ff. One rounded sans (Avenir Next, Nunito, Segoe UI) for everything.
## Layout
- Bar: a tooth mark, the name, Treatments and an ink "Book online" pill.
- Hero: headline, paragraph and three ticked facts on the left; a softly morphing blob-shaped photo on the right.
- Finder (mint band): heading, chips, then the mouth and the treatment card side by side.
- Book: heading with the chosen treatment, days, slots and a three-column form; becomes a ticket.
- Team: a photo and a quote. Below 760px everything stacks; on a phone the days scroll sideways.
## Images
- landing-clinic-room-01.jpg (16:9, shown at 5:4 in the blob) and landing-clinic-dentist-02.jpg (4:5). Until a file exists, each frame shows a teal tone.
## Accessibility
- Chips, days and slots use aria-pressed; taken slots are disabled and say "(taken)" to screen readers.
- Teeth become role="button" with names (for example "Upper left molar") only when a tooth is needed.
- The mouth note is aria-live and the ticket is role="status".
- prefers-reduced-motion turns off all animation and transitions.
## Connect it
`onBook({ reason, tooth, day, time, name, phone })` fires when the form is sent.
## Reference implementation
The original is written in React with one plain CSS file. Dependencies: none (plain React and CSS). Translate it faithfully; do not add new libraries unless my framework needs them.
### ClinicPage.tsx
```tsx
"use client";
import { useEffect, useRef, useState, type CSSProperties } from "react";
import "./clinic-page.css";
/**
* ClinicPage: a landing page for an independent dental practice.
* Its signature is "What brings you in?": pick a reason and a drawn mouth
* answers it. Tap the sore tooth for toothache, watch the teeth brighten for
* whitening, see a scan sweep for a check-up, or breathe with it if you're
* nervous. The matching treatment, time and price lead into a slot picker.
* It is a demo: connect `onBook` to your practice software.
*/
type Reason = "checkup" | "pain" | "chip" | "white" | "nervous";
const REASONS: { id: Reason; label: string; needsTooth?: boolean }[] = [
{ id: "checkup", label: "Check-up" },
{ id: "pain", label: "Toothache", needsTooth: true },
{ id: "chip", label: "Chipped tooth", needsTooth: true },
{ id: "white", label: "Whitening" },
{ id: "nervous", label: "I’m nervous" },
];
const PLAN: Record<Reason, { name: string; mins: number; price: string; note: string }> = {
checkup: { name: "Check-up and clean", mins: 40, price: "£65", note: "Exam, X-rays if you’re due, and a scale and polish with our hygienist." },
pain: { name: "Emergency appointment", mins: 30, price: "£55", note: "We find the cause, ease the pain the same day and plan any treatment with you." },
chip: { name: "Bonding repair", mins: 45, price: "from £120", note: "Tooth-coloured resin shaped to match. Usually done in one visit, no drilling." },
white: { name: "Home whitening kit", mins: 30, price: "£295", note: "Trays made for your teeth and gel for two weeks. We check the shade at the end." },
nervous: { name: "Calm first visit", mins: 30, price: "Free", note: "A chat in the lounge, not the chair. You set the pace and can stop at any point." },
};
const DAYS = [
{ id: "mon", label: "Mon 7", slots: ["08:30", "09:10", "11:40", "14:00", "16:20"], taken: ["09:10", "14:00"] },
{ id: "tue", label: "Tue 8", slots: ["08:30", "10:00", "12:30", "15:10", "17:40"], taken: ["08:30"] },
{ id: "wed", label: "Wed 9", slots: ["09:00", "11:20", "13:00", "16:00"], taken: ["11:20", "13:00", "16:00"] },
{ id: "thu", label: "Thu 10", slots: ["08:00", "10:40", "12:10", "18:00", "18:40"], taken: [] },
{ id: "fri", label: "Fri 11", slots: ["08:30", "09:50", "13:30"], taken: ["09:50"] },
];
type Tooth = { id: string; x: number; y: number; a: number; w: number; h: number; name: string };
const KIND = ["molar", "molar", "premolar", "premolar", "canine", "incisor", "incisor"];
function arch(upper: boolean): Tooth[] {
const cx = 200;
const cy = upper ? 178 : 192;
const out: Tooth[] = [];
for (let k = 0; k < 14; k++) {
const t = k / 13;
const ang = upper ? Math.PI + 0.22 + t * (Math.PI - 0.44) : 0.22 + t * (Math.PI - 0.44);
const fromEnd = Math.min(k, 13 - k);
const big = fromEnd < 2 ? 1 : fromEnd < 4 ? 0.82 : 0.68;
const side = k < 7 ? (upper ? "left" : "right") : upper ? "right" : "left";
out.push({
id: `${upper ? "u" : "l"}${k}`,
x: cx + Math.cos(ang) * 150,
y: cy + Math.sin(ang) * 128,
a: (ang * 180) / Math.PI + 90,
w: 34 * big,
h: 30 + 6 * big,
name: `${upper ? "Upper" : "Lower"} ${side} ${KIND[fromEnd]}`,
});
}
return out;
}
const TEETH = [...arch(true), ...arch(false)];
function Photo({ src, alt, tone, className = "" }: { src: string; alt: string; tone: string; className?: string }) {
const img = useRef<HTMLImageElement>(null);
const [missing, setMissing] = useState(false);
useEffect(() => {
const el = img.current;
if (el && el.complete && el.naturalWidth === 0) setMissing(true);
}, []);
return (
<span className={`gu-smile__photo ${className}`} style={{ "--tone": tone } as CSSProperties}>
{!missing && <img ref={img} src={src} alt={alt} loading="lazy" onError={() => setMissing(true)} />}
</span>
);
}
export function ClinicPage({
onBook,
}: {
onBook?: (b: { reason: Reason; tooth?: string; day: string; time: string; name: string; phone: string }) => void;
}) {
const [reason, setReason] = useState<Reason>("checkup");
const [tooth, setTooth] = useState<string | null>(null);
const [day, setDay] = useState("thu");
const [time, setTime] = useState<string | null>(null);
const [name, setName] = useState("");
const [phone, setPhone] = useState("");
const [done, setDone] = useState(false);
const r = REASONS.find((x) => x.id === reason)!;
const plan = PLAN[reason];
const toothName = TEETH.find((t) => t.id === tooth)?.name;
const d = DAYS.find((x) => x.id === day)!;
const canPickTooth = !!r.needsTooth;
return (
<div className="gu-smile">
<header className="gu-smile__bar">
<a href="#" className="gu-smile__mark">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M7 3c-3 0-4.5 2.5-4 6 .4 3 1.5 4.5 2 8 .3 2.5 1 4 2.2 4 1.6 0 1.8-5 4.8-5s3.2 5 4.8 5c1.2 0 1.9-1.5 2.2-4 .5-3.5 1.6-5 2-8 .5-3.5-1-6-4-6-2 0-3 1-5 1S9 3 7 3z" />
</svg>
Fernside Dental
</a>
<nav aria-label="Fernside Dental">
<a href="#smile-find">Treatments</a>
<a href="#smile-book" className="gu-smile__navcta">
Book online
</a>
</nav>
</header>
<section className="gu-smile__hero">
<div>
<h1>A dentist you won’t dread.</h1>
<p>
An independent practice in Didsbury with six chairs, long appointments and a waiting room that smells of
coffee, not cloves.
</p>
<ul className="gu-smile__facts">
<li>
<b>Same-day</b> pain appointments
</li>
<li>
<b>Open late</b> Tuesday and Thursday
</li>
<li>
<b>NHS and private</b> patients
</li>
</ul>
</div>
<Photo
src="/images/landing-clinic-room-01.jpg"
alt="A bright treatment room with a pale green chair and a window onto trees"
tone="#8fb8ad"
className="gu-smile__hero-img"
/>
</section>
<section id="smile-find" className="gu-smile__find" aria-labelledby="smile-find-title">
<h2 id="smile-find-title">What brings you in?</h2>
<div className="gu-smile__reasons" role="group" aria-label="Reason for visit">
{REASONS.map((x) => (
<button
key={x.id}
type="button"
aria-pressed={reason === x.id}
onClick={() => {
setReason(x.id);
setTooth(null);
}}
>
{x.label}
</button>
))}
</div>
<div className="gu-smile__mouth" data-mode={reason}>
<svg viewBox="0 0 400 370" role="group" aria-label="Teeth">
<ellipse cx="200" cy="185" rx="186" ry="170" className="gu-smile__gum" />
{TEETH.map((t, i) => {
const on = tooth === t.id;
return (
<g
key={t.id}
className="gu-smile__tooth"
data-on={on || undefined}
style={{ "--x": `${t.x}px`, "--y": `${t.y}px`, "--a": `${t.a}deg`, "--i": i % 14 } as CSSProperties}
role={canPickTooth ? "button" : undefined}
tabIndex={canPickTooth ? 0 : undefined}
aria-label={canPickTooth ? t.name : undefined}
aria-pressed={canPickTooth ? on : undefined}
onClick={() => canPickTooth && setTooth(t.id)}
onKeyDown={(e) => {
if (canPickTooth && (e.key === "Enter" || e.key === " ")) {
e.preventDefault();
setTooth(t.id);
}
}}
>
{on && reason === "pain" && (
<>
<circle r="22" className="gu-smile__throb" />
<circle r="22" className="gu-smile__throb gu-smile__throb--2" />
</>
)}
<rect
x={-t.w / 2}
y={-t.h / 2}
width={t.w}
height={t.h}
rx={t.w * 0.38}
className="gu-smile__enamel"
/>
{on && reason === "chip" && <path d={`M${t.w / 2 - 10} ${-t.h / 2} l10 0 l0 10z`} className="gu-smile__chip" />}
</g>
);
})}
{reason === "checkup" && <rect x="10" y="0" width="380" height="6" rx="3" className="gu-smile__scan" />}
{reason === "white" &&
[0, 1, 2, 3].map((k) => (
<path
key={k}
d="M0 -10 L2.5 -2.5 L10 0 L2.5 2.5 L0 10 L-2.5 2.5 L-10 0 L-2.5 -2.5Z"
className="gu-smile__spark"
style={{ "--x": `${110 + k * 60}px`, "--y": `${k % 2 ? 70 : 300}px`, "--k": k } as CSSProperties}
/>
))}
{reason === "nervous" && <circle cx="200" cy="185" r="60" className="gu-smile__breath" />}
</svg>
<p className="gu-smile__mouthnote" aria-live="polite">
{reason === "nervous"
? "Breathe in as the circle grows, out as it shrinks."
: canPickTooth
? toothName
? `${toothName} marked. We’ll start there.`
: "Tap the tooth that’s bothering you."
: reason === "white"
? "Most people go two to four shades lighter."
: "A full check every six months catches most things early."}
</p>
</div>
<article className="gu-smile__plan" key={reason}>
<h3>{plan.name}</h3>
<dl>
<div>
<dt>Time</dt>
<dd>{plan.mins} min</dd>
</div>
<div>
<dt>Price</dt>
<dd>{plan.price}</dd>
</div>
</dl>
<p>{plan.note}</p>
<a href="#smile-book" className="gu-smile__cta">
Find a time
</a>
</article>
</section>
<section id="smile-book" className="gu-smile__book" aria-labelledby="smile-book-title">
<div className="gu-smile__book-head">
<h2 id="smile-book-title">Pick a time</h2>
<p>
For: <b>{plan.name}</b>
{toothName && canPickTooth ? `, ${toothName.toLowerCase()}` : ""}
</p>
</div>
{done ? (
<div className="gu-smile__ticket" role="status">
<span className="gu-smile__ticket-day">{d.label}</span>
<span className="gu-smile__ticket-time">{time}</span>
<p>
You’re booked, {name.split(" ")[0]}. We’ll text {phone} the day before. Free parking behind the practice.
</p>
</div>
) : (
<>
<div className="gu-smile__days" role="group" aria-label="Day">
{DAYS.map((x) => {
const free = x.slots.length - x.taken.length;
return (
<button
key={x.id}
type="button"
aria-pressed={day === x.id}
onClick={() => {
setDay(x.id);
setTime(null);
}}
>
{x.label}
<span>{free} free</span>
</button>
);
})}
</div>
<div className="gu-smile__slots" role="group" aria-label="Time" key={day}>
{d.slots.map((s, i) => {
const taken = d.taken.includes(s);
return (
<button
key={s}
type="button"
disabled={taken}
aria-pressed={time === s}
style={{ "--i": i } as CSSProperties}
onClick={() => setTime(s)}
>
{s}
{taken && <span className="gu-smile__sr"> (taken)</span>}
</button>
);
})}
</div>
<form
className="gu-smile__form"
onSubmit={(e) => {
e.preventDefault();
if (!time) return;
onBook?.({ reason, tooth: tooth ?? undefined, day, time, name, phone });
setDone(true);
}}
>
<label>
Your name
<input required value={name} onChange={(e) => setName(e.target.value)} autoComplete="name" />
</label>
<label>
Mobile
<input required type="tel" value={phone} onChange={(e) => setPhone(e.target.value)} autoComplete="tel" />
</label>
<button type="submit" className="gu-smile__cta" disabled={!time}>
{time ? `Book ${d.label} at ${time}` : "Choose a time first"}
</button>
</form>
</>
)}
</section>
<section className="gu-smile__team">
<Photo
src="/images/landing-clinic-dentist-02.jpg"
alt="A smiling dentist in sage scrubs sitting on the edge of a treatment chair"
tone="#6f9aa0"
className="gu-smile__team-img"
/>
<blockquote>
<p>“I explain before I touch anything, and you can raise a hand to stop me. Every time.”</p>
<footer>Dr Amara Osei, principal dentist</footer>
</blockquote>
</section>
<footer className="gu-smile__foot">
<span>© 2026 Fernside Dental, 12 Fern Road, Didsbury</span>
<a href="#">Prices</a>
<a href="#">Find us</a>
</footer>
</div>
);
}
```
### clinic-page.css
```css
/* ClinicPage: Fernside Dental. Fresh white, deep teal ink, mint and a soft coral. */
.gu-smile {
--bg: #fbfcfb;
--soft: #e8f3ef;
--ink: #0f3b4a;
--muted: #557079;
--mint: #57c4a6;
--coral: #ff7f61;
--gum: #f6c6c0;
--line: rgb(15 59 74 / 0.13);
--focus: #2b35ff;
--round: "Avenir Next", "Nunito", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
container-type: inline-size;
overflow: hidden;
background: var(--bg);
color: var(--ink);
font: 16px/1.6 var(--round);
}
.gu-smile *,
.gu-smile *::before,
.gu-smile *::after {
box-sizing: border-box;
}
.gu-smile a {
color: inherit;
}
.gu-smile button,
.gu-smile input {
font: inherit;
color: inherit;
}
.gu-smile button {
cursor: pointer;
}
.gu-smile :focus-visible {
outline: 3px solid var(--focus);
outline-offset: 3px;
}
.gu-smile h1,
.gu-smile h2,
.gu-smile h3 {
margin: 0;
font-weight: 700;
line-height: 1.08;
letter-spacing: -0.02em;
}
.gu-smile__sr {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
.gu-smile__photo {
display: block;
overflow: hidden;
background: linear-gradient(150deg, color-mix(in srgb, var(--tone) 50%, #fff), var(--tone));
}
.gu-smile__photo img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
/* Bar */
.gu-smile__bar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
padding: 16px clamp(16px, 4cqi, 40px);
}
.gu-smile__mark {
display: flex;
align-items: center;
gap: 8px;
font-weight: 700;
font-size: 19px;
text-decoration: none;
}
.gu-smile__mark svg {
width: 24px;
height: 24px;
fill: #fff;
stroke: var(--ink);
stroke-width: 1.6;
}
.gu-smile__bar nav {
display: flex;
align-items: center;
gap: 18px;
font-size: 15px;
}
.gu-smile__bar nav a {
text-decoration: none;
color: var(--muted);
}
.gu-smile__bar nav .gu-smile__navcta {
color: #fff;
background: var(--ink);
border-radius: 999px;
padding: 9px 16px;
}
/* Hero */
.gu-smile__hero {
padding: 32px clamp(16px, 4cqi, 40px) 56px;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 36px;
align-items: center;
}
.gu-smile__hero h1 {
font-size: clamp(38px, 6.4cqi, 64px);
animation: gu-smile-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.gu-smile__hero p {
color: var(--muted);
margin: 16px 0 22px;
max-width: 42ch;
animation: gu-smile-up 0.8s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.gu-smile__facts {
list-style: none;
margin: 0;
padding: 0;
display: grid;
gap: 8px;
}
.gu-smile__facts li {
display: flex;
gap: 10px;
align-items: center;
animation: gu-smile-up 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.gu-smile__facts li:nth-child(1) {
animation-delay: 0.25s;
}
.gu-smile__facts li:nth-child(2) {
animation-delay: 0.35s;
}
.gu-smile__facts li:nth-child(3) {
animation-delay: 0.45s;
}
.gu-smile__facts li::before {
content: "";
width: 22px;
height: 22px;
flex: none;
border-radius: 50%;
background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.2 3L16 8' fill='none' stroke='%230f3b4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.gu-smile__hero-img {
aspect-ratio: 5 / 4;
border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
animation: gu-smile-blob 12s ease-in-out infinite alternate;
}
/* Finder */
.gu-smile__find {
padding: 56px clamp(16px, 4cqi, 40px);
background: var(--soft);
display: grid;
grid-template-columns: 1.1fr 1fr;
gap: 16px 36px;
align-items: start;
}
.gu-smile__find h2,
.gu-smile__book h2 {
font-size: clamp(28px, 4.4cqi, 40px);
}
.gu-smile__find h2,
.gu-smile__reasons {
grid-column: 1 / -1;
}
.gu-smile__reasons {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 8px;
}
.gu-smile__reasons button {
min-height: 44px;
padding: 0 18px;
border-radius: 999px;
border: 1.5px solid var(--line);
background: #fff;
font-weight: 600;
transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.gu-smile__reasons button:hover {
border-color: var(--ink);
}
.gu-smile__reasons button[aria-pressed="true"] {
background: var(--ink);
border-color: var(--ink);
color: #fff;
transform: translateY(-2px);
}
.gu-smile__mouth svg {
display: block;
width: 100%;
max-width: 420px;
margin: 0 auto;
height: auto;
overflow: visible;
}
.gu-smile__gum {
fill: #fbe4e1;
stroke: var(--gum);
stroke-width: 14;
opacity: 0.9;
}
.gu-smile__tooth {
translate: var(--x) var(--y);
rotate: var(--a);
outline: none;
}
.gu-smile__tooth[role="button"] {
cursor: pointer;
}
.gu-smile__enamel {
fill: #f1ead8;
stroke: #c9bfa6;
stroke-width: 1.5;
transition: fill 0.8s, stroke 0.3s, scale 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
transform-box: fill-box;
transform-origin: center;
animation: gu-smile-tooth 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both;
animation-delay: calc(var(--i) * 30ms);
}
.gu-smile__tooth[role="button"]:hover .gu-smile__enamel,
.gu-smile__tooth[role="button"]:focus-visible .gu-smile__enamel {
scale: 1.12;
stroke: var(--ink);
}
.gu-smile__tooth:focus-visible .gu-smile__enamel {
stroke: var(--focus);
stroke-width: 3;
}
.gu-smile__tooth[data-on] .gu-smile__enamel {
stroke: var(--coral);
stroke-width: 3;
scale: 1.12;
}
.gu-smile__throb {
fill: var(--coral);
opacity: 0;
animation: gu-smile-throb 1.2s ease-out infinite;
}
.gu-smile__throb--2 {
animation-delay: 0.6s;
}
.gu-smile__chip {
fill: #fff;
stroke: var(--coral);
stroke-width: 1.5;
animation: gu-smile-up 0.3s ease-out both;
}
.gu-smile__mouth[data-mode="white"] .gu-smile__enamel {
fill: #ffffff;
stroke: #a9c3c9;
transition-delay: calc(var(--i) * 40ms);
}
.gu-smile__scan {
fill: var(--mint);
opacity: 0.7;
filter: drop-shadow(0 0 8px var(--mint));
animation: gu-smile-scan 2.4s ease-in-out infinite alternate;
}
.gu-smile__spark {
translate: var(--x) var(--y);
fill: var(--mint);
transform-box: fill-box;
transform-origin: center;
animation: gu-smile-spark 1.6s ease-in-out infinite;
animation-delay: calc(var(--k) * 0.4s);
}
.gu-smile__breath {
fill: var(--mint);
opacity: 0.25;
transform-box: fill-box;
transform-origin: center;
animation: gu-smile-breath 8s ease-in-out infinite;
}
.gu-smile__mouth[data-mode="nervous"] svg {
animation: gu-smile-calm 8s ease-in-out infinite;
}
.gu-smile__mouthnote {
text-align: center;
color: var(--muted);
min-height: 3.2em;
margin: 8px 0 0;
}
.gu-smile__plan {
background: #fff;
border-radius: 20px;
padding: 24px;
box-shadow: 0 20px 40px -24px rgb(15 59 74 / 0.4);
align-self: center;
animation: gu-smile-card 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.gu-smile__plan h3 {
font-size: 24px;
}
.gu-smile__plan dl {
display: flex;
gap: 28px;
margin: 14px 0;
}
.gu-smile__plan dt {
font-size: 13px;
color: var(--muted);
}
.gu-smile__plan dd {
margin: 0;
font-size: 22px;
font-weight: 700;
}
.gu-smile__plan p {
color: var(--muted);
margin: 0 0 18px;
}
.gu-smile__cta {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 48px;
padding: 0 22px;
border: 0;
border-radius: 999px;
background: var(--mint);
color: var(--ink);
font-weight: 700;
text-decoration: none;
transition: transform 0.2s, background 0.2s;
}
.gu-smile__cta:hover:not(:disabled) {
transform: translateY(-2px);
background: #48b597;
}
.gu-smile__cta:disabled {
background: var(--soft);
color: var(--muted);
cursor: not-allowed;
}
/* Book */
.gu-smile__book {
padding: 56px clamp(16px, 4cqi, 40px);
}
.gu-smile__book-head {
display: flex;
justify-content: space-between;
align-items: end;
gap: 12px;
flex-wrap: wrap;
margin-bottom: 20px;
}
.gu-smile__book-head p {
margin: 0;
color: var(--muted);
}
.gu-smile__book-head b {
color: var(--ink);
}
.gu-smile__days {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 8px;
}
.gu-smile__days button {
min-height: 64px;
border-radius: 14px;
border: 1.5px solid var(--line);
background: #fff;
display: grid;
place-content: center;
font-weight: 700;
transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.gu-smile__days button span {
font-weight: 400;
font-size: 13px;
color: var(--muted);
}
.gu-smile__days button[aria-pressed="true"] {
background: var(--ink);
color: #fff;
border-color: var(--ink);
}
.gu-smile__days button[aria-pressed="true"] span {
color: #a9d9cb;
}
.gu-smile__slots {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 16px 0 24px;
}
.gu-smile__slots button {
min-width: 84px;
min-height: 44px;
border-radius: 10px;
border: 1.5px solid var(--mint);
background: #fff;
font-weight: 600;
font-variant-numeric: tabular-nums;
animation: gu-smile-up 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
animation-delay: calc(var(--i) * 50ms);
transition: background 0.2s, color 0.2s;
}
.gu-smile__slots button:hover:not(:disabled) {
background: var(--soft);
}
.gu-smile__slots button[aria-pressed="true"] {
background: var(--mint);
}
.gu-smile__slots button:disabled {
border-color: var(--line);
color: #a6b5ba;
text-decoration: line-through;
cursor: not-allowed;
}
.gu-smile__form {
display: grid;
grid-template-columns: 1fr 1fr auto;
gap: 12px;
align-items: end;
}
.gu-smile__form label {
display: grid;
gap: 4px;
font-size: 14px;
color: var(--muted);
}
.gu-smile__form input {
min-height: 48px;
border-radius: 10px;
border: 1.5px solid var(--line);
padding: 0 14px;
background: #fff;
color: var(--ink);
}
.gu-smile__form input:focus {
border-color: var(--ink);
}
.gu-smile__ticket {
display: grid;
grid-template-columns: auto auto 1fr;
gap: 8px 20px;
align-items: center;
padding: 24px;
border-radius: 20px;
background: var(--ink);
color: #fff;
position: relative;
animation: gu-smile-ticket 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}
.gu-smile__ticket::before,
.gu-smile__ticket::after {
content: "";
position: absolute;
top: 50%;
width: 22px;
height: 22px;
margin-top: -11px;
border-radius: 50%;
background: var(--bg);
}
.gu-smile__ticket::before {
left: -11px;
}
.gu-smile__ticket::after {
right: -11px;
}
.gu-smile__ticket-day {
font-size: 15px;
color: #a9d9cb;
}
.gu-smile__ticket-time {
font-size: 40px;
font-weight: 700;
font-variant-numeric: tabular-nums;
}
.gu-smile__ticket p {
margin: 0;
}
/* Team */
.gu-smile__team {
margin: 0 clamp(16px, 4cqi, 40px) 56px;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 32px;
align-items: center;
}
.gu-smile__team-img {
aspect-ratio: 4 / 5;
max-height: 520px;
border-radius: 24px;
}
.gu-smile__team blockquote {
margin: 0;
}
.gu-smile__team blockquote p {
font-size: clamp(22px, 3.2cqi, 30px);
font-weight: 600;
line-height: 1.3;
margin: 0 0 12px;
}
.gu-smile__team footer {
color: var(--muted);
}
.gu-smile__foot {
display: flex;
gap: 18px;
flex-wrap: wrap;
padding: 20px clamp(16px, 4cqi, 40px);
border-top: 1px solid var(--line);
color: var(--muted);
font-size: 14px;
}
.gu-smile__foot span {
margin-right: auto;
}
@keyframes gu-smile-up {
from {
opacity: 0;
transform: translateY(12px);
}
to {
opacity: 1;
transform: none;
}
}
@keyframes gu-smile-blob {
to {
border-radius: 55% 45% 40% 60% / 45% 55% 50% 50%;
}
}
@keyframes gu-smile-tooth {
from {
scale: 0.4;
opacity: 0;
}
}
@keyframes gu-smile-throb {
from {
opacity: 0.5;
transform: scale(0.5);
}
to {
opacity: 0;
transform: scale(1.6);
}
}
@keyframes gu-smile-scan {
from {
transform: translateY(40px);
}
to {
transform: translateY(330px);
}
}
@keyframes gu-smile-spark {
0%,
100% {
transform: scale(0) rotate(0deg);
opacity: 0;
}
50% {
transform: scale(1.3) rotate(45deg);
opacity: 1;
}
}
@keyframes gu-smile-breath {
0%,
100% {
transform: scale(0.6);
}
45%,
55% {
transform: scale(2.4);
}
}
@keyframes gu-smile-calm {
0%,
100% {
transform: scale(0.97);
}
50% {
transform: scale(1.02);
}
}
@keyframes gu-smile-card {
from {
opacity: 0;
transform: translateY(16px) rotate(-1.5deg);
}
to {
opacity: 1;
transform: none;
}
}
@keyframes gu-smile-ticket {
from {
opacity: 0;
transform: translateY(30px) rotateX(50deg);
}
to {
opacity: 1;
transform: none;
}
}
@container (max-width: 760px) {
.gu-smile__hero,
.gu-smile__find,
.gu-smile__team {
grid-template-columns: 1fr;
}
.gu-smile__hero-img {
order: -1;
aspect-ratio: 16 / 10;
}
.gu-smile__team-img {
aspect-ratio: 4 / 3;
}
.gu-smile__form {
grid-template-columns: 1fr 1fr;
}
.gu-smile__form .gu-smile__cta {
grid-column: 1 / -1;
}
}
@container (max-width: 560px) {
.gu-smile__bar nav a:not(.gu-smile__navcta) {
display: none;
}
.gu-smile__days {
grid-template-columns: repeat(5, minmax(64px, 1fr));
overflow-x: auto;
padding-bottom: 4px;
}
.gu-smile__form {
grid-template-columns: 1fr;
}
.gu-smile__ticket {
grid-template-columns: auto 1fr;
}
.gu-smile__ticket p {
grid-column: 1 / -1;
}
}
@media (prefers-reduced-motion: reduce) {
.gu-smile *,
.gu-smile *::before,
.gu-smile *::after {
animation: none !important;
transition: none !important;
}
.gu-smile__scan,
.gu-smile__spark,
.gu-smile__throb {
display: none;
}
}
```
You might also want
Next piece: E-bike launch page with colour wipeRestaurant page with booking
Landing pages, advanced
Boutique hotel page with a sun-path day
Landing pages, advanced
Estate agent landing page with a local map
Landing pages, advanced

