Skip to content

Christmas delivery deadlines

The last order dates for delivery before Christmas, per shipping method, with the days left worked out from the visitor’s date.

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

Description

In December, customers’ first question is “if I order today, will it arrive for Christmas?”. This block answers it for each shipping method: pickup point, standard post, express and in-store collection, each with its own last date and time. On load, a short script compares those dates with the visitor’s day and shows for each one “12 days left”-style counts, “tomorrow before 12”, “today before 4 pm” or “too late for Christmas” (date struck through), then sums up at the top the best option still open, with the weekday spelled out. Once every date has passed, the message thanks visitors and wishes them happy holidays; after the 25th, the countdown starts again for next year with nothing to change. The dates stay written in the page, so they read without JavaScript and by search engines. The state reads from the text, not colour alone (green, orange, grey); AA contrast in light and dark mode, one column on phones with no horizontal scrolling from 360 px. Dates are set in the data-dld-deadline attribute (month-day and time). Example: the gift hampers of a fine-food shop in Dijon.

Code

Loading the code…

The code of this component in

Archive contents

date-limite-livraison-noel-html-tailwind.zip3 files · 5 Ko

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

Tags

Updated on December 2, 2026.

Reviews

No reviews yet.

In the same spirit

  • A limited-time offer bar: countdown to a fixed date, one-click copyable promo code and a fallback message once the offer is over.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A sales card showing the discount that grows with the cart amount (-10% from €50, -15% from €100…) with a progress bar towards the next tier.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A Christmas gift guide filtered by budget and theme, with the number of ideas announced and an empty state offering to show everything again.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A cart that shows live how much is left to add for free shipping, with a progress bar and recalculated totals.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component