-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinput.html
More file actions
158 lines (152 loc) · 5.43 KB
/
input.html
File metadata and controls
158 lines (152 loc) · 5.43 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
<!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="stylesheet" href="assets/css/style.css" />
<title>Inputs</title>
</head>
<body>
<section class="section-md">
<div class="container-md">
<h2>Inputs</h2>
<form>
<!-- INPUT -->
<div class="input-container">
<label for="email" class="text-xs light overline"
>Input label</label
>
<input
class="input"
id="email"
type="email"
name="email"
placeholder="placeholder"
/>
<span class="text-xs input__error">Error message</span>
<span class="text-sm light input__help">Input help text</span>
</div>
<!-- SELECT -->
<div class="input-container">
<label for="country" class="text-xs light overline"
>Select your country</label
>
<select
name="country"
id="country"
class="text-md light select"
required
>
<option value="" hidden class="country-option">Select one</option>
<option value="BO" class="country-option">Bolivia</option>
<option value="CO" class="country-option">Colombia</option>
<option value="EC" class="country-option">Ecuador</option>
<option value="PE" class="country-option">Peru</option>
<option value="VE" class="country-option">Venezuela</option>
</select>
<span class="text-xs input__error">Error message</span>
<span class="text-sm light input__help">Input help text</span>
</div>
<!-- RADIO BUTTONS -->
<div class="flex flex-column">
<p class="text-xs light overline">Select one option:</p>
<div class="flex gap-0.5">
<div class="radio">
<input
type="radio"
name="option"
id="option-1"
class="radio__input"
/>
<div class="radio__text-group">
<label for="option-1" class="text-sm light radio__label"
>Option 1</label
>
<span class="text-xs light radio__help">Help text</span>
</div>
</div>
<div class="radio">
<input
type="radio"
name="option"
id="option-2"
class="radio__input"
/>
<div class="radio__text-group">
<label for="option-2" class="text-sm light radio__label"
>Option 2</label
>
<span class="text-xs light radio__help">Help text</span>
</div>
</div>
<div class="radio">
<input
type="radio"
name="option"
id="option-3"
class="radio__input"
/>
<div class="radio__text-group">
<label for="option-3" class="text-sm light radio__label"
>Option 3</label
>
<span class="text-xs light radio__help">Help text</span>
</div>
</div>
</div>
</div>
<!-- CHECKBOXES -->
<div class="flex flex-column">
<p class="text-xs light overline">Select as many as you want:</p>
<div class="flex gap-0.5">
<div class="checkbox">
<input
type="checkbox"
name="check-1"
id="check-1"
class="checkbox__input"
/>
<div class="checkbox__text-group">
<label for="check-1" class="text-sm light checkbox__label"
>Option 1</label
>
<span class="text-xs light checkbox__help">Help text</span>
</div>
</div>
<div class="checkbox">
<input
type="checkbox"
name="check-2"
id="check-2"
class="checkbox__input"
/>
<div class="checkbox__text-group">
<label for="check-2" class="text-sm light checkbox__label"
>Option 2</label
>
<span class="text-xs light checkbox__help">Help text</span>
</div>
</div>
<div class="checkbox">
<input
type="checkbox"
name="check-3"
id="check-3"
class="checkbox__input"
/>
<div class="checkbox__text-group">
<label for="check-3" class="text-sm light checkbox__label"
>Option 3</label
>
<span class="text-xs light checkbox__help">Help text</span>
</div>
</div>
</div>
</div>
<button type="submit">Submit</button>
</form>
</div>
</section>
</body>
</html>