Skip to content

Project gallery with lightbox

A tradesperson's portfolio: a grid of jobs filtered by type of work, with place, year and duration, and a full-screen lightbox with captions and keyboard navigation.

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

Description

Each job shows its type, town, year, duration and a short description. Filters (bathroom, kitchen, outdoor) narrow the grid and the lightbox only steps through the jobs on display. The lightbox uses the native dialog element: large photo, counter, full caption, previous and next buttons, swipe on mobile and click on the backdrop to close. Accessibility: filters are toggle buttons (aria-pressed) with an announced result count; the modal lightbox keeps focus, closes with Escape and returns focus to the original thumbnail; left and right arrows, Home and End navigate; the counter is announced (aria-live); 44 px buttons with visible focus; AA contrast in light and dark modes; hover zoom and opening animation are turned off with prefers-reduced-motion. Without JavaScript the grid stays a list of captioned photos, with no inert button. Gradients are replaced by your photos while keeping the alternative text.

Code

Loading the code…

The code of this component in

Archive contents

galerie-realisations-grille-html-tailwind.zip3 files · 8 Ko

  • index.html27 Ko
  • README.md4 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