Nucha commited on
Commit
9d84af0
·
verified ·
1 Parent(s): e0a229d

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +928 -14
index.html CHANGED
@@ -1,14 +1,758 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link href="style.css" rel="stylesheet">
8
-
9
- </head>
10
- <body>
11
- <div class="grid">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  <header class="header">
13
  <i class="fas fa-bars header__menu"></i>
14
  <div class="header__search">
@@ -421,7 +1165,177 @@
421
  <p>Crafted with <i class="fas fa-heart footer__icon"></i> by <a href="https://www.linkedin.com/in/matt-holland/" target="_blank" class="footer__signature">Matt H</a></p>
422
  </footer>
423
  </div>
424
- </body>
425
- </html>
426
- <script src="scripts.js"></script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
427
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <!DOCTYPE html>
3
+ <html lang="en" >
4
+
5
+ <head>
6
+ <meta charset="UTF-8">
7
+
8
+
9
+ <link rel="apple-touch-icon" type="image/png" href="https://cpwebassets.codepen.io/assets/favicon/apple-touch-icon-5ae1a0698dcc2402e9712f7d01ed509a57814f994c660df9f7a952f3060705ee.png" />
10
+
11
+ <meta name="apple-mobile-web-app-title" content="CodePen">
12
+
13
+ <link rel="icon" type="image/x-icon" href="https://cpwebassets.codepen.io/assets/favicon/favicon-aec34940fbc1a6e787974dcd360f2c6b63348d4b1f4e06c77743096d55480f33.ico" />
14
+
15
+ <link rel="mask-icon" type="image/x-icon" href="https://cpwebassets.codepen.io/assets/favicon/logo-pin-b4b4269c16397ad2f0f7a01bcdf513a1994f4c94b8af2f191c09eb0d601762b1.svg" color="#111" />
16
+
17
+
18
+
19
+
20
+ <script src="https://cpwebassets.codepen.io/assets/common/stopExecutionOnTimeout-2c7831bb44f98c1391d6a4ffda0e1fd302503391ca806e7fcc7b9b87197aec26.js"></script>
21
+
22
+
23
+ <title>CSS Grid Modern Responsive Dashboard</title>
24
+
25
+ <link rel="canonical" href="https://codepen.io/trooperandz/pen/EOgJvg">
26
+ <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400" rel="stylesheet">
27
+ <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css" integrity="sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz" crossorigin="anonymous">
28
+ <link rel="stylesheet" href="css/main.css">
29
+ <link rel="shortcut icon" type="image/png" href="#">
30
+
31
+
32
+
33
+ <style>
34
+ html, body {
35
+ margin: 0;
36
+ padding: 0;
37
+ box-sizing: border-box;
38
+ font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
39
+ }
40
+
41
+ a {
42
+ text-decoration: none;
43
+ }
44
+
45
+ .text-light {
46
+ font-weight: 300;
47
+ }
48
+
49
+ .text-bold {
50
+ font-weight: bold;
51
+ }
52
+
53
+ .row {
54
+ display: flex;
55
+ }
56
+ .row--align-v-center {
57
+ align-items: center;
58
+ }
59
+ .row--align-h-center {
60
+ justify-content: center;
61
+ }
62
+
63
+ .grid {
64
+ position: relative;
65
+ display: grid;
66
+ grid-template-columns: 100%;
67
+ grid-template-rows: 50px 1fr 50px;
68
+ grid-template-areas: "header" "main" "footer";
69
+ height: 100vh;
70
+ overflow-x: hidden;
71
+ }
72
+ .grid--noscroll {
73
+ overflow-y: hidden;
74
+ }
75
+
76
+ .header {
77
+ grid-area: header;
78
+ display: flex;
79
+ align-items: center;
80
+ justify-content: space-between;
81
+ background-color: #F9FAFC;
82
+ }
83
+ .header__menu {
84
+ position: fixed;
85
+ padding: 13px;
86
+ left: 12px;
87
+ background-color: #DADAE3;
88
+ border-radius: 50%;
89
+ z-index: 1;
90
+ }
91
+ .header__menu:hover {
92
+ cursor: pointer;
93
+ }
94
+ .header__search {
95
+ margin-left: 55px;
96
+ font-size: 20px;
97
+ color: #777;
98
+ }
99
+ .header__input {
100
+ border: none;
101
+ background: transparent;
102
+ padding: 12px;
103
+ font-size: 20px;
104
+ color: #777;
105
+ }
106
+ .header__input:focus {
107
+ outline: none;
108
+ border: none;
109
+ }
110
+ .header__avatar {
111
+ background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/1609106/headshot.png");
112
+ background-size: cover;
113
+ background-repeat: no-repeat;
114
+ border-radius: 50%;
115
+ border: 2px solid rgba(255, 255, 255, 0.2);
116
+ position: relative;
117
+ margin: 0 26px;
118
+ width: 35px;
119
+ height: 35px;
120
+ cursor: pointer;
121
+ }
122
+ .header__avatar:after {
123
+ position: absolute;
124
+ content: "";
125
+ width: 6px;
126
+ height: 6px;
127
+ background: none;
128
+ border-left: 2px solid #777;
129
+ border-bottom: 2px solid #777;
130
+ transform: rotate(-45deg) translateY(-50%);
131
+ top: 50%;
132
+ right: -18px;
133
+ }
134
+
135
+ .dropdown {
136
+ position: absolute;
137
+ top: 54px;
138
+ right: -16px;
139
+ width: 220px;
140
+ height: auto;
141
+ z-index: 1;
142
+ background-color: #fff;
143
+ border-radius: 4px;
144
+ visibility: hidden;
145
+ opacity: 0;
146
+ transform: translateY(-10px);
147
+ transition: all 0.3s;
148
+ box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
149
+ }
150
+ .dropdown__list {
151
+ margin: 0;
152
+ padding: 0;
153
+ list-style-type: none;
154
+ }
155
+ .dropdown__list-item {
156
+ padding: 12px 24px;
157
+ color: #777;
158
+ text-transform: capitalize;
159
+ }
160
+ .dropdown__list-item:hover {
161
+ background-color: rgba(0, 0, 0, 0.1);
162
+ }
163
+ .dropdown__icon {
164
+ color: #1BBAE1;
165
+ }
166
+ .dropdown__title {
167
+ margin-left: 10px;
168
+ }
169
+ .dropdown:before {
170
+ position: absolute;
171
+ content: "";
172
+ top: -6px;
173
+ right: 30px;
174
+ width: 0;
175
+ height: 0;
176
+ border-left: 4px solid transparent;
177
+ border-right: 4px solid transparent;
178
+ border-bottom: 6px solid #FFF;
179
+ }
180
+ .dropdown--active {
181
+ visibility: visible;
182
+ opacity: 1;
183
+ transform: translateY(0);
184
+ }
185
+
186
+ .sidenav {
187
+ position: fixed;
188
+ grid-area: sidenav;
189
+ height: 100%;
190
+ overflow-y: auto;
191
+ background-color: #394263;
192
+ color: #FFF;
193
+ width: 240px;
194
+ transform: translateX(-245px);
195
+ transition: all 0.6s ease-in-out;
196
+ box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
197
+ z-index: 2;
198
+ }
199
+ .sidenav__brand {
200
+ position: relative;
201
+ display: flex;
202
+ align-items: center;
203
+ padding: 0 16px;
204
+ height: 50px;
205
+ background-color: rgba(0, 0, 0, 0.15);
206
+ }
207
+ .sidenav__brand-icon {
208
+ margin-top: 2px;
209
+ font-size: 14px;
210
+ color: rgba(255, 255, 255, 0.5);
211
+ }
212
+ .sidenav__brand-close {
213
+ position: absolute;
214
+ right: 8px;
215
+ top: 8px;
216
+ visibility: visible;
217
+ color: rgba(255, 255, 255, 0.5);
218
+ cursor: pointer;
219
+ }
220
+ .sidenav__brand-link {
221
+ font-size: 18px;
222
+ font-weight: bold;
223
+ color: #FFF;
224
+ margin: 0 15px;
225
+ letter-spacing: 1.5px;
226
+ }
227
+ .sidenav__profile {
228
+ display: flex;
229
+ align-items: center;
230
+ min-height: 90px;
231
+ background-color: rgba(255, 255, 255, 0.1);
232
+ }
233
+ .sidenav__profile-avatar {
234
+ background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/1609106/headshot.png");
235
+ background-size: cover;
236
+ background-repeat: no-repeat;
237
+ border-radius: 50%;
238
+ border: 2px solid rgba(255, 255, 255, 0.2);
239
+ height: 64px;
240
+ width: 64px;
241
+ margin: 0 15px;
242
+ }
243
+ .sidenav__profile-title {
244
+ font-size: 17px;
245
+ letter-spacing: 1px;
246
+ }
247
+ .sidenav__arrow {
248
+ position: absolute;
249
+ content: "";
250
+ width: 6px;
251
+ height: 6px;
252
+ top: 50%;
253
+ right: 20px;
254
+ border-left: 2px solid rgba(255, 255, 255, 0.5);
255
+ border-bottom: 2px solid rgba(255, 255, 255, 0.5);
256
+ transform: translateY(-50%) rotate(225deg);
257
+ }
258
+ .sidenav__sublist {
259
+ list-style-type: none;
260
+ margin: 0;
261
+ padding: 10px 0 0;
262
+ }
263
+ .sidenav--active {
264
+ transform: translateX(0);
265
+ }
266
+
267
+ .navList {
268
+ width: 240px;
269
+ padding: 0;
270
+ margin: 0;
271
+ background-color: #394263;
272
+ list-style-type: none;
273
+ }
274
+ .navList__heading {
275
+ position: relative;
276
+ display: flex;
277
+ align-items: center;
278
+ justify-content: space-between;
279
+ padding: 16px 16px 3px;
280
+ color: rgba(255, 255, 255, 0.5);
281
+ text-transform: uppercase;
282
+ font-size: 15px;
283
+ }
284
+ .navList__subheading {
285
+ position: relative;
286
+ padding: 10px 30px;
287
+ color: #fff;
288
+ font-size: 16px;
289
+ text-transform: capitalize;
290
+ }
291
+ .navList__subheading-icon {
292
+ display: flex;
293
+ align-items: center;
294
+ justify-content: center;
295
+ font-size: 12px;
296
+ color: rgba(255, 255, 255, 0.5);
297
+ width: 12px;
298
+ }
299
+ .navList__subheading-title {
300
+ margin: 0 15px;
301
+ }
302
+ .navList__subheading:after {
303
+ position: absolute;
304
+ content: "";
305
+ height: 6px;
306
+ width: 6px;
307
+ top: 17px;
308
+ right: 25px;
309
+ border-left: 1px solid rgba(255, 255, 255, 0.5);
310
+ border-bottom: 1px solid rgba(255, 255, 255, 0.5);
311
+ transform: rotate(225deg);
312
+ transition: all 0.2s;
313
+ }
314
+ .navList__subheading:hover {
315
+ background-color: #303753;
316
+ cursor: pointer;
317
+ }
318
+ .navList__subheading--open {
319
+ background-color: #303753;
320
+ }
321
+ .navList__subheading--open:after {
322
+ transform: rotate(315deg);
323
+ }
324
+ .navList .subList {
325
+ padding: 0;
326
+ margin: 0;
327
+ list-style-type: none;
328
+ background-color: #262c43;
329
+ visibility: visible;
330
+ overflow: hidden;
331
+ max-height: 200px;
332
+ transition: all 0.4s ease-in-out;
333
+ }
334
+ .navList .subList__item {
335
+ padding: 8px;
336
+ text-transform: capitalize;
337
+ padding: 8px 30px;
338
+ color: #D3D3D3;
339
+ }
340
+ .navList .subList__item:first-child {
341
+ padding-top: 15px;
342
+ }
343
+ .navList .subList__item:hover {
344
+ background-color: rgba(255, 255, 255, 0.1);
345
+ cursor: pointer;
346
+ }
347
+ .navList .subList--hidden {
348
+ visibility: hidden;
349
+ max-height: 0;
350
+ }
351
+
352
+ .main {
353
+ grid-area: main;
354
+ background-color: #EAEDF1;
355
+ color: #394263;
356
+ }
357
+ .main__cards {
358
+ display: block;
359
+ column-count: 1;
360
+ column-gap: 20px;
361
+ margin: 20px;
362
+ }
363
+
364
+ .main-header {
365
+ position: relative;
366
+ display: flex;
367
+ justify-content: space-between;
368
+ height: 250px;
369
+ color: #FFF;
370
+ background-size: cover;
371
+ background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/1609106/lake-shadow-water.jpg");
372
+ margin-bottom: 20px;
373
+ }
374
+ .main-header__intro-wrapper {
375
+ display: flex;
376
+ flex: 1;
377
+ flex-direction: column;
378
+ align-items: center;
379
+ justify-content: space-between;
380
+ height: 160px;
381
+ padding: 12px 30px;
382
+ background: rgba(255, 255, 255, 0.12);
383
+ font-size: 26px;
384
+ letter-spacing: 1px;
385
+ }
386
+ .main-header__welcome {
387
+ display: flex;
388
+ flex-direction: column;
389
+ align-items: center;
390
+ }
391
+ .main-header__welcome-title {
392
+ margin-bottom: 8px;
393
+ font-size: 26px;
394
+ }
395
+ .main-header__welcome-subtitle {
396
+ font-size: 18px;
397
+ }
398
+
399
+ .quickview {
400
+ display: grid;
401
+ grid-auto-flow: column;
402
+ grid-gap: 60px;
403
+ }
404
+ .quickview__item {
405
+ display: flex;
406
+ align-items: center;
407
+ flex-direction: column;
408
+ }
409
+ .quickview__item-total {
410
+ margin-bottom: 2px;
411
+ font-size: 32px;
412
+ }
413
+ .quickview__item-description {
414
+ font-size: 16px;
415
+ text-align: center;
416
+ }
417
+
418
+ .main-overview {
419
+ display: grid;
420
+ grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
421
+ grid-auto-rows: 94px;
422
+ grid-gap: 30px;
423
+ margin: 20px;
424
+ }
425
+
426
+ .overviewCard {
427
+ display: flex;
428
+ align-items: center;
429
+ justify-content: space-between;
430
+ padding: 12px;
431
+ background-color: #FFF;
432
+ transform: translateY(0);
433
+ transition: all 0.3s;
434
+ }
435
+ .overviewCard-icon {
436
+ display: flex;
437
+ align-items: center;
438
+ justify-content: center;
439
+ height: 60px;
440
+ width: 60px;
441
+ border-radius: 50%;
442
+ font-size: 21px;
443
+ color: #fff;
444
+ }
445
+ .overviewCard-icon--document {
446
+ background-color: #e67e22;
447
+ }
448
+ .overviewCard-icon--calendar {
449
+ background-color: #27ae60;
450
+ }
451
+ .overviewCard-icon--mail {
452
+ background-color: #e74c3c;
453
+ }
454
+ .overviewCard-icon--photo {
455
+ background-color: #af64cc;
456
+ }
457
+ .overviewCard-description {
458
+ display: flex;
459
+ flex-direction: column;
460
+ align-items: center;
461
+ }
462
+ .overviewCard-title {
463
+ font-size: 18px;
464
+ color: #1BBAE1;
465
+ margin: 0;
466
+ }
467
+ .overviewCard-subtitle {
468
+ margin: 2px;
469
+ color: #777;
470
+ }
471
+ .overviewCard:hover {
472
+ transform: translateY(-3px);
473
+ box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
474
+ cursor: pointer;
475
+ }
476
+
477
+ .card {
478
+ display: flex;
479
+ flex-direction: column;
480
+ width: 100%;
481
+ background-color: #fff;
482
+ margin-bottom: 20px;
483
+ -webkit-column-break-inside: avoid;
484
+ }
485
+ .card__header {
486
+ display: flex;
487
+ align-items: center;
488
+ justify-content: space-between;
489
+ height: 50px;
490
+ background-color: #394263;
491
+ color: #FFF;
492
+ }
493
+ .card__header-title {
494
+ margin: 0 20px;
495
+ font-size: 20px;
496
+ letter-spacing: 1.2px;
497
+ }
498
+ .card__header-link {
499
+ font-size: 16px;
500
+ color: #1BBAE1;
501
+ letter-spacing: normal;
502
+ display: inline-block;
503
+ }
504
+ .card__main {
505
+ position: relative;
506
+ padding-right: 20px;
507
+ background-color: #FFF;
508
+ }
509
+ .card__main:after {
510
+ content: "";
511
+ position: absolute;
512
+ top: 0;
513
+ left: 120px;
514
+ bottom: 0;
515
+ width: 2px;
516
+ background-color: #f0f0f0;
517
+ }
518
+ .card__secondary {
519
+ display: grid;
520
+ grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
521
+ grid-auto-rows: 100px;
522
+ grid-gap: 25px;
523
+ padding: 20px;
524
+ background-color: #FFF;
525
+ }
526
+ .card__photo {
527
+ background-image: url("../../img/pumpkin-carving.jpg");
528
+ background-size: cover;
529
+ background-repeat: no-repeat;
530
+ background-color: slategray;
531
+ transform: scale(1);
532
+ transition: transform 0.3s ease-in-out;
533
+ width: 100%;
534
+ height: 100%;
535
+ }
536
+ .card__photo:hover {
537
+ transform: scale(1.1);
538
+ cursor: pointer;
539
+ }
540
+ .card__photo-wrapper {
541
+ overflow: hidden;
542
+ }
543
+ .card__row {
544
+ position: relative;
545
+ display: flex;
546
+ flex: 1;
547
+ margin: 15px 0 20px;
548
+ }
549
+ .card__icon {
550
+ position: absolute;
551
+ display: flex;
552
+ align-items: center;
553
+ justify-content: center;
554
+ content: "";
555
+ width: 30px;
556
+ height: 30px;
557
+ top: 0;
558
+ left: 121px;
559
+ transform: translateX(-50%);
560
+ border-radius: 50%;
561
+ color: #FFF;
562
+ background-color: #1BBAE1;
563
+ z-index: 1;
564
+ }
565
+ .card__row:nth-child(even) .card__icon {
566
+ background-color: #e74c3c;
567
+ }
568
+ .card__time {
569
+ display: flex;
570
+ flex: 1;
571
+ justify-content: flex-end;
572
+ max-width: 80px;
573
+ margin-left: 15px;
574
+ text-align: right;
575
+ font-size: 14px;
576
+ line-height: 2;
577
+ }
578
+ .card__detail {
579
+ display: flex;
580
+ flex: 1;
581
+ flex-direction: column;
582
+ padding-left: 12px;
583
+ margin-left: 48px;
584
+ transform: translateX(0);
585
+ transition: all 0.3s;
586
+ }
587
+ .card__detail:hover {
588
+ background-color: #f0f0f0;
589
+ transform: translateX(4px);
590
+ cursor: pointer;
591
+ }
592
+ .card__source {
593
+ line-height: 1.8;
594
+ color: #1BBAE1;
595
+ }
596
+ .card__note {
597
+ margin: 10px 0;
598
+ color: #777;
599
+ }
600
+ .card--finance {
601
+ position: relative;
602
+ }
603
+
604
+ .settings {
605
+ display: flex;
606
+ margin: 8px;
607
+ align-self: flex-start;
608
+ background-color: rgba(255, 255, 255, 0.5);
609
+ border: 1px solid rgba(0, 0, 0, 0.1);
610
+ border-radius: 2px;
611
+ }
612
+ .settings__block {
613
+ display: flex;
614
+ align-items: center;
615
+ justify-content: center;
616
+ padding: 4px;
617
+ color: #394263;
618
+ font-size: 11px;
619
+ }
620
+ .settings__block:not(:last-child) {
621
+ border-right: 1px solid rgba(0, 0, 0, 0.1);
622
+ }
623
+ .settings__icon {
624
+ padding: 0px 3px;
625
+ font-size: 12px;
626
+ }
627
+ .settings__icon:hover {
628
+ background-color: rgba(255, 255, 255, 0.8);
629
+ cursor: pointer;
630
+ }
631
+ .settings:hover {
632
+ background-color: #fff;
633
+ cursor: pointer;
634
+ }
635
+
636
+ .documents {
637
+ display: grid;
638
+ grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
639
+ grid-auto-rows: 214px;
640
+ grid-gap: 12px;
641
+ height: auto;
642
+ background-color: #FFF;
643
+ }
644
+
645
+ .document {
646
+ display: flex;
647
+ align-items: center;
648
+ justify-content: center;
649
+ margin: 15px 0 0;
650
+ flex-direction: column;
651
+ }
652
+ .document__img {
653
+ width: 105px;
654
+ height: 136px;
655
+ background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/1609106/doc-1.png");
656
+ background-size: cover;
657
+ box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
658
+ cursor: pointer;
659
+ transition: transform 0.3s ease;
660
+ }
661
+ .document__img:hover {
662
+ transform: translateY(-4px);
663
+ }
664
+ .document__title {
665
+ margin: 8px 0 2px;
666
+ color: #777;
667
+ }
668
+ .document__date {
669
+ font-size: 10px;
670
+ }
671
+
672
+ #chartdiv {
673
+ width: 100%;
674
+ height: 300px;
675
+ font-size: 11px;
676
+ min-width: 0;
677
+ }
678
+
679
+ .footer {
680
+ grid-area: footer;
681
+ display: flex;
682
+ align-items: center;
683
+ justify-content: space-between;
684
+ padding: 0 16px;
685
+ color: #777;
686
+ background-color: #FFF;
687
+ }
688
+ .footer__copyright {
689
+ color: #1BBAE1;
690
+ }
691
+ .footer__icon {
692
+ color: #e74c3c;
693
+ }
694
+ .footer__signature {
695
+ color: #1BBAE1;
696
+ cursor: pointer;
697
+ font-weight: bold;
698
+ }
699
+
700
+ @media only screen and (min-width: 46.875em) {
701
+ .grid {
702
+ display: grid;
703
+ grid-template-columns: 240px calc(100% - 240px);
704
+ grid-template-rows: 50px 1fr 50px;
705
+ grid-template-areas: "sidenav header" "sidenav main" "sidenav footer";
706
+ height: 100vh;
707
+ }
708
+
709
+ .sidenav {
710
+ position: relative;
711
+ transform: translateX(0);
712
+ }
713
+ .sidenav__brand-close {
714
+ visibility: hidden;
715
+ }
716
+
717
+ .main-header__intro-wrapper {
718
+ padding: 0 30px;
719
+ }
720
+
721
+ .header__menu {
722
+ display: none;
723
+ }
724
+ .header__search {
725
+ margin-left: 20px;
726
+ }
727
+ .header__avatar {
728
+ width: 40px;
729
+ height: 40px;
730
+ }
731
+ }
732
+ @media only screen and (min-width: 65.625em) {
733
+ .main__cards {
734
+ column-count: 2;
735
+ }
736
+
737
+ .main-header__intro-wrapper {
738
+ flex-direction: row;
739
+ }
740
+ .main-header__welcome {
741
+ align-items: flex-start;
742
+ }
743
+ }
744
+ </style>
745
+
746
+ <script>
747
+ window.console = window.console || function(t) {};
748
+ </script>
749
+
750
+
751
+
752
+ </head>
753
+
754
+ <body translate="no">
755
+ <div class="grid">
756
  <header class="header">
