-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
265 lines (238 loc) · 14 KB
/
index.html
File metadata and controls
265 lines (238 loc) · 14 KB
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
<!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 -->
<link rel="icon" type="image/png" sizes="32x32" href="./assets/images/favicon-32x32.png">
<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">
<title>Frontend Mentor | Multi-step form</title>
<link rel="stylesheet" href="style.css">
<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
</head>
<body>
<div class="background-wrapper">
<main class="main-wrapper">
<nav class="sidebar">
<div class="sidebar-gap flex-group">
<span class="number-list active">1</span>
<div class="step-list">
<span>Step 1</span>
<p>Your info</p>
</div>
</div>
<div class="sidebar-gap flex-group">
<span class="number-list">2</span>
<div class="step-list">
<span>Step 2</span>
<p>Select plan</p>
</div>
</div>
<div class="sidebar-gap flex-group">
<span class="number-list">3</span>
<div class="step-list">
<span>Step 3</span>
<p>Add-ons</p>
</div>
</div>
<div class="sidebar-gap flex-group">
<span class="number-list">4</span>
<div class="step-list">
<span>Step 4</span>
<p>Summary</p>
</div>
</div>
</nav>
<div class="content-wrapper">
<!-- every step has title && description so we can use JS dynamically change its content -->
<section>
<div class="main__title-wrapper">
<h1 class="title">Personal info</h1>
<p class="description">Please provide your name, email address, and phone number.</p>
</div>
<!-- content goes from here -->
<div class="main__content">
<!-- TODO:use classes to show/hide your content -->
<!-- step 1 -->
<div class="content-details" id="personal-info" data-page="1">
<div>
<label for="name" class="flex-group">
<h3>Name</h3>
<span class="error-message" id="name-error" aria-label="required">This field is required</span>
</label>
<input type="text" id="name" name="username" placeholder="e.g. Stephen King" required />
</div>
<div>
<label for="mail" class="flex-group">
<h3>Email Address</h3>
<span class="error-message" id="mail-error" aria-label="required">This field is required</span>
</label>
<!-- TODOL email validation -->
<input type="email" id="mail" name="usermail" placeholder="e.g. stephenking@lorem.com" required />
</div>
<div>
<label for="phone" class="flex-group">
<h3>Phone Number</h3>
<span class="error-message" id="phone-error" aria-label="required">This field is required</span>
</label>
<input type="tel" id="phone" name="phone" placeholder="e.g. +1 234 567 890" required />
</div>
</div>
<!-- step 2 -->
<div class="content-details" id="select-plan" data-page="2">
<div class="plan-options-wrapper">
<label class="plan-options" for="arcade">
<input type="radio" name="plan-options" value="arcade" id="arcade">
<div class="plan-descriptions">
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><g fill="none" fill-rule="evenodd"><circle cx="20" cy="20" r="20" fill="#FFAF7E"/><path fill="#FFF" fill-rule="nonzero" d="M24.995 18.005h-3.998v5.998h-2v-5.998H15a1 1 0 0 0-1 1V29a1 1 0 0 0 1 1h9.995a1 1 0 0 0 1-1v-9.995a1 1 0 0 0-1-1Zm-5.997 8.996h-2v-1.999h2v2Zm2-11.175a2.999 2.999 0 1 0-2 0v2.18h2v-2.18Z"/></g></svg>
<div>
<h3 class="plan-name">Arcade</h3>
<span class="arcade-price plan-price">$9</span><span>/</span><span class="plan-unit">mo</span>
<p class="annual-fee-promotion">2 months free</p>
</div>
</div>
</input>
</label>
<label class="plan-options" for="advanced">
<input type="radio" name="plan-options" value="advanced" id="advanced">
<div class="plan-descriptions">
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><g fill="none" fill-rule="evenodd"><circle cx="20" cy="20" r="20" fill="#F9818E"/><path fill="#FFF" fill-rule="nonzero" d="M25.057 15H14.944C12.212 15 10 17.03 10 19.885c0 2.857 2.212 4.936 4.944 4.936h10.113c2.733 0 4.943-2.08 4.943-4.936S27.79 15 25.057 15ZM17.5 20.388c0 .12-.108.237-.234.237h-1.552v1.569c0 .126-.138.217-.259.217H14.5c-.118 0-.213-.086-.213-.203v-1.583h-1.569c-.126 0-.217-.139-.217-.26v-.956c0-.117.086-.213.202-.213h1.584v-1.554c0-.125.082-.231.203-.231h.989c.12 0 .236.108.236.234v1.551h1.555c.125 0 .231.083.231.204v.988Zm5.347.393a.862.862 0 0 1-.869-.855c0-.472.39-.856.869-.856.481 0 .87.384.87.856 0 .471-.389.855-.87.855Zm1.9 1.866a.86.86 0 0 1-.87-.852.86.86 0 0 1 .87-.855c.48 0 .87.38.87.855a.86.86 0 0 1-.87.852Zm0-3.736a.862.862 0 0 1-.87-.854c0-.472.39-.856.87-.856s.87.384.87.856a.862.862 0 0 1-.87.854Zm1.899 1.87a.862.862 0 0 1-.868-.855c0-.472.389-.856.868-.856s.868.384.868.856a.862.862 0 0 1-.868.855Z"/></g></svg>
<div>
<h3 class="plan-name">Advanced</h3>
<span class="advanced-price plan-price">$12</span><span>/</span><span class="plan-unit">mo</span>
<p class="annual-fee-promotion">2 months free</p>
</div>
</div>
</input>
</label>
<label class="plan-options" for="pro">
<input type="radio" name="plan-options" value="pro" id="pro">
<div class="plan-descriptions">
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><g fill="none" fill-rule="evenodd"><circle cx="20" cy="20" r="20" fill="#483EFF"/><path fill="#FFF" fill-rule="nonzero" d="M26.666 13H13.334A3.333 3.333 0 0 0 10 16.333v7.193a3.447 3.447 0 0 0 2.14 3.24c1.238.5 2.656.182 3.56-.8L18.52 23h2.96l2.82 2.966a3.2 3.2 0 0 0 3.56.8 3.447 3.447 0 0 0 2.14-3.24v-7.193A3.333 3.333 0 0 0 26.666 13Zm-9.333 6H16v1.333a.667.667 0 0 1-1.333 0V19h-1.333a.667.667 0 0 1 0-1.334h1.333v-1.333a.667.667 0 1 1 1.333 0v1.333h1.333a.667.667 0 1 1 0 1.334Zm7.333 2a2.667 2.667 0 1 1 0-5.333 2.667 2.667 0 0 1 0 5.333ZM26 18.333a1.333 1.333 0 1 1-2.667 0 1.333 1.333 0 0 1 2.667 0Z"/></g></svg>
<div>
<h3 class="plan-name">Pro</h3>
<span class="pro-price plan-price">$15</span><span>/</span><span class="plan-unit">mo</span>
<p class="annual-fee-promotion">2 months free</p>
</div>
</div>
</input>
</label>
</div>
<div class="toggle-appearance-wrapper">
<span>Monthly</span>
<input type="checkbox" id="toggle">
<label class="toggle-appearance" for="toggle"></label>
<span>Yearly</span>
</div>
</div>
</div>
<!-- step 3 -->
<div class="content-details" id="add-ons" data-page="3">
<div class="checkbox-button">
<input class="add-ons-checkbox" type="checkbox" id="online" value="Online service">
<label for="online" class="flex-group">
<div class="service-description">
<h3>Online service</h3>
<p>Access to multiplayer games</p>
</div>
<div class="online-service price-list">
<span class="online-service-price">+$1</span><span>/</span><span class="plan-unit">mo</span>
</div>
</label>
</div>
<div class="checkbox-button">
<input class="add-ons-checkbox" type="checkbox" id="storage" value="Larger storage">
<label for="storage" class="flex-group">
<div class="service-description">
<h3>Larger storage</h3>
<p>Extra 1TB of cloud save</p>
</div>
<div class="larger-storage price-list">
<span class="larger-storage-price">+$2</span><span>/</span><span class="plan-unit">mo</span>
</div>
</label>
</div>
<div class="checkbox-button">
<input class="add-ons-checkbox" type="checkbox" id="profile" value="Customizable Profile">
<label for="profile" class="flex-group">
<div class="service-description">
<h3>Customizable Profile</h3>
<p>Custom theme on your profile</p>
</div>
<div class="customizable-profile price-list">
<span class="customizable-profile-price">+$2</span><span>/</span><span class="plan-unit">mo</span>
</div>
</label>
</div>
</div>
<!-- step 4 -->
<div class="content-details" id="summary" data-page="4">
<div class="summary-wrapper">
<div class="summary__selection-result">
<div class="summary__membership-selection flex-group">
<div>
<div class="flex-group">
<h3 id="plan-selection__result">plan selection</h3>
<div>
<span>(</span><span id="plan-type__result">Monthly</span><span>)</span>
</div>
</div>
<a href="#" class="change-button">Change</a>
</div>
<div class="summary__price-details membership-price__highlighted">
<span id="summary__plan-price">$9</span><span>/</span><span class="plan-unit">mo</span>
</div>
</div>
<div class="summary__service-selection">
<div class="add-ons__result flex-group">
<p class="add-on-service">add-on items</p>
<div class="summary__price-details flex-group">
<span class="add-on-price">+$1</span><span>/</span><span class="plan-unit">mo</span>
</div>
</div>
<div class="add-ons__result flex-group">
<p class="add-on-service">add-on items</p>
<div class="summary__price-details flex-group">
<span class="add-on-price">+$2</span><span>/</span><span class="plan-unit">mo</span>
</div>
</div>
<div class="add-ons__result flex-group">
<p class="add-on-service">add-on items</p>
<div class="summary__price-details flex-group">
<span class="add-on-price">+$1</span><span>/</span><span class="plan-unit">mo</span>
</div>
</div>
</div>
</div>
<div class="total-result">
<p>Total (<span id="plan-type__total-result">per month</span>)</p>
<div class="total__price-details total-price__hightlighted">
<span class="total-price">+$12</span><span>/</span><span class="plan-unit">mo</span>
</div>
</div>
</div>
</div>
<!-- step 5 -->
<div class="content-details" id="thank-you-page" data-page="5">
<div class="img">
<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80"><g fill="none"><circle cx="40" cy="40" r="40" fill="#F9818E"/><path fill="#E96170" d="M48.464 79.167c.768-.15 1.53-.321 2.288-.515a40.04 40.04 0 0 0 3.794-1.266 40.043 40.043 0 0 0 3.657-1.63 40.046 40.046 0 0 0 12.463-9.898A40.063 40.063 0 0 0 78.3 51.89c.338-1.117.627-2.249.867-3.391L55.374 24.698a21.6 21.6 0 0 0-15.332-6.365 21.629 21.629 0 0 0-15.344 6.365c-8.486 8.489-8.486 22.205 0 30.694l23.766 23.775Z"/><path fill="#FFF" d="M40.003 18.333a21.58 21.58 0 0 1 15.31 6.351c8.471 8.471 8.471 22.158 0 30.63-8.47 8.47-22.156 8.47-30.627 0-8.47-8.472-8.47-22.159 0-30.63a21.594 21.594 0 0 1 15.317-6.35Zm9.865 15c-.316.028-.622.15-.872.344l-12.168 9.13-5.641-5.642c-1.224-1.275-3.63 1.132-2.356 2.356l6.663 6.663c.56.56 1.539.63 2.173.156l13.326-9.995c1.122-.816.43-2.993-.956-3.013a1.666 1.666 0 0 0-.17 0Z"/></g></svg>
</div>
<h1>Thank you!</h1>
<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>
<!-- Buttons go from there -->
<div class="button-group">
<!-- TODO:use classes to show/hide your button -->
<button class="prev-nav disabled">Go Back</button>
<button class="next-nav">Next Step</button>
</div>
</div>
</main>
</div>
<script src="./main.js"></script>
</body>
</html>