This is a solution to the 3-column preview card component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout depending on their device's screen size
- See hover states for interactive elements
- Solution URL: GitHub
- Live Site URL: 3-column Preview Card Component
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
- BEM naming convention
Learnings from this challenge:
- Getting used to writing BEM class names
- Using the
align-self: start
property to stop the flex item from taking up the whole available width- Used on the SVG images and the Learn More buttons
- Adding an
aria-label
on the anchor tags to describe the purpose of the Learn More links (from the WCAG 2.2 Techniques)
- "How to Prevent Image Stretching With Flexbox" on TechStacker - This helped explain the default behavior of Flexbox on images (or any flex item) and provided a simple solution to modify this to prevent unwanted stretch
- Frontend Mentor - @mbdelarosa