757
  <i class="fas fa-bars header__menu"></i>
758
  <div class="header__search">
 
1165
  <p>Crafted with <i class="fas fa-heart footer__icon"></i> by <a href="https://www.linkedin.com/in/matt-holland/" target="_blank" class="footer__signature">Matt H</a></p>
1166
  </footer>
1167
  </div>
1168
+ <script src='https://code.jquery.com/jquery-3.3.1.min.js'></script>
1169
+ <script src='https://www.amcharts.com/lib/3/amcharts.js'></script>
1170
+ <script src='https://www.amcharts.com/lib/3/serial.js'></script>
1171
+ <script src='https://www.amcharts.com/lib/3/themes/light.js'></script>
1172
+ <script id="rendered-js" >
1173
+ /* Scripts for css grid dashboard */
1174
+
1175
+ $(document).ready(() => {
1176
+ addResizeListeners();
1177
+ setSidenavListeners();
1178
+ setUserDropdownListener();
1179
+ renderChart();
1180
+ setMenuClickListener();
1181
+ setSidenavCloseListener();
1182
+ });
1183
+
1184
+ // Set constants and grab needed elements
1185
+ const sidenavEl = $('.sidenav');
1186
+ const gridEl = $('.grid');
1187
+ const SIDENAV_ACTIVE_CLASS = 'sidenav--active';
1188
+ const GRID_NO_SCROLL_CLASS = 'grid--noscroll';
1189
+
1190
+ function toggleClass(el, className) {
1191
+ if (el.hasClass(className)) {
1192
+ el.removeClass(className);
1193
+ } else {
1194
+ el.addClass(className);
1195
+ }
1196
+ }
1197
+
1198
+ // User avatar dropdown functionality
1199
+ function setUserDropdownListener() {
1200
+ const userAvatar = $('.header__avatar');
1201
+
1202
+ userAvatar.on('click', function (e) {
1203
+ const dropdown = $(this).children('.dropdown');
1204
+ toggleClass(dropdown, 'dropdown--active');
1205
+ });
1206
+ }
1207
+
1208
+ // Sidenav list sliding functionality
1209
+ function setSidenavListeners() {
1210
+ const subHeadings = $('.navList__subheading');console.log('subHeadings: ', subHeadings);
1211
+ const SUBHEADING_OPEN_CLASS = 'navList__subheading--open';
1212
+ const SUBLIST_HIDDEN_CLASS = 'subList--hidden';
1213
+
1214
+ subHeadings.each((i, subHeadingEl) => {
1215
+ $(subHeadingEl).on('click', e => {
1216
+ const subListEl = $(subHeadingEl).siblings();
1217
+
1218
+ // Add/remove selected styles to list category heading
1219
+ if (subHeadingEl) {
1220
+ toggleClass($(subHeadingEl), SUBHEADING_OPEN_CLASS);
1221
+ }
1222
 
1223
+ // Reveal/hide the sublist
1224
+ if (subListEl && subListEl.length === 1) {
1225
+ toggleClass($(subListEl), SUBLIST_HIDDEN_CLASS);
1226
+ }
1227
+ });
1228
+ });
1229
+ }
1230
+
1231
+ // Draw the chart
1232
+ function renderChart() {
1233
+ const chart = AmCharts.makeChart("chartdiv", {
1234
+ "type": "serial",
1235
+ "theme": "light",
1236
+ "dataProvider": [{
1237
+ "month": "Jan",
1238
+ "visits": 2025 },
1239
+ {
1240
+ "month": "Feb",
1241
+ "visits": 1882 },
1242
+ {
1243
+ "month": "Mar",
1244
+ "visits": 1809 },
1245
+ {
1246
+ "month": "Apr",
1247
+ "visits": 1322 },
1248
+ {
1249
+ "month": "May",
1250
+ "visits": 1122 },
1251
+ {
1252
+ "month": "Jun",
1253
+ "visits": 1114 },
1254
+ {
1255
+ "month": "Jul",
1256
+ "visits": 984 },
1257
+ {
1258
+ "month": "Aug",
1259
+ "visits": 711 },
1260
+ {
1261
+ "month": "Sept",
1262
+ "visits": 665 },
1263
+ {
1264
+ "month": "Oct",
1265
+ "visits": 580 }],
1266
+
1267
+ "valueAxes": [{
1268
+ "gridColor": "#FFFFFF",
1269
+ "gridAlpha": 0.2,
1270
+ "dashLength": 0 }],
1271
+
1272
+ "gridAboveGraphs": true,
1273
+ "startDuration": 1,
1274
+ "graphs": [{
1275
+ "balloonText": "[[category]]: <b>[[value]]</b>",
1276
+ "fillAlphas": 0.8,
1277
+ "lineAlpha": 0.2,
1278
+ "type": "column",
1279
+ "valueField": "visits" }],
1280
+
1281
+ "chartCursor": {
1282
+ "categoryBalloonEnabled": false,
1283
+ "cursorAlpha": 0,
1284
+ "zoomable": false },
1285
+
1286
+ "categoryField": "month",
1287
+ "categoryAxis": {
1288
+ "gridPosition": "start",
1289
+ "gridAlpha": 0,
1290
+ "tickPosition": "start",
1291
+ "tickLength": 20 },
1292
+
1293
+ "export": {
1294
+ "enabled": false } });
1295
+
1296
+
1297
+ }
1298
+
1299
+ function toggleClass(el, className) {
1300
+ if (el.hasClass(className)) {
1301
+ el.removeClass(className);
1302
+ } else {
1303
+ el.addClass(className);
1304
+ }
1305
+ }
1306
+
1307
+ // If user opens the menu and then expands the viewport from mobile size without closing the menu,
1308
+ // make sure scrolling is enabled again and that sidenav active class is removed
1309
+ function addResizeListeners() {
1310
+ $(window).resize(function (e) {
1311
+ const width = window.innerWidth;console.log('width: ', width);
1312
+
1313
+ if (width > 750) {
1314
+ sidenavEl.removeClass(SIDENAV_ACTIVE_CLASS);
1315
+ gridEl.removeClass(GRID_NO_SCROLL_CLASS);
1316
+ }
1317
+ });
1318
+ }
1319
+
1320
+ // Menu open sidenav icon, shown only on mobile
1321
+ function setMenuClickListener() {
1322
+ $('.header__menu').on('click', function (e) {console.log('clicked menu icon');
1323
+ toggleClass(sidenavEl, SIDENAV_ACTIVE_CLASS);
1324
+ toggleClass(gridEl, GRID_NO_SCROLL_CLASS);
1325
+ });
1326
+ }
1327
+
1328
+ // Sidenav close icon
1329
+ function setSidenavCloseListener() {
1330
+ $('.sidenav__brand-close').on('click', function (e) {
1331
+ toggleClass(sidenavEl, SIDENAV_ACTIVE_CLASS);
1332
+ toggleClass(gridEl, GRID_NO_SCROLL_CLASS);
1333
+ });
1334
+ }
1335
+ //# sourceURL=pen.js
1336
+ </script>
1337
+
1338
+
1339
+ </body>
1340
+
1341
+ </html>