j3rech0 / results-summary-component

Frontend Mentor | Results Summary Component

Home Page:https://results-summary-component-sandy.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Frontend Mentor - Results summary component solution

This is a solution to the Results summary 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 for the interface depending on their device's screen size
  • See hover and active states for all interactive elements on the page

Screenshot

Links

My process

Built with

  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • Custom CSS drawing with the icons

What I learned

Mimic icon images with pure CSS using background linear gradient, box-shadow, border and border radius.

To see how you can add code snippets, see below:

<i class="icon-1"></i>
/* This is for the first icon Reaction on Summary section */
background-image: linear-gradient(
      180deg,
      hsl(var(--color-light-red)) 0%,
      hsl(var(--color-light-red)) 100%
    ),
    linear-gradient(
      180deg,
      hsl(var(--color-light-red)) 0%,
      hsl(var(--color-light-red)) 100%
    ),
    linear-gradient(
      180deg,
      hsl(var(--color-light-red)) 0%,
      hsl(var(--color-light-red)) 100%
    ),
    linear-gradient(
      180deg,
      hsl(var(--color-light-red)) 0%,
      hsl(var(--color-light-red)) 100%
    ),
    linear-gradient(
      125deg,
      rgba(255, 87, 87, 0) 75%,
      hsl(var(--color-light-red)) 77%,
      hsl(var(--color-light-red)) 80%,
      rgba(255, 87, 87, 0) 82%
    ),
    linear-gradient(
      125deg,
      rgba(255, 87, 87, 0) 35%,
      hsl(var(--color-light-red)) 37%,
      hsl(var(--color-light-red)) 42%,
      rgba(255, 87, 87, 0) 44%
    );
  background-position: 10px 10px, 9px 5px, 3px 13px, 8px 13px, -4px -10px,
    8px 10px;
  background-repeat: no-repeat;
  background-size: 5px 1px, 1px 6px, 5px 1px, 1px 7px, 14px 24px, 8px 14px;

Author

About

Frontend Mentor | Results Summary Component

https://results-summary-component-sandy.vercel.app


Languages

Language:SCSS 45.8%Language:CSS 43.1%Language:HTML 11.1%