branalex94 / frontendmentor-stats-preview-card-component

A frontendmentor challenge to create a stats preview card component

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

The challenge

Users should be able to:

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

Screenshot

Finished challenge

Links

My process

Built with

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

What I learned

I figured out how to make a colored overlay to put in front of an image element.

.card__hero__overlay {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background-color: hsl(277, 64%, 61%);
  opacity: 0.5;
}

Continued development

I'll be able to use the techniques I learned on this project to better introduce components of my future projects. Better layout and better responsive designs.

Author

About

A frontendmentor challenge to create a stats preview card component


Languages

Language:HTML 56.4%Language:CSS 43.6%