Skip to content

Gift guide by budget

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
Open in a new tab

Description

At the end of the year, many visitors arrive with a single constraint in mind: their budget. This guide shows gift ideas as cards (theme, name, description, price) with two rows of filters: budget (under €20, €20 to €50, over €50) and theme (food, home, wellbeing, kids). Filters combine, the list updates at once and the number of ideas is announced to screen readers; if none match, a message says so and a button resets every filter and puts the focus back on the first one. The filters are real radio buttons grouped in fieldsets with legends, usable with the arrow keys, with a visible focus; every idea stays visible without JavaScript. A fluid grid of one to four columns, 44 px targets, AA contrast in light and dark mode, no horizontal scrolling from 360 px. Prices are set in cents in data-gcb-price, themes in data-gcb-theme. Example: a Savoy craft shop.

Code

Loading the code…

The code of this component in

Archive contents

guide-cadeaux-budget-html-tailwind.zip3 files · 6 Ko

  • index.html17 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
  • 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
    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