StealThis .dev

Dental — Emergency Info

A reassuring dental emergency card with a one-tap urgent call button, live open-now status, weekly hours, an expandable what-to-do first-aid accordion for knocked-out teeth, swelling and lost fillings, plus a gradient map placeholder with directions — trust-first clinical styling built in vanilla HTML, CSS and JavaScript.

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

Code

The Dental Emergency Info component is a calm, high-clarity card designed to help an anxious patient act fast. A bold red urgent banner pairs a large one-tap call button with a live open now / closed pill that is calculated from the current time against the clinic’s weekly schedule, so visitors instantly know whether to phone the after-hours line. A compact grid surfaces the emergency hotline, walk-in hours and average wait time, each with a copy-to-clipboard shortcut and a friendly toast confirmation.

Below the summary, a keyboard-accessible “What to do right now” accordion expands step-by-step first-aid guidance for the most common dental emergencies — a knocked-out tooth, severe swelling, uncontrolled bleeding and a lost filling or crown — with only one panel open at a time for focus. A soft gradient map placeholder anchors the clinic location with an address block and a “Get directions” action, while every control exposes clear focus rings and hover states so the card stays usable under stress, on a phone, and for screen-reader users.

Interactions are entirely vanilla JavaScript: the open-now logic, the animated accordion with aria-expanded syncing, clipboard copy helpers and the toast notifications all run without any framework or build step, and the layout collapses gracefully to a single column under 520px.

Illustrative UI only — not intended for real medical use.