Sample 3

E-commerce
Overview
This component simulates a real-world e-commerce card:
- Image
- Title
- Price
- Call to action
It focuses on layout, flexibility, and predictable data flow.
Design Goals
- Works in grid and list layouts
- Handles missing or partial data gracefully
- Keeps styling separate from business logic
Technical Notes
- CSS Grid for layout
- Props-based API in React
- Stateless design for reusability
What I Learned
- Layout decisions matter more than micro-optimizations
- Simple data contracts make components portable