Skip to content

WebDeveloperGlory/time-tracking-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Time tracking dashboard solution

This is a solution to the Time tracking dashboard challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

A mobile friendly time-tracking-dashboard template made using React.js

The challenge

Users should be able to:

  • View the optimal layout for the site depending on their device's screen size
  • See hover states for all interactive elements on the page
  • Switch between viewing Daily, Weekly, and Monthly stats

Links

My process

  • First transferred the data.json files into an index.js file in constants
  • Built the basic jsx structure of the required components
  • Wrote the logic to map through the info in the constants file and display on screen in their required components
  • Wrote the logic to control the single state needed to change tracked data on selecting the desired timeframe
  • Cleaned up the logic code a little to reduce lines of code
  • Styled the components for deskop
  • Made the whole design responsive
  • Added minor tweaks to displays on hover

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow
  • React - JS library

What I learned

  • Learnt about the .replace() for removing unwanted characters from a string and used in a loop
let past = timeframe === "daily" ? "Yesterday" : `Last ${timeframe.replace('ly', '')}`;

Continued development

  • Revising to write cleaner more concise code
  • Revising to add comments to my logic for future reference

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published