forked from brianseek/uswds-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
accordion.html
364 lines (333 loc) · 17.8 KB
/
accordion.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
<!doctype html>
<html lang="en">
<!-- generated by [email protected] -->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>USWDS Components</title>
<link rel="stylesheet" href="./css/styles.css">
</head>
<body>
<a class="usa-skipnav" href="#main-content">Skip to main content</a>
<div class="usa-banner">
<div class="usa-accordion">
<header class="usa-banner__header">
<div class="usa-banner__inner">
<div class="grid-col-auto">
<img class="usa-banner__header-flag" src="./img/us_flag_small.png" alt="U.S. flag">
</div>
<div class="grid-col-fill tablet:grid-col-auto">
<p class="usa-banner__header-text">An official website of the United States government</p>
<p class="usa-banner__header-action" aria-hidden="true">Here’s how you know</p>
</div>
<button class="usa-accordion__button usa-banner__button"
aria-expanded="false" aria-controls="gov-banner">
<span class="usa-banner__button-text">Here’s how you know</span>
</button>
</div>
</header>
<div class="usa-banner__content usa-accordion__content" id="gov-banner">
<div class="grid-row grid-gap-lg">
<div class="usa-banner__guidance tablet:grid-col-6">
<img class="usa-banner__icon usa-media-block__img" src="./img/icon-dot-gov.svg" alt="Dot gov">
<div class="usa-media-block__body">
<p>
<strong>The .gov means it’s official.</strong>
<br>
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.
</p>
</div>
</div>
<div class="usa-banner__guidance tablet:grid-col-6">
<img class="usa-banner__icon usa-media-block__img" src="./img/icon-https.svg" alt="Https">
<div class="usa-media-block__body">
<p>
<strong>The site is secure.</strong>
<br>
The <strong>https://</strong> ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="usa-overlay"></div>
<header class="usa-header usa-header--extended" role="banner">
<div class="usa-navbar">
<div class="usa-logo" id="extended-logo">
<em class="usa-logo__text"><a href="/" title="Home" aria-label="Home">USWDS v2 Demo</a></em>
</div>
<button class="usa-menu-btn">Menu</button>
</div>
<nav role="navigation" class="usa-nav">
<div class="usa-nav__inner"><button class="usa-nav__close"><img src="./img/close.svg" alt="close"></button>
<ul class="usa-nav__primary usa-accordion"><li class="usa-nav__primary-item">
<button class="usa-accordion__button usa-nav__link" aria-expanded="false" aria-controls="extended-nav-section-one"><span>Current section</span></button>
<ul id="extended-nav-section-one" class="usa-nav__submenu"><li class="usa-nav__submenu-item">
<a href="#">Navigation link</a>
</li><li class="usa-nav__submenu-item">
<a href="#">Navigation link</a>
</li><li class="usa-nav__submenu-item">
<a href="#">Navigation link</a>
</li></ul></li><li class="usa-nav__primary-item">
<button class="usa-accordion__button usa-nav__link" aria-expanded="false" aria-controls="extended-nav-section-two"><span>Section</span></button>
<ul id="extended-nav-section-two" class="usa-nav__submenu"><li class="usa-nav__submenu-item">
<a href="#">Navigation link</a>
</li><li class="usa-nav__submenu-item">
<a href="#">Navigation link</a>
</li><li class="usa-nav__submenu-item">
<a href="#">Navigation link</a>
</li></ul></li><li class="usa-nav__primary-item">
<a class="usa-nav__link usa-current" href="accordion.html"><span>More components</span></a>
</li></ul><div class="usa-nav__secondary">
<ul class="usa-nav__secondary-links"><li class="usa-nav__secondary-item">
<a href="">Secondary link</a>
</li><li class="usa-nav__secondary-item">
<a href="">Another secondary link</a>
</li></ul><form class="usa-search usa-search--small ">
<div role="search">
<label class="usa-sr-only" for="extended-search-field-small">Search small</label>
<input class="usa-input" id="extended-search-field-small" type="search" name="search">
<button class="usa-button" type="submit"><span class="usa-sr-only">Search</span></button>
</div>
</form>
</div>
</div>
</nav>
</header>
<div class="default-container">
<aside class="sidenav">
<ul class="site-sidenav usa-sidenav">
<li class="usa-sidenav__item is-current">
<a href="accordion.html" class="usa-current">
Accordion
</a>
</li>
<li class="usa-sidenav__item">
<a href="alert.html">
Alert
</a>
</li>
<li class="usa-sidenav__item">
<a href="button.html">
Button
</a>
</li>
<li class="usa-sidenav__item">
<a href="table.html">
Table
</a>
</li>
<li class="usa-sidenav__item">
<a href="tag.html">
Tag
</a>
</li>
<li class="usa-sidenav__item">
<a href="typography.html">
Typography
</a>
</li>
</ul>
</aside>
<main id="main-content" class="main-content">
<section class="demo-section">
<h6>Borderless</h6>
<div class="usa-accordion">
<!-- Use the accurate heading level to maintain the document outline -->
<h2 class="usa-accordion__heading">
<button class="usa-accordion__button"
aria-expanded="true"
aria-controls="a1">
First Amendment
</button>
</h2>
<div id="a1" class="usa-accordion__content usa-prose">
<p>Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.</p>
</div>
<!-- Use the accurate heading level to maintain the document outline -->
<h2 class="usa-accordion__heading">
<button class="usa-accordion__button"
aria-expanded="false"
aria-controls="a2">
Second Amendment
</button>
</h2>
<div id="a2" class="usa-accordion__content usa-prose">
<p>A well regulated Militia, being necessary to the security of a free State, the right of the people to keep and bear Arms, shall not be infringed.</p> <ul><li>This is a list item</li><li>Another list item</li></ul>
</div>
<!-- Use the accurate heading level to maintain the document outline -->
<h2 class="usa-accordion__heading">
<button class="usa-accordion__button"
aria-expanded="false"
aria-controls="a3">
Third Amendment
</button>
</h2>
<div id="a3" class="usa-accordion__content usa-prose">
<p>No Soldier shall, in time of peace be quartered in any house, without the consent of the Owner, nor in time of war, but in a manner to be prescribed by law.</p>
</div>
<!-- Use the accurate heading level to maintain the document outline -->
<h2 class="usa-accordion__heading">
<button class="usa-accordion__button"
aria-expanded="false"
aria-controls="a4">
Fourth Amendment
</button>
</h2>
<div id="a4" class="usa-accordion__content usa-prose">
<p>The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no Warrants shall issue, but upon probable cause, supported by Oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized.</p>
</div>
<!-- Use the accurate heading level to maintain the document outline -->
<h2 class="usa-accordion__heading">
<button class="usa-accordion__button"
aria-expanded="false"
aria-controls="a5">
Fifth Amendment
</button>
</h2>
<div id="a5" class="usa-accordion__content usa-prose">
<p>No person shall be held to answer for a capital, or otherwise infamous crime, unless on a presentment or indictment of a Grand Jury, except in cases arising in the land or naval forces, or in the Militia, when in actual service in time of War or public danger; nor shall any person be subject for the same offence to be twice put in jeopardy of life or limb; nor shall be compelled in any criminal case to be a witness against himself, nor be deprived of life, liberty, or property, without due process of law; nor shall private property be taken for public use, without just compensation.</p>
</div>
</div>
<h6>Bordered</h6>
<div class="usa-accordion usa-accordion--bordered">
<!-- Use the accurate heading level to maintain the document outline -->
<h2 class="usa-accordion__heading">
<button class="usa-accordion__button"
aria-expanded="true"
aria-controls="b-a1">
First Amendment
</button>
</h2>
<div id="b-a1" class="usa-accordion__content usa-prose">
<p>Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.</p>
</div>
<!-- Use the accurate heading level to maintain the document outline -->
<h2 class="usa-accordion__heading">
<button class="usa-accordion__button"
aria-expanded="false"
aria-controls="b-a2">
Second Amendment
</button>
</h2>
<div id="b-a2" class="usa-accordion__content usa-prose">
<p>A well regulated Militia, being necessary to the security of a free State, the right of the people to keep and bear Arms, shall not be infringed.</p> <ul><li>This is a list item</li><li>Another list item</li></ul>
</div>
<!-- Use the accurate heading level to maintain the document outline -->
<h2 class="usa-accordion__heading">
<button class="usa-accordion__button"
aria-expanded="false"
aria-controls="b-a3">
Third Amendment
</button>
</h2>
<div id="b-a3" class="usa-accordion__content usa-prose">
<p>No Soldier shall, in time of peace be quartered in any house, without the consent of the Owner, nor in time of war, but in a manner to be prescribed by law.</p>
</div>
<!-- Use the accurate heading level to maintain the document outline -->
<h2 class="usa-accordion__heading">
<button class="usa-accordion__button"
aria-expanded="false"
aria-controls="b-a4">
Fourth Amendment
</button>
</h2>
<div id="b-a4" class="usa-accordion__content usa-prose">
<p>The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no Warrants shall issue, but upon probable cause, supported by Oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized.</p>
</div>
<!-- Use the accurate heading level to maintain the document outline -->
<h2 class="usa-accordion__heading">
<button class="usa-accordion__button"
aria-expanded="false"
aria-controls="b-a5">
Fifth Amendment
</button>
</h2>
<div id="b-a5" class="usa-accordion__content usa-prose">
<p>No person shall be held to answer for a capital, or otherwise infamous crime, unless on a presentment or indictment of a Grand Jury, except in cases arising in the land or naval forces, or in the Militia, when in actual service in time of War or public danger; nor shall any person be subject for the same offence to be twice put in jeopardy of life or limb; nor shall be compelled in any criminal case to be a witness against himself, nor be deprived of life, liberty, or property, without due process of law; nor shall private property be taken for public use, without just compensation.</p>
</div>
</div>
</section>
</main>
</div>
<footer class="usa-footer" role="contentinfo">
<div class="grid-container usa-footer__return-to-top">
<a href="#">Return to top</a>
</div>
<div class="usa-footer__primary-section">
<nav class="usa-footer__nav">
<ul class="add-list-reset grid-row grid-gap">
<li class="mobile-lg:grid-col-4 desktop:grid-col-2 usa-footer__primary-content">
<a class="usa-footer__primary-link" href="javascript:void(0);">Primary link</a>
</li>
<li class="mobile-lg:grid-col-4 desktop:grid-col-2 usa-footer__primary-content">
<a class="usa-footer__primary-link" href="javascript:void(0);">Primary link</a>
</li>
<li class="mobile-lg:grid-col-4 desktop:grid-col-2 usa-footer__primary-content">
<a class="usa-footer__primary-link" href="javascript:void(0);">Primary link</a>
</li>
<li class="mobile-lg:grid-col-4 desktop:grid-col-2 usa-footer__primary-content">
<a class="usa-footer__primary-link" href="javascript:void(0);">Primary link</a>
</li>
<li class="mobile-lg:grid-col-4 desktop:grid-col-2 usa-footer__primary-content">
<a class="usa-footer__primary-link" href="javascript:void(0);">Primary link</a>
</li>
</ul>
</nav>
</div>
<div class="usa-footer__secondary-section">
<div class="grid-container">
<div class="grid-row grid-gap">
<div class="usa-footer__logo grid-row mobile-lg:grid-col-6 mobile-lg:grid-gap-2">
<div class="mobile-lg:grid-col-auto">
<img class="usa-footer__logo-img" src="./img/logo-img.png" alt="">
</div>
<div class="mobile-lg:grid-col-auto">
<h3 class="usa-footer__logo-heading">Name of Agency</h3>
</div>
</div>
<div class="usa-footer__contact-links mobile-lg:grid-col-6">
<div class="usa-footer__social-links grid-row grid-gap-1">
<div class="grid-col-auto">
<a class="usa-social-link usa-social-link--facebook" href="javascript:void(0);">
<span>Facebook</span>
</a>
</div>
<div class="grid-col-auto">
<a class="usa-social-link usa-social-link--twitter" href="javascript:void(0);">
<span>Twitter</span>
</a>
</div>
<div class="grid-col-auto">
<a class="usa-social-link usa-social-link--youtube" href="javascript:void(0);">
<span>YouTube</span>
</a>
</div>
<div class="grid-col-auto">
<a class="usa-social-link usa-social-link--rss" href="javascript:void(0);">
<span>RSS</span>
</a>
</div>
</div>
<h3 class="usa-footer__contact-heading">Agency Contact Center</h3>
<address class="usa-footer__address">
<div class="usa-footer__contact-info grid-row grid-gap">
<div class="grid-col-auto">
<a href="tel:1-800-555-5555">(800) CALL-GOVT</a>
</div>
<div class="grid-col-auto">
<a href="mailto:[email protected]">[email protected]</a>
</div>
</div>
</address>
</div>
</div>
</div>
</div>
</footer>
<script src="./js/uswds.min.js"></script>
</body>
</html>