Skip to content

nt-squared/product-preview-card-component-main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 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

mobile-view desktop-view

Links

My process

Built with

  • Semantic HTML5 markup
  • SCSS custom properties
  • Flexbox
  • Mobile-first workflow

What I learned

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%;
}

Continued development

I find flex-box and SASS very useful, so I want to refine these skills for the future projects.

Useful resources

  • 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.

Author

About

challenge from frontendmentor.io

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published