-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
237 lines (220 loc) Β· 8.32 KB
/
index.html
File metadata and controls
237 lines (220 loc) Β· 8.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="TaskMaster - Construction task management with WhatsApp integration">
<title>TaskMaster | Construction Task Management</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/src/styles/index.css">
</head>
<body>
<div id="app">
<!-- Auth Screen -->
<div id="auth-screen" class="screen">
<div class="auth-container">
<div class="auth-card glass">
<div class="auth-header">
<div class="logo">
<span class="logo-icon">ποΈ</span>
<h1>TaskMaster</h1>
</div>
<p class="tagline">Construction task management made simple</p>
</div>
<form id="auth-form" class="auth-form">
<div class="form-group">
<label for="email">Email</label>
<input type="email" id="email" name="email" required placeholder="you@company.com">
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" id="password" name="password" required placeholder="β’β’β’β’β’β’β’β’">
</div>
<button type="submit" class="btn btn-primary btn-full" id="auth-btn">
<span>Sign In</span>
</button>
</form>
</div>
</div>
</div>
<!-- Main Dashboard -->
<div id="dashboard-screen" class="screen hidden">
<!-- Sidebar -->
<aside class="sidebar glass">
<div class="sidebar-header">
<div class="logo">
<span class="logo-icon">ποΈ</span>
<h1>TaskMaster</h1>
</div>
</div>
<nav class="sidebar-nav">
<a href="#" class="nav-item active" data-view="dashboard">
<span class="nav-icon">π</span>
<span>Dashboard</span>
</a>
<a href="#" class="nav-item" data-view="projects">
<span class="nav-icon">π</span>
<span>Projects</span>
</a>
<a href="#" class="nav-item" data-view="tasks">
<span class="nav-icon">β
</span>
<span>Tasks</span>
</a>
<a href="#" class="nav-item" data-view="workers">
<span class="nav-icon">π·</span>
<span>Workers</span>
</a>
</nav>
<div class="sidebar-footer">
<div class="user-info">
<span class="user-avatar">π€</span>
<span class="user-email" id="user-email">user@example.com</span>
</div>
<button class="btn btn-ghost" id="logout-btn">Logout</button>
</div>
</aside>
<!-- Main Content -->
<main class="main-content">
<!-- Dashboard View -->
<div id="dashboard-view" class="view">
<header class="view-header">
<h2>Dashboard</h2>
<p class="view-subtitle">Overview of all projects and tasks</p>
</header>
<div class="stats-grid">
<div class="stat-card glass">
<div class="stat-icon">π</div>
<div class="stat-content">
<span class="stat-value" id="stat-projects">0</span>
<span class="stat-label">Active Projects</span>
</div>
</div>
<div class="stat-card glass">
<div class="stat-icon">β³</div>
<div class="stat-content">
<span class="stat-value" id="stat-pending">0</span>
<span class="stat-label">Pending Tasks</span>
</div>
</div>
<div class="stat-card glass">
<div class="stat-icon">π</div>
<div class="stat-content">
<span class="stat-value" id="stat-progress">0</span>
<span class="stat-label">In Progress</span>
</div>
</div>
<div class="stat-card glass">
<div class="stat-icon">β
</div>
<div class="stat-content">
<span class="stat-value" id="stat-completed">0</span>
<span class="stat-label">Completed</span>
</div>
</div>
</div>
<div class="dashboard-grid">
<section class="recent-tasks glass">
<h3>Recent Tasks</h3>
<div class="task-list" id="recent-tasks-list">
<p class="empty-state">No tasks yet. Create a project to get started!</p>
</div>
</section>
<section class="project-overview glass">
<h3>Project Overview</h3>
<div class="project-list" id="project-overview-list">
<p class="empty-state">No projects yet.</p>
</div>
</section>
</div>
</div>
<!-- Projects View -->
<div id="projects-view" class="view hidden">
<header class="view-header">
<div>
<h2>Projects</h2>
<p class="view-subtitle">Manage your construction projects</p>
</div>
<button class="btn btn-primary" id="add-project-btn">
<span>+ New Project</span>
</button>
</header>
<div class="projects-grid" id="projects-list">
<p class="empty-state">No projects yet. Click "New Project" to create one!</p>
</div>
</div>
<!-- Tasks View -->
<div id="tasks-view" class="view hidden">
<header class="view-header">
<div>
<h2>Tasks</h2>
<p class="view-subtitle">All tasks across projects</p>
</div>
<div class="view-actions">
<select id="task-filter-project" class="select">
<option value="">All Projects</option>
</select>
<select id="task-filter-status" class="select">
<option value="">All Status</option>
<option value="pending">Pending</option>
<option value="sent">Sent</option>
<option value="in_progress">In Progress</option>
<option value="completed">Completed</option>
</select>
</div>
</header>
<div class="tasks-table-container glass">
<table class="tasks-table">
<thead>
<tr>
<th>Task</th>
<th>Project</th>
<th>Worker</th>
<th>Status</th>
<th>Actions</th>
</tr>
</thead>
<tbody id="tasks-list">
<tr>
<td colspan="5" class="empty-state">No tasks yet.</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Workers View -->
<div id="workers-view" class="view hidden">
<header class="view-header">
<div>
<h2>Workers</h2>
<p class="view-subtitle">Manage your field workers</p>
</div>
<button class="btn btn-primary" id="add-worker-btn">
<span>+ Add Worker</span>
</button>
</header>
<div class="workers-grid" id="workers-list">
<p class="empty-state">No workers yet. Click "Add Worker" to register one!</p>
</div>
</div>
</main>
</div>
<!-- Modal -->
<div id="modal" class="modal hidden">
<div class="modal-backdrop"></div>
<div class="modal-content glass">
<div class="modal-header">
<h3 id="modal-title">Modal Title</h3>
<button class="modal-close" id="modal-close">×</button>
</div>
<div class="modal-body" id="modal-body">
<!-- Dynamic content -->
</div>
</div>
</div>
<!-- Toast Notifications -->
<div id="toast-container"></div>
</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>