Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 10 months ago

Time tracking dashboard

sass/scss
daniel•205
@danielashjari
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?

I'm proud of...

  • my js file, it was my first time working with promises and json files
  • my design got better and closer to the given task
  • using svg in more responsive way

Things I'd do differently...

  • use aria variables
  • use libraries and frameworks but i gotta get there first
What challenges did you encounter, and how did you overcome them?
  • how to show data from json file in my html -> use promise and async functions
async function populate() {
    const requestURL = "dist/js/data.json";
    const response = await fetch(requestURL);
    const data = await response.json();
    dailyBtn.addEventListener("click", () => {
        populateDaily(data);
    });
    ...}

function populateDaily(data) {
    data.forEach(item => {
        ...
        time.innerHTML = `${item.timeframes.daily.current}hrs`;
        lastTime.innerHTML = `Last Day - ${item.timeframes.daily.previous}hrs`;
    });
}
What specific areas of your project would you like help with?

in styles mostly and how to center vertically

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 daniel'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