Skip to content

shangum/Stats-Preview-Card-Component-Frontend-Mentor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Stats preview card component solution

This is a solution to the Stats preview card 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 depending on their device's screen size

Screenshot

Desktop Screenshot

Links

My process

Built with

  • HTML
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow

What I learned

During this project I started getting familiar with the "Mobile-first" workflow. Normally I start with the desktop layout and move on to the mobile and tablet designs as afterthoughts. The order of design was Mobile, Desktop, and finally for a tablet with a screen size of 768px. I added the tablet design just as a bonus. I also began to use responsive units in the project but I converted the units at the end after the design was pretty much set. I also got to work with the "mix-blend-mode" css rule in order to give a color hue to the main image.

Continued development

In future projects I aim to approach the following way

  1. Use responsive units (ems etc) from the beginning.
  2. Design the layout in the following order: Mobile, Tablet, Normal/Large screens.
  3. Improve the Design so that more of the in between screen sizes still display a solid design. For this project I targeted three screen sizes. 1440px, 376px to 768px, and 375px.
  4. Get more precise with mix-blend-mode(s) and rely less on trial and error.

Useful resources

Author

Acknowledgments

Shout out to @FluffyKas who recommended I move to responsive units when designing pages ( Otherwise I'd likely still be using pixels 10 years from now).

About

Stats preview card component solution for FrontendMentor.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published