Skip to content

rafaeltakano/frontendmentor-stats-preview-card-component-main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 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

Note: Delete this note and update the table of contents based on what sections you keep.

Overview

Screenshot

Links

My process

Built with

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

What I learned

I learned that I can use pseudo-elements for images overlays

&__img {
  background-image: url('../../images/image-header-mobile.jpg');
  background-size: cover;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  height: 17.5rem;
  position: relative;
  margin-bottom: 2.5rem;
  width: 100%;

  &::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: $--accent-transparent;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    filter: brightness(0.3) contrast(1) saturate(5);
  }
}

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published