This is a solution to the Product 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 and focus states for interactive elements
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
I managed to get this solution done in less than 300 lines of styles. I am very happy with the outcome and I am certain that the solution slider will match perfectly! As mentioned in the introduction I used vanilla CSS to mix it up a bit so I am showing that I can use it and I’m not reliant on Sass. It was a bit of back and fourth, but splitting the editor views into two columns helped with this, so using vanilla CSS in the future is not out of the question.
- GitHub - @frontendstu
- Frontend Mentor - @frontendstu