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.
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
- Solution URL: https://www.frontendmentor.io/solutions/results-summary-component-custom-css-icons-yCMgL1Q-JJ
- Live Site URL: https://results-summary-component-sandy.vercel.app/
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
- Custom CSS drawing with the icons
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;