ToasterBaptism commited on
Commit
83faa89
·
verified ·
1 Parent(s): 9f97dcb

## Project Title: WorkTrack Pro - Customizable Time Management Android Application

Browse files

## Project Goal
To develop a highly intuitive and customizable Android application for recording and documenting work-related activities. The app will focus on time management, including documenting work arrival/departure, tracking locations, tasks, and durations. The application will prioritize user privacy, accessibility, and performance while maintaining high-quality standards and comprehensive documentation.

## Core Principles
- **Intuitive Design**: Create a user-friendly interface that simplifies daily time tracking
- **Customizability**: Allow users to personalize the app to fit their specific work tracking needs
- **Privacy**: Ensure all data is processed and stored securely on the device with optional cloud backup
- **Accessibility**: Adhere to Android accessibility best practices to accommodate users with disabilities
- **Performance**: Optimize for efficient resource usage and smooth operation
- **Maintainability**: Create a modular and well-documented codebase for future maintenance and enhancements

## Core Features
1. **Time Tracking**
   - Time in/out functionality
   - Automatic and manual time recording options
   - Break time tracking
   - Overtime calculation

2. **Location Tracking**
   - GPS-based location logging
   - Manual location entry
   - Location history with timestamps

3. **Task Management**
   - Task creation and editing
   - Task duration tracking
   - Task categorization
   - Task completion status

4. **Documentation**
   - Fillable forms for job descriptions
   - Note-taking capabilities
   - Photo/document attachment options

5. **Calendar Integration**
   - Interactive calendar showing work days
   - Daily, weekly, and monthly views
   - Holiday and time-off tracking

6. **Profile Management**
   - User profile creation
   - Hour tracking and statistics
   - Work history summaries
   - Export functionality for reports

## High-Quality Standards
- Maintain a high standard of code quality, adhering to Kotlin and Java coding conventions
- Use linting tools (Ktlint, Detekt) to enforce code style and quality
- Conduct thorough code reviews
- Adhere to Android accessibility best practices
- Follow Android security guidelines for data protection
- Implement comprehensive error handling and logging

## Development Approach
The development will follow a structured approach with detailed phases, tasks, and sub-tasks. Each task will specify dependencies, deliverables, and documentation requirements.

## Response Format
The expected output from the AI coding agent should include:
- **Codebase**: Well-structured, documented code adhering to specified coding conventions
- **Documentation**: Complete API documentation, user manual, developer guide, and inline code comments
- **Test Suite**: Comprehensive unit tests, functional tests, performance tests, and accessibility tests
- **Configuration**: Configurable settings for app behavior, notifications, and data management
- **Build Artifacts**: Signed release APK ready for deployment

## Development Roadmap

### Phase 1: Environment Setup and Tooling (Estimated Time: 1 week)
**Task 1.1**: Install and configure the Android SDK, including platform tools, build tools, and emulator images (API 34)
- Dependency: Verify Android tools are correctly installed and accessible
- Documentation: Document the SDK installation process and configuration settings

**Task 1.2**: Set up the development environment for Android development
- Dependency: Ensure Android Studio is correctly installed and configured
- Documentation: Document the environment setup process, including version requirements

**Task 1.3**: Configure project structure and dependencies
- Dependency: Android SDK must be correctly configured
- Documentation: Document project structure, dependencies, and build configurations

**Task 1.4**: Set up Git for version control and create a remote repository
- Dependency: Ensure Git is installed and configured with a valid user account
- Documentation: Document the Git workflow and branching strategy

**Task 1.5**: Configure linting tools (Ktlint, Detekt) to enforce code style and quality
- Dependency: Development environment must be correctly installed
- Documentation: Document the linting rules and how to run the linters

### Phase 2: Core Architecture Design (Estimated Time: 1 week)
**Task 2.1**: Design a modular architecture for the application, separating concerns into distinct modules (e.g., time tracking, location services, task management, UI)
- Dependency: Understanding of Android architecture components and best practices
- Documentation: Document the overall architecture design, including module dependencies and interfaces. Include architectural diagrams

**Task 2.2**: Define interfaces for communication between modules, using well-defined data structures and protocols
- Dependency: Task 2.1
- Documentation: Document all interfaces, including method signatures, data types, and error handling

**Task 2.3**: Implement a plugin-like architecture to allow for easy addition of new features
- Dependency: Task 2.2
- Documentation: Document the plugin architecture, including how to create and install new plugins

**Task 2.4**: Choose and integrate a suitable architecture pattern (e.g., MVVM, MVI) to manage application state efficiently
- Dependency: Understanding of Android architecture patterns
- Documentation: Document the chosen architecture pattern and how it is used in the application

**Task 2.5**: Implement a logging mechanism for debugging and monitoring
- Dependency: None
- Documentation: Document the logging mechanism and how to configure it. Include different log levels

### Phase 3: Implementation of Core Features (Estimated Time: 4 weeks)
**Task 3.1**: Implement time tracking functionality
- Sub-task 3.1.1: Create UI for time in/out recording
- Sub-task 3.1.2: Implement time calculation logic
- Sub-task 3.1.3: Add break time tracking
- Sub-task 3.1.4: Implement unit tests for time tracking functionality
- Documentation: Document the time tracking implementation, including time calculation algorithms and error handling

**Task 3.2**: Implement location tracking services
- Sub-task 3.2.1: Request location permissions from the user
- Sub-task 3.2.2: Implement GPS-based location tracking
- Sub-task 3.2.3: Add manual location entry options
- Sub-task 3.2.4: Implement unit tests for location tracking functionality
- Documentation: Document the location tracking implementation, including API usage and privacy considerations

