-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
351 lines (309 loc) · 12.7 KB
/
index.html
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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Panel</title>
<link rel="stylesheet" href="public/css/bootstrap.css">
<link rel="stylesheet" href="public/css/main.css">
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.2/css/all.min.css' />
</head>
<body>
<div class="wrapper">
<div id="overlay"></div>
<!-- sidebar start -->
<div class="sidebar shadow">
<div class="admin_brand d-flex justify-content-between align-items-baseline">
<div>
<a class="nav-link fw-bold" href="#">
<span class="icon"><i class="fas fa-code"></i></span>
<span class="menu">Admin Panel</span>
</a>
</div>
<div class="d-block d-md-none">
<a href="javascript:void(0)" id="close_sidebar"><i class="fas fa-times-circle fa-lg"></i></a>
</div>
</div>
<ul class="nav nav-pills flex-column">
<li class="nav-item active">
<a class="nav-link" href="#">
<span class="icon" data-bs-toggle="tooltip" data-bs-title="Dashboard"><i class="fas fa-dashboard"></i></span>
<span class="menu">Dashboard</span>
</a>
</li>
<!-- drodown menu start -->
<li class="nav-item position-relative" data-bs-toggle="collapse" href="#masterCollapse" role="button" aria-expanded="false" aria-controls="masterCollapse">
<a class="nav-link" href="#">
<span class="icon" data-bs-toggle="tooltip" data-bs-title="Master">
<i class="fas fa-cubes"></i>
</span>
<span class="menu">Master</span>
</a>
</li>
<div class="collapse" id="masterCollapse">
<li class="nav-item">
<a class="nav-link" href="#">
<span class="icon" data-bs-toggle="tooltip" data-bs-title="Child One">
<i class="fas fa-cube"></i>
</span>
<span class="menu">Child One</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">
<span class="icon" data-bs-toggle="tooltip" data-bs-title="Child Two">
<i class="fas fa-cube"></i>
</span>
<span class="menu">Child Two</span>
</a>
</li>
</div>
<!-- dropdown menu end -->
<li class="nav-item">
<a class="nav-link" href="#">
<span class="icon" data-bs-toggle="tooltip" data-bs-title="Users"><i class="fas fa-users"></i></span>
<span class="menu">Users</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">
<span class="icon" data-bs-toggle="tooltip" data-bs-title="Logout"><i class="fas fa-sign-out"></i></span>
<span class="menu">Logout</span>
</a>
</li>
</ul>
</div>
<!-- sidebar end -->
<div class="content">
<!-- top navbar start -->
<nav class="navbar navbar-expand-md navbar-light bg-light shadow">
<div class="container-fluid px-3">
<button class="navbar-toggler border-0" type="button" id="show_sidebar_phone">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand d-none d-md-block" href="javascript:void(0)" id="show_sidebar_pc">
<i class="fas fa-bars fa-lg"></i>
</a>
<div class="fw-bold text-secondary d-md-none d-block">Admin Panel</div>
<div class="ms-auto d-flex align-items-center">
<div class="nav-item d-none d-md-block me-2" data-bs-toggle="tooltip" data-bs-title="Full Screen" data-bs-placement="left">
<a href="#" class="nav-link" id="fullscreen">
<i class="fa-solid fa-expand"></i>
</a>
</div>
<div class="dropdown">
<a class="nav-link dropdown-toggle py-1 px-3 rounded-1" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<i class="fas fa-user-circle me-1"></i>Sahil
</a>
<ul class="dropdown-menu dropdown-menu-end">
<li><a class="dropdown-item" href="#"><i class="fa-solid fa-address-card me-2"></i>Profile</a></li>
<li><a class="dropdown-item" href="#"><i class="fa-solid fa-gear me-2"></i>Account</a></li>
<li>
<hr class="dropdown-divider">
</li>
<li><a class="dropdown-item" href="#"><i class="fa-solid fa-right-from-bracket me-2"></i>Logout</a>
</li>
</ul>
</div>
</div>
</div>
</nav>
<!-- top navbar end -->
<!-- main content start -->
<main class="bg-secondary bg-opacity-25 min-vh-100">
<div class="container-fluid p-3 p-md-4">
<div class="d-flex flex-column flex-md-row justify-content-between align-items-center">
<div class="fs-4 text-secondary fw-bolder">Dashboard</div>
<div class="text-secondary lead fw-normal" id="curr_date_time"></div>
</div>
<hr>
<div class="row g-4">
<div class="col-lg-3 col-md-6">
<a href="#" class="text-decoration-none">
<div class="card bg-primary bg-gradient shadow-sm custom-card">
<div class="card-body p-3 pb-2 px-3 d-flex flex-row justify-content-between align-items-center">
<div>
<h1><i class="fas fa-cart-shopping fa-2x text-white-50"></i></h1>
</div>
<div class="text-center">
<h2 class="display-4 fw-bold text-white">1</h2>
<h4 class="text-white-50">Orders</h4>
</div>
</div>
</div>
</a>
</div>
<div class="col-lg-3 col-md-6">
<a href="#" class="text-decoration-none">
<div class="card bg-primary bg-success shadow-sm custom-card">
<div class="card-body p-3 pb-2 px-3 d-flex flex-row justify-content-between align-items-center">
<div>
<h1><i class="fas fa-list fa-2x text-white-50"></i></h1>
</div>
<div class="text-center">
<h2 class="display-4 fw-bold text-white">4</h2>
<h4 class="text-white-50">Products</h4>
</div>
</div>
</div>
</a>
</div>
<div class="col-lg-3 col-md-6">
<a href="#" class="text-decoration-none">
<div class="card bg-danger bg-gradient shadow-sm custom-card">
<div class="card-body p-3 pb-2 px-3 d-flex flex-row justify-content-between align-items-center">
<div>
<h1><i class="fas fa-users fa-2x text-white-50"></i></h1>
</div>
<div class="text-center">
<h2 class="display-4 fw-bold text-white">5</h2>
<h4 class="text-white-50">Users</h4>
</div>
</div>
</div>
</a>
</div>
<div class="col-lg-3 col-md-6">
<a href="#" class="text-decoration-none">
<div class="card bg-dark bg-gradient shadow-sm custom-card">
<div class="card-body p-3 pb-2 px-3 d-flex flex-row justify-content-between align-items-center">
<div>
<h1><i class="fas fa-people-line fa-2x text-white-50"></i></h1>
</div>
<div class="text-center">
<h2 class="display-4 fw-bold text-white">8</h2>
<h4 class="text-white-50">Visitors</h4>
</div>
</div>
</div>
</a>
</div>
<div class="col-lg-12">
<div class="card shadow">
<div class="card-header">
<h4 class="text-secondary fw-bold">Charts</h4>
</div>
<div class="card-body">
<div class="row g-4">
<div class="col-lg-6">
<div class="card shadow-sm">
<div class="card-body">
<canvas id="myChart"></canvas>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="card shadow-sm">
<div class="card-body">
<canvas id="lineChart"></canvas>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<!-- main content end -->
<!-- footer start -->
<footer class="bg-light shadow text-secondary text-center d-flex flex-column flex-md-row justify-content-between p-3 p-md-4">
<div>Copyright © 2022 <a href="https://dcodemania.com">DCodeMania</a></div>
<div>Made with ❤️ in India</div>
</footer>
<!-- footer end -->
</div>
</div>
<!-- <script src="node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script> -->
<script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.2.0/js/bootstrap.bundle.min.js'></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.9.1/chart.min.js"></script>
<script src="public/js/main.js"></script>
<script>
const ctx = document.getElementById('myChart');
const lc = document.getElementById('lineChart');
const myChart = new Chart(ctx, {
type: 'bar',
data: {
labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],
datasets: [{
label: '# of Votes',
data: [12, 19, 3, 5, 2, 3],
backgroundColor: [
'rgba(255, 99, 132, 0.2)',
'rgba(54, 162, 235, 0.2)',
'rgba(255, 206, 86, 0.2)',
'rgba(75, 192, 192, 0.2)',
'rgba(153, 102, 255, 0.2)',
'rgba(255, 159, 64, 0.2)'
],
borderColor: [
'rgba(255, 99, 132, 1)',
'rgba(54, 162, 235, 1)',
'rgba(255, 206, 86, 1)',
'rgba(75, 192, 192, 1)',
'rgba(153, 102, 255, 1)',
'rgba(255, 159, 64, 1)'
],
borderWidth: 1
}]
},
options: {
scales: {
y: {
beginAtZero: true
}
}
}
});
const lineChart = new Chart(lc, {
type: 'line',
data: {
labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],
datasets: [{
label: '# of Votes',
data: [12, 19, 3, 5, 2, 3],
backgroundColor: [
'rgba(255, 99, 132, 0.2)',
'rgba(54, 162, 235, 0.2)',
'rgba(255, 206, 86, 0.2)',
'rgba(75, 192, 192, 0.2)',
'rgba(153, 102, 255, 0.2)',
'rgba(255, 159, 64, 0.2)'
],
borderColor: [
'rgba(255, 99, 132, 1)',
'rgba(54, 162, 235, 1)',
'rgba(255, 206, 86, 1)',
'rgba(75, 192, 192, 1)',
'rgba(153, 102, 255, 1)',
'rgba(255, 159, 64, 1)'
],
borderWidth: 1
}]
},
options: {
scales: {
y: {
beginAtZero: true
}
}
}
});
const cdat = document.getElementById('curr_date_time');
setInterval(() => {
let date = new Date();
cdat.innerText = date.toLocaleString('en-IN', {
weekday: 'short',
day: 'numeric',
year: 'numeric',
month: 'long',
hour: 'numeric',
minute: 'numeric',
second: 'numeric',
});
}, 1000);
</script>
</body>
</html>