StealThis .dev

Clinic — Medication Info Sheet

A calm, patient-facing medication leaflet for a single prescribed drug, leading with a name and dose header, then plain-language sections for what it treats, how to take it and common side effects. A prominent coral warnings callout flags allergic-reaction symptoms, Do and Don't chips give quick guidance, and a missed-dose note reassures. An A / A+ / A++ text-size toggle scales the whole sheet and a Print button opens the browser dialog, each confirmed with a toast.

Lab에서 열기
html css vanilla-js
Targets: JS HTML

Code

Medication Info Sheet

A single-drug patient leaflet built for calm, careful reading. A teal header carries the medication name, strength and form alongside a short prescriber line, then the sheet works top to bottom: What it is for, a numbered How to take it sequence, a two-column grid of common side effects, and a coral-tinted warnings callout that draws the eye to the signs of a serious allergic reaction. Below it, green Do and red Don’t chips give at-a-glance guidance and a teal Missed a dose? note reassures without alarming.

The toolbar adds two accessibility helpers. The A / A+ / A++ text-size toggle drives a single --scale lever, so every element — sized in em — grows together while the controls themselves stay fixed. The Print button opens the browser’s print dialog, with a dedicated print stylesheet that hides the toolbar, flattens the card and avoids breaking callouts across pages. Each action confirms quietly through a small toast, and the markup carries aria-pressed, role="note" and labelled regions for keyboard and screen-reader use.

Everything is vanilla HTML, CSS and JavaScript — no frameworks, no build step — and the layout collapses gracefully to a single column on narrow screens.

Illustrative UI only — not intended for real medical use.