-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
558 lines (524 loc) · 21.1 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
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
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Multi Step Form</title>
<link rel="stylesheet" href="src/css/output.css" />
<script src="src/js/script.js" defer></script>
</head>
<body
class="text-base font-ubuntu min-h-screen text-white bg-lightGray sm:flex sm:items-center sm:justify-center"
>
<!-- MAIN SECTION -->
<main
class="container flex flex-col rounded-lg h-screen sm:h-auto sm:bg-white sm:p-4 xl:w-[68rem] sm:flex-row"
>
<!-- STEPS SIDEBAR -->
<aside
class="flex items-start bg-cover bg-no-repeat p-8 bg-sidebar-mobile h-44 w-full sm:bg-sidebar-desktop sm:w-auto sm:h-[40rem] sm:rounded-lg sm:p-10 justify-center"
>
<!-- STEPS LIST -->
<ul
class="flex gap-4 mb-16 sm:m-0 sm:flex-col sm:w-56 sm:gap-8"
id="stepsList"
>
<!-- STEPS ITEM 1 -->
<li
class="step-item-active sm:flex sm:gap-4 items-center"
data-step="1"
>
<div
class="font-bold w-9 h-9 bg-transparent border rounded-full flex items-center justify-center"
>
1
</div>
<div class="hidden sm:flex flex-col uppercase">
<small class="text-coolGray text-sm h-4">Step 1</small
><span class="font-bold tracking-widest"> Your info</span>
</div>
</li>
<!-- STEPS ITEM 2 -->
<li class="sm:flex sm:gap-4 items-center" data-step="2">
<div
class="font-bold w-9 h-9 bg-transparent border rounded-full flex items-center justify-center"
>
2
</div>
<div class="hidden sm:flex flex-col uppercase">
<small class="text-coolGray text-sm h-4">Step 2</small
><span class="font-bold tracking-widest"> Select plan </span>
</div>
</li>
<!-- STEPS ITEM 3 -->
<li class="sm:flex sm:gap-4 items-center" data-step="3">
<div
class="font-bold w-9 h-9 bg-transparent border rounded-full flex items-center justify-center"
>
3
</div>
<div class="hidden sm:flex flex-col uppercase">
<small class="text-coolGray text-sm h-4">Step 3</small
><span class="font-bold tracking-widest"> Add-ons</span>
</div>
</li>
<!-- STEPS ITEM 4 -->
<li class="sm:flex sm:gap-4 items-center" data-step="4">
<div
class="font-bold w-9 h-9 bg-transparent border rounded-full flex items-center justify-center"
>
4
</div>
<div class="hidden sm:flex flex-col uppercase">
<small class="text-coolGray text-sm h-4">Step 4</small
><span class="font-bold tracking-widest">Summary</span>
</div>
</li>
</ul>
</aside>
<!-- STEP 1 FORM -->
<section
data-step="1"
class=" -mt-[5rem] flex flex-col h-full sm:h-auto justify-between top-20 sm:-mt-0 sm:w-full sm:py-2 sm:px-6 md:py-4 md:px-8 lg:px-20 lg:py-10 xl:px-[7.8rem] xl:py-12"
>
<!-- HEADIING & FORM -->
<section class="bg-white rounded-lg px-6 py-7 m-[.9rem] sm:m-0 sm:p-0">
<!-- HEADING -->
<h3
class="font-bold text-2xl text-marineBlue mb-2 md:text-3xl lg:text-4xl"
>
Personal info
</h3>
<p class="text-coolGray text-[1.05rem] lg:text-lg">
Please provide your name, email address, and phone number.
</p>
<!-- FORM -->
<form
action=""
class="mt-5 flex flex-col gap-3 text-coolGray md:gap-5 md:mt-7 sm:mt-6 lg:gap-6 lg:mt-8"
id="form"
>
<!-- INPUT GROUP -->
<div>
<!-- INFO -->
<span class="text-sm xl:text-base flex justify-between">
<!-- LABEL -->
<label class="text-marineBlue" for="name">Name</label>
<!-- ERROR MESSAGE -->
<span class="text-strawberryRed font-bold"> </span>
</span>
<!-- INPUT -->
<input
class="border-[1px] border-lightGray rounded text-marineBlue w-full py-2 px-3 placeholder:font-bold font-bold lg:mt-1 lg:px-4 lg:py-3 lg:rounded-lg"
id="name"
type="text"
placeholder="e.g. Stephen King"
/>
</div>
<!-- INPUT GROUP -->
<div>
<!-- INFO -->
<span class="text-sm xl:text-base flex justify-between">
<!-- LABEL -->
<label class="text-marineBlue" for="email">Email Address</label>
<!-- ERROR MESSAGE -->
<span class="text-strawberryRed font-bold"></span>
</span>
<!-- INPUT -->
<input
class="border-[1px] border-lightGray text-marineBlue rounded w-full py-2 px-3 placeholder:font-bold font-bold lg:mt-1 lg:px-4 lg:py-3 lg:rounded-lg"
id="email"
type="email"
placeholder="e.g. [email protected]"
/>
</div>
<!-- INPUT GROUP -->
<div>
<!-- INFO -->
<span class="text-sm xl:text-base flex justify-between">
<!-- LABEL -->
<label class="text-marineBlue" for="phoneNumber"
>Phone Number</label
>
<!-- ERROR MESSAGE -->
<span class="text-strawberryRed font-bold"></span>
</span>
<!-- INPUT -->
<input
id="phoneNumber"
type="text"
placeholder="e.g. +1 234 567 890"
class="border-[1px] border-lightGray text-marineBlue rounded w-full py-2 px-3 placeholder:font-bold font-bold lg:mt-1 lg:px-4 lg:py-3 lg:rounded-lg"
/>
</div>
</form>
</section>
<!-- BUTTONS -->
<div
class="bg-white p-4 flex justify-end w-full text-sm lg:text-xl sm:w-auto sm:p-0"
>
<button
class="bg-marineBlue hover:opacity-90 px-4 py-3 rounded sm:px-4 lg:px-6 lg:rounded-lg"
type="submit"
id="submitFormBtn"
>
Next Step
</button>
</div>
</section>
<!-- STEP 2 FORM -->
<section
data-step="2"
class="hidden -mt-[5rem] flex flex-col justify-between h-full sm:h-auto sm:-mt-0 sm:w-full sm:py-2 sm:px-6 md:py-4 md:px-8 lg:px-28 lg:py-10 xl:px-[7.8rem] xl:py-12"
>
<!-- HEADING AND PLANS-->
<section class="bg-white rounded-lg px-6 py-7 m-[.9rem] sm:m-0 sm:p-0">
<!-- HEADING -->
<h3
class="font-bold text-2xl text-marineBlue mb-2 md:text-3xl lg:text-4xl"
>
Select your plan
</h3>
<p class="text-coolGray text-[1.03rem] lg:text-lg">
You have the option of monthly or yearly billing.
</p>
<!-- PLANS AND MONTHLY OF YEARLY BUTTON-->
<div class="flex flex-col gap-6 mt-5 lg:mt-10 lg:gap-11">
<!-- PLANS -->
<ul class="flex flex-col gap-3 lg:flex-row lg:gap-5" id="planList">
<!-- PLAN -->
<li
class="border-[1px] text-marineBlue flex p-4 items-start gap-3 rounded-lg border-lightGray hover:border-marineBlue lg:flex-col lg:gap-10 lg:flex-grow cursor-pointer lg:justify-between plan-item-active"
data-type="arcade"
>
<!-- ICON -->
<img src="src/images/icon-arcade.svg" alt="arcde-icon" />
<!-- INFO -->
<div class="flex flex-col plan-info">
<!-- NAME -->
<span class="font-bold">Arcade</span>
<!-- PRICE -->
<span class="text-coolGray plan-price-info">$90/yr</span>
<!-- HOW MUCH FREE -->
<span class="text-[.8rem]">2 months free</span>
</div>
</li>
<!-- PLAN -->
<li
class="border-[1px] text-marineBlue flex p-4 items-start gap-3 rounded-lg border-lightGray hover:border-marineBlue lg:flex-col lg:gap-10 lg:flex-grow cursor-pointer lg:justify-between"
data-type="advanced"
>
<!-- ICON -->
<img src="src/images/icon-advanced.svg" alt="arcde-icon" />
<!-- INFO -->
<div class="flex flex-col plan-info">
<!-- NAME -->
<span class="font-bold">Advanced</span>
<!-- PRICE -->
<span class="text-coolGray plan-price-info">$120/yr</span>
<!-- HOW MUCH FREE -->
<span class="text-[.8rem]">2 months free</span>
</div>
</li>
<!-- PLAN -->
<li
class="border-[1px] text-marineBlue flex p-4 items-start gap-3 rounded-lg border-lightGray hover:border-marineBlue lg:flex-col lg:gap-10 lg:flex-grow cursor-pointer lg:justify-between"
data-type="pro"
>
<!-- ICON -->
<img src="src/images/icon-pro.svg" alt="arcde-icon" />
<!-- INFO -->
<div class="flex flex-col plan-info">
<!-- NAME -->
<span class="font-bold"> Pro </span>
<!-- PRICE -->
<span class="text-coolGray plan-price-info">$150/yr</span>
<!-- HOW MUCH FREE -->
<span class="text-[.8rem]">2 months free</span>
</div>
</li>
</ul>
<!-- MONTHLY OR YEARLY BUTTON -->
<div
class="flex text-coolGray bg-magnolia p-2 justify-center gap-6 text-lg font-bold items-center rounded-md"
>
<small class="term-option">Monthly</small>
<!-- TRIGER -->
<span
class="w-[2.3rem] h-5 rounded-full flex justify-center items-center bg-marineBlue cursor-pointer"
id="toggleTermBtn"
>
<!-- CIRCLE -->
<span
class="bg-white size-[.765rem] rounded-full translate-y-[-.01rem] yearly-side transition-all"
id="circle"
></span>
</span>
<small class="term-option text-marineBlue">Yearly</small>
</div>
</div>
</section>
<!-- BUTTONS -->
<div
class="bg-white p-4 flex justify-between w-full text-sm lg:text-xl sm:w-auto sm:p-0"
>
<button
class="text-coolGray font-bold hover:text-marineBlue go-back-btn"
>
Go Back
</button>
<button
class="bg-marineBlue hover:opacity-90 px-4 py-3 rounded sm:px-4 lg:px-6 lg:rounded-lg"
type="submit"
id="planNextStepBtn"
>
Next Step
</button>
</div>
</section>
<!-- STEP 3 FORM -->
<section
data-step="3"
class="hidden -mt-[5rem] flex flex-col justify-between h-full sm:h-auto sm:-mt-0 sm:w-full sm:py-2 sm:px-6 md:py-4 md:px-8 lg:px-28 lg:py-10 xl:px-[7.8rem] xl:py-12"
>
<!-- HEADING AND ONS-->
<section class="bg-white rounded-lg px-6 py-7 m-[.9rem] sm:m-0 sm:p-0">
<!-- HEADING -->
<h3
class="font-bold text-2xl text-marineBlue mb-2 md:text-3xl lg:text-4xl"
>
Pick add-ons
</h3>
<p class="text-coolGray text-[1.03rem] lg:text-lg">
Add-ons help enhance your gaming experience.
</p>
<ul class="flex flex-col gap-3 mt-5 lg:mt-10 lg:gap-4" id="addOnsList">
<li
class="border-[1px] border-lightGray rounded-lg flex p-3 gap-3 items-center lg:p-5 lg:gap-6 cursor-pointer "
data-type="onlineService"
>
<!-- CHECKBOX -->
<label>
<!-- INPUT -->
<input
type="checkbox"
class="opacity-0 w-0 h-0 absolute cursor-pointer peer"
/>
<!-- CHECKMARK -->
<span
class="size-6 border-[1px] border-lightGray block rounded-md flex items-center justify-center peer-checked:bg-purplishBlue peer-checked:after:block after:w-[.35rem] after:h-[.7rem] after:border-r-2 after:border-b-2 after:rotate-45 after:-translate-y-[1.5px] after:-translate-x-[.5px]"
></span>
</label>
<!-- INFO -->
<div>
<span class="font-bold text-marineBlue text-sm lg:text-lg">
Online service</span
>
<p
class="text-coolGray text-[.775rem] -mt-1 leading-5 lg:text-base lg:mt-0"
>
Access to multiplayer games
</p>
</div>
<!-- PRICE PER YEAR -->
<span
class="text-purplishBlue text-[.775rem] leading-5 ml-auto lg:text-base add-ons-price-info "
>+$10/yr</span
>
</li>
<li
class="border-[1px] border-lightGray rounded-lg flex p-3 gap-3 items-center lg:p-5 lg:gap-6 cursor-pointer "
data-type="largerStorage"
>
<!-- CHECKBOX -->
<label>
<!-- INPUT -->
<input
type="checkbox"
class="opacity-0 w-0 h-0 absolute cursor-pointer peer"
/>
<!-- CHECKMARK -->
<span
class="size-6 border-[1px] border-lightGray block rounded-md flex items-center justify-center peer-checked:bg-purplishBlue peer-checked:after:block after:w-[.35rem] after:h-[.7rem] after:border-r-2 after:border-b-2 after:rotate-45 after:-translate-y-[1.5px] after:-translate-x-[.5px]"
></span>
</label>
<!-- INFO -->
<div>
<span class="font-bold text-marineBlue text-sm lg:text-lg">
Larger storage</span
>
<p
class="text-coolGray text-[.775rem] -mt-1 leading-5 lg:text-base lg:mt-0"
>
Extra 1TB of cloud save
</p>
</div>
<!-- PRICE PER YEAR -->
<span
class="text-purplishBlue text-[.775rem] leading-5 ml-auto lg:text-base add-ons-price-info"
>+$20/yr</span
>
</li>
<li
class="border-[1px] border-lightGray rounded-lg flex p-3 gap-3 items-center lg:p-5 lg:gap-6 cursor-pointer"
data-type="customizableProfile"
>
<!-- CHECKBOX -->
<label>
<!-- INPUT -->
<input
type="checkbox"
class="opacity-0 w-0 h-0 absolute cursor-pointer peer"
/>
<!-- CHECKMARK -->
<span
class="size-6 border-[1px] border-lightGray block rounded-md flex items-center justify-center peer-checked:bg-purplishBlue peer-checked:after:block after:w-[.35rem] after:h-[.7rem] after:border-r-2 after:border-b-2 after:rotate-45 after:-translate-y-[1.5px] after:-translate-x-[.5px]"
></span>
</label>
<!-- INFO -->
<div>
<span class="font-bold text-marineBlue text-sm lg:text-lg">
Customizable Profile</span
>
<p
class="text-coolGray text-[.775rem] -mt-1 leading-5 lg:text-base lg:mt-0"
>
Custom theme on your profile
</p>
</div>
<!-- PRICE PER YEAR -->
<span
class="text-purplishBlue text-[.775rem] leading-5 ml-auto lg:text-base add-ons-price-info"
>+$20/yr</span
>
</li>
</ul>
</section>
<!-- BUTTONS -->
<div
class="bg-white p-4 flex justify-between w-full text-sm lg:text-xl sm:w-auto sm:p-0"
>
<button
class="text-coolGray hover:text-marineBlue font-bold go-back-btn"
>
Go Back
</button>
<button
class="bg-marineBlue hover:opacity-90 px-4 py-3 rounded sm:px-4 lg:px-6 lg:rounded-lg"
type="submit"
id="addOnsNextStepBtn"
>
Next Step
</button>
</div>
</section>
<!-- STEP 4 FORM -->
<section
data-step="4"
class="hidden -mt-[5rem] flex flex-col justify-between h-full sm:h-auto sm:-mt-0 sm:w-full sm:py-2 sm:px-6 md:py-4 md:px-8 lg:px-28 lg:py-10 xl:px-[7.8rem] xl:py-12"
>
<!-- HEADING AND ONS-->
<section class="bg-white rounded-lg px-6 py-7 m-[.9rem] sm:m-0 sm:p-0">
<!-- HEADING -->
<h3
class="font-bold text-2xl text-marineBlue mb-2 md:text-3xl lg:text-4xl"
>
Finishing up
</h3>
<p class="text-coolGray text-[1.03rem] lg:text-lg">
Double-check everything looks OK before confirming.
</p>
<!-- PRICE OF CHOSEN OPTIONS -->
<div class="mt-5 text-sm flex flex-col gap-6 lg:mt-10 lg:text-base">
<div class="bg-alabaster p-5 rounded-lg flex flex-col gap-3">
<!-- CHOSEN PLAN -->
<div
class="text-marineBlue font-bold flex justify-between items-center border-b-[1px] pb-3 border-b-lightGray lg:pb-6"
>
<span class="flex flex-col">
<span id="finalPlanName">Arcade(Yearly)</span>
<a
href="#"
class="underline text-coolGray font-light lg:text-sm"
id="changeBtn"
>Change</a
>
</span>
<!-- PRICE -->
<span id="finalPlanPrice">$90/yr</span>
</div>
<!-- CHOSEN ADD-ONS -->
<ul class="text-coolGray flex flex-col gap-3" id="finalAddOnsList">
<li class="flex justify-between">
<!-- NAME -->
<span>Online Service</span>
<!-- PRICE -->
<span class="text-marineBlue">+$10/yr</span>
</li>
<li class="flex justify-between">
<!-- NAME -->
<span>Larger Storage</span>
<!-- PRICE -->
<span class="text-marineBlue">+$20/yr</span>
</li>
</ul>
</div>
<!-- TOTAL -->
<div class="px-5 flex justify-between">
<span class="text-coolGray" id="finalTotalInfo">Total (per year)</span>
<!-- TOTAL PRICE -->
<span class="text-purplishBlue font-bold text-base lg:text-xl" id="finalTotalPrice"
>$120/yr</span
>
</div>
</div>
</section>
<!-- BUTTONS -->
<div
class="bg-white p-4 flex justify-between w-full text-sm lg:text-xl sm:w-auto sm:p-0"
>
<button
class="text-coolGray hover:text-marineBlue font-bold go-back-btn"
>
Go Back
</button>
<button
class="bg-purplishBlue hover:opacity-90 px-4 py-3 rounded sm:px-4 lg:px-6 lg:rounded-lg"
type="submit"
id="confirmBtn"
>
Confirm
</button>
</div>
</section>
<!-- THANK YOU SECTION -->
<section
data-step="5"
class="hidden -mt-[5rem] flex flex-col justify-between h-full sm:h-auto sm:-mt-0 sm:w-full sm:py-2 sm:px-6 md:py-4 md:px-8 lg:px-28 lg:py-10 xl:px-[7.8rem] xl:py-12 sm:justify-center"
>
<!-- HEADING AND ONS-->
<section
class="bg-white rounded-lg px-5 py-20 py-7 m-[.9rem] sm:m-0 sm:p-0 text-center flex flex-col items-center"
>
<!-- THANK YOU ICON -->
<img
src="src/images/icon-thank-you.svg"
alt="tick logo"
class="mb-6 w-14 md:w-20 md:mb-8"
/>
<!-- THANK YOU HEADING -->
<h3
class="font-bold text-2xl text-marineBlue mb-2 md:text-3xl lg:text-4xl"
>
Thank you!
</h3>
<p class="text-coolGray text-[1.03rem] lg:text-lg">
Thanks for confirming your subscription! We hope you have fun using
our platform. If you ever need support, please feel free to email us
</p>
</section>
</section>
</main>
</body>
</html>