This repository has been archived by the owner on Sep 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
design-system.html
267 lines (229 loc) · 11.3 KB
/
design-system.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
<!doctype html>
<html lang="en" class="no-js tech-docs">
<head>
<base href="{{ pathPrefix }}/">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta charset="utf-8">
<meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
<meta name="robots" content="noindex">
<title>HMRC Assets Frontend components and patterns</title>
<link rel="icon" type="image/x-icon" href="public/images/favicon.ico" />
<link rel="stylesheet" href="public/assets/stylesheets/design-system.css">
<link rel="stylesheet" href="public/assets/stylesheets/vendor/highlight/github.css">
<!--[if gt IE 8]><!--><link href="public/assets/stylesheets/govuk-template.css" media="screen" rel="stylesheet" type="text/css" /><!--<![endif]-->
<!--[if IE 6]><link href="public/assets/stylesheets/govuk-template-ie6.css" media="screen" rel="stylesheet" type="text/css" /><![endif]-->
<!--[if IE 7]><link href="public/assets/stylesheets/govuk-template-ie7.css" media="screen" rel="stylesheet" type="text/css" /><![endif]-->
<!--[if IE 8]><link href="public/assets/stylesheets/govuk-template-ie8.css" media="screen" rel="stylesheet" type="text/css" /><![endif]-->
<!--[if gt IE 8]><!--><link rel="stylesheet" href="public/stylesheets/application.min.css"><!--<![endif]-->
<!--[if lte IE 8]><link rel="stylesheet" href="public/stylesheets/application-ie.min.css"><![endif]-->
{{{styles}}}
<script src="public/assets/javascripts/vendor/modernizr.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-43414424-34', 'auto');
ga('set', 'anonymizeIp', true)
ga('send', 'pageview');
</script>
</head>
<body class="{{#if homepage}}homepage{{/if}}">
<div class="app-pane">
<div class="app-pane__header toc-open-disabled">
<a href="#content" class="skip-link">Skip to main content</a>
<header class="design-system-header design-system-header--full-width">
<div class="design-system-header__container">
<div class="design-system-header__brand">
<a href="index.html">
<span class="design-system-govuk-logo">
<img class="design-system-govuk-logo__printable-crown" src="public/assets/images/gov.uk_logotype_crown_invert_trans.png" height="32" width="36">
GOV.UK
</span>
<span class="design-system-header__title">HMRC Assets Frontend components and patterns</span>
</a>
</div>
<div>
<button id="mobile-nav-trigger" class="app-header-mobile-nav-toggler js-app-mobile-nav-toggler" aria-label="Toggle mobile menu" aria-expanded="false" aria-controls="app-mobile-nav">
Menu
</button>
</div>
</div>
</header>
<div class="sub-nav">
<ul class="sub-nav-list">
{{#each sections}}
<li><a href="{{ ../pathPrefix }}{{ url }}">{{ sentenceCase title }}</a></li>
{{/each}}
</ul>
</div>
</div>
<!-- TODO: mobile_nav -->
<nav id="app-mobile-nav" class="app-mobile-nav js-app-mobile-nav app-mobile-nav__theme" role="navigation">
<ul class="app-mobile-nav__list">
{{#each sections}}
<li><a
href="{{ ../pathPrefix }}{{ url }}"
{{#if nav}}
class="js-mobile-nav-subnav-toggler"
id="js-mobile-nav-subnav-toggler-{{ @index }}"
aria-controls="js-mobile-nav__subnav-{{ @index }}"
aria-label="Toggle subnavigation for {{ title }}"
aria-expanded="false"
{{/if}}>{{ sentenceCase title }}</a>
{{#if nav}}<ul class="app-mobile-nav__subnav js-app-mobile-nav-subnav" id="js-mobile-nav__subnav-{{@index}}">
{{#each nav}}
<li><a href="{{ ../../pathPrefix }}{{ url }}">{{ sentenceCase title }}</a></li>
{{/each}}
</ul>{{/if}}
</li>
{{/each}}
</ul>
</nav>
<div class="app-pane__body">
{{#if nav}}
<div class="app-pane__toc">
<div class="toc" data-module="table-of-contents">
<nav id="toc" class="js-toc-list toc__list">
<ul class="pattern-nav">
{{#each nav}}
<li><a href="{{ ../pathPrefix }}{{ url }}">{{ sentenceCase title }}</a></li>
{{/each}}
<ul>
</nav>
</div>
</div>
{{/if}}
<div class="app-pane__content toc-open-disabled">
{{#if homepage}}
{{{documentation}}}
{{else}}
<main id="design-system-content" class="markdown" data-module="anchored-headings">
<!--
{{#unless copyDone}}
<div class="banner banner__out-of-date">
<p>This content has not yet been written using the Design System content guidelines</p>
</div>
{{/unless}}
-->
<!--
TODO: set title as data
<div class="pattern-header">
<p class="section-heading">{{ current_section }}</p>
<h1>{{ title }}</h1>
</div>
-->
{{#if documentation}}
{{{ documentation }}}
{{/if}}
<!--
TODO: pass the following into the template from AF
<div id="related-content" class="related-content">
<div class="grid-row">
{{#if related}}
<div class="column-one-quarter related-content-grid-item">
<h2>Related patterns</h2>
<ul class="list">
{{!-- {{#each related}} --}}
<li><a href="/design-patterns/patterns/patterns/{{ url }}">{{ title }}</a></li>
{{!-- {{/each}} --}}
</ul>
</div>
{{/if}}
{{#if isComponent}}
{{#if similar}}
<div class="column-one-quarter related-content-grid-item">
<h2>Similar components</h2>
<ul class="list">
{{#each similar}}
<li><a href="/design-patterns/patterns/components/{{ url }}">{{ title }}</a></li>
{{/each}}
</ul>
</div>
{{/if}}
{{/if}}
{{#if isPattern}}
{{#if uses}}
<div class="column-one-quarter related-content-grid-item">
<h2>Uses components</h2>
<ul class="list">
{{#each uses}}
<li><a href="/design-patterns/patterns/components/{{ url }}">{{ title }}</a></li>
{{/each}}
</ul>
</div>
{{/if}}
{{/if}}
{{#unless homepage}}
<div class="column-one-quarter related-content-grid-item">
<h2>Further resources</h2>
<ul class="list">
{{#if seprepo}}
<li><a href="">{{ title }} repository on GitHub</a></li>
{{/if}}
{{!--
TODO: make these links dynamic with a link_to helper
<li>{{{link_to 'Edit this guidance on GitHub' edit_link}}}</li>
<li>{{{link_to 'Raise an issue on GitHub' (issues_link title)}}}</li>
<li>{{{link_to 'History of this page' history_link}}}</li>
--}}
<li><a href="#">Edit this guidance on GitHub</a></li>
<li><a href="#">Raise an issue on GitHub</a></li>
<li><a href="#">History of this page</a></li>
</ul>
</div>
<div class="column-one-quarter related-content-grid-item">
<dl class="meta-data-bottom">
{{#if aliases}}
<dt>Also known as:</dt>
<dd>{{ aliases }}</dd>
{{/if}}
<dt>Last reviewed:</dt>
<dd>{{#if date}}{{ date }}{{else}}30 March 2017{{/if}}</dd>
</dl>
</div>
{{/unless}}
</div>
</div>
-->
<div class="callout">
<h2 class="heading-medium">Help and support</h2>
<p>Contact the Service Design Tools team in <a href="https://hmrcdigital.slack.com/messages/C39V3PH38">#team-sdt</a> on HMRC Slack (<a href="slack://channel?team=T04RY81HB&id=C39V3PH38">open in app</a>) or <a href="mailto:hmrc-service-design-tools-g@digital.hmrc.gov.uk">email us</a>.</p>
</div>
</main>
{{/if}}
<footer class="design-system-footer {{#if homepage}}footer--full-width{{else}}design-system-footer--full-width{{/if}}">
<div class="footer-container">
<div class="footer__navigation">
<div class="footer__navigation--column">
<h2 class="heading-medium">Other resources</h2>
<ul>
<li><a href="https://design-system.service.gov.uk">GOV.UK Design System</a></li>
<li><a href="https://www.gov.uk/design-principles">Government design principles</a></li>
<li><a href="https://www.gov.uk/service-manual">GOV.UK Service Manual</a></li>
<li><a href="https://govuk-prototype-kit.herokuapp.com/docs">GOV.UK Prototype Kit</a></li>
<li><a href="https://github.com/alphagov/govuk-frontend/">GOV.UK Frontend</a></li>
</ul>
</div>
</div>
<div class="footer__licence">
<a class="footer__licence-logo" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence</a>
<p class="footer__licence-description">All content is available under the <a href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a>, except where otherwise stated</p>
</div>
<div class="footer__copyright">
<a class="footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Crown copyright</a>
</div>
</div>
</footer>
</div>
</div>
</div>
<script src="public/assets/javascripts/vendor/highlight/highlight.pack.js"></script>
<script src="public/assets/javascripts/design-system.js"></script>
<script src="public/assets/javascripts/mobile-nav.js"></script>
<script>new MobileNav().init()</script>
{{{scripts}}}
<script src="public/javascripts/application.min.js"></script>
<script>$('.example').addClass('js-enabled')</script>
</body>
</html>