Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 1 year ago

Time tracking dashboard using fetch and JS for dynamic rendering

bem, fetch
Csaba Hell•220
@hellcsaba
A solution to the Time tracking dashboard challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


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

At first I hardcoded the activities in my HTML. After that I updated the project using fetchAPI to retrieve data.json then I populated the DOM with the activities using JavaScript.

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

In the data.json the Self Care title is more than one word so I couldn't call directly the toLowerCase function to convert the title for the proper class names. I solved it by introducing a function that changes the whitespaces for - characters .

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Csaba Hell's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License