Skip to content

shafqatrasool11/time-tracking-dashboard-main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 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

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

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid

What I learned

While solving this challenge I learned how to hide/show multiple elements using a single javascript function, use variables in css for the first time.

//Javascript function I used to show/hide multiple elements

function showArticles(classToShow) {
  const allArticles = document.querySelectorAll('.box__data');

  allArticles.forEach((article) => {
    if (article.classList.contains(classToShow)) {
      article.style.display = 'flex';
    } else {
      article.style.display = 'none';
    }
  });
}

Continued development

I will be focused in refining my javascript and learning new concepts in it.

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published