-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
284 lines (278 loc) · 11.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/png" sizes="32x32" href="./assets/images/favicon-32x32.png" />
<title>Frontend Mentor | Multi-step form</title>
<link rel="stylesheet" href="./css/app.css" />
<script src="./js/app.js" defer></script>
<!-- https://www.tiktok.com/@iitss.july/video/7225367910498323738 -->
</head>
<body>
<div class="container">
<div class="step__list">
<div class="step__item">
<button class="step__button">1</button>
<p class="step__description">
<span>STEP 1</span>
<strong>Your info</strong>
</p>
</div>
<div class="step__item">
<button class="step__button">2</button>
<p class="step__description">
<span>Step 2</span>
<strong>Select plan</strong>
</p>
</div>
<div class="step__item">
<button class="step__button">3</button>
<p class="step__description">
<span>STEP 3</span>
<strong>Add-ons</strong>
</p>
</div>
<div class="step__item">
<button class="step__button">4</button>
<p class="step__description">
<span>STEP 4</span>
<strong>Summary</strong>
</p>
</div>
</div>
<div class="card">
<div class="card__body">
<div class="card__content" id="slider-steps">
<div class="step__content">
<h1 class="card__title">Personal Info</h1>
<p class="card__text">Please provide your name, email address, and phone number.</p>
<form class="form" id="form-personal" autocomplete="off">
<div class="form__group">
<label for="name" class="label__text">Name</label>
<input
type="text"
id="name"
name="name"
class="form__control"
placeholder="e.g. Stephen King"
pattern="^[a-zA-Z\s]+$"
/>
</div>
<div class="form__group">
<label for="email_address" class="label__text">Email Address</label>
<input
type="email"
inputmode="email"
id="email_address"
name="email_address"
class="form__control"
placeholder="e.g. stephenking@lorem.com"
pattern="[a-zA-Z0-9_\-]+@[a-zA-Z0-9_\-]+.[a-zA-Z]{2,}$"
/>
</div>
<div class="form__group">
<label for="phone_number" class="label__text">Phone Number</label>
<input
type="text"
id="phone_number"
name="phone_number"
class="form__control"
placeholder="e.g. +1 234 567 890"
inputmode="numeric"
pattern="^\+?[0-9]{2}\s?[0-9?\s]{9,11}"
/>
</div>
</form>
</div>
<div class="step__content">
<h1 class="card__title">Select your plan</h1>
<p class="card__text">You have the option of monthly or yearly billing.</p>
<form action="" id="plan" class="form select__your__plan">
<div class="form__group">
<label for="arcade" class="label__option">
<figure class="option__figure">
<img src="./assets/images/icon-arcade.svg" width="40px" class="option__img" />
</figure>
<div class="option__content">
<span>Arcade</span>
<span>
$<span class="plan_amount">9</span>/<span class="abbr_period">mo</span>
</span>
<span></span>
</div>
</label>
<input
type="radio"
class="input__checkbox"
name="plan"
value="arcade"
id="arcade"
/>
</div>
<div class="form__group">
<label for="advanced" class="label__option">
<figure class="option__figure">
<img
src="./assets/images/icon-advanced.svg"
width="40px"
class="option__img"
/>
</figure>
<div class="option__content">
<span>Advanced</span>
<span>
$<span class="plan_amount">12</span>/<span class="abbr_period">mo</span>
</span>
<span></span>
</div>
</label>
<input
type="radio"
class="input__checkbox"
name="plan"
value="advanced"
id="advanced"
/>
</div>
<div class="form__group">
<label for="pro" class="label__option">
<figure class="option__figure">
<img src="./assets/images/icon-pro.svg" width="40px" class="option__img" />
</figure>
<div class="option__content">
<span>Pro</span>
<span>
$<span class="plan_amount">15</span>/<span class="abbr_period">mo</span>
</span>
<span></span>
</div>
</label>
<input type="radio" class="input__checkbox" name="plan" value="pro" id="pro" />
</div>
<div class="form__group">
<div class="period">
<span>Monthly</span>
<div class="switch__option">
<label for="period" class="switch"></label>
<input type="checkbox" id="period" name="period" class="input__checkbox" />
</div>
<span>Yearly</span>
</div>
</div>
</form>
</div>
<div class="step__content">
<h1 class="card__title">Pick add-ons</h1>
<p class="card__text">Add-ons help enhance your gaming experience.</p>
<form action="" id="pick-add-ons" class="form pick_add_ons">
<div class="form__group">
<input
type="checkbox"
class="input__checkbox"
name="add_ons"
value="online_service"
id="online_service"
/>
<label for="online_service" class="label__checkbox">
<div class="check_container"></div>
<div class="checkbox__content">
<span>Online service</span>
<span>Access to multiplayer games</span>
</div>
<span>
+$<span class="plan_amount">1</span>/<span class="abbr_period">mo</span>
</span>
</label>
</div>
<div class="form__group">
<input
type="checkbox"
class="input__checkbox"
name="add_ons"
value="larger_storage"
id="larger_storage"
/>
<label for="larger_storage" class="label__checkbox">
<div class="check_container"></div>
<div class="checkbox__content">
<span>Larger storage</span>
<span>Extra 1TB of cloud save</span>
</div>
<span>
+$<span class="plan_amount">2</span>/<span class="abbr_period">mo</span>
</span>
</label>
</div>
<div class="form__group">
<input
type="checkbox"
class="input__checkbox"
name="add_ons"
value="customizable_profile"
id="customizable_profile"
/>
<label for="customizable_profile" class="label__checkbox">
<div class="check_container"></div>
<div class="checkbox__content">
<span>Customizable Profile</span>
<span>Custom theme on your profile</span>
</div>
<span>
+$<span class="plan_amount">2</span>/<span class="abbr_period">mo</span>
</span>
</label>
</div>
</form>
</div>
<div class="step__content">
<h1 class="card__title">Finishing up</h1>
<p class="card__text">Double-check everything looks OK before confirming.</p>
<div class="description">
<div class="description__list">
<div class="description__item">
<div class="title">
<p>
<span id="plan-name" style="text-transform: capitalize">Arcade</span>
(<span id="plan-period">Mounthly</span>)
</p>
<a href="javascript:;" id="change-plan">Change</a>
</div>
<div class="price">
$/<span id="plan-price">9</span> <span class="abbr_period">mo</span>
</div>
</div>
<div id="list-items"></div>
</div>
<div class="description__price">
<p>Total</p>
<span>$<span id="total-amount">0</span>/<span class="abbr_period">mo</span></span>
</div>
</div>
</div>
<div class="step__content">
<section class="thank__you">
<div class="card__text">
<figure>
<img src="./assets/images/icon-thank-you.svg" alt="" />
</figure>
<h3>Thank you!</h3>
<p>
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@loremgaming.com.
</p>
</div>
</section>
</div>
</div>
</div>
</div>
<div class="footer__buttons">
<button class="button button__back">Go Back</button>
<button class="button button__next" disabled>Next Step</button>
<button class="button button__confirm">Confirm</button>
</div>
</div>
</body>
</html>