Skip to content

a-dri-an-S/Four-Card-Features

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Four card feature section solution

This is a solution to the Four card feature section 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 site depending on their device's screen size

Screenshot

Desktop Mobile Classes Components

Links

My process

  • Create outline for CSS classes and React components
  • Add assets and create components
  • Add data/content
  • Add mobile styles
  • Add desktop styles

Built with

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

What I learned

I learned how to use linear gradient to apply multiple colors to a single object

.card-cyan {
  background: linear-gradient(0deg, white 98%, var(--cyan) 10%);
}
.card-red {
  background: linear-gradient(0deg, white 98%, var(--red) 10%);
}
.card-orange {
  background: linear-gradient(0deg, white 98%, var(--orange) 10%);
}
.card-blue {
  background: linear-gradient(0deg, white 98%, var(--blue) 10%);
}

Author

About

Frontendmentor.io HTML + CSS challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published