-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-a-survey-form.txt
362 lines (310 loc) · 7.56 KB
/
build-a-survey-form.txt
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
** start of undefined **
<!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">
<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=Poppins&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<title>Survey Form</title>
</head>
<body>
<div class="container">
<header class="text-center">
<h1 id="title" class="title">freeCodeCamp Survey Form</h1>
<p id="description" class="description">
<em>Thank you for taking the time to help us improve the platform
</em>
</p>
</em>
</header>
<form action="#" id="survey-form" class="form-label">
<div class="form-group">
<label for="name" id="name-label">Name</label>
<input
type="text"
id="name"
class="form-control"
placeholder="Enter your name"
required/>
</div>
<div class="form-group" type="email">
<label for="email" id="email-label">Email</label>
<input
type="email"
id="email"
class="form-control"
placeholder="Enter your email"
required/>
</div>
<div class="form-group" type="number">
<label for="number" id="number-label">Age (optional)</label>
<input
type="number"
id="number"
min="10"
max="99"
class="form-control"
placeholder="Age"
required/>
</div>
<div class="form-group">
<label for="dropdown">Which option best describes your current role?</label>
<p>
<select name="dropdown" id="dropdown" class="form-control" required>
<option disabled>Select current role</option>
<option value="Student">Student</option>
<option value="Full Time Job">Full Time Job</option>
<option value="Full Time Learner">Full Time Learner</option>
<option value="Prefer not to say">Prefer not to say</option>
<option value="Other">Other</option>
</select>
</p>
</div>
<div class="form-group">
<p>Would you recommend freeCodeCamp to a friend?</p>
<p>
<Label>
<input type="radio" name="answer" id="definitely" value="definitely" checked>
Definitely
</Label>
</p>
<p>
<Label>
<input type="radio" name="answer" id="maybe" value="maybe">
Maybe
</Label>
</p>
<p>
<Label>
<input type="radio" name="answer" id="notsure" value="notsure">
Not Sure
</Label>
</p>
</div>
<div class="form-group">
<label for="favorite">What is your favorite feature of freeCodeCamp?</label>
<p>
<select name="favorite" id="favorite" class="form-control" required>
<option disabled>Select an option</option>
<option value="Challenges">Challenges</option>
<option value="Projects">Projects</option>
<option value="Comunity">Comunity</option>
<option value="Open Source">Open Source</option>
</select>
</p>
</div>
<div class="form-group">
<p>What would you like to see improved? (Check all that apply)</p>
<p><label>
<input type="checkbox" name="checkbox" value="Front-end Projects">
Front-end Projects
</label>
</p>
<p>
<label>
<input type="checkbox" name="checkbox" value="Back-end Projects">
Back-end Projects
</label>
</p>
<p>
<label>
<input type="checkbox" name="checkbox" value="Data Visualization">
Data Visualization
</label>
</p>
<p>
<label>
<input type="checkbox" name="checkbox" value="Challenges">
Challenges
</label>
</p>
<p>
<label>
<input type="checkbox" name="checkbox" value="Open Source Community">
Open Source Community
</label>
</p>
<p>
<label>
<input type="checkbox" name="checkbox" value="Gitter help rooms">
Gitter help rooms
</label>
</p>
<p>
<label>
<input type="checkbox" name="checkbox" value="Videos">
Videos
</label>
</p>
<p>
<label>
<input type="checkbox" name="checkbox" value="City Meetups">
City Meetups
</label>
</p>
<p>
<label>
<input type="checkbox" name="checkbox" value="Wiki">
Wiki
</label>
</p>
<p>
<label>
<input type="checkbox" name="checkbox" value="Forum">
Forum
</label>
</p>
<p>
<label>
<input type="checkbox" name="checkbox" value="Additional Courses">
Additional Courses
</label>
</p>
</div>
<div class="form-group">
<p>Any comments or suggestions?</p>
<textarea name="comment" id="comment" cols="50" rows="6" placeholder="Enter your coment here" required></textarea>
</div>
<div class="form-group">
<button type="submit" id="submit">Submit
</button>
</div>
</form>
</body>
</html>
** end of undefined **
** start of undefined **
:root {
--font-family: 'Poppins', sans-serif;
--color-white: #f3f3f3;
--color-darkblue: #1b1b32;
--color-darkblue-alpha: rgba(27,27,50,0.8);
--color-green: #37af65;
--accent-left: rgba(58,58,158,0.8);
--accent-right: rgba(135,136,206,0.7);
--size-subheading: 1.125rem;
--size-label: 1.15rem;
}
*,
::before
::after{
box-sizing: border-box;
}
button,
input,
textarea,
select {
font-family: inherit;
}
/* Utilites */
.container {
margin: 3.125rem auto;
}
.text-center {
text-align: center !important;
}
.description {
font-size: var(--size-subheading);
margin: 1rem auto ;
text-shadow: 1px 1px #333;
}
body {
font-family: var(--font-family);
font-weight: 400;
line-height: 1.6;
font-size: 10px;
background: linear-gradient( to right, var(--accent-left), var(--accent-right)),
url(https://images.unsplash.com/photo-1525547719571-a2d4ac8945e2?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1964&q=80);
background-size: cover;
background-repeat: no-repeat;
background-position: center;
color: var(--color-white);
margin: 0;
}
html {
font-size: 16px;
}
/* 1rem=16px 2rem= 32px */
header{
padding: 2rem 1rem 1rem;
text-shadow: 1px 1px #333333;
}
h1 {
font-size: 500;
line-height: 1.2;
margin: 0;
}
/* from */
form {
background: var(--color-darkblue-alpha);
padding: 2.5rem 0.625rem;
border-radius: 0.3rem;
width: 50%;
margin: auto;
}
.form-group {
display: flex;
flex-direction: column;
margin: 2rem;
}
.form-group p {
line-height: 1;
margin: 0.5rem 0.1rem;
}
.form-group p:not(:nth-child(1)){
margin: 0.5rem 0.1rem;
}
.form-label{
font-size: var(--size-label);
}
.form-control {
display: block;
width: 100%;
font-size: 1rem;
height: 2.5rem;
padding: 0.375 rem 0.75rem;
border-radius: 0.3rem;
border: 1px solid #dddddd;
margin-top: 0.4rem;
}
input[type="radio"],
input[type="checkbox"]{
width: 1rem;
height: 1rem;
}
input[type="checkbox"]{
margin-right: 0.5rem;
}
textarea {
font-size: 1.2rem;
padding: 0.375rem 0.75rem;
width: 100%;
height: auto;
border: none;
margin: 0.5rem 0;
}
.title {
font-size: 3rem;
}
button {
background: var(--color-green);
border: none;
cursor: pointer;
color: var(--color-white);
padding: 0.75rem;
font-size: var(--size-label);
}
@media screen and (max-width: 1141px) {
form{ width:80%;}
}
@media screen and (max-width: 540px) {
form{ width: 95%;}
}
@media screen and (max-width: 440px) {
form { padding: 0.625rem;}
}
** end of undefined **