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.
- Solution URL: Frontend Mentor Solution
- Live Site URL: 3 Column Preview Card
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Netlify
- Adding Different Images for Mobile and Desktop Version through Image element and srcset attribute.
<picture class="section product-photo">
<source srcset="/images/image-product-mobile.jpg" media="(max-width:600px)">
<img src="/images/image-product-desktop.jpg" alt="Perfume Image">
</picture>
- Use of gap to give spacing between Flex children.
Moving ahead:
- I will learn to use media queries to make sites responsive in Mobiles.
- I want to create more complex projects by improving grasp on Flexbox, positioning and typography.
- Learn FlexBox - Kevin Powell - This Video by the CSS Guru Kevin helped me to understand the basics of FlexBox.
- CSS Course on FreeCodeCamp - This is a amazing all in one course for CSS by Dave Gray.
- Netlify - Netlify allows you to deploy your project live on web for free.
- Solutions on Frontend Mentor - I refer other's solution to same project when I got stuck.
- Twitter - _aviral07
- Website - Aviral Sharma
- Frontend Mentor - aviralsharma07
- Blogs - My Technical Blogs