Skip to content

aviralsharma07/product-preview-card-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Product preview card component solution

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.

Table of contents

Overview

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Netlify

What I learned

  1. 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>
  1. Use of gap to give spacing between Flex children.

Continued development

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.

Useful resources

Author

About

This is a solution to the Product preview card component challenge on Frontend Mentor.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published