Call-now button with a clickable number
A desktop contact card with a clickable tel: number, a live Available badge and response hours, for tradespeople who want to be phoned directly.
- Tailwind
- React
- CSS
- WordPress
Description
The card puts forward a large Call now button showing the number: on a computer the tel: link opens the installed calling software (FaceTime, Teams, Windows Phone Link), and a Copy number button lets visitors move it to their mobile. From the response hours, a badge shows whether the tradesperson is picking up right now ("Available, answers until 7 pm") or when they are back ("Unavailable, back Monday at 7:30"), refreshed every minute. Hours and the voicemail note sit in their own column on large screens and move below the button under 768 px; everything fits at 360 px. Colours, radius and shadow use CSS variables prefixed --apm-, ready to match the site's brand.
Accessibility: a section named by its heading, native link and button reachable by keyboard with a 3 px focus outline, 48 to 64 px tall targets, the copy result announced through a role="status" region (if the browser refuses, the number is selected for manual copying), AA contrast measured in light and dark, availability conveyed by text and not by colour alone, and the badge ripple and transitions turned off with prefers-reduced-motion. Without JavaScript the call link and hours still work; only the badge and the copy button are hidden.
Code
Loading the code…
The code of this component in
Reviews
No reviews yet.
In the same spirit

A promotional card for a course, a workshop or an opening: remaining seats, a fill bar, the registration deadline and a booking button, with no countdown timer.
- Tailwind
- React
- CSS
- WordPress

A Free quote within 24 hours banner with a request button, a clickable phone number and three guarantees (no commitment, fast reply, free visit), with no JavaScript.
- Tailwind
- React
- CSS
- WordPress

Countdown CTA
FreeA call to action for a limited offer: serif heading, two links and a countdown in days, hours and minutes inside a coupon-style frame.
- Tailwind
- React
- CSS
- WordPress

A direct-call block for emergencies, with the number in very large type and response times.
- Tailwind
- React
- CSS
- WordPress