**Task 3.3**: Create task management system
- Sub-task 3.3.1: Design UI for task creation and editing
- Sub-task 3.3.2: Implement task duration tracking
- Sub-task 3.3.3: Add task categorization and filtering
- Sub-task 3.3.4: Implement unit tests for task management functionality
- Documentation: Document the task management system, including data models and business logic

**Task 3.4**: Develop documentation features
- Sub-task 3.4.1: Create fillable forms for job descriptions
- Sub-task 3.4.2: Implement note-taking capabilities
- Sub-task 3.4.4: Implement unit tests for documentation features
- Documentation: Document the documentation features, including data storage and retrieval

**Task 3.5**: Implement interactive calendar
- Sub-task 3.5.1: Create calendar UI with daily, weekly, and monthly views
- Sub-task 3.5.2: Integrate with time tracking data
- Sub-task 3.5.3: Add holiday and time-off tracking
- Sub-task 3.5.4: Implement unit tests for calendar functionality
- Documentation: Document the calendar implementation, including data synchronization and view management

### Phase 4: User Interface and Accessibility (Estimated Time: 2 weeks)
**Task 4.1**: Develop an accessible and intuitive user interface
- Sub-task 4.1.1: Use Material Design components and principles
- Sub-task 4.1.2: Provide appropriate content descriptions for accessibility
- Sub-task 4.1.3: Ensure the UI is navigable using accessibility services
- Documentation: Document the UI design and accessibility considerations

**Task 4.2**: Implement customizable settings
- Sub-task 4.2.1: Create settings screen with various options
- Sub-task 4.2.2: Implement user preference persistence
- Sub-task 4.2.3: Add themes and display customization options
- Documentation: Document the available settings and their effects

**Task 4.3**: Ensure the entire application follows Android Accessibility Best Practices
- Sub-task 4.3.1: Test the application using TalkBack and the Accessibility Scanner
- Sub-task 4.3.2: Fix any accessibility issues identified during testing
- Documentation: Document accessibility testing results and improvements made


### Phase 5: Data Management and Storage (Estimated Time: 1 week)
**Task 5.1**: Implement local data storage
- Sub-task 5.1.1: Set up Room database for local storage
- Sub-task 5.1.2: Create data access objects (DAOs) for all entities
- Sub-task 5.1.3: Implement data migration strategies
- Documentation: Document the data storage implementation, including database schema and migration plans

**Task 5.2**: Implement data backup and restore
- Sub-task 5.2.1: Create backup functionality
- Sub-task 5.2.2: Implement restore functionality
- Documentation: Document the backup and restore implementation, including security considerations

**Task 5.3**: Implement data export functionality
- Sub-task 5.3.1: Create export to common formats (CSV, PDF)
- Sub-task 5.3.2: Add customizable report generation
- Sub-task 5.3.3: Implement sharing functionality
- Documentation: Document the export functionality, including format specifications and customization options

### Phase 6: Testing and Validation (Estimated Time: 2 weeks)
**Task 6.1**: Perform functional testing using an emulator (API 34) and real devices
- Sub-task 6.1.1: Test all core features to ensure they are working as expected
- Sub-task 6.1.2: Test edge cases and error conditions
- Documentation: Document the testing process and results. Include specific test cases and expected outcomes

**Task 6.2**: Perform performance testing using the Android Profiler
- Sub-task 6.2.1: Measure CPU u

Files changed (9) hide show
  1. README.md +7 -4
  2. about.html +107 -0
  3. components/footer.js +80 -0
  4. components/navbar.js +92 -0
  5. dashboard.html +146 -0
  6. features.html +174 -0
  7. index.html +99 -19
  8. script.js +108 -0
  9. style.css +55 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Timetracker Pro Work Hours Wizard
3
- emoji: 😻
4
  colorFrom: green
5
- colorTo: green
 
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: TimeTracker Pro - Work Hours Wizard 🧙‍♂️
 
3
  colorFrom: green
