Skip to content

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
Open in a new tab

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…

Archive contents

bouton-appeler-maintenant-fixe-bureau-html-tailwind.zip3 files · 7 Ko

  • index.html9 Ko
  • README.md5 Ko
  • LICENSE.md1 Ko

Tags

Updated on October 17, 2026.

In the same spirit

  • A 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
    Component
  • A direct-call block for emergencies, with the number in very large type and response times.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A dark block inviting visitors to install the mobile app, with two store buttons and a phone mockup.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A call to book an appointment alongside the opening hours and practice address.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component