-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
321 lines (257 loc) · 9.22 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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="This is the description" />
<title>Document</title>
<script type="importmap">
{
"imports": {
"@joist/di": "/node_modules/@joist/di/target/lib.js",
"@joist/di/": "/node_modules/@joist/di/target/lib/",
"@joist/element": "/node_modules/@joist/element/target/lib.js",
"@joist/element/": "/node_modules/@joist/element/target/lib/",
"@joist/observable": "/node_modules/@joist/observable/target/lib.js",
"@joist/observable/": "/node_modules/@joist/observable/target/lib/",
"tslib": "/node_modules/tslib/tslib.es6.js"
}
}
</script>
</head>
<body>
<style>
body:has(:not(:defined)) {
display: none;
}
body {
padding: 0;
margin: 0;
}
* {
font-family:
Source Sans Pro Web,
Helvetica Neue,
Helvetica,
Roboto,
Arial,
sans-serif;
box-sizing: border-box;
}
header {
align-items: center;
display: flex;
background-color: #252f3e;
padding: 1rem 2rem;
color: #fff;
}
header span {
margin: 0;
font-size: 1.25rem;
font-weight: bold;
}
header img {
height: 1.5rem;
width: 1.5rem;
margin-right: 1rem;
}
.content {
display: flex;
/* gap: 3rem; */
}
.content section:last-child {
flex-grow: 1;
}
h1 {
background: #f3f3f3;
padding: 1rem 2rem 1rem 2rem;
margin: 0;
}
usa-side-nav {
margin: 1rem;
}
main section:last-child {
margin: 0 1rem 1rem 1rem;
}
</style>
<script type="module" src="/target/lib/define.js"></script>
<!-- <script src="/assets/uswds.min.js" async></script> -->
<header>
<img src="/assets/img/4c-lg-on-black.svg" aria-hidden="true" />
<span>U.S. Web Design System (USWDS)</span>
</header>
<h1>Components</h1>
<usa-config icon-path="/assets/usa-icons/">
<main>
<div class="content">
<section>
<usa-side-nav>
<usa-side-nav-item current>
<usa-link href="#">Current Page</usa-link>
<usa-side-nav-item slot="children">
<usa-link href="#">Child</usa-link>
</usa-side-nav-item>
<usa-side-nav-item slot="children" current>
<usa-link href="#">Child</usa-link>
<usa-side-nav-item slot="children">
<usa-link href="#">Grandchild</usa-link>
</usa-side-nav-item>
<usa-side-nav-item slot="children" current>
<usa-link href="#">Grandchild</usa-link>
</usa-side-nav-item>
<usa-side-nav-item slot="children">
<usa-link href="#">Grandchild</usa-link>
</usa-side-nav-item>
</usa-side-nav-item>
<usa-side-nav-item slot="children">
<usa-link href="#">Child</usa-link>
</usa-side-nav-item>
</usa-side-nav-item>
<usa-side-nav-item>
<usa-link href="#">Parent</usa-link>
</usa-side-nav-item>
<usa-side-nav-item>
<usa-link href="#">Parent</usa-link>
</usa-side-nav-item>
</usa-side-nav>
</section>
<section>
<h2>Sub Heading</h2>
<usa-alert type="info">
<h2 slot="heading">Informative status</h2>
Lorem ipsum dolor sit amet,
<usa-link href="#">consectetur adipiscing</usa-link> elit,
sed do eiusmod.
</usa-alert>
<usa-alert type="warning">
<h2 slot="heading">Warning status</h2>
Lorem ipsum dolor sit amet,
<usa-link href="#">consectetur adipiscing</usa-link> elit,
sed do eiusmod.
</usa-alert>
<usa-card-group>
<usa-card>
<usa-card-header>Card</usa-card-header>
<usa-card-body>
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Facilis earum tenetur quo cupiditate, eaque qui officia
recusandae.
</usa-card-body>
<usa-card-footer>
<usa-button>Visit Florida Keys</usa-button>
</usa-card-footer>
</usa-card>
<usa-card>
<usa-card-media>
<img
src="/assets/img/built-to-grow--alt.jpg"
alt="A placeholder image"
/>
</usa-card-media>
<usa-card-header>Card with media</usa-card-header>
<usa-card-body>
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Facilis earum tenetur quo cupiditate, eaque qui officia
recusandae.
</usa-card-body>
<usa-card-footer>
<usa-button>Visit Florida Keys</usa-button>
</usa-card-footer>
</usa-card>
<usa-card>
<usa-card-header>Media with heaer first</usa-card-header>
<usa-card-media>
<img
src="/assets/img/built-to-grow--alt.jpg"
alt="A placeholder image"
/>
</usa-card-media>
<usa-card-body>
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Tempore possimus similique nemo odit doloremque laudantium?
</usa-card-body>
<usa-card-footer>
<usa-button>Visit Florida Keys</usa-button>
</usa-card-footer>
</usa-card>
</usa-card-group>
<form>
<usa-input
name="fname"
placeholder="First name"
autocomplete="off"
>
First name
</usa-input>
<usa-input
name="lname"
placeholder="Last name"
autocomplete="off"
>
Last name
</usa-input>
<usa-input-mask>
<usa-input
name="phone"
placeholder="(999) 999-9999"
mask="(999) 999-9999"
autocomplete="off"
>
Phone number
</usa-input>
</usa-input-mask>
<usa-select name="select" value="first">
Hello World
<usa-select-option>-Select One -</usa-select-option>
<usa-select-option value="first">first</usa-select-option>
<usa-select-option value="second">second</usa-select-option>
<usa-select-option value="third">third</usa-select-option>
<usa-select-option value="fourth">fourth</usa-select-option>
</usa-select>
<usa-radio name="historical-figures" tiled>
<legend>Select one historical figure</legend>
<usa-radio-option value="sojourner-truth">
Sojourner Truth
</usa-radio-option>
<usa-radio-option value="frederick-douglass">
Frederick Douglass
<usa-description>
This is optional text that can be used to describe the label
in more detail.
</usa-description>
</usa-radio-option>
<usa-radio-option value="booker-t-washington">
Booker T. Washington
</usa-radio-option>
<usa-radio-option value="george-washington-carver">
George Washington Carver
</usa-radio-option>
</usa-radio>
<usa-file-input name="upload">
Input accepts a single file
<div slot="description">
Drag file here or <usa-link>choose from folder</usa-link>
</div>
</usa-file-input>
<usa-checkbox>I agree to the terms and conditions</usa-checkbox>
<br />
<br />
<usa-button modal-target="mymodal">Submit</usa-button>
</form>
</section>
</div>
</main>
<usa-modal id="mymodal">
<usa-modal-close></usa-modal-close>
<usa-modal-heading>
Are you sure you want to continue?
</usa-modal-heading>
<usa-input placeholder="foo@email.com" autofocus>
Enter your email to continue
</usa-input>
<usa-button modal-action="confirm">Yes I am sure</usa-button>
<usa-button modal-action="cancel" variant="outline">Cancel</usa-button>
</usa-modal>
</usa-config>
</body>
</html>