StealThis .dev

Portfolio — Project / Case-study Card

A portfolio-ready project card with a gradient SVG thumbnail, role, year, tag chips, and a one-line outcome. Ships three layouts in one grid — default, wide featured, and compact — that each lift on hover or keyboard focus and reveal a View case study link. Activating any card opens a lightweight, accessible detail modal with overview, role and impact metrics, plus a subtle pointer-tracked tilt.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Project / Case-study Card

A reusable project card for a single-person portfolio. Each card pairs a gradient SVG thumbnail with a tidy hierarchy: role and year up top, a bold project title, a one-line outcome, and a row of tag chips such as Product UX or Branding. The same content renders in three layouts — a wide featured card, the standard default card, and a tight compact card — so a grid stays visually varied without new markup.

Hover or keyboard-focus lifts the card, zooms the thumbnail slightly, and reveals a “View case study →” link with a nudging arrow. On devices that support hover, a subtle pointer-tracked tilt follows the cursor. Activating a card with a click, Enter, or Space opens a lightweight detail modal containing the project overview, your role, and impact metrics.

The modal is fully keyboard-accessible: it traps focus, closes on Escape or backdrop click, restores focus to the originating card, and uses role="dialog" with aria-modal. Everything is vanilla JS with no dependencies, respects prefers-reduced-motion, and collapses gracefully down to ~360px.

Illustrative portfolio — fictional person and projects.