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
- Solution URL: https://www.frontendmentor.io/solutions/product-review-card-using-css-sass-GEEET03UPw
- Live Site URL: https://nt-squared.github.io/product-preview-card-component-main/
- Semantic HTML5 markup
- SCSS custom properties
- Flexbox
- Mobile-first workflow
I am glad that I could figure out how to make image not scale down when using flex-box
.card-image {
flex: 1;
min-width: 50%;
}
I find flex-box and SASS very useful, so I want to refine these skills for the future projects.
- Flexbox and Truncated Text - This is an amazing article which helped me the relation between flex-prarent and flex-child. I'd recommend it to anyone still learning this concept.
- Frontend Mentor - NT-squared