A medical clinic footer built with Bootstrap 5 for doctor's offices, family practices and outpatient centres. This healthcare website footer opens with an emergency information strip, shows clinic opening hours with today highlighted and a live open-now status, and links to departments, patient services and the patient portal.
How it works
The wrapper .mcf-root holds a thin sample page strip and footer.mcf-footer. The blue .mcf-emergency region says to call 911 in an emergency and offers the nurse line as a tel: link plus a copy button. The main row has the brand block with portal and appointment buttons and an address, the .mcf-hours card, and two nav columns. An accreditation line and the .mcf-bottom legal row close the footer.
Each day in .mcf-week has data-day (0 = Sunday) and, when open, data-open and data-close in 24-hour time. The script marks today's row with is-today, then the [data-mcf-status] pill shows "Open now", "Closes soon" (within CLOSING_SOON_MIN minutes) or "Closed" with the next opening time. The [data-mcf-copy] button copies data-mcf-number, switches its label to "Copied" and announces the result; if copying is blocked it announces the number instead. The year in [data-mcf-year] is set by the script.
Customization
--mcf-blueand--mcf-blue-darkin.mcf-root: change the emergency strip, buttons, today highlight and icons.data-open/data-closeon each.mcf-week li: set your hours; remove both attributes for a closed day.CLOSING_SOON_MINinscript.js: changes when the status switches from "Open now" to "Closes soon".data-mcf-numberon.mcf-call: the number that the copy button copies; keep it in sync with thehref.--mcf-openand--mcf-closedin.mcf-root: change the colours of the open and closed status pill.--mcf-radiusin.mcf-root: changes the 10px corner radius of the strip, cards and buttons.- Edit the
.mcf-accredparagraph to name the accreditation bodies and licence your clinic actually holds.
Use cases
- Family practices: patients see today's hours and whether the clinic is open before they call
- Outpatient and specialist centres: department links and the patient portal button sit on every page
- Urgent care clinics: the emergency strip and nurse line are visible at the bottom of each page
- Dental and physiotherapy practices: the hours card and appointment button work without changes
Accessibility
The emergency strip is a labelled region with a heading. Link columns are nav elements with aria-labelledby, contact details use address, and today's row has aria-current="date" plus hidden "(today)" text. Copy results are announced in a polite role="status" region. Social links use neutral icons with hidden network names. Focus outlines are clearly visible and tap targets are at least 40 px tall.
Usage notes
Requires Bootstrap 5 (added automatically), Bootstrap Icons and the Nunito Sans font. Hours are compared with the visitor's device time, so the status assumes visitors are in the clinic's time zone. Replace 911 with the emergency number for your country.