UNIT 27 • STAGE 3 OF 7

Projects Section

Portfolio project cards with thumbnails, tech tags, and hover lift effect

UNIT 3 / 7
STEP 1

Project Cards

Portfolio projects are displayed as cards. Each card has four parts: a thumbnail placeholder (colored div with an emoji), a title, a description, tech tags, and action links. The placeholder thumb uses aspect-ratio: 16/9 so it stays proportional at any width without specifying a fixed height.

The three default projects are the sites you built in Units 24, 25, and 26. You will update these to your real projects as you complete more work.

STEP 2

Add the Projects CSS and Cards

👉 Card hover CSS: .project-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.project-thumb { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }

Build 3 project cards. Each card: thumb div, title, 2-sentence description, 3 tech tags, and two links (Live Site and Code).

Stage 3 Complete

Three portfolio projects are on display, each with hover lift effects. Next: dark/light mode toggle.

Code Editor
Live Preview