Skip to content

This is a great small challenge to help get you used to building to a design. There's no JS in this project, so you'll be able to focus on your HTML & CSS skills.

Notifications You must be signed in to change notification settings

mohamedKhaled89/stats-preview-card-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 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

Overview

This is a great small challenge to help get you used to building to a design. There's no JS in this project, so you'll be able to focus on your HTML & CSS skills.

The challenge

Your challenge is to build out this card component and get it looking as close to the design as possible.

Users should be able to:

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

Screenshot

Desktop Design Mobile Design

Links

My process

Built with

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

What I learned

I used mix-blend-mode to try to reach the main image color

<picture>
  <source media="(min-width:1200px)" srcset="images/image-header-desktop.jpg" />
  <source srcset="images/image-header-mobile.jpg" />
  <img src="images/image-header-mobile.jpg" alt="Card Iamge" />
</picture>
picture {
  position: relative;
}

picture::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  background-color: var(--Soft-violet-accent);
}

Author

About

This is a great small challenge to help get you used to building to a design. There's no JS in this project, so you'll be able to focus on your HTML & CSS skills.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published