Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Time tracking dashboard

P
Lo-Deck 2,460

@Lo-Deck

Desktop design screenshot for the Time tracking dashboard coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

Hi here is my solution for Time-tracking-dashboard using HTML, CSS, Grid and Flex, JS, mobile-first.

What challenges did you encounter, and how did you overcome them?

It was to extract data with fetch API and display it in the correct item.

fetch('./data.json').then( res => res.json())
                    .then( (data) =>  {
                        array = data;
                    });

What specific areas of your project would you like help with?

I used .forEach to iterate through the data and set it.

previous.forEach( (item, index) => { 
   item.innerText = `Last Week - ${array[index].timeframes.daily.previous}hrs`;
 });  

Can you tell me how to improve the code.

Thanks.

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord