forked from Manasvi070902/hacktoberfest2021
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProduct-Survey-Form.html
400 lines (376 loc) · 10.2 KB
/
Product-Survey-Form.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Product Survey Form</title>
<style>
:root {
--color-white: #f3f3f3;
--color-darkblue: #1b1b32;
--color-darkblue-alpha: rgba(27, 27, 50, 0.8);
--color-green: #37af65;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
body {
font-family: "Poppins", sans-serif;
font-size: 1rem;
font-weight: 400;
line-height: 1.4;
color: var(--color-white);
margin: 0;
}
body::before {
content: "";
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: -1;
background: var(--color-darkblue);
background-image: linear-gradient(
115deg,
rgba(58, 58, 158, 0.8),
rgba(136, 136, 206, 0.7)
),
url(https://cdn.pixabay.com/photo/2016/11/19/15/32/laptop-1839876__340.jpg);
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
h1 {
font-weight: 400;
line-height: 1.2;
}
p {
font-size: 1.125rem;
}
h1,
p {
margin-top: 0;
margin-bottom: 0.5rem;
}
label {
display: flex;
align-items: center;
font-size: 1.125rem;
margin-bottom: 0.5rem;
}
input,
button,
select,
textarea {
margin: 0;
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
button {
border: none;
}
.container {
width: 100%;
margin: 3.125rem auto 0 auto;
}
@media (min-width: 576px) {
.container {
max-width: 540px;
}
}
@media (min-width: 768px) {
.container {
max-width: 720px;
}
}
.header {
padding: 0 0.625rem;
margin-bottom: 1.875rem;
}
.description {
font-style: italic;
font-weight: 200;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}
.clue {
margin-left: 0.25rem;
font-size: 0.9rem;
color: #e4e4e4;
}
.text-center {
text-align: center;
}
form {
background: var(--color-darkblue-alpha);
padding: 2.5rem 0.625rem;
border-radius: 0.25rem;
}
@media (min-width: 480px) {
form {
padding: 2.5rem;
}
}
.form-group {
margin: 0 auto 1.25rem auto;
padding: 0.25rem;
}
.form-control {
display: block;
width: 100%;
height: 2.375rem;
padding: 0.375rem 0.75rem;
color: #495057;
background-color: #fff;
background-clip: padding-box;
border: 1px solid #ced4da;
border-radius: 0.25rem;
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-control:focus {
border-color: #80bdff;
outline: 0;
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.input-radio,
.input-checkbox {
display: inline-block;
margin-right: 0.625rem;
min-height: 1.25rem;
min-width: 1.25rem;
}
.input-textarea {
min-height: 120px;
width: 100%;
padding: 0.625rem;
resize: vertical;
}
.submit-button {
display: block;
width: 100%;
padding: 0.75rem;
background: var(--color-green);
color: inherit;
border-radius: 2px;
cursor: pointer;
}
</style>
</head>
<body translate="no">
<div class="container">
<header class="header">
<h1 id="title" class="text-center">Product Survey Form</h1>
<p id="description" class="description text-center">
Thank you for taking the time to help us improve the quality of our
products
</p>
</header>
<form id="survey-form">
<div class="form-group">
<label id="name-label" for="name">Full Name</label>
<input
type="text"
name="name"
id="name"
class="form-control"
placeholder="Enter your full name"
required=""
/>
</div>
<div class="form-group">
<label id="email-label" for="email">Email</label>
<input
type="email"
name="email"
id="email"
class="form-control"
placeholder="Enter your valid Email"
required=""
/>
</div>
<div class="form-group">
<label id="number-label" for="number"
>Age<span class="clue">(optional)</span></label
>
<input
type="number"
name="age"
id="number"
min="10"
max="99"
class="form-control"
placeholder="Age"
/>
</div>
<div class="form-group">
<p>Which option best describes the quality of our products?</p>
<select id="dropdown" name="role" class="form-control" required="">
<option disabled="" selected="" value="">
Select current quality
</option>
<option value="best">Best</option>
<option value="good">Good</option>
<option value="average">Average</option>
<option value="wrost">Wrost</option>
<option value="veryBad">Very Bad</option>
</select>
</div>
<div class="form-group">
<p>Would you recommend our products to your friends?</p>
<label>
<input
name="user-recommend"
value="definitely-sure"
type="radio"
class="input-radio"
checked=""
/>Definitely sure</label
>
<label>
<input
name="user-recommend"
value="maybe"
type="radio"
class="input-radio"
/>Maybe</label
>
<label
><input
name="user-recommend"
value="not-sure"
type="radio"
class="input-radio"
/>Not sure</label
>
</div>
<div class="form-group">
<p>What is your favorite opinion towards our products?</p>
<select
id="most-like"
name="mostLike"
class="form-control"
required=""
>
<option disabled="" selected="" value="">Select an option</option>
<option value="bestQuality">Best Qualities</option>
<option value="brandSelection">Brand Selection</option>
<option value="price">Best Prices</option>
<option value="offer">Best Offers</option>
</select>
</div>
<div class="form-group">
<p>
What would you like to see improved?
<span class="clue">(Check all that apply)</span>
</p>
<label
><input
name="prefer"
value="moreQualities"
type="checkbox"
class="input-checkbox"
/>More Quality Tags</label
>
<label>
<input
name="prefer"
value="brandSelection"
type="checkbox"
class="input-checkbox"
/>More Brand Selections</label
>
<label
><input
name="prefer"
value="customer-support"
type="checkbox"
class="input-checkbox"
/>Customer Support</label
>
<label
><input
name="prefer"
value="delieveryCriteria"
type="checkbox"
class="input-checkbox"
/>Multiple Options for Delievery</label
>
<label
><input
name="prefer"
value="payment-option"
type="checkbox"
class="input-checkbox"
/>More Payment Options</label
>
<label
><input
name="prefer"
value="offers"
type="checkbox"
class="input-checkbox"
/>More Offers and Sales</label
>
<label
><input
name="prefer"
value="free-products"
type="checkbox"
class="input-checkbox"
/>Buy Some Get Some Offers</label
>
<label
><input
name="prefer"
value="delievery-areas"
type="checkbox"
class="input-checkbox"
/>Delievery for EveryOne</label
>
<label
><input
name="prefer"
value="description"
type="checkbox"
class="input-checkbox"
/>More description of products</label
>
<label
><input
name="prefer"
value="warrenty"
type="checkbox"
class="input-checkbox"
/>Warrenty</label
>
<label
><input
name="prefer"
value="replacement-policies"
type="checkbox"
class="input-checkbox"
/>Replacement Policies</label
>
</div>
<div class="form-group">
<p>Any comments or suggestions for improvements of our products?</p>
<textarea
id="comments"
class="input-textarea"
name="comment"
placeholder="Enter your comment or suggestion here..."
></textarea>
</div>
<div class="form-group">
<button type="submit" id="submit" class="submit-button">
Submit
</button>
</div>
</form>
</div>
</body>
</html>