4
+ colorTo: gray
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://huggingface.co/deepsite).
about.html ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>About - TimeTracker Pro</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <link rel="stylesheet" href="style.css">
9
+ <script src="https://cdn.tailwindcss.com"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <script src="https://unpkg.com/feather-icons"></script>
12
+ </head>
13
+ <body class="min-h-screen bg-gray-50 flex flex-col">
14
+ <custom-navbar></custom-navbar>
15
+
16
+ <main class="flex-1 pt-20">
17
+ <div class="container mx-auto px-4 py-12">
18
+ <!-- Header -->
19
+ <div class="text-center mb-16">
20
+ <h1 class="text-4xl md:text-5xl font-bold text-gray-800 mb-4">
21
+ About WorkTrack Pro
22
+ </h1>
23
+ <p class="text-xl text-gray-600 max-w-2xl mx-auto">
24
+ We're on a mission to make time tracking magical and effortless for professionals everywhere
25
+ </p>
26
+ </div>
27
+
28
+ <!-- Content Sections -->
29
+ <div class="max-w-4xl mx-auto space-y-16">
30
+ <!-- Mission Section -->
31
+ <section class="bg-white rounded-xl p-8 shadow-lg">
32
+ <div class="flex flex-col md:flex-row items-center gap-8">
33
+ <div class="flex-1">
34
+ <h2 class="text-3xl font-bold text-gray-800 mb-4">Our Mission 🎯</h2>
35
+ <p class="text-gray-600 text-lg">
36
+ To revolutionize how professionals track their work time by creating intuitive, customizable, and privacy-focused tools that enhance productivity while respecting work-life balance.
37
+ </p>
38
+ </div>
39
+ <div class="flex-1">
40
+ <img src="http://static.photos/technology/640x360/42" alt="Our Mission" class="rounded-lg shadow-md">
41
+ </div>
42
+ </div>
43
+ </section>
44
+
45
+ <!-- Team Values -->
46
+ <section class="bg-white rounded-xl p-8 shadow-lg">
47
+ <h2 class="text-3xl font-bold text-gray-800 mb-8 text-center">Our Core Values ✨</h2>
48
+ <div class="grid md:grid-cols-2 gap-6">
49
+ <div class="text-center">
50
+ <div class="w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-4">
51
+ <i data-feather="shield" class="text-blue-600"></i>
52
+ </div>
53
+ <h3 class="text-xl font-semibold mb-2 text-gray-800">Privacy First</h3>
54
+ <p class="text-gray-600">Your data stays on your device unless you choose otherwise</p>
55
+ </div>
56
+
57
+ <div class="text-center">
58
+ <div class="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4">
59
+ <i data-feather="zap" class="text-green-600"></i>
60
+ </div>
61
+ <h3 class="text-xl font-semibold mb-2 text-gray-800">Performance</h3>
62
+ <p class="text-gray-600">Lightweight and efficient, designed to work smoothly on any device</p>
63
+ </div>
64
+
65
+ <div class="text-center">
66
+ <div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-4">
67
+ <i data-feather="users" class="text-purple-600"></i>
68
+ </div>
69
+ <h3 class="text-xl font-semibold mb-2 text-gray-800">Accessibility</h3>
70
+ <p class="text-gray-600">Built for everyone, following Android accessibility best practices</p>
71
+ </div>
72
+
73
+ <div class="text-center">
74
+ <div class="w-16 h-16 bg-orange-100 rounded-full flex items-center justify-center mx-auto mb-4">
75
+ <i data-feather="heart" class="text-orange-600"></i>
76
+ </div>
77
+ <h3 class="text-xl font-semibold mb-2 text-gray-800">User-Centric</h3>
78
+ <p class="text-gray-600">Every feature is designed with the user's needs and preferences in mind</p>
79
+ </div>
80
+ </div>
81
+ </section>
82
+
83
+ <!-- Contact CTA -->
84
+ <section class="text-center">
85
+ <h2 class="text-3xl font-bold text-gray-800 mb-4">Ready to Transform Your Workday? 🚀</h2>
86
+ <p class="text-gray-600 text-lg mb-8">
87
+ Join thousands of professionals who have already discovered the magic of effortless time tracking
88
+ </p>
89
+ <a href="/contact.html" class="btn-primary inline-block px-8 py-3 rounded-lg font-semibold text-white">
90
+ <i data-feather="mail" class="inline mr-2"></i>
91
+ Get In Touch
92
+ </a>
93
+ </section>
94
+ </div>
95
+ </div>
96
+ </main>
97
+
98
+ <custom-footer></custom-footer>
99
+
100
+ <script src="components/navbar.js"></script>
101
+ <script src="components/footer.js"></script>
102
+ <script src="script.js"></script>
103
+ <script>
104
+ feather.replace();
105
+ </script>
106
+ </body>
107
+ </html>
components/footer.js ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ footer {
7
+ background: #111827;
8
+ color: white;
9
+ padding: 3rem 1rem;
10
+ text-align: center;
11
+ }
12
+ .footer-content {
13
+ max-width: 1200px;
14
+ margin: 0 auto;
15
+ }
16
+ .footer-links {
17
+ display: flex;
18
+ justify-content: center;
19
+ gap: 2rem;
20
+ margin-bottom: 2rem;
21
+ flex-wrap: wrap;
22
+ }
23
+ .footer-links a {
24
+ color: #9ca3af;
25
+ text-decoration: none;
26
+ transition: color 0.2s ease;
27
+ }
28
+ .footer-links a:hover {
29
+ color: #3b82f6;
30
+ }
31
+ .social-links {
32
+ display: flex;
33
+ justify-content: center;
34
+ gap: 1rem;
35
+ margin-bottom: 2rem;
36
+ }
37
+ .social-links a {
38
+ color: #9ca3af;
39
+ transition: all 0.2s ease;
40
+ }
41
+ .social-links a:hover {
42
+ color: #3b82f6;
43
+ transform: translateY(-2px);
44
+ }
45
+ .copyright {
46
+ color: #6b7280;
47
+ font-size: 0.875rem;
48
+ }
49
+ @media (max-width: 768px) {
50
+ .footer-links {
51
+ flex-direction: column;
52
+ gap: 1rem;
53
+ }
54
+ }
55
+ </style>
56
+ <footer>
57
+ <div class="footer-content">
58
+ <div class="social-links">
59
+ <a href="#" aria-label="GitHub"><i data-feather="github"></i></a>
60
+ <a href="#" aria-label="Twitter"><i data-feather="twitter"></i></a>
61
+ <a href="#" aria-label="LinkedIn"><i data-feather="linkedin"></i></a>
62
+ <a href="#" aria-label="Facebook"><i data-feather="facebook"></i></a>
63
+ </div>
64
+ <div class="footer-links">
65
+ <a href="/privacy.html">Privacy Policy</a>
66
+ <a href="/terms.html">Terms of Service</a>
67
+ <a href="/support.html">Support</a>
68
+ <a href="/blog.html">Blog</a>
69
+ <a href="/careers.html">Careers</a>
70
+ </div>
71
+ <div class="copyright">
72
+ &copy; 2024 WorkTrack Pro - Work Hours Wizard 🧙‍♂️. All rights reserved.
73
+ </div>
74
+ </div>
75
+ </footer>
76
+ `;
77
+ }
78
+ }
79
+
80
+ customElements.define('custom-footer', CustomFooter);
components/navbar.js ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ nav {
7
+ background: rgba(17, 24, 39, 0.8);
8
+ backdrop-filter: blur(10px);
9
+ padding: 1rem;
10
+ display: flex;
11
+ justify-content: space-between;
12
+ align-items: center;
13
+ position: fixed;
14
+ top: 0;
15
+ left: 0;
16
+ right: 0;
17
+ z-index: 50;
18
+ transition: all 0.3s ease;
19
+ }
20
+ .logo {
21
+ color: white;
22
+ font-weight: bold;
23
+ font-size: 1.5rem;
24
+ background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
25
+ -webkit-background-clip: text;
26
+ -webkit-text-fill-color: transparent;
27
+ }
28
+ ul {
29
+ display: flex;
30
+ gap: 2rem;
31
+ list-style: none;
32
+ margin: 0;
33
+ padding: 0;
34
+ }
35
+ a {
36
+ color: white;
37
+ text-decoration: none;
38
+ transition: all 0.2s ease;
39
+ font-weight: 500;
40
+ }
41
+ a:hover {
42
+ color: #3b82f6;
43
+ transform: translateY(-1px);
44
+ }
45
+ .mobile-menu-btn {
46
+ display: none;
47
+ background: none;
48
+ border: none;
49
+ color: white;
50
+ cursor: pointer;
51
+ }
52
+ .mobile-menu {
53
+ display: none;
54
+ position: absolute;
55
+ top: 100%;
56
+ left: 0;
57
+ right: 0;
58
+ background: rgba(17, 24, 39, 0.95);
59
+ backdrop-filter: blur(10px);
60
+ padding: 1rem;
61
+ }
62
+ @media (max-width: 768px) {
63
+ ul { display: none; }
64
+ .mobile-menu-btn { display: block; }
65
+ .mobile-menu.active { display: block; }
66
+ }
67
+ </style>
68
+ <nav>
69
+ <div class="logo">WorkTrack Pro 🧙‍♂️</div>
70
+ <ul>
71
+ <li><a href="/">Home</a></li>
72
+ <li><a href="/dashboard.html">Dashboard</a></li>
73
+ <li><a href="/features.html">Features</a></li>
74
+ <li><a href="/about.html">About</a></li>
75
+ <li><a href="/contact.html">Contact</a></li>
76
+ </ul>
77
+ <button class="mobile-menu-btn" id="mobile-menu-btn">
78
+ <i data-feather="menu"></i>
79
+ </button>
80
+ <div class="mobile-menu hidden" id="mobile-menu">
81
+ <a href="/" class="block py-2 hover:text-blue-400"><i data-feather="home" class="inline mr-2 w-4 h-4"></i>Home</a>
82
+ <a href="/dashboard.html" class="block py-2 hover:text-blue-400"><i data-feather="bar-chart-2" class="inline mr-2 w-4 h-4"></i>Dashboard</a>
83
+ <a href="/features.html" class="block py-2 hover:text-blue-400"><i data-feather="zap" class="inline mr-2 w-4 h-4"></i>Features</a>
84
+ <a href="/about.html" class="block py-2 hover:text-blue-400"><i data-feather="info" class="inline mr-2 w-4 h-4"></i>About</a>
85
+ <a href="/contact.html" class="block py-2 hover:text-blue-400"><i data-feather="mail" class="inline mr-2 w-4 h-4"></i>Contact</a>
86
+ </div>
87
+ </nav>
88
+ `;
89
+ }
90
+ }
91
+
92
+ customElements.define('custom-navbar', CustomNavbar);
dashboard.html ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Dashboard - TimeTracker Pro</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <link rel="stylesheet" href="style.css">
9
+ <script src="https://cdn.tailwindcss.com"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <script src="https://unpkg.com/feather-icons"></script>
12
+ </head>
13
+ <body class="min-h-screen bg-gray-50 flex flex-col">
14
+ <custom-navbar></custom-navbar>
15
+
16
+ <main class="flex-1 pt-20">
17
+ <div class="container mx-auto px-4 py-8">
18
+ <!-- Header -->
19
+ <div class="mb-8">
20
+ <h1 class="text-3xl font-bold text-gray-800">Work Dashboard</h1>
21
+ <p class="text-gray-600">Track your time and manage tasks like a pro</p>
22
+ </div>
23
+
24
+ <!-- Stats Cards -->
25
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
26
+ <div class="bg-white rounded-xl p-6 shadow-lg card-hover">
27
+ <div class="flex items-center justify-between">
28
+ <div>
29
+ <p class="text-sm text-gray-500">Today's Hours</p>
30
+ <p class="text-2xl font-bold text-blue-600">8.5h</p>
31
+ </div>
32
+ <div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center">
33
+ <i data-feather="clock" class="text-blue-600"></i>
34
+ </div>
35
+ </div>
36
+ </div>
37
+
38
+ <div class="bg-white rounded-xl p-6 shadow-lg card-hover">
39
+ <div class="flex items-center justify-between">
40
+ <div>
41
+ <p class="text-sm text-gray-500">Tasks Completed</p>
42
+ <p class="text-2xl font-bold text-green-600">12</p>
43
+ </div>
44
+ <div class="w-12 h-12 bg-green-100 rounded-lg flex items-center justify-center">
45
+ <i data-feather="check-square" class="text-green-600"></i>
46
+ </div>
47
+ </div>
48
+ </div>
49
+
50
+ <div class="bg-white rounded-xl p-6 shadow-lg card-hover">
51
+ <div class="flex items-center justify-between">
52
+ <div>
53
+ <p class="text-sm text-gray-500">Breaks Taken</p>
54
+ <p class="text-2xl font-bold text-purple-600">3</p>
55
+ </div>
56
+ <div class="w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center">
57
+ <i data-feather="coffee" class="text-purple-600"></i>
58
+ </div>
59
+ </div>
60
+ </div>
61
+
62
+ <div class="bg-white rounded-xl p-6 shadow-lg card-hover">
63
+ <div class="flex items-center justify-between">
64
+ <div>
65
+ <p class="text-sm text-gray-500">Overtime</p>
66
+ <p class="text-2xl font-bold text-orange-600">0.5h</p>
67
+ </div>
68
+ <div class="w-12 h-12 bg-orange-100 rounded-lg flex items-center justify-center">
69
+ <i data-feather="alert-triangle" class="text-orange-600"></i>
70
+ </div>
71
+ </div>
72
+ </div>
73
+ </div>
74
+
75
+ <!-- Main Content -->
76
+ <div class="grid lg:grid-cols-3 gap-8">
77
+ <!-- Time Tracking Section -->
78
+ <div class="lg:col-span-2">
79
+ <div class="bg-white rounded-xl p-6 shadow-lg">
80
+ <h2 class="text-xl font-semibold mb-4 text-gray-800">Time Tracking</h2>
81
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-6">
82
+ <button class="btn-primary w-full py-3 rounded-lg font-semibold text-white">
83
+ <i data-feather="play" class="inline mr-2"></i>
84
+ Clock In
85
+ </button>
86
+ <button class="bg-gray-600 hover:bg-gray-700 w-full py-3 rounded-lg font-semibold text-white">
87
+ <i data-feather="pause" class="inline mr-2"></i>
88
+ Clock Out
89
+ </button>
90
+ </div>
91
+
92
+ <!-- Recent Activity -->
93
+ <div class="space-y-4">
94
+ <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
95
+ <div class="flex items-center">
96
+ <i data-feather="clock" class="text-green-500 mr-3"></i>
97
+ <span>Clocked in at 9:00 AM</span>
98
+ </div>
99
+ <span class="text-sm text-gray-500">Today</span>
100
+ </div>
101
+
102
+ <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
103
+ <div class="flex items-center">
104
+ <i data-feather="coffee" class="text-purple-500 mr-3"></i>
105
+ <span>Lunch break started</span>
106
+ </div>
107
+ <span class="text-sm text-gray-500">Yesterday</span>
108
+ </div>
109
+ </div>
110
+ </div>
111
+
112
+ <!-- Task Management -->
113
+ <div class="bg-white rounded-xl p-6 shadow-lg">
114
+ <h2 class="text-xl font-semibold mb-4 text-gray-800">Task Management</h2>
115
+ <div class="space-y-3">
116
+ <div class="flex items-center justify-between p-3 border border-gray-200 rounded-lg">
117
+ <div class="flex items-center">
118
+ <input type="checkbox" class="mr-3">
119
+ <span>Complete project documentation</span>
120
+ </div>
121
+ <span class="text-sm text-blue-600">2h</span>
122
+ </div>
123
+
124
+ <div class="flex items-center justify-between p-3 border border-gray-200 rounded-lg">
125
+ <div class="flex items-center">
126
+ <input type="checkbox" class="mr-3" checked>
127
+ <span class="line-through text-gray-400">Team meeting</span>
128
+ </div>
129
+ <span class="text-sm text-green-600">1h</span>
130
+ </div>
131
+ </div>
132
+ </div>
133
+ </div>
134
+ </div>
135
+ </main>
136
+
137
+ <custom-footer></custom-footer>
138
+
139
+ <script src="components/navbar.js"></script>
140
+ <script src="components/footer.js"></script>
141
+ <script src="script.js"></script>
142
+ <script>
143
+ feather.replace();
144
+ </script>
145
+ </body>
146
+ </html>
features.html ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Features - TimeTracker Pro</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <link rel="stylesheet" href="style.css">
9
+ <script src="https://cdn.tailwindcss.com"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <script src="https://unpkg.com/feather-icons"></script>
12
+ </head>
13
+ <body class="min-h-screen bg-gray-50 flex flex-col">
14
+ <custom-navbar></custom-navbar>
15
+
16
+ <main class="flex-1 pt-20">
17
+ <div class="container mx-auto px-4 py-12">
18
+ <!-- Header -->
19
+ <div class="text-center mb-16">
20
+ <h1 class="text-4xl md:text-5xl font-bold text-gray-800 mb-4">
21
+ Magical Features
22
+ </h1>
23
+ <p class="text-xl text-gray-600 max-w-2xl mx-auto">
24
+ Discover how WorkTrack Pro transforms your workday with powerful time management tools
25
+ </p>
26
+ </div>
27
+
28
+ <!-- Features Grid -->
29
+ <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
30
+ <!-- Feature 1 -->
31
+ <div class="bg-white rounded-xl p-6 shadow-lg card-hover">
32
+ <div class="w-16 h-16 bg-blue-100 rounded-lg flex items-center justify-center mb-4">
33
+ <i data-feather="clock" class="text-blue-600 w-8 h-8"></i>
34
+ </div>
35
+ <h3 class="text-xl font-semibold mb-3 text-gray-800">Smart Time Tracking</h3>
36
+ <ul class="text-gray-600 space-y-2">
37
+ <li class="flex items-center">
38
+ <i data-feather="check" class="text-green-500 mr-2 w-4 h-4"></i>
39
+ Automatic time in/out
40
+ </li>
41
+ <li class="flex items-center">
42
+ <i data-feather="check" class="text-green-500 mr-2 w-4 h-4"></i>
43
+ Break time tracking
44
+ </li>
45
+ <li class="flex items-center">
46
+ <i data-feather="check" class="text-green-500 mr-2 w-4 h-4"></i>
47
+ Overtime calculation
48
+ </li>
49
+ </ul>
50
+ </div>
51
+
52
+ <!-- Feature 2 -->
53
+ <div class="bg-white rounded-xl p-6 shadow-lg card-hover">
54
+ <div class="w-16 h-16 bg-purple-100 rounded-lg flex items-center justify-center mb-4">
55
+ <i data-feather="map-pin" class="text-purple-600 w-8 h-8"></i>
56
+ </div>
57
+ <h3 class="text-xl font-semibold mb-3 text-gray-800">Location Magic</h3>
58
+ <ul class="text-gray-600 space-y-2">
59
+ <li class="flex items-center">
60
+ <i data-feather="check" class="text-green-500 mr-2 w-4 h-4"></i>
61
+ GPS-based tracking
62
+ </li>
63
+ <li class="flex items-center">
64
+ <i data-feather="check" class="text-green-500 mr-2 w-4 h-4"></i>
65
+ Manual location entry
66
+ </li>
67
+ <li class="flex items-center">
68
+ <i data-feather="check" class="text-green-500 mr-2 w-4 h-4"></i>
69
+ Location history
70
+ </li>
71
+ </ul>
72
+ </div>
73
+
74
+ <!-- Feature 3 -->
75
+ <div class="bg-white rounded-xl p-6 shadow-lg card-hover">
76
+ <div class="w-16 h-16 bg-green-100 rounded-lg flex items-center justify-center mb-4">
77
+ <i data-feather="check-square" class="text-green-600 w-8 h-8"></i>
78
+ </div>
79
+ <h3 class="text-xl font-semibold mb-3 text-gray-800">Task Wizardry</h3>
80
+ <ul class="text-gray-600 space-y-2">
81
+ <li class="flex items-center">
82
+ <i data-feather="check" class="text-green-500 mr-2 w-4 h-4"></i>
83
+ Task creation & editing
84
+ </li>
85
+ <li class="flex items-center">
86
+ <i data-feather="check" class="text-green-500 mr-2 w-4 h-4"></i>
87
+ Duration tracking
88
+ </li>
89
+ <li class="flex items-center">
90
+ <i data-feather="check" class="text-green-500 mr-2 w-4 h-4"></i>
91
+ Categorization
92
+ </li>
93
+ </ul>
94
+ </div>
95
+
96
+ <!-- Feature 4 -->
97
+ <div class="bg-white rounded-xl p-6 shadow-lg card-hover">
98
+ <div class="w-16 h-16 bg-orange-100 rounded-lg flex items-center justify-center mb-4">
99
+ <i data-feather="file-text" class="text-orange-600 w-8 h-8"></i>
100
+ </div>
101
+ <h3 class="text-xl font-semibold mb-3 text-gray-800">Documentation</h3>
102
+ <ul class="text-gray-600 space-y-2">
103
+ <li class="flex items-center">
104
+ <i data-feather="check" class="text-green-500 mr-2 w-4 h-4"></i>
105
+ Fillable forms
106
+ </li>
107
+ <li class="flex items-center">
108
+ <i data-feather="check" class="text-green-500 mr-2 w-4 h-4"></i>
109
+ Note-taking
110
+ </li>
111
+ <li class="flex items-center">
112
+ <i data-feather="check" class="text-green-500 mr-2 w-4 h-4"></i>
113
+ Photo attachments
114
+ </li>
115
+ </ul>
116
+ </div>
117
+
118
+ <!-- Feature 5 -->
119
+ <div class="bg-white rounded-xl p-6 shadow-lg card-hover">
120
+ <div class="w-16 h-16 bg-red-100 rounded-lg flex items-center justify-center mb-4">
121
+ <i data-feather="calendar" class="text-red-600 w-8 h-8"></i>
122
+ </div>
123
+ <h3 class="text-xl font-semibold mb-3 text-gray-800">Calendar Integration</h3>
124
+ <ul class="text-gray-600 space-y-2">
125
+ <li class="flex items-center">
126
+ <i data-feather="check" class="text-green-500 mr-2 w-4 h-4"></i>
127
+ Interactive calendar
128
+ </li>
129
+ <li class="flex items-center">
130
+ <i data-feather="check" class="text-green-500 mr-2 w-4 h-4"></i>
131
+ Multiple views
132
+ </li>
133
+ <li class="flex items-center">
134
+ <i data-feather="check" class="text-green-500 mr-2 w-4 h-4"></i>
135
+ Holiday tracking
136
+ </li>
137
+ </ul>
138
+ </div>
139
+
140
+ <!-- Feature 6 -->
141
+ <div class="bg-white rounded-xl p-6 shadow-lg card-hover">
142
+ <div class="w-16 h-16 bg-indigo-100 rounded-lg flex items-center justify-center mb-4">
143
+ <i data-feather="user" class="text-indigo-600 w-8 h-8"></i>
144
+ </div>
145
+ <h3 class="text-xl font-semibold mb-3 text-gray-800">Profile Management</h3>
146
+ <ul class="text-gray-600 space-y-2">
147
+ <li class="flex items-center">
148
+ <i data-feather="check" class="text-green-500 mr-2 w-4 h-4"></i>
149
+ User profiles
150
+ </li>
151
+ <li class="flex items-center">
152
+ <i data-feather="check" class="text-green-500 mr-2 w-4 h-4"></i>
153
+ Statistics
154
+ </li>
155
+ <li class="flex items-center">
156
+ <i data-feather="check" class="text-green-500 mr-2 w-4 h-4"></i>
157
+ Report export
158
+ </li>
159
+ </ul>
160
+ </div>
161
+ </div>
162
+ </div>
163
+ </main>
164
+
165
+ <custom-footer></custom-footer>
166
+
167
+ <script src="components/navbar.js"></script>
168
+ <script src="components/footer.js"></script>
169
+ <script src="script.js"></script>
170
+ <script>
171
+ feather.replace();
172
+ </script>
173
+ </body>
174
+ </html>
index.html CHANGED
@@ -1,19 +1,99 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>TimeTracker Pro - Work Hours Wizard</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <link rel="stylesheet" href="style.css">
9
+ <script src="https://cdn.tailwindcss.com"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <script src="https://unpkg.com/feather-icons"></script>
12
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
13
+ <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
14
+ </head>
15
+ <body class="min-h-screen flex flex-col">
16
+ <custom-navbar></custom-navbar>
17
+
18
+ <main class="flex-1">
19
+ <!-- Hero Section with Vanta.js Background -->
20
+ <section id="hero" class="relative min-h-screen flex items-center justify-center overflow-hidden">
21
+ <div class="absolute inset-0 z-0" id="vanta-bg"></div>
22
+ <div class="relative z-10 text-center text-white px-4 max-w-4xl mx-auto">
23
+ <h1 class="text-5xl md:text-7xl font-bold mb-6 bg-gradient-to-r from-blue-400 to-purple-600 bg-clip-text text-transparent">
24
+ WorkTrack Pro
25
+ </h1>
26
+ <p class="text-xl md:text-2xl mb-8 text-gray-200">
27
+ Track your work hours like a wizard with our magical time management app
28
+ </p>
29
+ <div class="flex flex-col sm:flex-row gap-4 justify-center">
30
+ <a href="/dashboard.html" class="bg-blue-600 hover:bg-blue-700 text-white px-8 py-4 rounded-lg font-semibold text-lg transition-all duration-300 transform hover:scale-105 shadow-lg">
31
+ <i data-feather="play" class="inline mr-2"></i>
32
+ Start Tracking
33
+ </a>
34
+ <a href="/features.html" class="border-2 border-white hover:bg-white hover:text-gray-900 text-white px-8 py-4 rounded-lg font-semibold text-lg transition-all duration-300">
35
+ <i data-feather="info" class="inline mr-2"></i>
36
+ Learn More
37
+ </a>
38
+ </div>
39
+ </div>
40
+ </section>
41
+
42
+ <!-- Features Preview -->
43
+ <section class="py-20 bg-gray-50">
44
+ <div class="container mx-auto px-4">
45
+ <h2 class="text-4xl font-bold text-center mb-16 text-gray-800">Magical Features</h2>
46
+ <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
47
+ <div class="bg-white rounded-xl p-6 shadow-lg hover:shadow-xl transition-all duration-300 transform hover:-translate-y-2">
48
+ <div class="w-16 h-16 bg-blue-100 rounded-lg flex items-center justify-center mb-4">
49
+ <i data-feather="clock" class="text-blue-600 w-8 h-8"></i>
50
+ </div>
51
+ <h3 class="text-xl font-semibold mb-3 text-gray-800">Smart Time Tracking</h3>
52
+ <p class="text-gray-600">Automatically record your work hours with intelligent time in/out functionality</p>
53
+ </div>
54
+
55
+ <div class="bg-white rounded-xl p-6 shadow-lg hover:shadow-xl transition-all duration-300 transform hover:-translate-y-2">
56
+ <div class="w-16 h-16 bg-purple-100 rounded-lg flex items-center justify-center mb-4">
57
+ <i data-feather="map-pin" class="text-purple-600 w-8 h-8"></i>
58
+ </div>
59
+ <h3 class="text-xl font-semibold mb-3 text-gray-800">Location Magic</h3>
60
+ <p class="text-gray-600">GPS-based location tracking with manual entry options for maximum flexibility</p>
61
+ </div>
62
+
63
+ <div class="bg-white rounded-xl p-6 shadow-lg hover:shadow-xl transition-all duration-300 transform hover:-translate-y-2">
64
+ <div class="w-16 h-16 bg-green-100 rounded-lg flex items-center justify-center mb-4">
65
+ <i data-feather="check-square" class="text-green-600 w-8 h-8"></i>
66
+ </div>
67
+ <h3 class="text-xl font-semibold mb-3 text-gray-800">Task Wizardry</h3>
68
+ <p class="text-gray-600">Create, track, and complete tasks with powerful categorization and filtering</p>
69
+ </div>
70
+ </div>
71
+ </div>
72
+ </section>
73
+ </main>
74
+
75
+ <custom-footer></custom-footer>
76
+
77
+ <script src="components/navbar.js"></script>
78
+ <script src="components/footer.js"></script>
79
+ <script src="script.js"></script>
80
+ <script>
81
+ feather.replace();
82
+ // Initialize Vanta.js background
83
+ VANTA.GLOBE({
84
+ el: "#vanta-bg",
85
+ mouseControls: true,
86
+ touchControls: true,
87
+ gyroControls: false,
88
+ minHeight: 200.00,
89
+ minWidth: 200.00,
90
+ scale: 1.00,
91
+ scaleMobile: 1.00,
92
+ color: 0x3b82f6,
93
+ backgroundColor: 0x111827,
94
+ size: 1.00
95
+ });
96
+ </script>
97
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
98
+ </body>
99
+ </html>
script.js ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Shared JavaScript across all pages
2
+ console.log('TimeTracker Pro - Work Hours Wizard loaded');
3
+
4
+ // Initialize app functionality
5
+ document.addEventListener('DOMContentLoaded', function() {
6
+ // Check for service worker support
7
+ if ('serviceWorker' in navigator) {
8
+ navigator.serviceWorker.register('/sw.js')
9
+ .then(registration => console.log('SW registered'))
10
+ .catch(error => console.log('SW registration failed'));
11
+ }
12
+
13
+ // Handle mobile menu toggle
14
+ const mobileMenuBtn = document.getElementById('mobile-menu-btn');
15
+ const mobileMenu = document.getElementById('mobile-menu');
16
+
17
+ if (mobileMenuBtn && mobileMenu) {
18
+ mobileMenuBtn.addEventListener('click', function() {
19
+ mobileMenu.classList.toggle('hidden');
20
+ });
21
+ }
22
+
23
+ // Smooth scrolling for anchor links
24
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
25
+ anchor.addEventListener('click', function (e) {
26
+ e.preventDefault();
27
+ const target = document.querySelector(this.getAttribute('href'));
28
+ if (target) {
29
+ target.scrollIntoView({
30
+ behavior: 'smooth',
31
+ block: 'start'
32
+ });
33
+ }
34
+ });
35
+ });
36
+
37
+ // Theme handling
38
+ const themeToggle = document.getElementById('theme-toggle');
39
+ if (themeToggle) {
40
+ themeToggle.addEventListener('click', function() {
41
+ const html = document.documentElement;
42
+ if (html.classList.contains('dark')) {
43
+ html.classList.remove('dark');
44
+ localStorage.setItem('theme', 'light');
45
+ } else {
46
+ html.classList.add('dark');
47
+ localStorage.setItem('theme', 'dark');
48
+ }
49
+ feather.replace();
50
+ });
51
+ }
52
+
53
+ // Check for saved theme preference
54
+ const savedTheme = localStorage.getItem('theme');
55
+ if (savedTheme === 'dark') {
56
+ document.documentElement.classList.add('dark');
57
+ }
58
+
59
+ // Add loading states to buttons
60
+ document.querySelectorAll('button, a').forEach(element => {
61
+ element.addEventListener('click', function() {
62
+ if (this.classList.contains('btn-loading')) {
63
+ this.classList.add('loading');
64
+ const originalText = this.innerHTML;
65
+ this.innerHTML = '<i data-feather="loader" class="animate-spin"></i> Loading...';
66
+ feather.replace();
67
+
68
+ // Reset after 2 seconds for demo
69
+ setTimeout(() => {
70
+ this.classList.remove('loading');
71
+ this.innerHTML = originalText;
72
+ feather.replace();
73
+ }, 2000);
74
+ }
75
+ });
76
+ });
77
+ });
78
+
79
+ // API functions for time tracking
80
+ const TimeTrackerAPI = {
81
+ // Simulate time tracking data
82
+ getCurrentTime: function() {
83
+ return new Date().toLocaleTimeString();
84
+ },
85
+
86
+ // Calculate work duration
87
+ calculateDuration: function(startTime, endTime) {
88
+ const start = new Date(`1970-01-01T${startTime}`);
89
+ const end = new Date(`1970-01-01T${endTime}`);
90
+ const diff = end - start;
91
+ const hours = Math.floor(diff / 3600000);
92
+ const minutes = Math.floor((diff % 3600000) / 60000);
93
+ return `${hours}h ${minutes}m`;
94
+ },
95
+
96
+ // Get today's summary
97
+ getTodaySummary: function() {
98
+ return {
99
+ totalHours: '8.5',
100
+ tasksCompleted: 12,
101
+ breaksTaken: 3,
102
+ overtime: '0.5'
103
+ };
104
+ }
105
+ };
106
+
107
+ // Export for use in other modules
108
+ window.TimeTrackerAPI = TimeTrackerAPI;
style.css CHANGED
@@ -1,28 +1,65 @@
 
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
28
  }
 
 
 
 
 
 
 
