Skip to content

Holiday opening hours

A table of end-of-year special opening hours that flags today’s row and sums up at the top whether the shop is open today or which special day comes next.

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

Description

Between Christmas and New Year, customers mostly look for one thing: “Is it open today?”. This table lists the days with special hours (Christmas Eve, Christmas Day, New Year’s Eve, New Year’s Day…) with their hours or “Closed”, and recalls the usual hours below. On load, a short script compares the dates with the visitor’s day: today’s row is highlighted (aria-current="date" and a “today” label) and a summary appears at the top, saying whether the shop is open today or, before and between the special days, which one comes next and its hours. After the last day the summary disappears and the table stays readable. It is a real data table (caption, row and column headers), usable without JavaScript, with no horizontal scrolling from 360 px and AA contrast in light and dark mode. Days are set in the data-hef-day (ISO date) and data-hef-hours attributes. Example: a bakery in Montpellier.

Code

Loading the code…

The code of this component in

Archive contents

horaires-exceptionnels-fetes-html-tailwind.zip3 files · 5 Ko

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

Tags

Updated on December 2, 2026.

Reviews

No reviews yet.

In the same spirit

  • A documentation table showing where a kit or component has been tested (static HTML, WordPress, Elementor, Webflow, v0…), with status, last test date and a remark, filterable by status.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A table of the towns and postcodes a tradesperson covers, with response time and travel fee, filtered by search and by zone.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A timetable table sorted by column and filtered with level and free-place chips, whose rows each become a card on phones.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A filterable table whose visible rows export in one click to a CSV file that opens cleanly in Excel or LibreOffice.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component