-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
271 lines (260 loc) · 9.22 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
<!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" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l"
crossorigin="anonymous"
/>
<script
src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"
integrity="sha384-eMNCOe7tC1doHpGoWe/6oMVemdAVTMs2xqW4mwXrXsW0L84Iytr2wi5v2QjrP/xp"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-cn7l7gDp0eyniUwwAZgrzD06kc/tftFf19TOAs2zVinnD/C7E91j9yyk5//jjpt/"
crossorigin="anonymous"
></script>
<script src="https://use.fontawesome.com/0383fc1297.js"></script>
<!-- send grid js -->
<script
type="text/javascript"
src="https://cdn.jsdelivr.net/npm/@emailjs/browser@3/dist/email.min.js"
></script>
<script type="text/javascript">
(function () {
emailjs.init("user_EWWgEFGK35cKvi32GQSDa");
})();
</script>
<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=Poppins:ital,wght@1,500&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="css/style.css" />
<title>Game</title>
</head>
<body>
<!-- welcome -->
<section class="welcome-box" id="welcome">
<div class="container">
<div class="row">
<div class="col-lg-12">
<h1 class="main-header welcome text-capitalize text-center">
About Africa
</h1>
<ul>
<li class="text">
This game tests your knowledge (and also teaches you) about
Africa.
</li>
<li class="text">Please relax and enjoy the game.</li>
<li class="text">Ensure you learn while having fun.</li>
</ul>
<div class="btns d-flex justify-content-around col-md-12 col-sm-12">
<button class="btn btn-primary btn-lg start">Start Game</button>
<button class="btn btn-secondary btn-lg contact ml-3">
Contact Me
</button>
</div>
</div>
</div>
</div>
</section>
<!-- Info Box -->
<section class="info-box d-none" id="info-box">
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<h1 class="main-header info">Rules of the quiz</h1>
<div class="info-list">
<p class="info">
1. You have <span> 60 seconds </span>to answer 20 questions.
</p>
<p class="info">
2. Once you have selected your answer, it can't be undone.
</p>
<p class="info">
3. You can't select any option once your time is up.
</p>
<p class="info">
4. You can exit from the quiz (but please don't 😉).
</p>
<p class="info">
5. You'll get points on the basis of your correct answers.
</p>
<p class="info">6. Ensure you have fun and learn. Good Luck 😊</p>
</div>
<div class="btns d-flex justify-content-around col-md-12 col-sm-12">
<button class="btn btn-primary continue ml-3">Continue</button>
<a href="#welcome" class="exit-quiz btn btn-danger mr-5">
Exit quiz</a
>
</div>
</div>
</div>
</div>
</section>
<!-- start game -->
<section class="start-box d-none">
<!-- just something to start the game -->
</section>
<!-- quiz Box -->
<section class="quiz-box d-none">
<header>
<h4 class="title text-uppercase text-center">About Africa</h4>
<div class="timer row">
<div class="timer-text">You have :</div>
<div class="timer-sec">0</div>
</div>
</header>
<section>
<div class="que-text col-md-12 pb-4"></div>
<div class="option-list">
<div class="option">
<!-- <span> Lorem</span>
<div class="icon tick"> <i class="fa fa-check"></i></div> -->
</div>
<div class="option">
<!-- <span> Ipsum </span>
<div class="icon cross"> <i class="fa fa-times"></i></div> -->
</div>
<div class="option"></div>
<div class="option"></div>
</div>
<p class="score-display d-none">
You have <span class="score"></span> points
</p>
</section>
<!-- Quiz Box Footer -->
<footer>
<div class="total-que row">
<div class="d-flex">
<span class="curr-que-num pr-2"></span>
<span class="total-que-num"></span>
</div>
</div>
<div class="btns d-flex justify-content-around col-md-12 col-sm-12">
<button class="next btn btn-primary">Next ➔</button>
<a href="#welcome" class="quit-quiz btn btn-danger"> Quit quiz</a>
</div>
</footer>
</section>
<!-- Contact Box -->
<section class="contact-box mt-3 d-none">
<div class="container">
<div class="row">
<div class="text-area">
<h2>
Please drop a message and I will get back to you as soon as
possible.
</h2>
<form id="contact-form">
<div class="mb-3">
<label for="userNameInput" class="form-label"
>Name<span class="asteriks">*</span>
</label>
<input
type="text"
class="form-control"
placeholder="Enter details"
id="userNameInput"
required
/>
</div>
<div class="mb-3">
<label for="userEmail" class="form-label"
>Email Address<span class="asteriks">*</span></label
>
<input
type="email"
class="form-control"
placeholder="Enter details"
id="userEmail"
required
/>
</div>
<!-- Message input -->
<div class="form-outline mb-4 msg-area">
<label class="form-label" for="messageArea"
>Message<span class="asteriks">*</span></label
>
<textarea
class="form-control"
id="messageArea"
rows="5"
placeholder="Type message..."
required
></textarea>
</div>
<div class="btns">
<button
type="submit"
class="btn btn-success"
onclick="sendEmail()"
>
Send Message
</button>
<a href="#info-box" class="back-to-quiz btn btn-primary">
Back to quiz</a
>
</div>
</form>
</div>
<div class="socials">
<p>
You can send also reach out to me on my social media platforms.
Looking forward to connecting with you.
</p>
<div class="d-flex">
<a
href="https://twitter.com/Rem_dev22?t=iGkHQywSS5v2ROOH6k3-pg&s=08"
class="twitter"
><i class="fa fa-twitter"></i
></a>
<a
href="https://www.linkedin.com/in/remilekun-odegbami"
class="linkedin"
><i class="fa fa-linkedin"></i
></a>
<a href="https://github.com/Remilekun-Odegbami" class="youtube"
><i class="fa fa-github"></i
></a>
<a href="mailto:[email protected]" class="mail"
><i class="fa fa-envelope"></i
></a>
</div>
</div>
</div>
</div>
</section>
<!-- Result Box -->
<section class="result-box d-none">
<div class="icon">
<i class="fa fa-handshake-o"></i>
</div>
<div class="col-lg-12 col-md-12 col-sm-12">
<h1 class="complete-text">
Congratulations, you have completed the quiz.
</h1>
</div>
<div class="col-lg-12 col-md-12 col-sm-12">
<p class="score-text"></p>
<!-- <span> Sorry, you got only <p> 2</p> out of <p>10 questions. </p></span> -->
</div>
<div class="btns col-lg-12 col-md-12 col-sm-12">
<button class="restart btn btn-primary">Play again</button>
<button class="contact2 btn btn-secondary" id="contact">
Contact Me
</button>
</div>
</section>
<script src="app.js"></script>
</body>
</html>