-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
283 lines (279 loc) · 10.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Frontend Mentor | Multi-step form" />
<!-- ---------- -->
<!-- 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=Ubuntu:wght@400;500;700&display=swap"
rel="stylesheet" />
<!-- ----------- -->
<!-- FAVICON -->
<!-- ----------- -->
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./assets/images/favicon-32x32.png" />
<!-- ----------- -->
<!-- STYLE CSS -->
<!-- ----------- -->
<link rel="stylesheet" href="./style.css" />
<!-- -------- -->
<!-- SCRIPT -->
<!-- -------- -->
<script defer src="./script.js"></script>
<!-- ---------- -->
<!-- TITLE -->
<!-- ---------- -->
<title>Multi-step form</title>
</head>
<body>
<main class="main">
<!-- ----------------- -->
<!-- WRAPPER -->
<!-- ----------------- -->
<div class="step__container">
<!-- -------------- -->
<!-- SIDEBAR -->
<!-- -------------- -->
<div class="sidebar">
<div class="step__indecater">
<div class="indecater__num">1</div>
<div class="indecater__text">
<p class="subtitle">STEP1</p>
<p class="mini__title">Your Info</p>
</div>
</div>
<div class="step__indecater">
<div class="indecater__num 2">2</div>
<div class="indecater__text">
<p class="subtitle">STEP2</p>
<p class="mini__title">Select plan</p>
</div>
</div>
<div class="step__indecater">
<div class="indecater__num 3">3</div>
<div class="indecater__text">
<p class="subtitle">STEP3</p>
<p class="mini__title">Add-ons</p>
</div>
</div>
<div class="step__indecater">
<div class="indecater__num 4">4</div>
<div class="indecater__text">
<p class="subtitle">STEP4</p>
<p class="mini__title">Summary</p>
</div>
</div>
</div>
<!-- form steps container -->
<div class="steps__container">
<!-- step1 -->
<form class="step" id="form">
<h3 class="main__title">Personal info</h3>
<p class="description">
Please provide your name, email address, and phone number.
</p>
<ul class="list">
<li class="list__item">
<div class="input__labe">
<p class="label">Name</p>
<p class="warning"></p>
</div>
<input
type="text"
name="userName"
class="input"
placeholder="e.g. Stephen King"
required />
</li>
<li class="list__item">
<div class="input__labe">
<p class="label">Email Address</p>
<p class="warning"></p>
</div>
<input
type="email"
name="email"
class="input"
placeholder="e.g. stephenking@lorem.com"
required />
</li>
<li class="list__item">
<div class="input__labe">
<p class="label">Phone Number</p>
<p class="warning"></p>
</div>
<input
type="number"
name="phone"
class="input"
placeholder="e.g. +1 234 567 890"
required />
</li>
</ul>
</form>
<!-- STEP 2 -->
<div class="step" id="step-2">
<h3 class="main__title">Select your plan</h3>
<p class="description">
You have the option of monthly or yearly billing.
</p>
<div class="plan__card_container" id="plan-cards">
<div class="plan__card card">
<div class="card__img">
<img src="./assets/images/icon-arcade.svg" alt="arcade" />
</div>
<div class="plan__price">
<p class="card__name" id="arcade">Arcade</p>
<p class="card__price">
$<span class="sbscription__price">00</span>/<span
class="sbscription__duration"
>xx</span
>
</p>
<p class="yearly__benefit">2 months free</p>
</div>
</div>
<div class="plan__card card">
<div class="card__img">
<img src="./assets/images/icon-advanced.svg" alt="arcade" />
</div>
<div class="plan__price">
<p class="card__name" id="advance">Advance</p>
<p class="card__price">
$<span class="sbscription__price">00</span>/<span
class="sbscription__duration"
>xx</span
>
</p>
<p class="yearly__benefit">2 months free</p>
</div>
</div>
<div class="plan__card card">
<div class="card__img">
<img src="./assets/images/icon-pro.svg" alt="arcade" />
</div>
<div class="plan__price">
<p class="card__name" id="pro">Pro</p>
<p class="card__price">
$<span class="sbscription__price">00</span>/<span
class="sbscription__duration"
>xx</span
>
</p>
<p class="yearly__benefit">2 months free</p>
</div>
</div>
</div>
<p id="select-plan-error"></p>
<div class="toggle__container">
<!-- "selected__plan" by default selected palan in monthly -->
<p class="monthly__plan selected__plan" id="monthly">Monthly</p>
<div class="toggle">
<div class="toggle__circle" id="toggle"></div>
</div>
<p class="yearly__plan" id="yearly">Yearly</p>
</div>
</div>
<!-- STEP 3 -->
<div class="step" id="step-3">
<h3 class="main__title">Pick add-ons</h3>
<p class="description">
Add-ons help enhance your gaming experience.
</p>
<div class="addson__card_container">
<div class="addon__card card">
<input type="checkbox" name="checkbox" id="" class="checkbox" />
<div class="card__text">
<p class="card__name">Online service</p>
<p class="card__description">Access to multiplayer games</p>
</div>
<p class="card__price">
+$<span class="sbscription__price">00</span>/<span
class="sbscription__duration"
>xx</span
>
</p>
</div>
<div class="addon__card card">
<input type="checkbox" name="checkbox" id="" class="checkbox" />
<div class="card__text">
<p class="card__name">Larger storage</p>
<p class="card__description">Extra 1TB of cloud save</p>
</div>
<p class="card__price">
+$<span class="sbscription__price">00</span>/<span
class="sbscription__duration"
>xx</span
>
</p>
</div>
<div class="addon__card card">
<input type="checkbox" name="checkbox" id="" class="checkbox" />
<div class="card__text">
<p class="card__name">Customizable Profile</p>
<p class="card__description">Custom theme on your profile</p>
</div>
<p class="card__price">
+$<span class="sbscription__price">00</span>/<span
class="sbscription__duration"
>xx</span
>
</p>
</div>
</div>
</div>
<!-- STEP 4 -->
<div class="step" id="step-4">
<h3 class="main__title">Finishing up</h3>
<p class="description">
Double-check everything looks OK before confirming.
</p>
<div class="finishingup__card_container card">
<div class="selected__plan_container">
<div class="" id="selected-plan"><!-- selected plan --></div>
<button class="change__plan" id="change-plan">change</button>
</div>
<ul id="selected-addon">
<!-- selected adds-on -->
</ul>
</div>
<div class="total" id="total">
<!-- total amount -->
</div>
</div>
<!-- last step | thank you -->
<div class="step last__step" id="thank-you">
<div class="final__img">
<img src="./assets/images/icon-thank-you.svg" alt="" />
</div>
<h3 class="main__title">Thank you!</h3>
<p class="description">
Thanks for confirming your subscription! We hope you have fun
using our platform. If you ever need support, please feel free to
email us at support@sbgaming.com.
</p>
</div>
<!-- -------------- -->
<!-- BUTTON -->
<!-- -------------- -->
<div class="button__container">
<button class="button prev__button" id="prev-button">
Go Back
</button>
<button type="submit" class="button next__button" id="next-button">
Next Step
</button>
</div>
</div>
</div>
</main>
</body>
</html>