Documentation Index
Fetch the complete documentation index at: https://mintlify.com/chrisdzasc/Time-Tracking-Dashboard/llms.txt
Use this file to discover all available pages before exploring further.
Getting Started
The Time Tracking Dashboard requires no build process, package managers, or dependencies. Simply download the files and open in a browser.Since this is a static HTML/CSS/JavaScript project, you don’t need Node.js, npm, or any build tools.
Installation
Clone or Download the Repository
Get the source code from GitHub:Option 1: Clone with GitOption 2: Download ZIP
- Visit the repository
- Click the green “Code” button
- Select “Download ZIP”
- Extract the downloaded file
Open the Dashboard
Navigate to the project folder and open Then visit
index.html in your browser:Option 1: Double-click- Locate
index.htmlin the project folder - Double-click to open in your default browser
http://localhost:8000 in your browser.Verify the Dashboard Loads
You should see:
- A profile card with “Jeremy Robson” and three timeframe buttons (Daily, Weekly, Monthly)
- Six activity cards: Work, Play, Study, Exercise, Social, and Self Care
- Each card displaying current hours and previous period comparison
- The “Weekly” button should be active by default
js/data.json when the page initializes:Interacting with the Dashboard
Once the dashboard is running, you can explore its features:Switch Timeframes
Click the timeframe buttons in the profile card to update all activity cards:- Daily: Shows hours for the current day vs. yesterday
- Weekly: Shows hours for the current week vs. last week (default)
- Monthly: Shows hours for the current month vs. last month
Observe the Data Updates
When you click a timeframe button, the dashboard:- Removes the active class from all buttons
- Adds the active class to the clicked button
- Updates all activity cards with data for that timeframe
Explore the Activity Cards
Each activity card shows:- Activity name: Work, Play, Study, Exercise, Social, or Self Care
- Current hours: Time spent in the selected timeframe
- Previous hours: Comparison to the previous period
- Color-coded backgrounds: Each activity has a unique color
- Hover effect: Cards lighten when you hover over them
Project Structure
Understanding the file organization:All JavaScript code is in a single
app.js file, making it easy to understand the complete logic flow.Understanding the Data Structure
The dashboard reads fromdata.json, which contains an array of activity objects:
Testing Responsiveness
The dashboard is fully responsive with three breakpoints:- Mobile (< 768px): Single column, horizontal profile layout
- Tablet (768px - 1439px): 3-column grid with profile spanning full width
- Desktop (1440px+): 4-column grid with profile in first column spanning 2 rows
- Open browser DevTools (F12)
- Toggle device toolbar (Ctrl/Cmd + Shift + M)
- Try different viewport sizes
Troubleshooting
Data Not Loading
If activity cards show initial values but don’t update:- Issue: CORS policy blocking the fetch request
- Solution: Use a local server instead of opening
index.htmldirectly - Check: Open browser console (F12) and look for fetch errors
Fonts Not Displaying
If the Rubik font doesn’t load:- Check: The
assets/fonts/directory contains the.woff2files - Verify: Font paths in
styles.cssare correct - Fallback: The design uses
sans-serifas a fallback font
Next Steps
Now that you have the dashboard running:Features Overview
Learn about all dashboard capabilities
Customization Guide
Modify colors, data, and styling