-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathreports.html
More file actions
257 lines (234 loc) · 10.4 KB
/
reports.html
File metadata and controls
257 lines (234 loc) · 10.4 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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Admin Dashboard | ProTrack</title>
<link rel="icon" type="image/x-icon" href="./contents/images/favicon.png" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Sharp" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="contents/css/dashboard.css">
<link rel="stylesheet" type="text/css" href="contents/css/reports.css">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="/contents/js/charts.js"></script>
</head>
<body>
<div class="container">
<!-- Logo -->
<aside>
<div class="top">
<div class="logo">
<h2>Pro<span class="primary">Track</span></h2>
</div>
<div class="close" id="close-btn">
<span class="material-icons-sharp">close</span>
</div>
</div>
<div class="sidebar">
<a href="./dashboard.html">
<span class="material-icons-sharp">grid_view</span>
<h3>Dashboard</h3>
</a>
<!-- <a href="./activityTracking.html">
<span class="material-icons-sharp">calendar_today</span>
<h3>Activity Tracking</h3>
</a> -->
<a href="./goalSetting.html">
<span class="material-icons-sharp">receipt_long</span>
<h3>Goal Setting</h3>
</a>
<a href="./analytics.html">
<span class="material-icons-sharp">insights</span>
<h3>Analytics</h3>
</a>
<a href="./todo.html">
<span class="material-icons-sharp">inventory</span>
<h3>Todo</h3>
</a>
<a href="./reports.html" class="active">
<span class="material-icons-sharp">report_gmailerrorred</span>
<h3>Reports</h3>
</a>
<a href="./settings.html">
<span class="material-icons-sharp">settings</span>
<h3>Settings</h3>
</a>
<a href="#" onclick="logout()">
<span class="material-icons-sharp">logout</span>
<h3>Logout</h3>
</a>
</div>
</aside>
<!-- Only keep Focus Time and Goals Progress stat cards -->
<main>
<form class="add-product-popUp">
<h1>Add Activity</h1><br>
<label>
<h2>Title</h2>
<input required id="title" type="text">
</label>
<label>
<h2>Duration</h2>
<input required id="duration" type="text">
</label>
<button type="submit" class="popupSubmit">Add</button>
</form>
<section id="dashboard">
<h1>Reports</h1>
<!-- Charts Section -->
<div class="card-container">
<!-- Performance Score Card -->
<div class="card">
<h3>Performance Score</h3>
<div class="chart-container">
<canvas id="performanceChart"></canvas>
</div>
</div>
<!-- Task Completion Card -->
<div class="card">
<h3>Task Completion Rate</h3>
<div class="chart-container">
<canvas id="taskChart"></canvas>
</div>
</div>
</div>
<!-- Time Distribution Chart moved to its own row -->
<div class="time-distribution-container">
<div class="card">
<h3>Time Distribution</h3>
<div class="chart-container">
<canvas id="timeChart"></canvas>
</div>
</div>
</div>
<!-- Stats Grid with only 2 cards -->
<div class="stats-grid">
<!-- Focus Time -->
<div class="stat-card">
<div class="stat-header">
<div class="icon">
<span class="material-icons-sharp">timer</span>
</div>
<span class="stat-label">Focus Time</span>
</div>
<div class="stat-value">5.2h</div>
<div class="stat-change positive-change">
<span>
<span class="material-icons-sharp">arrow_upward</span>
15% increase
</span>
</div>
</div>
<!-- Goals Progress -->
<div class="stat-card">
<div class="stat-header">
<div class="icon">
<span class="material-icons-sharp">flag</span>
</div>
<span class="stat-label">Goals Progress</span>
</div>
<div class="stat-value">78%</div>
<div class="stat-change negative-change">
<span>
<span class="material-icons-sharp">arrow_downward</span>
3% decrease
</span>
</div>
</div>
</div>
</section>
</main>
<!-- Top Right Menu Section -->
<div class="right">
<div class="top">
<button id="menu-btn">
<span class="material-icons-sharp">menu</span>
</button>
<div class="theme-toggler">
<span class="material-icons-sharp active">light_mode</span>
<span class="material-icons-sharp">dark_mode</span>
</div>
<div class="profile">
<div class="info">
<!-- Placeholder for the user's name -->
<p>Hey, <b id="username-placeholder">USER</b></p>
<small class="text-muted">Admin</small>
</div>
<div class="profile-photo">
<!-- Placeholder for the user's profile image -->
<img src="./contents/images/user.png" alt="profile" id="profile-photo-placeholder">
</div>
</div>
</div>
<!-- Recent Updates Section -->
<div class="recent-updates">
<h2>Recent Updates</h2>
<div class="updates">
<div class="update">
<div class="profile-photo">
<!-- Placeholder for the user's profile image -->
<img src="./contents/images/user.png" alt="profile" id="profile-photo-placeholder">
</div>
<div class="message">
<p><b id="username-placeholder">USER</b> completed the Web Design course.</p>
<small class="text-muted">5 Minutes Ago</small>
</div>
</div>
<div class="update">
<div class="profile-photo">
<!-- Placeholder for the user's profile image -->
<img src="./contents/images/user.png" alt="profile" id="profile-photo-placeholder">
</div>
<div class="message">
<p><b id="username-placeholder">USER</b> achieved a goal: "Study 2 hours daily."</p>
<small class="text-muted">10 Minutes Ago</small>
</div>
</div>
</div>
</div>
<!-- Activity Analytics Section -->
<div class="activity-analysis">
<h2>Activity Analytics</h2>
<div class="activity-cont" id="activity-cont">
<div class="item online">
<div class="icon">
<span class="material-icons-sharp">auto_stories</span>
</div>
<div class="right">
<div class="info">
<h3>ONLINE LECTURES</h3>
<small class="text-muted">Last 24 Hours</small>
</div>
<h5 class="success">+35%</h5>
<h3>3 hours</h3>
</div>
</div>
<div class="item offline">
<div class="icon">
<span class="material-icons-sharp">book</span>
</div>
<div class="right">
<div class="info">
<h3>SELF STUDY</h3>
<small class="text-muted">Last 24 Hours</small>
</div>
<h5 class="success">+20%</h5>
<h3>2 hours</h3>
</div>
</div>
</div>
<div class="item add-product">
<div class="div">
<span class="material-icons-sharp">add</span>
<h3>Add Activity</h3>
</div>
</div>
</div>
</div>
<!-- Script -->
<script src="contents/js/dashboard.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="/contents/js/charts.js"></script>
</body>
</html>