Skip to content

AlekseiSaunders/fourCardFeatureFM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 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

Screenshots

Desktop

Mobile

Links

My process

Built with

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

What I learned

I think one thing I really started to utilize in this challenge was bringing Custom Properties into my workflow. I started learning more about these in Josh W. Comeau's CSS course, and another Frontend Mentor/Scrimba challenge, with a video lesson by Kevin Powell. Really interesting to see how he went about planning his flow through the CSS development.

I decided against Utility Classes in this challenge because I thought that might be a bit overkill for a fairly simple design and layout with most elements being reused.

I also learned that even though you might get a Figma file from the designers, it doesn't mean that everything is going to go smoothly with the development of the HTML and CSS.

Code Snippets

CSS

I liked using Josh's suggestion of matching the box-shadow color to the design element in contrast to just using the default black. It isn't one of the main design colors, but I think it adds a little realism to the shadow drop. Decent box-shadows can be deceptively difficult.

.benefitsBlocks  {
  box-shadow: 0px 5px 20px 0px hsla(212deg, 39%, 66%, 0.7);
}

Continued development

I'd like to get a bit smoother with the Custom Property useage, I think I've got some Custom Properties here that the file doesn't really need, and I retro-fitted this challenge with them. In larger challenges I'll try some Utility Classes, and perhaps try stacked box-shadows ala Josh Comeau's suggestion.

Useful resources

  • Josh W. Comeau - Josh explains aspects of CSS that have really clicked with me and I'm finding his CSS course challenging, but well worth the expense for the insight he brings.
  • Kevin Powell goes through his CSS process - This is a free tutorial on Scrimba, in conjunction with Frontend Mentor that really clicked with me. I liked Kevin's approach to CSS development and hope to adapt my own flow along these lines.

Author