Skip to content

Project gallery with tabs

Projects sorted by type of work, arranged in tabs that work with the keyboard and screen readers.

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

Description

For a craftsman or building firm that wants to show its work without an endless page, this gallery sorts projects by type (kitchens, bathrooms, extensions) into tabs that follow the ARIA pattern: tablist, tab and tabpanel roles, aria-selected, a single tab in the tab order, left / right arrows (looping), Home and End for the first or last, immediate activation. Each tab shows the number of projects, Tab then moves into the panel, and each project has a photo with alt text, a title and its place and year. The demo images are CSS drawings to replace with your photos. One to three column grid, 44 px targets, visible focus, AA contrast in light and dark mode, no horizontal scrolling from 360 px. Example: a renovation company.

Code

Loading the code…

The code of this component in

Archive contents

galerie-onglets-projets-html-tailwind.zip3 files · 5 Ko

  • index.html11 Ko
  • README.md3 Ko
  • LICENSE.md1 Ko

Tags

Updated on December 2, 2026.

Reviews

No reviews yet.

In the same spirit

  • A product photo that zooms in under the pointer, and from the keyboard with Enter and the arrow keys, to inspect the details.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Building site photos sorted by dated step on a vertical timeline, with the current step highlighted.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component