Skip to content

This is a design challenge gotten from Frontend Mentor to replicate the original design as closely as I can.

Notifications You must be signed in to change notification settings

Tzienom/Stats-Preview-Card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 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

My challenge was to build the component card and get it looking as close to the original design as possible.

Users should be able to:

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

Screenshot

375px solution 1440px solution HTML code CSS code CSS code Media queries Media queries Media queries

Links

My process

Built with

  • Flexbox
  • Mobile-first workflow

What I learned

During the course of building the project, I came to a light of coding the media queries (responsiveness) from a different perspective.

Rather than having to build the desktop layout first (which is the norm for most developers), I approached the design from the mobile layout first

before having to design the desktop layout with media queries. Taking this approach at first was quite challenging for me at first, but after much

attempts at building the card over and over again, designing the desktop layout with media queries became clearer and easier for me.

Also, I used ems and rems for my paddings, margins and font size. These css units proved to very handy whilst dealing with responsiveness.

Continued development

  • Responsive layout (media queries)

  • Flexbox

Author

About

This is a design challenge gotten from Frontend Mentor to replicate the original design as closely as I can.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published