Skip to content

macdeesh/Stats-Preview-Card-Component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Stats preview card component solution

This is a solution to the Stats preview card component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

The challenge

Users should be able to:

  • View the optimal layout depending on their device's screen size

Screenshot

Links

Built with

  • Semantic HTML5 markup
  • CSS
  • Flexbox
  • Mobile-first workflow

What I learned

  • I learned how to use different picture format by using:

    <picture>
    <source srcset="./second image.jpg" media="(min-width:900px)">
    <img src="./first image.jpg" alt="#" class="#">
    </picture>
    
  • I learned also to change the color of the image first with :

image {
  filter: opacity(0) drop-shadow(0 0 0 color)
  saturate() contrast() brightness() grayscale();
  }
  • Then I choose to use something else that i learned, by applying mix-blend-mode: multiply; css property on a CHILD element inside PARENT element with a background property background-color and display: block; to fill all the place.

Useful resources

Author

Releases

No releases published

Packages

No packages published