-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathgather.html
More file actions
240 lines (206 loc) · 7.61 KB
/
gather.html
File metadata and controls
240 lines (206 loc) · 7.61 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
<!doctype html>
<!--[if lte IE 8]><html class="lt-ie9"><![endif]-->
<!--[if gt IE 8]><!--><html><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Gather — A Simple Form Design</title>
<link rel="stylesheet" href="./css/gather.css">
<link rel="stylesheet" href="./css/arrange.css">
<link rel="stylesheet" href="./css/sample.css">
</head>
<body>
<div class="page">
<h1>Gather</h1>
<p>
<em>Gather</em> is a simple design system for laying out forms.
</p>
<h2>The Kitchen Sink</h2>
<form action="#">
<fieldset class="labelled">
<legend>About You</legend>
<div class="field">
<label for="field_1">First Name<strong>*</strong></label>
<input type="text" name="first_name" id="field_1" value="">
<small>A bit of helper text.</small>
</div>
<div class="field">
<label for="field_2">Last Name<strong>*</strong></label>
<small>Enter your family name.</small>
<input type="text" name="last_name" id="field_2" value="">
</div>
<div class="field">
<label for="field_8">Password<strong>*</strong></label>
<input type="password" name="password" id="field_8" value="">
</div>
<div class="field">
<label for="field_3">T-Shirt Size</label>
<select name="size" id="field_3">
<option value="Small">Small</option>
<option value="Medium">Medium</option>
<option value="Large">Large</option>
<option value="X-Large">X-Large</option>
<option value="XX-Large">XX-Large</option>
</select>
</div>
</fieldset>
<fieldset class="labelled">
<legend>Arbitrary Questions</legend>
<div class="field">
<label>Meal Choice</label>
<ul class="field-group">
<li>
<input type="radio" name="meal_chioce" id="field_4_a" value="Chicken" class="radio">
<p><label for="field_4_a">Chicken</label></p>
</li>
<li>
<input type="radio" name="meal_chioce" id="field_4_b" value="Salmon" class="radio">
<p><label for="field_4_b">Salmon</label></p>
</li>
<li>
<input type="radio" name="meal_chioce" id="field_4_c" value="Beef" class="radio">
<p><label for="field_4_c">Beef</label></p>
</li>
<li>
<input type="radio" name="meal_chioce" id="field_4_d" value="Vegetables" class="radio">
<p><label for="field_4_d">Vegetables</label></p>
</li>
</ul>
</div>
<div class="field">
<label>Activities</label>
<small>Choose up to three.</small>
<ul class="field-group">
<li>
<input type="checkbox" name="meal_chioce" id="field_5_a" value="Water Ski" class="checkbox">
<p><label for="field_5_a">Water Ski</label></p>
</li>
<li>
<input type="checkbox" name="meal_chioce" id="field_5_b" value="Jet Ski" class="checkbox">
<p><label for="field_5_b">Jet Ski</label></p>
</li>
<li>
<input type="checkbox" name="meal_chioce" id="field_5_c" value="Alpine Ski" class="checkbox">
<p><label for="field_5_c">Alpine Ski</label></p>
</li>
<li>
<input type="checkbox" name="meal_chioce" id="field_5_d" value="Cross-Country Ski" class="checkbox">
<p><label for="field_5_d">Cross-Country Ski</label></p>
</li>
</ul>
</div>
<div class="field">
<label for="field_6">Mission Statement</label>
<textarea name="mission_statement" id="field_6" rows="5" cols="35"></textarea>
</div>
<div class="field">
<label for="field_7">Screenplay</label>
<textarea name="screenplay" id="field_7" class="tall" rows="5" cols="35"></textarea>
</div>
<div class="field single-checkbox">
<input type="checkbox" name="meal_chioce" id="field_13" value="Yes" class="checkbox">
<p><label for="field_13">I agree to the <a href="#">terms & conditions</a> for this website</label></p>
</div>
<div class="field">
<input type="submit" class="button" value="Submit">
</div>
</fieldset>
</form>
<h2>Within <em>Arrange</em></h2>
<div class="container">
<div class="seven column">
<form action="#">
<fieldset>
<div class="row">
<p class="field half column">
<label for="field_9">Email Address</label>
<input type="text" name="email" id="field_9" value="">
<small>A bit of helper text.</small>
</p>
<p class="field half column">
<label for="field_10">Confirm Email Address</label>
<input type="text" name="confirm_email" id="field_10" value="">
</p>
</div>
<div class="row">
<p class="field twelve column">
<label for="field_11">Street Address</label>
<textarea name="street_address" id="field_11" class="short" rows="5" cols="35"></textarea>
</p>
</div>
<div class="row">
<p class="field eight column">
<label for="field_12">City</label>
<input type="text" name="city" id="field_12" value="Amesbury" readonly>
<small>Readonly field</small>
</p>
<p class="field two column">
<label for="field_13">State</label>
<select name="state">
<option value="MA" selected>MA</option>
<option value="NH">NH</option>
<option value="RI">RI</option>
</select>
</p>
<p class="field two column">
<label for="field_14">Zip</label>
<input type="text" name="zip" id="field_14" value="01913" maxlength="5" disabled>
<small>Disabled field</small>
</p>
</div>
<div class="row">
<div class="field right">
<input type="submit" class="button blue" value="Submit">
<button class="button">Submit</button>
<button class="button" disabled>Submit</button>
</div>
</div>
</fieldset>
</form>
</div>
<div class="four column offset-by-one">
<h3>Some Stuff</h3>
<p>
A little paragraph where we discuss some things that you might need to know, like how to get discounts.
</p>
</div>
</div>
<h2>Error States</h2>
<form action="#">
<fieldset class="labelled">
<legend>About You</legend>
<div class="field error">
<label for="field_1">First Name<strong>*</strong></label>
<small class="message">Error: This field is required.</small>
<input type="text" name="first_name" id="field_1" value="">
<small>A bit of helper text.</small>
</div>
<div class="field error">
<label for="field_2">Last Name</label>
<small class="message">Error: This field is required.</small>
<small>Enter your family name.</small>
<input type="text" name="last_name" id="field_2" value="">
</div>
<div class="field error">
<label for="field_8">Password</label>
<small class="message">Error: Password must be at least 8 characters long.</small>
<input type="password" name="password" id="field_8" value="">
</div>
<div class="field error">
<label for="field_3">T-Shirt Size</label>
<small class="message">Error: Sold out of this size.</small>
<select name="size" id="field_3">
<option value="Small">Small</option>
<option value="Medium">Medium</option>
<option value="Large">Large</option>
<option value="X-Large">X-Large</option>
<option value="XX-Large">XX-Large</option>
</select>
</div>
<div class="field">
<input type="submit" class="button" value="Submit">
</div>
</fieldset>
</form>
</div>
</body>
</html>