Skip to content

jaycgreenwald/four-card-feature-section

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

Links

My process

Built with

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

What I learned

  • How to use Grid! - This my first time using it.
  • CSS Variables - I have only used variables once before so it was time to practice more.
  • Max-width - Started using max-width which I didn't understand before.
  • Linear Gradient - Used it for the first time and was suprised to learn I could create the feature card design with it.
:root {
    --red: hsl(0, 78%, 62%);
    --cyan: hsl(180, 62%, 55%);
    --orange: hsl(34, 97%, 64%);
    --blue: hsl(212, 86%, 64%);
    --very-dark-blue: hsl(234, 12%, 34%);
    --grayish-blue: hsl(229, 6%, 66%);
    --very-light-gray: hsl(0, 0%, 98%);
}
.card {
    max-width: 19.5rem;
    border-radius: .2rem;
    margin: auto;
    display: grid;
    grid-row-gap: 1.45rem;
}
.card__feature-card--red {
    background: linear-gradient(to bottom, var(--red) 0 2%, hsl(0, 0%, 100%) 2% 100%);
}

Continued development

I want to continue to work with Grid - maybe use grid-template-areas next time? I want to keep working on making responsive pages.

Useful resources

Author

Acknowledgments

I'd like to thank the Frontend Mentor Slack community!

About

Frontend Mentor Project #8

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published