Skip to content

goody-dev/time-tracking-dashboard-main

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
  • Mobile-first workflow
  • JavaScript
  • SCSS
  • Styled Components - For styles

What I learned

I learnt how to easily get data from object and display it in my html. I also learnt how to change content based on selected options from menu buttons.

<section>I made use of section</section>
.proud-of-this-css {
  grid-template-columns: repeat(auto-fit, minimax(13rem, 1fr);
}
buttons.forEach(button => {
    button.addEventListener('click', () => {
        activateClickedButton(button);
        const clickedOption = button.dataset.option;
        renderCards(clickedOption);
    })
})

Continued development

I'd like to focus on DOM manipulations in future projects. I would also like to refine and know more of JavaScript, so that I will be able to use it better in future projects..

Useful resources

  • Seer Studio JavaScript - This helped me to know more of DOM and JavaScript. I really liked this pattern and will use it going forward.
  • Flex Box - This is an amazing article which helped me to gain more understanding of flex-box. I'd recommend it to anyone still learning this concept.

Author

Acknowledgments

Glory to God, the source of all wisdom. Kudos to Seer Studio (Grizhlie Codes), the video was explanatory.