-
Notifications
You must be signed in to change notification settings - Fork 0
/
score.html
81 lines (76 loc) · 4.5 KB
/
score.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Quiz Score</title>
<link rel="stylesheet" href="./assets/css/app.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap"
rel="stylesheet">
</head>
<body class="relative w-full min-h-screen max-w-full">
<div class="invisible fixed z-[99] inset-0 bg-text-color opacity-0 transition-opacity ease-in-out duration-500"
id="overlay"></div>
<div class="flex justify-center min-w-screen min-h-screen">
<div class="w-full max-w-full flex flex-col items-center mb-16">
<header class="w-full flex justify-center items-center bg-primary-color py-10 px-4">
<h1 class="text-center font-bold max-w-[420px]">
<p class="text-4xl capitalize text-white" id="greet-text">nice</p>
<span class="text-3xl text-score-bg-color" id="username">johndoe</span>
</h1>
</header>
<main class="flex flex-col justify-center items-center gap-8 w-full max-w-[420px] min-h-auto">
<div class="flex flex-col gap-0 w-full h-full px-4">
<div class="flex justify-center items-center p-8">
<div
class="bg-score-bg-color text-center px-9 py-6 rounded-[16px] shadow-[inset_0_-5px_3px_rgba(31,54,75,0.3)]"
id="scoreboard">
<span class="text-5xl text-primary-color font-bold" id="score-result">0</span>
</div>
</div>
<div class="w-full">
<h2 class="text-text-color font-bold capitalize text-2xl mb-2">Statistik</h2>
<div class="flex justify-center gap-2 flex-wrap w-full">
<div
class="relative flex-1 bg-statistics-bg-color px-7 py-4 rounded-[8px] shadow-[inset_0_-5px_3px_rgba(31,54,75,0.3)]">
<p class="relative z-10 text-center text-5xl font-bold text-text-color mb-1"
id="correct-answer">0</p>
<p
class="relative z-10 text-center text-text-color capitalize font-bold text-lg text-nowrap">
jumlah
benar</p>
<img class="absolute z-1 left-0 bottom-0 opacity-30" src="./assets/img/checkmark.png" alt="">
</div>
<div
class="relative flex-1 bg-statistics-bg-color px-7 py-4 rounded-[8px] shadow-[inset_0_-5px_3px_rgba(31,54,75,0.3)]">
<p class="relative z-10 text-center text-5xl font-bold text-text-color mb-1"
id="wrong-answer">0</p>
<p
class="relative z-10 text-center text-text-color capitalize font-bold text-lg text-nowrap">
jumlah
salah</p>
<img class="absolute z-1 left-0 bottom-0 opacity-30" src="./assets/img/cross.png" alt="">
</div>
</div>
</div>
</div>
<div class="flex flex-col gap-3 w-full px-4">
<button value="home-page"
class="w-full cursor-pointer text-center border border-primary-color py-4 font-bold text-xl rounded-lg bg-primary-color capitalize text-white transition-all ease-in-out duration-200 shadow-[inset_0_-6px_2px_rgba(31,54,75,0.6)] hover:shadow-none hover:bg-opacity-90"
id="home-page-btn">kembali
ke halaman utama</button>
<button value="try-again"
class="w-full cursor-pointer text-center border border-primary-color text-text-color py-4 font-bold text-xl capitalize rounded-lg hover:bg-slate-100"
id="try-again-btn">coba
lagi?</button>
</div>
</main>
</div>
</div>
</div>
<script src="./assets/js/score.js"></script>
</body>
</html>