Input
cards = [{"title": "Alpha", "body": "First"}, {"title": "Beta", "body": "Second"}, {"title": "Gamma", "body": "Third"}]Output
A 3-column grid on desktop with three cards, each showing title and body text.
Given an array of card objects `cards` (each with `title` and `body`), build a responsive card grid. Render a `data-testid="card-grid"` container. For each card, render a `data-testid="card"` element containing `data-te...
index.htmlEditable templatestyles.cssEditable startermain.jsEditable startercards = [{"title": "Alpha", "body": "First"}, {"title": "Beta", "body": "Second"}, {"title": "Gamma", "body": "Third"}]A 3-column grid on desktop with three cards, each showing title and body text.
Can you add a hover effect that slightly lifts the card (translateY + box-shadow) with a smooth CSS transition?