-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
188 lines (185 loc) · 5.87 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
<!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>Multi-step form component</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<section>
<div class="wrapper">
<div class="card-container">
<div class="steps-container">
<ul>
<li class="step">
<span class="step-number">1</span>
<div class="step-container">
<span>STEP 1</span>
<span id="step-name">YOUR INFO</span>
</div>
</li>
<li class="step">
<span class="step-number">2</span>
<div class="step-container">
<span>STEP 2</span>
<span id="step-name">SELECT PLAN</span>
</div>
</li>
<li class="step">
<span class="step-number">3</span>
<div class="step-container">
<span>STEP 3</span>
<span id="step-name">ADD-ONS</span>
</div>
</li>
<li class="step">
<span class="step-number">4</span>
<div class="step-container">
<span>STEP 4</span>
<span id="step-name">SUMMARY</span>
</div>
</li>
</ul>
</div>
<div class="form-container">
<!-- * Titles -->
<h1 id="form-title"></h1>
<span id="form-description">
</span>
<form id="multiStepForm">
<!-- * Step 1 -->
<div class="form-wrapper">
<div class="personal-data">
<label for="name">Name</label>
<!-- required -->
<input
type=""
name="name"
placeholder="e.g. Stephen King"
id="nameField"
/>
<label for="email">Email Address</label>
<!-- required -->
<input
type="text"
name="email"
placeholder="e.g. stephenking@lorem.com"
id="emailField"
/>
<label for="phone">Phone Number</label>
<!-- required -->
<input
type="number"
name="phone"
placeholder="e.g. +1 234 567 890"
id="phoneField"
/>
</div>
<!-- * Step 1 finished -->
<!-- * frequency section -->
<div class="frequency-step">
<div class="frequency-container">
<div class="package-container" data-coreSubs="arcade" data-active="false">
<img src="./assets/images/icon-arcade.svg" alt=":(" />
<span id="service">Arcade</span>
<span id="service-cost">$9/mo</span>
</div>
<div class="package-container" data-coreSubs="advanced" data-active="false">
<img src="./assets/images/icon-advanced.svg" alt=":(" />
<span id="service">Advanced</span>
<span id="service-cost">$12/mo</span>
</div>
<div class="package-container" data-coreSubs="pro" data-active="false">
<img src="./assets/images/icon-pro.svg" alt=":(" />
<span id="service">Pro</span>
<span id="service-cost">$15/mo</span>
</div>
</div>
<div>
<span>Montly</span>
<input id="toggle-switch" type="checkbox" value="monthly" title="input"/>
<span>Yearly</span>
</div>
</div>
<!-- * frequency section -->
<div class="add-on-step">
<div class="add-on">
<input type="checkbox" class="addOnInput" title="input"/>
<div class="addon-description">
<span>Online Service</span>
<span>Access to multiplayer games</span>
</div>
<span id="addOnCost" data-addon="onlineService">+$1/mo</span>
</div>
<div class="add-on">
<input type="checkbox" class="addOnInput" title="input"/>
<div class="addon-description">
<span>Larger storage</span>
<span>Extra 1TB of cloud save</span>
</div>
<span id="addOnCost" data-addon="largerStorage">+$2/mo</span>
</div>
<div class="add-on">
<input type="checkbox" class="addOnInput" title="input"/>
<div class="addon-description">
<span>Customizable profile</span>
<span>Custom theme on your profile</span>
</div>
<!-- TODO: Remove after fix -->
<span id="addOnCost" data-addon="customProfile">+$10/mo</span>
</div>
</div>
<!-- * Frequency section finish -->
<!-- * TOTAL -->
<div class="finish-step">
<div class="resume">
<div>
<div>
<span id="resume-core"> Arcade (Monthly) </span>
<span id="resume-back"> Change </span>
</div>
<div id="core-price">$9/mo</div>
</div>
<div id="addOnServices">
</div>
</div>
<div class="total-container">
<span>Total (per month)</span>
<span id="total">+/$12mo</span>
</div>
</div>
<!-- * TOTAL -->
<!-- * THANKS -->
<div class="thank-you">
<img src="./assets/images/icon-thank-you.svg" alt="" />
<div>Thanks you!</div>
<div>
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.
</div>
</div>
<!-- * THANKS -->
<!-- * final button clear purple => class="confirm-btn" -->
<div id="mobileBackground">
<button id="next" value="1" type="submit">Next Step</button>
<button id="back" value="back" type="button">Go back</button>
</div>
</form>
</div>
</div>
</div>
</section>
<footer class="attribution">
Coded by <a href="https://github.com/SartHak-0-Sach" target="_blank">Sarthak Sachdev</a>.
</footer>
<script src="./index.js" type="module"></script>
</body>
</html>