Skip to content

zenab12/stats-preview-Card-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Stats preview card component solution

Table of contents

Overview

the-challenge

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.

Screenshot

desktop preview

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox(Responsive)
  • Grid Template

What-I-Learned

  • I learned to make overlay above image in smart way and make image responsive
<div class="image stats-preview__img-wrapper">
      <img src="images/image-header-desktop.jpg" class="image-Desktop" alt="image Header">
</div>
.stats-preview__img-wrapper {
    background-color: var(--Soft-violet-accent);
    overflow: hidden;
}

.stats-preview__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    opacity: 75%;
}

Continued development

I will use flexbox and grid template in comming Challenges with Allah willing in professional way.

Useful resources

  • Flexbox Guide - This helped me for refreshing my info about flex in smart way. I really liked this guide and will use it going forward.
  • Grid Template

Author

Acknowledgments

Bayoumi-dev helped me to use smart way in making overlay so thanks for him