1
+ /* Shared styles across all pages */
2
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
3
+
4
  body {
5
+ font-family: 'Inter', sans-serif;
6
+ }
7
+
8
+ /* Custom scrollbar */
9
+ ::-webkit-scrollbar {
10
+ width: 8px;
11
+ }
12
+
13
+ ::-webkit-scrollbar-track {
14
+ background: #f1f1f1;
15
+ }
16
+
17
+ ::-webkit-scrollbar-thumb {
18
+ background: #3b82f6;
19
+ border-radius: 4px;
20
+ }
21
+
22
+ ::-webkit-scrollbar-thumb:hover {
23
+ background: #2563eb;
24
+ }
25
+
26
+ /* Smooth transitions for all interactive elements */
27
+ * {
28
+ transition: all 0.2s ease-in-out;
29
+ }
30
+
31
+ /* Custom gradient backgrounds */
32
+ .gradient-bg {
33
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
34
+ }
35
+
36
+ /* Loading animation */
37
+ @keyframes pulse {
38
+ 0%, 100% { opacity: 1; }
39
+ 50% { opacity: 0.5; }
40
  }
41
 
42
+ .loading {
43
+ animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
 
44
  }
45
 
46
+ /* Card hover effects */
47
+ .card-hover {
48
+ transition: all 0.3s ease;
 
 
49
  }
50
 
51
+ .card-hover:hover {
52
+ transform: translateY(-5px);
53
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
 
 
 
54
  }
55
 
56
+ /* Custom button styles */
57
+ .btn-primary {
58
+ background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
59
  }
60
+
61
+ .btn-primary:hover {
62
+ background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
63
+ transform: translateY(-2px);
64
+ box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
65
+ }