Skip to content

Caresle-Archive/stats-preview-card-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

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

README spanish version

Table of contents

Overview

The challenge

Users should be able to:

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

Screenshot

Mobile final

Desktop final

Custom mobile resolution

Custom desktop resolution

Links

My process

Built with

  • HTML5
  • CSS
  • CSS Grid
  • Mobile-first workflow

What I learned

How to add color to an image

In the projects before this i never add a background image and then a color to this.

Next it's the code that i use for this:

/* In my case background-element it's #img-content */
background-element {
  background: linear-gradient(var(--soft-violet-alpha), var(--soft-violet-alpha)),
    url("images/image-header-desktop.jpg");
}

Author