Skip to content

Opening hours, address and access

A “Visit us” section for local shops: weekly opening hours with today and the live opening status, address, ways to get there (tram, bus, car, bike, step-free access) and directions and call buttons.

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

Description

Everything is readable and clickable without JavaScript: hours in a description list, address in an address element, a directions link to Google Maps and a tel: link to call. The script (about sixty lines, no dependency) reads the hours from the markup, highlights today's row (aria-current="date" and a “Today” badge) and shows the status “Open now, until 1 pm”, “Closing soon” in the last half hour or “Closed, opens tomorrow at 9 am”, computed in the Europe/Paris time zone and refreshed every minute. The JSON-LD markup (Store, address, phone, opening hours) mirrors the details shown for local SEO. In HTML/CSS and WordPress, the data-fzh-palette="olive" or "ardoise" attribute on the section replaces the honey accent, in light and dark modes; every colour goes through --fzh-* variables. Accessibility: a level 2 heading then one level 3 heading per block, decorative icons hidden, opening status spelled out (colour never carries the information alone), 48 px high buttons with a visible focus, contrast above 4.5:1 in light and dark modes, transitions removed with prefers-reduced-motion. One column from 360 px, two on tablets, three on large screens. Replace the hours (data-fzh-ranges attribute, in minutes), the address, the phone number and the directions link with your own.

Code

Loading the code…

The code of this component in

Archive contents

features-zone-horaires-contact-html-tailwind.zip3 files · 8 Ko

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

Tags

Updated on December 2, 2026.

Reviews

No reviews yet.

In the same spirit

  • A six-cell bento grid: key figures, SVG sparklines, a quote and icons. All the text is in the HTML and the animation is CSS only, with no script at all.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Three cards in saturated flat colours (yellow, pink, electric blue) with high-contrast text and a dark variant. Every colour pair is measured at AA: 5.5:1 at worst.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Six features as frosted glass cards over a slowly drifting aurora mesh gradient. Pause button, still background under prefers-reduced-motion, CSS and a light script.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • The key message stays pinned while the background changes colour and illustration at each scroll step. CSS sticky, a light script, stacked cards as fallback under prefers-reduced-motion.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component