CEOSamaltman commited on
Commit
0d5df2f
·
verified ·
1 Parent(s): 4eacd8d

Task tracker for my work session tonight. for example ingrahm data studio completion, Birdy Zoom Update, Aria Number Parking, M1 Presentation and questions tomorrow

Browse files
Files changed (3) hide show
  1. components/navbar.js +2 -1
  2. script.js +11 -1
  3. tasks.html +90 -110
components/navbar.js CHANGED
@@ -47,9 +47,10 @@ class CustomNavbar extends HTMLElement {
47
  <ul>
48
  <li><a href="/"><i data-feather="home" class="icon"></i> Home</a></li>
49
  <li><a href="/create.html"><i data-feather="plus" class="icon"></i> Create</a></li>
 
50
  <li><a href="/about.html"><i data-feather="info" class="icon"></i> About</a></li>
51
  </ul>
52
- </nav>
53
  `;
54
  }
55
  }
 
47
  <ul>
48
  <li><a href="/"><i data-feather="home" class="icon"></i> Home</a></li>
49
  <li><a href="/create.html"><i data-feather="plus" class="icon"></i> Create</a></li>
50
+ <li><a href="/tasks.html"><i data-feather="check-square" class="icon"></i> Tasks</a></li>
51
  <li><a href="/about.html"><i data-feather="info" class="icon"></i> About</a></li>
52
  </ul>
53
+ </nav>
54
  `;
55
  }
56
  }
script.js CHANGED
@@ -1,7 +1,17 @@
1
  // Initialize countdown timers
