StealThis .dev

Dental — Appointment Card

A trust-first dental appointment card with date and time, assigned dentist, treatment type, a confirmed or pending status badge, and reschedule plus cancel actions that open an inline confirm step before anything changes.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

A clean, clinical appointment card built for a dental practice dashboard. Each card leads with a rounded date tile, then lays out the treatment, the assigned dentist with a color avatar, the visit time and chair, and a status badge that reads either confirmed or pending at a glance. The palette stays calm and reassuring — soft blues, mint accents, and generous white space — so the interface feels trustworthy rather than busy.

The two primary actions, reschedule and cancel, never fire immediately. Tapping either one slides an inline confirmation strip into the card so a mistaken click can be undone before anything happens. Confirming a cancel flips the card into a dimmed cancelled state, confirming a reschedule bumps the visit to a new suggested slot and marks it pending, and every change raises an accessible toast. Pending cards also expose a quick confirm shortcut.

Everything is keyboard reachable with visible focus rings, the status is announced through an aria-live region, and the layout collapses gracefully to a single column below 520px. No frameworks, no build step — just semantic HTML, one stylesheet, and a small vanilla script.

Illustrative UI only — not intended for real medical use.