-
Notifications
You must be signed in to change notification settings - Fork 0
/
testview.html
419 lines (355 loc) · 10.7 KB
/
testview.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
<!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>Test</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/boxicons@latest/css/boxicons.min.css">
<style>
:root {
--heading: rgb(0 10 45);
--para: #777777;
--para-tint: #e4e4e4;
--third: #fff;
--helper: #8490ff;
--helper-tint: #f3f4ff;
--bg: rgb(249 249 255);
--gradient: linear-gradient(0deg, rgb(132 144 255) 0%, rgb(98 189 252) 100%);
--shadpw: 0px 0px 20px 0px rgb(132 144 255 / 20%);
}
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap");
:root {
--header-height: 3rem;
--nav-width: 68px;
--first-color: #4723D9;
--first-color-light: #AFA5D9;
--white-color: #F7F6FB;
--body-font: 'Nunito', sans-serif;
--normal-font-size: 1rem;
--z-fixed: 100
}
*,
::before,
::after {
box-sizing: border-box
}
body {
position: relative;
margin: var(--header-height) 0 0 0;
padding: 0 1rem;
font-family: var(--body-font);
font-size: var(--normal-font-size);
transition: .5s
}
a {
text-decoration: none
}
.header {
width: 100%;
height: var(--header-height);
position: fixed;
top: 0;
left: 0;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 1rem;
background-color: var(--first-color);
z-index: var(--z-fixed);
transition: .5s
}
.header_toggle {
color: white;
font-size: 2.5rem;
cursor: pointer;
}
.header_img {
width: 35px;
height: 35px;
display: flex;
justify-content: center;
border-radius: 50%;
overflow: hidden
}
.header_img img {
width: 40px
}
.l-navbar {
position: fixed;
top: 0;
left: -30%;
width: var(--nav-width);
height: 100%;
background-color: var(--first-color);
padding: .5rem 1rem 0 0;
transition: .5s;
z-index: var(--z-fixed)
}
.nav {
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
overflow: hidden
}
.nav_logo,
.nav_link {
display: grid;
grid-template-columns: max-content max-content;
align-items: center;
column-gap: 1rem;
padding: .5rem 0 .5rem 1.5rem
}
.nav_logo {
margin-bottom: 2rem
}
.nav_logo-icon {
font-size: 1.25rem;
color: var(--white-color)
}
.nav_logo-name {
color: var(--white-color);
font-weight: 700
}
.nav_link {
position: relative;
color: white;
margin-bottom: 1rem;
transition: .3s
}
.nav_link:hover {
color: white
}
.nav_icon {
font-size: 1.25rem
}
.show {
left: 0
}
.body-pd {
padding-left: calc(var(--nav-width) + 1rem)
}
.active {
color: var(--white-color)
}
.active::before {
content: '';
position: absolute;
left: 0;
width: 2px;
height: 32px;
background-color: var(--white-color)
}
.height-100 {
height: 100vh
}
@media screen and (min-width: 768px) {
body {
margin: calc(var(--header-height) + 1rem) 0 0 0;
padding-left: calc(var(--nav-width) + 2rem)
}
.header {
height: calc(var(--header-height) + 1rem);
padding: 0 2rem 0 calc(var(--nav-width) + 2rem)
}
.header_img {
width: 40px;
height: 40px
}
.header_img img {
width: 45px
}
.l-navbar {
left: 0;
padding: 1rem 1rem 0 0
}
.show {
width: calc(var(--nav-width) + 156px)
}
.body-pd {
padding-left: calc(var(--nav-width) + 188px)
}
}
.navbar-item {
list-style: none;
font-size: 1.5rem;
padding: 13px 2px 0px 2px;
text-transform: capitalize;
color: white;
}
.navbar-link {
color: white;
}
.hero_heading {
font-size: 4rem;
color: black;
font-weight: 600;
padding-top: 2rem;
}
.common-heading {
font-size: 2.8rem;
font-weight: 700;
margin-bottom: 6rem;
margin-top: 6rem;
margin-left: 3rem;
text-transform: capitalize;
position: relative;
padding-top: 2rem;
}
.common-heading {
margin: 0;
color: black;
text-decoration: none;
}
.grid-two-col {
grid-template-columns: repeat(2, 1fr);
}
.grid-three-col {
grid-template-columns: repeat(3, 1fr);
margin-top: 2rem;
}
.grid {
display: grid;
gap: 1rem;
text-align: center;
border-radius: 16px;
box-shadow: var(--shadpw);
padding: 20px 20px;
margin-top: 10px;
}
.btn {
background: -webkit-linear-gradient(0deg,
rgb(132 144 255) 0%,
rgb(98 189 252) 100%);
max-width: 90%;
padding: 1.6rem 5.2rem;
border: none;
color: rgb(255 255 255);
display: inline-block;
font-size: 0.8rem;
text-transform: uppercase;
font-weight: 500;
position: relative;
-webkit-transition: all 0.3s ease 0s;
-moz-transition: all 0.3s ease 0s;
-o-transition: all 0.3s ease 0s;
transition: all 0.3s ease 0s;
cursor: pointer;
position: relative;
}
@media screen and (max-width: 989px) {
.grid-two-col{
grid-template-columns: repeat(1,1fr);
}
}
</style>
</head>
<body id="body-pd">
<header class="header" id="header">
<div class="header_toggle"> <i class='bx bx-menu' id="header-toggle"></i> </div>
</header>
<div class="l-navbar" id="nav-bar">
<nav class="nav">
<div> <a href="#" class="nav_logo"> <i class='bx bx-layer nav_logo-icon'></i> <span
class="nav_logo-name">EDUCAD</span> </a>
<div class="nav_list"> <a href="welcome.php" class="nav_link active"> <i class='bx bx-grid-alt nav_icon'></i>
<span class="nav_name">Dashboard</span> </a> <a href="video.html" class="nav_link">
<i class="fa-solid fa-video"></i><span class="nav_name">Video</span>
</a> <a href="question.html" class="nav_link"> <i class='bx bx-message-square-detail nav_icon'></i> <span
class="nav_name">Questions</span> </a> <a href="testview.html" class="nav_link">
<!-- <i class='bx bx-bookmark nav_icon'></i> -->
<i class="fa-solid fa-newspaper"></i> <span class="nav_name">Tests</span>
</a>
<a href="note.html" class="nav_link">
<i class="fa-regular fa-envelope-open-text"></i><span class="nav_name">Create your Notes</span>
</a>
<a href="doubt.php" class="nav_link">
<!-- <i class='bx bx-folder nav_icon'></i> -->
<i class="fa-solid fa-circle-question"></i></i><span class="nav_name">Doubts</span>
</a> <a href="stat.html" class="nav_link">
<i class='bx bx-bar-chart-alt-2 nav_icon'></i>
<span class="nav_name">Performance</span> </a>
<a href="todo.html" class="nav_link">
<i class="fa-solid fa-circle-check"></i><span class="nav_name">To-Do list</span>
</a>
</div>
</div> <a href="logout.php" class="nav_link"> <i class='bx bx-log-out nav_icon'></i> <span
class="nav_name">SignOut</span> </a>
</nav>
</div>
<h1 class="common-heading">Test Papers</h1>
<div class="grid grid-two-col">
<div>
<h2>Science</h2>
<div class="grid">
<div class="bio-data-btn">
<a href="test.html" class="btn"> Test paper 1 </a>
</div>
<div class="bio-data-btn">
<a href="test.html" class="btn"> Test paper 2 </a>
</div>
<div class="bio-data-btn">
<a href="test.html" class="btn"> Test paper 3 </a>
</div>
<div class="bio-data-btn">
<a href="test.html" class="btn"> Test paper 4</a>
</div>
</div>
</div>
<div>
<h2>Maths</h2>
<div class="grid">
<div class="bio-data-btn">
<a href="test.html" class="btn"> Test paper 1</a>
</div>
<div class="bio-data-btn">
<a href="test.html" class="btn"> Test paper 2 </a>
</div>
<div class="bio-data-btn">
<a href="test.html" class="btn"> Test paper 3 </a>
</div>
<div class="bio-data-btn">
<a href="test.html" class="btn"> Test paper 4 </a>
</div>
</div>
</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function (event) {
const showNavbar = (toggleId, navId, bodyId, headerId) => {
const toggle = document.getElementById(toggleId),
nav = document.getElementById(navId),
bodypd = document.getElementById(bodyId),
headerpd = document.getElementById(headerId)
// Validate that all variables exist
if (toggle && nav && bodypd && headerpd) {
toggle.addEventListener('click', () => {
// show navbar
nav.classList.toggle('show')
// change icon
toggle.classList.toggle('bx-x')
// add padding to body
bodypd.classList.toggle('body-pd')
// add padding to header
headerpd.classList.toggle('body-pd')
})
}
}
showNavbar('header-toggle', 'nav-bar', 'body-pd', 'header')
const linkColor = document.querySelectorAll('.nav_link')
function colorLink() {
if (linkColor) {
linkColor.forEach(l => l.classList.remove('active'))
this.classList.add('active')
}
}
linkColor.forEach(l => l.addEventListener('click', colorLink))
});
</script>
<script src="https://kit.fontawesome.com/8df4627fa1.js" crossorigin="anonymous"></script>
<script src=" https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src=" https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>