2
  document.addEventListener('DOMContentLoaded', function() {
 
 
 
 
 
 
 
 
 
 
3
  // New Year's Eve timer (December 31, 2024)
4
- initializeCountdown('timer1', new Date('December 31, 2024 23:59:59').getTime());
5
 
6
  // Summer Vacation timer (June 15, 2024)
7
  initializeCountdown('timer2', new Date('June 15, 2024 00:00:00').getTime());
 
1
  // Initialize countdown timers
2
  document.addEventListener('DOMContentLoaded', function() {
3
+ // Set current date in tasks page
4
+ if (document.getElementById('currentDate')) {
5
+ document.getElementById('currentDate').textContent = new Date().toLocaleDateString('en-US', {
6
+ weekday: 'long',
7
+ year: 'numeric',
8
+ month: 'long',
9
+ day: 'numeric'
10
+ });
11
+ }
12
+
13
  // New Year's Eve timer (December 31, 2024)
14
+ initializeCountdown('timer1', new Date('December 31, 2024 23:59:59').getTime());
15
 
16
  // Summer Vacation timer (June 15, 2024)
17
  initializeCountdown('timer2', new Date('June 15, 2024 00:00:00').getTime());
tasks.html CHANGED
@@ -3,84 +3,107 @@
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Work Session Tasks | Countdown Carnival</title>
7
  <link rel="stylesheet" href="style.css">
8
  <script src="https://cdn.tailwindcss.com"></script>
9
  <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
- <script src="https://unpkg.com/feather-icons"></script>
11
  </head>
12
  <body class="bg-gray-100 min-h-screen flex flex-col">
13
  <custom-navbar></custom-navbar>
14
 
15
  <main class="flex-grow container mx-auto px-4 py-12">
16
- <div class="max-w-4xl mx-auto">
17
- <div class="text-center mb-10">
18
  <h1 class="text-4xl font-bold text-purple-700 mb-2">Work Session Tracker</h1>
19
- <p class="text-xl text-gray-600">Tonight's tasks & priorities</p>
20
- <div id="workSessionTimer" class="text-3xl font-mono my-4">
21
- <span class="hours">00</span>:<span class="minutes">00</span>:<span class="seconds">00</span>
22
- </div>
23
  </div>
24
 
25
- <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
26
- <!-- Task List -->
27
- <div class="bg-white rounded-xl shadow-lg overflow-hidden">
28
- <div class="bg-gradient-to-r from-purple-500 to-indigo-600 p-4">
29
- <h2 class="text-white text-xl font-bold">Today's Tasks</h2>
30
  </div>
31
- <div class="p-6">
32
- <ul id="taskList" class="space-y-3">
33
- <li class="flex items-start">
34
- <input type="checkbox" class="mt-1 mr-3 h-5 w-5 rounded border-gray-300 text-purple-600 focus:ring-purple-500">
35
- <div>
36
- <span class="font-medium">Ingham Data Studio Completion</span>
37
- <p class="text-sm text-gray-500">Finalize all reports and dashboards</p>
38
- </div>
39
- </li>
40
- <li class="flex items-start">
41
- <input type="checkbox" class="mt-1 mr-3 h-5 w-5 rounded border-gray-300 text-purple-600 focus:ring-purple-500">
42
- <div>
43
- <span class="font-medium">Birdy Zoom Update</span>
44
- <p class="text-sm text-gray-500">Implement new video features</p>
45
  </div>
46
- </li>
47
- <li class="flex items-start">
48
- <input type="checkbox" class="mt-1 mr-3 h-5 w-5 rounded border-gray-300 text-purple-600 focus:ring-purple-500">
49
- <div>
50
- <span class="font-medium">Aria Number Parking</span>
51
- <p class="text-sm text-gray-500">Setup phone number routing system</p>
 
 
 
 
 
 
52
  </div>
53
- </li>
54
- <li class="flex items-start">
55
- <input type="checkbox" class="mt-1 mr-3 h-5 w-5 rounded border-gray-300 text-purple-600 focus:ring-purple-500">
56
- <div>
57
- <span class="font-medium">M1 Presentation Prep</span>
58
- <p class="text-sm text-gray-500">Create slides and prepare Q&A</p>
 
 
 
 
 
 
59
  </div>
60
- </li>
61
- </ul>
62
 
63
- <div class="mt-6">
64
- <form id="addTaskForm" class="flex">
65
- <input type="text" id="newTaskInput" placeholder="Add new task..." class="flex-grow px-4 py-2 rounded-l-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:border-purple-500">
66
- <button type="submit" class="bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded-r-lg transition duration-150">
67
- <i data-feather="plus"></i>
68
- </button>
69
- </form>
 
 
 
 
70
  </div>
71
  </div>
72
- </div>
73
 
74
- <!-- Notes Section -->
75
- <div class="bg-white rounded-xl shadow-lg overflow-hidden">
76
- <div class="bg-gradient-to-r from-blue-500 to-teal-400 p-4">
77
- <h2 class="text-white text-xl font-bold">Session Notes</h2>
78
- </div>
79
- <div class="p-6 h-full">
80
- <textarea id="sessionNotes" class="w-full h-64 px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition duration-200" placeholder="Write your notes here..."></textarea>
81
- <button id="saveNotes" class="mt-4 bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-lg transition duration-150 w-full">
82
- Save Notes
83
- </button>
 
 
 
 
 
 
 
 
 
 
 
 
84
  </div>
85
  </div>
86
  </div>
@@ -91,60 +114,17 @@
91
 
92
  <script src="components/navbar.js"></script>
93
  <script src="components/footer.js"></script>
94
- <script src="script.js"></script>
95
  <script>
96
- feather.replace();
97
-
98
- // Work session timer
99
- function startWorkSessionTimer() {
100
- const timerElement = document.getElementById('workSessionTimer');
101
- let seconds = 0;
102
-
103
- setInterval(() => {
104
- seconds++;
105
- const hours = Math.floor(seconds / 3600);
106
- const minutes = Math.floor((seconds % 3600) / 60);
107
- const secs = seconds % 60;
108
-
109
- timerElement.querySelector('.hours').textContent = hours.toString().padStart(2, '0');
110
- timerElement.querySelector('.minutes').textContent = minutes.toString().padStart(2, '0');
111
- timerElement.querySelector('.seconds').textContent = secs.toString().padStart(2, '0');
112
- }, 1000);
113
- }
114
-
115
- // Add new task
116
- document.getElementById('addTaskForm').addEventListener('submit', function(e) {
117
- e.preventDefault();
118
- const taskInput = document.getElementById('newTaskInput');
119
- if (taskInput.value.trim()) {
120
- const taskList = document.getElementById('taskList');
121
- const newTask = document.createElement('li');
122
- newTask.className = 'flex items-start';
123
- newTask.innerHTML = `
124
- <input type="checkbox" class="mt-1 mr-3 h-5 w-5 rounded border-gray-300 text-purple-600 focus:ring-purple-500">
125
- <div>
126
- <span class="font-medium">${taskInput.value}</span>
127
- </div>
128
- `;
129
- taskList.appendChild(newTask);
130
- taskInput.value = '';
131
- }
132
  });
133
 
134
- // Save notes
135
- document.getElementById('saveNotes').addEventListener('click', function() {
136
- const notes = document.getElementById('sessionNotes').value;
137
- localStorage.setItem('workSessionNotes', notes);
138
- alert('Notes saved!');
139
- });
140
-
141
- // Load saved notes
142
- if (localStorage.getItem('workSessionNotes')) {
143
- document.getElementById('sessionNotes').value = localStorage.getItem('workSessionNotes');
144
- }
145
-
146
- // Start timer when page loads
147
- startWorkSessionTimer();
148
  </script>
149
  </body>
150
  </html>
 
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Work Tasks | Countdown Carnival</title>
7
  <link rel="stylesheet" href="style.css">
8
  <script src="https://cdn.tailwindcss.com"></script>
9
  <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
 
10
  </head>
11
  <body class="bg-gray-100 min-h-screen flex flex-col">
12
  <custom-navbar></custom-navbar>
13
 
14
  <main class="flex-grow container mx-auto px-4 py-12">
15
+ <div class="max-w-3xl mx-auto">
16
+ <div class="text-center mb-12">
17
  <h1 class="text-4xl font-bold text-purple-700 mb-2">Work Session Tracker</h1>
18
+ <p class="text-xl text-gray-600">Tonight's tasks and priorities</p>
 
 
 
19
  </div>
20
 
21
+ <div class="bg-white rounded-xl shadow-lg overflow-hidden">
22
+ <div class="bg-gradient-to-r from-indigo-600 to-purple-600 p-6">
23
+ <div class="flex items-center justify-between">
24
+ <h2 class="text-2xl font-bold text-white">Tasks for Tonight</h2>
25
+ <span class="text-white bg-purple-800 px-3 py-1 rounded-full text-sm">Active</span>
26
  </div>
27
+ <p class="text-indigo-200 mt-1">Updated: <span id="currentDate"></span></p>
28
+ </div>
29
+
30
+ <div class="p-6">
31
+ <div class="space-y-4">
32
+ <!-- Task 1 -->
33
+ <div class="flex items-start p-4 border-b border-gray-100">
34
+ <input type="checkbox" class="mt-1 h-5 w-5 text-purple-600 rounded focus:ring-purple-500">
35
+ <div class="ml-3">
36
+ <h3 class="font-bold text-lg">Inghram Data Studio Completion</h3>
37
+ <p class="text-gray-600">Finalize all reports and dashboards</p>
38
+ <div class="mt-2 flex items-center text-sm text-gray-500">
39
+ <i data-feather="clock" class="w-4 h-4 mr-1"></i>
40
+ <span>High Priority</span>
41
  </div>
42
+ </div>
43
+ </div>
44
+
45
+ <!-- Task 2 -->
46
+ <div class="flex items-start p-4 border-b border-gray-100">
47
+ <input type="checkbox" class="mt-1 h-5 w-5 text-purple-600 rounded focus:ring-purple-500">
48
+ <div class="ml-3">
49
+ <h3 class="font-bold text-lg">Birdy Zoom Update</h3>
50
+ <p class="text-gray-600">Implement new features and test</p>
51
+ <div class="mt-2 flex items-center text-sm text-gray-500">
52
+ <i data-feather="clock" class="w-4 h-4 mr-1"></i>
53
+ <span>Medium Priority</span>
54
  </div>
55
+ </div>
56
+ </div>
57
+
58
+ <!-- Task 3 -->
59
+ <div class="flex items-start p-4 border-b border-gray-100">
60
+ <input type="checkbox" class="mt-1 h-5 w-5 text-purple-600 rounded focus:ring-purple-500">
61
+ <div class="ml-3">
62
+ <h3 class="font-bold text-lg">Aria Number Parking</h3>
63
+ <p class="text-gray-600">Set up number parking system</p>
64
+ <div class="mt-2 flex items-center text-sm text-gray-500">
65
+ <i data-feather="clock" class="w-4 h-4 mr-1"></i>
66
+ <span>High Priority</span>
67
  </div>
68
+ </div>
69
+ </div>
70
 
71
+ <!-- Task 4 -->
72
+ <div class="flex items-start p-4">
73
+ <input type="checkbox" class="mt-1 h-5 w-5 text-purple-600 rounded focus:ring-purple-500">
74
+ <div class="ml-3">
75
+ <h3 class="font-bold text-lg">M1 Presentation Prep</h3>
76
+ <p class="text-gray-600">Prepare slides and anticipate questions</p>
77
+ <div class="mt-2 flex items-center text-sm text-gray-500">
78
+ <i data-feather="clock" class="w-4 h-4 mr-1"></i>
79
+ <span>Critical Priority</span>
80
+ </div>
81
+ </div>
82
  </div>
83
  </div>
 
84
 
85
+ <div class="mt-8">
86
+ <h3 class="font-bold text-lg mb-4">Add New Task</h3>
87
+ <form id="newTaskForm" class="space-y-4">
88
+ <div>
89
+ <input type="text" placeholder="Task name" class="w-full px-4 py-2 rounded-lg border border-gray-300 focus:ring-2 focus:ring-purple-500 focus:border-purple-500">
90
+ </div>
91
+ <div>
92
+ <textarea placeholder="Task details" rows="2" class="w-full px-4 py-2 rounded-lg border border-gray-300 focus:ring-2 focus:ring-purple-500 focus:border-purple-500"></textarea>
93
+ </div>
94
+ <div>
95
+ <select class="w-full px-4 py-2 rounded-lg border border-gray-300 focus:ring-2 focus:ring-purple-500 focus:border-purple-500">
96
+ <option>Select priority</option>
97
+ <option>Critical</option>
98
+ <option>High</option>
99
+ <option>Medium</option>
100
+ <option>Low</option>
101
+ </select>
102
+ </div>
103
+ <button type="submit" class="w-full bg-purple-600 hover:bg-purple-700 text-white font-bold py-2 px-4 rounded-lg transition duration-150">
104
+ Add Task
105
+ </button>
106
+ </form>
107
  </div>
108
  </div>
109
  </div>
 
114
 
115
  <script src="components/navbar.js"></script>
116
  <script src="components/footer.js"></script>
 
117
  <script>
118
+ // Set current date
119
+ document.getElementById('currentDate').textContent = new Date().toLocaleDateString('en-US', {
120
+ weekday: 'long',
121
+ year: 'numeric',
122
+ month: 'long',
123
+ day: 'numeric'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  });
125
 
126
+ // Initialize feather icons
127
+ feather.replace();
 
 
 
 
 
 
 
 
 
 
 
 
128
  </script>
129
  </body>
130
  </html>