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.
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
- Solution URL: Frontend Mentor
- Live Site URL: GitHub Pages
In this project, I learned how to fecth data from json file and populate the cards dynamically for multiple timeframes.
fetch('./data.json')
.then((response) => {
if (!response.ok) {
throw new Error(`HTTP error! Status: ${response.status}`);
}
return response.json();
})
.then((data) => {
console.log(data);
})
.catch((error) => {
console.error(`Error fetching data: ${error}`)
});Add animations in future projects.
- Using CSS Properties - Local scoped CSS properties can be useful for reusability
- Shots - Create and share beautiful screenshots of your site
- Rebecca Padgett on LinkedIn
This great Time Tracking Dashboard solution is the reason why I completed this challenge.