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

Using CSS grid, vanilla JavaScript and a lottie animation

#fetch
Chris 740

@chrisbailey85

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


On the JavaScript side I've used fetched to get the data, and the I've used if statements to update the current hours spend, and I've used a ternary's for updating the previous hours spend. I wasn't really sure which one was best. I thought the if statements were a little bit more clearer, but I wanted to leave both there to see what other people thought. Any feedback will be appreciated.

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