Skip to content

Renovation project card

A finished-project card with a before / after toggle, location, duration, type of work, indicative budget and a link to the details.

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

Description

Designed for building tradespeople's portfolios: each card shows the finished project photo and two Before / After buttons (aria-pressed) to compare, with a crossfade turned off by prefers-reduced-motion. Key facts form a definition list that screen readers announce properly, the budget stands out and the details link carries the project title in its accessible name. Without JavaScript the after photo stays visible with a static label. AA contrast in light and dark modes, a one to three column grid from 360 px.

Code

Loading the code…

The code of this component in

Archive contents

carte-realisation-avant-apres-html-tailwind.zip3 files · 7 Ko

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

Tags

Updated on December 3, 2026.

Reviews

No reviews yet.

In the same spirit

  • A mobile page to link from your social profiles: portrait, name, priority links (booking, WhatsApp, website, reviews, call), opening hours with an open or closed status, social links and a share button, in dependency-free HTML and CSS.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A single-plan pricing card: struck-through price and discount, a places-left gauge driven by a data attribute, the list of everything included and a booking button that turns into a waiting list once sold out.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Three treatment cards in accessible neumorphism: gently raised surfaces, buttons that sink in when activated, a light/dark switch for the block itself. 3:1 outlines and AA text kept.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Four fully clickable workshop cards in a neo-brutalist style: thick border, solid offset shadow and a card that sinks onto its shadow on hover or focus. Pastel tones, dark mode, no JavaScript.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component