-
Notifications
You must be signed in to change notification settings - Fork 0
/
quiz.html
420 lines (406 loc) · 14.3 KB
/
quiz.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- displays site properly based on user's device -->
<title>Find Your Perfect Sneakers - Quiz</title>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./images/favicon-32x32.png"
/>
<!-- Google Fonts -->
<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=Kumbh+Sans:[email protected]&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="main.css" />
</head>
<body>
<header class="header">
<div class="header__content-wrapper container">
<div class="header__container">
<button class="header__nav-toggle" aria-label="open navigation">
<span class="hamburger"></span>
</button>
<a class="logo" href="#">
<h2 class="header__logo text-dark">sneakers</h2>
</a>
</div>
<!-- Navigation Bar -->
<nav class="header__nav">
<button
class="header__nav-close text-dark"
aria-label="close navigation"
>
X
</button>
<ul class="header__nav-list">
<li class="header__nav-item">
<a href="men/index.html" class="header__nav-link" target="_blank"
>Men</a
>
</li>
<li class="header__nav-item">
<a
href="women/index.html"
class="header__nav-link"
target="_blank"
>Women</a
>
</li>
<li class="header__nav-item">
<a
href="about/index.html"
class="header__nav-link"
target="_blank"
>About</a
>
</li>
<li class="header__nav-item">
<a
href="contact/index.html"
class="header__nav-link"
target="_blank"
>Contact</a
>
</li>
</ul>
</nav>
<!-- Gray transparent overlay -->
<div class="overlay"></div>
<!-- Cart and User Icons -->
<div class="header__icons">
<!-- Cart Container -->
<div class="cart-container">
<div id="cart-icon" class="cart-icon">
<img
src="images/icon-cart.svg"
alt="Shopping Cart"
class="header__icon header__icon--cart"
/>
<!-- Item count element -->
<div class="item-count" id="item-count">0</div>
</div>
<!-- Cart content -->
<div class="cart-content" id="cart-content" aria-hidden="true">
<div id="empty-cart-message" class="empty-cart-message">
<h2 class="empty-cart-message__heading">Cart</h2>
<br id="cart-br-tag" />
<p class="empty-cart-message__text">Your cart is empty.</p>
</div>
<!-- Cart items-->
<div class="cart-items" id="cart-items">
<!-- Dynamic content for cart items will be added here -->
</div>
<!-- Checkout button -->
<button class="checkout-button" id="checkout-button">
Checkout
</button>
</div>
</div>
<img
src="images/image-avatar.png"
alt="User"
class="header__icon header__icon--user"
/>
</div>
</div>
</header>
<!-- Main Content -->
<main class="main">
<section class="quiz container">
<h2 class="quiz__title text-dark">Find Your Perfect Style</h2>
<p class="quiz__description">
Take our quiz to discover the best sneakers for you!
</p>
<form class="quiz__form">
<!-- Question 1 -->
<div class="quiz__question">
<p class="quiz__label">
Question 1: What is your preferred sneaker style?
</p>
<label for="q1_casual">
<input type="radio" id="q1_casual" name="q1" value="casual" />
Casual </label
><br />
<label for="q1_athletic">
<input type="radio" id="q1_athletic" name="q1" value="athletic" />
Athletic </label
><br />
<label for="q1_formal">
<input type="radio" id="q1_formal" name="q1" value="formal" />
Formal </label
><br />
</div>
<!-- Question 2 -->
<div class="quiz__question">
<p class="quiz__label">
Question 2: What activities do you primarily wear sneakers for?
</p>
<label for="q2_walking">
<input type="radio" id="q2_walking" name="q2" value="walking" />
Walking </label
><br />
<label for="q2_running">
<input type="radio" id="q2_running" name="q2" value="running" />
Running </label
><br />
<label for="q2_gym">
<input type="radio" id="q2_gym" name="q2" value="gym" />
Gym/Workout </label
><br />
<label for="q2_casual">
<input type="radio" id="q2_casual" name="q2" value="casual" />
Casual outings </label
><br />
<label for="q2_work">
<input type="radio" id="q2_work" name="q2" value="work" />
Work/Office </label
><br />
</div>
<!-- Question 3 -->
<div class="quiz__question">
<p class="quiz__label">
Question 3: What colors do you prefer for your sneakers?
</p>
<label for="q3_black">
<input type="radio" id="q3_black" name="q3" value="black" />
Black </label
><br />
<label for="q3_white">
<input type="radio" id="q3_white" name="q3" value="white" />
White </label
><br />
<label for="q3_bright">
<input type="radio" id="q3_bright" name="q3" value="bright" />
Bright colors </label
><br />
<label for="q3_neutral">
<input type="radio" id="q3_neutral" name="q3" value="neutral" />
Neutral tones </label
><br />
<label for="q3_mixed">
<input type="radio" id="q3_mixed" name="q3" value="mixed" /> Mixed
colors </label
><br />
</div>
<!-- Question 4 -->
<div class="quiz__question">
<p class="quiz__label">
Question 4: Which comfort features are most important to you?
</p>
<label for="q4_arch-support">
<input
type="radio"
id="q4_arch-support"
name="q4"
value="arch-support"
/>
Arch support </label
><br />
<label for="q4_cushioning">
<input
type="radio"
id="q4_cushioning"
name="q4"
value="cushioning"
/>
Cushioning </label
><br />
<label for="q4_breathability">
<input
type="radio"
id="q4_breathability"
name="q4"
value="breathability"
/>
Breathability </label
><br />
<label for="q4_lightweight">
<input
type="radio"
id="q4_lightweight"
name="q4"
value="lightweight"
/>
Lightweight </label
><br />
</div>
<!-- Question 5 -->
<div class="quiz__question">
<p class="quiz__label">
Question 5: What material do you prefer for your sneakers?
</p>
<label for="q5_leather">
<input type="radio" id="q5_leather" name="q5" value="leather" />
Leather </label
><br />
<label for="q5_suede">
<input type="radio" id="q5_suede" name="q5" value="suede" />
Suede </label
><br />
<label for="q5_mesh">
<input type="radio" id="q5_mesh" name="q5" value="mesh" />
Mesh </label
><br />
<label for="q5_knit">
<input type="radio" id="q5_knit" name="q5" value="knit" /> Knit
fabric </label
><br />
<label for="q5_synthetic">
<input
type="radio"
id="q5_synthetic"
name="q5"
value="synthetic"
/>
Synthetic </label
><br />
</div>
<!-- Question 6 -->
<div class="quiz__question">
<p class="quiz__label">
Question 6: What is your preferred price range for sneakers?
</p>
<label for="q6_under-50">
<input type="radio" id="q6_under-50" name="q6" value="under-50" />
Under $50 </label
><br />
<label for="q6_50-100">
<input type="radio" id="q6_50-100" name="q6" value="50-100" /> $50
- $100 </label
><br />
<label for="q6_100-150">
<input type="radio" id="q6_100-150" name="q6" value="100-150" />
$100 - $150 </label
><br />
<label for="q6_over-150">
<input type="radio" id="q6_over-150" name="q6" value="over-150" />
Over $150 </label
><br />
</div>
<!-- Submit Button -->
<button type="submit" class="quiz__submit-button">Submit</button>
</form>
</section>
</main>
<footer class="footer">
<div class="footer__container">
<!-- Newsletter and Form Section -->
<div class="footer__column footer__newsletter-wrapper container">
<div class="footer__newsletter">
<h3 class="footer__heading text-dark">Join Our Newsletter</h3>
<p class="footer__paragraph text-dark">
Stay updated with our latest releases, special offers, and more!
</p>
</div>
<form class="footer__form" id="newsletter-form" novalidate>
<label for="email" class="footer__label text-dark"
>Email Address *</label
>
<input
type="email"
id="newsletter-email"
class="footer__input"
placeholder="Your email address"
required
aria-describedby="emailHelp"
/>
<button type="submit" class="footer__button">Subscribe</button>
</form>
<p id="emailHelp" class="footer__help-text text-dark">
We'll never share your email with anyone else.
</p>
<p
id="form-message"
class="footer__message"
aria-live="polite"
style="display: none"
></p>
</div>
<!-- Location, Menu, and Social Media Section -->
<div class="footer__column footer__menu-social">
<!-- Logo -->
<a class="footer__logo" href="#">
<h2 class="footer__logo-text text-dark">sneakers</h2>
</a>
<div class="footer__row">
<!-- Location Section -->
<div class="footer__item col">
<h3 class="footer__heading text-dark">Location</h3>
<p class="footer__paragraph text-dark">
123 Sneaker Street, Cityville, Country
</p>
</div>
<!-- Menu Section -->
<div class="footer__item col">
<h3 class="footer__heading text-dark">Menu</h3>
<nav class="footer__menu">
<ul class="footer__menu-list">
<li class="footer__menu-item">
<a href="men/index.html" class="footer__menu-link text-dark"
>Men</a
>
</li>
<li class="footer__menu-item">
<a
href="women/index.html"
class="footer__menu-link text-dark"
>Women</a
>
</li>
<li class="footer__menu-item">
<a
href="about/index.html"
class="footer__menu-link text-dark"
>About</a
>
</li>
<li class="footer__menu-item">
<a
href="contact/index.html"
class="footer__menu-link text-dark"
>Contact</a
>
</li>
</ul>
</nav>
</div>
<!-- Social Media Section -->
<div class="footer__item col">
<h3 class="footer__heading text-dark">Follow Us</h3>
<ul class="footer__social">
<li>
<a href="#" class="footer__social-link text-dark">Facebook</a>
</li>
<li>
<a href="#" class="footer__social-link text-dark">Twitter</a>
</li>
<li>
<a href="#" class="footer__social-link text-dark"
>Instagram</a
>
</li>
</ul>
</div>
</div>
</div>
<!-- Attribution -->
<div class="attribution text-dark">
Challenge by
<a href="https://www.frontendmentor.io?ref=challenge" target="_blank"
>Frontend Mentor</a
>. Coded by <a href="#">Doina</a>.
</div>
</div>
</footer>
<div class="back-to-top" onclick="scrollToTop()">↑</div>
<script src="js/main.js"></script>
<script src="js/newsletter.js"></script>
</body>
</html>