Skip to content

sasanqc/product-preview-card-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 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

The challenge

Users should be able to:

  • View the optimal layout depending on their device's screen size
  • See hover and focus states for interactive elements

Screenshot

Links

My process

Built with

  • Flexbox
  • Desktop-first workflow

What I learned

I used picture tag to set different images for different screen sizes.

<picture>
  <source srcset="images/image-product-mobile.jpg" media="(max-width: 375px)" />
  <img class="image" src="images/image-product-desktop.jpg" alt="" />
</picture>

Continued development

I have some problems with responsive design. so I will foucus on it on the next challenges.

Useful resources

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published