Skip to content

Live opening status banner

An Open / Closed pill for the site header, computed on the shop's local time, with French public holidays, exceptional closures and the next opening time.

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

Description

The pill sits next to the menu and shows Open, Closing soon or Closed live, with the next opening time, even across a public holiday or a holiday break. Time is always Paris time, whatever the visitor's time zone. The eleven French national public holidays are computed every year (Easter, Ascension and Whit Monday included), with an Alsace-Moselle option; exceptional closures are declared with plain dates. One click opens the details: the week's hours with today marked, upcoming closures and a phone link. Accessibility: native details element usable from the keyboard, Escape closes it and returns focus, table with row headers and aria-current on today, AA contrast in light and dark modes, pulse disabled with prefers-reduced-motion. Without JavaScript the hours stay readable.

Code

Loading the code…

The code of this component in

Archive contents

bandeau-horaires-ouverture-html-tailwind.zip3 files · 8 Ko

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

Tags

Updated on December 2, 2026.

Reviews

No reviews yet.

In the same spirit

  • A slim bar at the top of the page with a message, a link and a close button; once closed, it stays hidden for the period you choose.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A sticky sidebar table of contents for blog posts: it highlights the section being read, shows the reading time left and folds into a list under the title on mobile.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A column of dots on the side of the page that follows the section being read and lets visitors jump to it, with a label on hover and focus.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • An order step indicator: finished steps clickable to go back, the current step announced, upcoming steps locked.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component