A responsive time tracking dashboard built as part of the Frontend Mentor challenge. The dashboard allows users to view time tracking data across three different time periods: Daily, Weekly, and Monthly. The design is mobile-friendly and adapts to different screen sizes.
- User Profile: Displays a profile card with the name of the user and an avatar.
- Time Tracking Data: Shows time spent on various activities such as work, play, study, exercise, socializing, and self-care.
- Interactive View Selector: Users can toggle between Daily, Weekly, and Monthly views to compare current and previous time tracking data.
- Responsive Design: The layout adjusts for desktop, tablet, and mobile screens.
- HTML: For the structure of the dashboard.
- SCSS: To style the components with custom properties for colors, fonts, and layout.
- JavaScript: To handle data fetching and dynamic updates of the dashboard items.
- Font: Rubik for clean and modern typography.
To run this project locally:
- Clone the repository:
git clone https://github.com/yourusername/time-tracking-dashboard.git
- Navigate into the project directory:
cd time-tracking-dashboard
- Open the
index.html
file in your browser.
- Data Fetching: The dashboard fetches time tracking data from a JSON file (
data.json
) using JavaScript'sfetch()
API. - Dynamic Content: The time tracking data is dynamically rendered into HTML using JavaScript. Activities are added to the dashboard based on the data fetched.
- Responsive Views: The dashboard displays data in a card format, with each card representing an activity. Users can switch between views (Daily, Weekly, and Monthly) to see different timeframes for each activity.
index.html
: The main HTML file containing the layout and structure of the dashboard.css/style.css
: Compiled CSS file (from SCSS) containing styles for the dashboard.scss/style.scss
: SCSS file where the styles are defined.script/app.js
: JavaScript file for handling data fetching and view toggling.images/
: Folder containing the images (icons and user avatar).
- Download the project files to your local machine.
- Open the
index.html
file in your browser to view the dashboard.
Feel free to fork this repository and contribute to it by submitting issues or pull requests. If you have any ideas for improvements or features, feel free to suggest them!
This project is open-source and available under the MIT License.
This project was built as a challenge by Frontend Mentor. The design and structure were inspired by their provided mockups.
Challenge by Frontend Mentor
Coded by Skyl1te