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.
The challenge is to build out the 3-column preview card component and get it looking as close to the design as possible.
Users should be able to:
- View the optimal layout depending on their device's screen size
- See hover states for interactive elements
- Solution URL: https://www.frontendmentor.io/solutions/responsive-3column-card-using-css-flexbox-HJC4cPaUc
- Live Site URL: https://brianyeadon.github.io/3-column-preview-card-component/
Build out for mobile first and then account for desktop through media queries. Finish with QA and a refactor.
- Mobile-first workflow
- CSS custom properties
- CSS Flexbox
Added a "sr-only" class to hide the h1 element and learned a little about accessibility in the process.
Learn more about accessibility and semantic HTML.
- Frontend Mentor - @brianyeadon