-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
424 lines (411 loc) · 18.1 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
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google font and Icons -->
<link rel="stylesheet" href="node_modules/material-icons/iconfont/material-icons.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="node_modules/@fortawesome/fontawesome-free/css/all.css">
<!-- Materialize CSS -->
<link rel="stylesheet" href="node_modules/materialize-css/dist/css/materialize.min.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="css/main.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Madmin</title>
</head>
<body class="grey lighten-4">
<nav class="blue darken-2">
<div class="container">
<div class="nav-wrapper">
<a href="index.html" class="brand-logo">Madmin</a>
<a href="#" data-activates="side-nav" class="button-collapse show-on-large right">
<i class="material-icons">menu</i>
</a>
<ul class="right hide-on-med-and-down">
<li class="active"><a href="index.html">Dashboard</a></li>
<li class=""><a href="posts.html">Posts</a></li>
<li class=""><a href="catagories.html">Categories</a></li>
<li class=""><a href="comments.html">Comments</a></li>
<li class=""><a href="users.html">Users</a></li>
</ul>
<!-- side nav -->
<ul id="side-nav" class="side-nav">
<li>
<div class="user-view">
<div class="background">
<img class="" src="img/ocean.jpg" alt="">
</div>
<a href="#">
<img src="img/person1.jpg" alt="" class="circle">
</a>
<a href="#">
<span class="name white-text">John Doe</span>
</a>
<a href="#">
<span class="email white-text">[email protected]</span>
</a>
<li class=""><a href="index.html"><i class="material-icons">dashboard</i>Dashboard</a></li>
<li class=""><a href="posts.html">Posts</a></li>
<li class=""><a href="catagories.html">Categories</a></li>
<li class=""><a href="comments.html">Comments</a></li>
<li class=""><a href="users.html">Users</a></li>
<li>
<div class="divider"></div>
</li>
<li>
<a href="#" class="subheader center">Account Controls</a>
</li>
<li>
<a href="login.html" class="waves-effect">logout</a>
</li>
</div>
</li>
</ul>
</div>
</div>
</nav>
<!-- Section: Stats -->
<section class="section section-stats">
<div class="row">
<div class="col s12 m6 l3">
<div class="card-panel blue lighten-1 white-text center">
<i class="material-icons medium">face</i>
<h5>Monthly Visitors</h5>
<h3 class="count">28300</h3>
<div class="progress grey lighten-1">
<div class="determinate white" style="width: 40%;"></div>
</div>
</div>
</div>
<div class="col s12 m6 l3">
<div class="card-panel center blue-text text-lighten-1">
<i class="material-icons medium">mode_edit</i>
<h5>Blog Posts</h5>
<h3 class="count">204</h3>
<div class="progress grey lighten-1">
<div class="determinate blue lighten-1" style="width: 20%;"></div>
</div>
</div>
</div>
<div class="col s12 m6 l3">
<div class="card-panel blue lighten-1 white-text center">
<i class="material-icons medium">mode_comment</i>
<h5>Comments</h5>
<h3 class="count">1200</h3>
<div class="progress grey lighten-1">
<div class="determinate white" style="width: 40%;"></div>
</div>
</div>
</div>
<div class="col s12 m6 l3">
<div class="card-panel center blue-text text-lighten-1">
<i class="material-icons medium">supervisor_account</i>
<h5>Users</h5>
<h3 class="count">350</h3>
<div class="progress grey lighten-1">
<div class="determinate blue lighten-1" style="width: 60%;"></div>
</div>
</div>
</div>
</div>
</section>
<!-- Section: Visitors Chart (CanvasJS) -->
<section class="section section-visitors blue lighten-4">
<div class="row">
<div class="col s12 m6 l8">
<div class="card-panel">
<div id="chartContainer" style="height: 300px; width: 100%;"></div>
</div>
</div>
<div class="col s12 m6 l4">
<!-- Comments Here -->
<ul class="collection with-header latest-comments">
<li class="collection-header">
<h5>Latest Comments</h5>
</li>
<li class="collection-item avatar">
<img src="img/person1.jpg" alt="" class="circle">
<span class="title">John Doe</span>
<p class="truncate">Lorem ipsum dolor sit amet consectetur adipisicing elit. Explicabo
consectetur, placeat laudantium impedit atque voluptas cupiditate id officia repellat
corrupti. Magnam ducimus voluptas provident saepe illum voluptate sunt, earum ipsam.</p>
<a href="#!" class="approve green-text">Approve</a> | <a href="#!"
class="deny red-text">Deny</a>
</li>
<li class="collection-item avatar">
<img src="img/person2.jpg" alt="" class="circle">
<span class="title">Steve Smith</span>
<p class="truncate">Lorem ipsum dolor sit amet consectetur adipisicing elit. Explicabo
consectetur, placeat laudantium impedit atque voluptas cupiditate id officia repellat
corrupti. Magnam ducimus voluptas provident saepe illum voluptate sunt, earum ipsam.</p>
<a href="#!" class="approve green-text">Approve</a> | <a href="#!"
class="deny red-text">Deny</a>
</li>
<li class="collection-item avatar">
<img src="img/person3.jpg" alt="" class="circle">
<span class="title">Allen Williams</span>
<p class="truncate">Lorem ipsum dolor sit amet consectetur adipisicing elit. Explicabo
consectetur, placeat laudantium impedit atque voluptas cupiditate id officia repellat
corrupti. Magnam ducimus voluptas provident saepe illum voluptate sunt, earum ipsam.</p>
<a href="#!" class="approve green-text">Approve</a> | <a href="#!"
class="deny red-text">Deny</a>
</li>
</ul>
</div>
</div>
</section>
<!-- Section: Recent posts and To do -->
<section class="section section-">
<div class="row">
<div class="col s12 l8 m6">
<div class="card">
<div class="card-content">
<span class="card-title">Recent Posts</span>
<table class="striped">
<thead>
<tr>
<th>Title</th>
<th>Category</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>Post One</td>
<td>Web Development</td>
<td>
<a href="details.html" class="btn blue lighten-2">Details</a>
</td>
</tr>
<tr>
<td>Post Two</td>
<td>Graphic Design</td>
<td>
<a href="details.html" class="btn blue lighten-2">Details</a>
</td>
</tr>
<tr>
<td>Post three</td>
<td>Web Development</td>
<td>
<a href="details.html" class="btn blue lighten-2">Details</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="col s12 m6 l4">
<div class="card">
<div class="card-content">
<span class="card-title">Quick Todos</span>
<form id="todo-form">
<div class="input-field">
<input type="text" id="todo" placeholder="Add todo...">
</div>
</form>
<ul class="collection todos">
<li class="collection-item">
<div class="">Todo One <a href="#!" class="secondary-content delete"><i
class="material-icons">close</i></a></div>
</li>
<li class="collection-item">
<div class="">Todo Two <a href="#!" class="secondary-content delete"><i
class="material-icons">close</i></a></div>
</li>
</ul>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="section blue darken-2 white-text center">
<p>Madmin Corp Copyright © 2019</p>
</footer>
<!-- Fixe action button -->
<div class="fixed-action-btn">
<a class="btn-floating btn-large red">
<i class="material-icons">add</i>
</a>
<ul>
<li>
<a href="#post-modal" class="btn-floating blue modal-trigger">
<i class="material-icons">add_comment</i>
</a>
</li>
<li>
<a href="#category-modal" class="btn-floating blue modal-trigger">
<i class="material-icons">how_to_vote</i>
</a>
</li>
<li>
<a href="#user-modal" class="btn-floating blue modal-trigger">
<i class="material-icons">assignment_ind</i>
</a>
</li>
</ul>
</div>
<!-- Modals -->
<!-- Add Post Modal -->
<div id="post-modal" class="modal">
<div class="modal-content">
<h4 class="valign-wrapper blue-text"><i class="material-icons medium">add_comment</i> Add Post</h4>
<form>
<div class="input-field">
<input type="text" id="title">
<label for="title">Title</label>
</div>
<div class="input-field">
<select>
<option value="" disabled selected>Select Option</option>
<option value="1">Web Development</option>
<option value="2">Graphic Design</option>
<option value="3">Tech Gadget</option>
<option value="4">Other</option>
</select>
<label>Category</label>
</div>
<div class="input-field">
<textarea name="body" id="body" class="materialize-textarea"></textarea>
<label>Body</label>
</div>
</form>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close btn blue white-text">Submit</a>
</div>
</div>
</div>
<!-- Add Category Modal -->
<div id="category-modal" class="modal">
<div class="modal-content">
<h4 class="valign-wrapper blue-text"><i class="material-icons medium">how_to_vote</i> Add Category</h4>
<form>
<div class="input-field">
<input type="text" id="category">
<label for="title">Category</label>
</div>
</form>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close btn blue white-text">Submit</a>
</div>
</div>
</div>
<!-- Add User Modal -->
<div id="user-modal" class="modal">
<div class="modal-content">
<h4 class="valign-wrapper blue-text"><i class="material-icons medium">assignment_ind</i> Add User
</h4>
<form>
<div class="input-field">
<input type="text" id="name">
<label for="name">Name</label>
</div>
<div class="input-field">
<input type="email" id="email">
<label for="email">Email</label>
</div>
<div class="input-field">
<input type="password" id="password">
<label for="password">Password</label>
</div>
<div class="input-field">
<input type="password" id="password2">
<label for="password2">Confirm Password</label>
</div>
</form>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close btn blue white-text">Submit</a>
</div>
</div>
</div>
<!-- Preloader-->
<div class="loader preloader-wrapper big active">
<div class="spinner-layer spinner-blue-only">
<div class="circle-clipper left">
<div class="circle"></div>
</div>
<div class="gap-patch">
<div class="circle"></div>
</div>
<div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
</div>
<!-- Scripts -->
<!-- JQuery -->
<script src="node_modules/jquery/dist/jquery.min.js"></script>
<!-- Materialize JS -->
<script src="node_modules/materialize-css/dist/js/materialize.min.js"></script>
<!-- Load ChartJS -->
<script src="js/canvasjs.min.js"></script>
<script src="js/chart.js"></script>
<!-- Init Scripts Tags -->
<script>
// Hide all sections
$('.section').hide();
// hide preloader
setTimeout(function () {
$('.loader').fadeOut();
}, 1000)
// timeout
setTimeout(function () {
// target document elements
$(document).ready(function () {
// show section
$('.section').fadeIn();
// Custom and Init JQueries
// Init SideNav
$('.button-collapse').sideNav();
// Init Modal
$('.modal').modal();
// Init Select
$('select').material_select();
// counter preloader
$('.count').each(function () {
$(this).prop('Counter', 0).animate({
counter: $(this).text()
}, {
duration: 1500,
easing: 'swing',
step: function (now) {
$(this).text(Math.ceil(now))
}
});
})
// Comments Approve/Deny
$('.approve').click(function (e) {
Materialize.toast('Comment Approve', 3000);
e.preventDefault();
})
$('.deny').click(function (e) {
Materialize.toast('Comment Denied', 3000);
e.preventDefault();
})
// Quick todo
$('#todo-form').submit(function (e) {
const output = `<li class="collection-item">
<div>${$('#todo').val()}
<a href="#!" class="secondary-content delete">
<i class="material-icons">close</i>
</a>
</div>
</li>`;
$('.todos').append(output);
Materialize.toast('Todo added', 3000)
e.preventDefault();
});
// Delete todos
$('.todos').on('click', '.delete', function (e) {
$(this).parent().parent().remove();
Materialize.toast('Todo Removed', 3000)
e.preventDefault();
});
});
}, 1200)
</script>
</body>
</html>