Skip to content

riverCodes/stats-preview-card-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 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

Note: Delete this note and update the table of contents based on what sections you keep.

Overview

The challenge

Users should be able to:

  • View the optimal layout depending on their device's screen size

Screenshot

Links

My process

  • I started with the mobile design first. I tested out the layout using divs with background colors first.
  • I then inserted the content into the divs. I used CSS Grid for the image and text containers so that they resized accordingly with the screen size.
  • I then started working on the desktop design. Using Grid made it easy to change the layout of the containers. I still had to go back and forth a few times to get the spacing of items correct.

Built with

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

What I learned

  • It was my first time trying out mobile-first workflow. I gained a lot of experience from this and understood the importance of media queries.
  • I also gained experience in using CSS Grid.
  • I learnt about using background images more.

Author

Acknowledgments

Thanks to frontend mentor as always.

About

Stats preview card component challenge by Frontend Mentor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published