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://github.com/mnav08/product-preview.git]
- Live Site URL: [https://mnav08.github.io/product-preview/]
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
In this challenege I learned mobile-first approach when building the layout of the product card. I learned how to work with the picture srcset for responsive images. Also how to work with media queries using rem units instead of pixels and how to work with all the flex properties like flex grow/shrink/basis.
Github copilot help me accelerate the process of generating desing tokens and explain syntax for picture srcset.
- Moises Navas
