Skip to content

Contact card with address and map

A “Find us” card bringing together address, access, phone, email and opening hours, with an OpenStreetMap map loaded on demand and buttons to call, email, get directions or copy the address.

  • Tailwind
  • React
  • CSS
  • WordPress
Open in a new tab

Description

All contact details are readable and clickable without JavaScript (tel:, mailto:, directions and map links). Once the script loads, today's row is highlighted in the opening hours table (computed in the Europe/Paris time zone), the interactive map replaces the illustration with a single click, with no request to OpenStreetMap before that click, and a button copies the full address. The JSON-LD markup (LocalBusiness, address, GPS coordinates, opening hours) mirrors the details shown. In HTML/CSS and WordPress, the data-ccap-palette="terre" or "foret" attribute on the card changes the accent, in light and dark modes. Accessibility: details in a description list, hours in a real table with row headers, everything works with the keyboard with a visible focus, focus moves to the map once loaded, copying and loading are announced by a role="status" region, touch targets are 44 px, contrast exceeds 4.5:1 in light and dark modes and transitions stop with prefers-reduced-motion. Replace the details, the directions link and the OpenStreetMap URLs with your own.

Code

Loading the code…

Archive contents

carte-contact-adresse-plan-html-tailwind.zip3 files · 7 Ko

  • index.html17 Ko
  • README.md4 Ko
  • LICENSE.md1 Ko

Tags

Updated on October 16, 2026.

In the same spirit

  • A Google reviews summary block: average star rating, review count and breakdown, expandable recent reviews and a link to leave a review, with schema.org structured data.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A shop card with the week's opening hours, today highlighted and a live status: open, closing soon, or closed with the reopening time.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Icon, title, short description, indicative price and link to the details.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Visual, recipe name, difficulty, duration and servings.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component