@nationalarchives/frontend 0.1.16-prerelease → 0.1.18-prerelease
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/nationalarchives/all.css +13 -1
- package/nationalarchives/all.css.map +1 -1
- package/nationalarchives/all.js +1 -1
- package/nationalarchives/all.js.map +1 -1
- package/nationalarchives/all.scss +2 -3
- package/nationalarchives/assets/fonts/fa-brands-400.ttf +0 -0
- package/nationalarchives/assets/fonts/fa-brands-400.woff2 +0 -0
- package/nationalarchives/assets/fonts/fa-regular-400.ttf +0 -0
- package/nationalarchives/assets/fonts/fa-regular-400.woff2 +0 -0
- package/nationalarchives/assets/fonts/fa-solid-900.ttf +0 -0
- package/nationalarchives/assets/fonts/fa-solid-900.woff2 +0 -0
- package/nationalarchives/components/breadcrumbs/_index.scss +2 -2
- package/nationalarchives/components/button/_button-group.scss +18 -0
- package/nationalarchives/components/button/_index.scss +24 -7
- package/nationalarchives/components/button/button.stories.js +63 -6
- package/nationalarchives/components/button/fixtures.json +3 -3
- package/nationalarchives/components/button/macro-options.json +13 -1
- package/nationalarchives/components/button/template.njk +7 -2
- package/nationalarchives/components/card/_index.scss +62 -47
- package/nationalarchives/components/card/card.stories.js +59 -8
- package/nationalarchives/components/card/fixtures.json +59 -20
- package/nationalarchives/components/card/macro-options.json +14 -2
- package/nationalarchives/components/card/template.njk +12 -8
- package/nationalarchives/components/filters/_index.scss +19 -14
- package/nationalarchives/components/footer/_index.scss +194 -60
- package/nationalarchives/components/footer/fixtures.json +1 -1
- package/nationalarchives/components/footer/footer.stories.js +80 -71
- package/nationalarchives/components/footer/macro-options.json +34 -8
- package/nationalarchives/components/footer/template.njk +110 -53
- package/nationalarchives/components/header/_index.scss +40 -4
- package/nationalarchives/components/hero/_index.scss +1 -1
- package/nationalarchives/components/index-grid/_index.scss +27 -5
- package/nationalarchives/components/index-grid/index-grid.stories.js +25 -1
- package/nationalarchives/components/index-grid/macro-options.json +12 -0
- package/nationalarchives/components/index-grid/template.njk +9 -11
- package/nationalarchives/components/message/_index.scss +8 -0
- package/nationalarchives/components/picture/_index.scss +2 -0
- package/nationalarchives/components/picture/picture.js +1 -1
- package/nationalarchives/components/picture/picture.js.map +1 -1
- package/nationalarchives/components/picture/picture.mjs +2 -0
- package/nationalarchives/components/skip-link/skip-link.stories.js +3 -2
- package/nationalarchives/components/tabs/_index.scss +6 -3
- package/nationalarchives/components/tabs/tabs.stories.js +6 -6
- package/nationalarchives/lib/font-awesome/_animated.scss +276 -0
- package/nationalarchives/lib/font-awesome/_bordered-pulled.scss +20 -0
- package/nationalarchives/lib/font-awesome/_core.scss +42 -0
- package/nationalarchives/lib/font-awesome/_fixed-width.scss +7 -0
- package/nationalarchives/lib/font-awesome/_functions.scss +57 -0
- package/nationalarchives/lib/font-awesome/_icons.scss +11 -0
- package/nationalarchives/lib/font-awesome/_list.scss +20 -0
- package/nationalarchives/lib/font-awesome/_mixins.scss +74 -0
- package/nationalarchives/lib/font-awesome/_rotated-flipped.scss +31 -0
- package/nationalarchives/lib/font-awesome/_screen-reader.scss +14 -0
- package/nationalarchives/lib/font-awesome/_shims.scss +2653 -0
- package/nationalarchives/lib/font-awesome/_sizing.scss +16 -0
- package/nationalarchives/lib/font-awesome/_stacked.scss +32 -0
- package/nationalarchives/lib/font-awesome/_variables.scss +4976 -0
- package/nationalarchives/lib/font-awesome/brands.scss +34 -0
- package/nationalarchives/lib/font-awesome/fontawesome.scss +21 -0
- package/nationalarchives/lib/font-awesome/regular.scss +28 -0
- package/nationalarchives/lib/font-awesome/solid.scss +28 -0
- package/nationalarchives/lib/font-awesome/v4-shims.scss +11 -0
- package/nationalarchives/stories/utilities/colour-schemes/colour-schemes.mdx +22 -0
- package/nationalarchives/stories/utilities/colour-schemes/colour-schemes.stories.js +483 -97
- package/nationalarchives/stories/utilities/overrides/overrides.mdx +37 -57
- package/nationalarchives/stories/utilities/typography/heading-groups.stories.js +1 -1
- package/nationalarchives/stories/utilities/typography/typography.mdx +2 -0
- package/nationalarchives/stories/utilities/typography/typography.stories.js +20 -1
- package/nationalarchives/templates/layouts/_generic.njk +1 -1
- package/nationalarchives/tools/_colour.scss +86 -41
- package/nationalarchives/tools/_typography.scss +13 -0
- package/nationalarchives/utilities/_font-awesome.scss +5 -0
- package/nationalarchives/utilities/_global.scss +70 -26
- package/nationalarchives/utilities/_index.scss +1 -0
- package/nationalarchives/utilities/_overrides.scss +42 -10
- package/nationalarchives/utilities/_typography.scss +198 -59
- package/nationalarchives/variables/_assets.scss +1 -0
- package/nationalarchives/variables/_colour.scss +29 -23
- package/nationalarchives/variables/_index.scss +1 -0
- package/nationalarchives/variables/_spacing.scss +3 -1
- package/nationalarchives/variables/_typography.scss +4 -1
- package/package.json +13 -13
- package/nationalarchives/patterns/_index.scss +0 -1
- package/nationalarchives/patterns/featured-collection/_index.scss +0 -13
- package/nationalarchives/patterns/featured-collection/featured-collection.stories.js +0 -34
- package/nationalarchives/patterns/featured-collection/macro-options.json +0 -20
- package/nationalarchives/patterns/featured-collection/macro.njk +0 -3
- package/nationalarchives/patterns/featured-collection/template.njk +0 -96
@@ -1,100 +1,217 @@
|
|
1
1
|
@use "../../tools/colour";
|
2
|
+
@use "../../tools/typography";
|
2
3
|
@use "../../tools/media";
|
3
4
|
|
4
5
|
.tna-footer {
|
5
|
-
|
6
|
+
@include colour.invert;
|
7
|
+
|
8
|
+
padding-top: 1rem;
|
6
9
|
padding-bottom: 3rem;
|
7
10
|
|
8
|
-
@include colour.
|
9
|
-
|
11
|
+
// @include colour.colour-font("font-base");
|
12
|
+
|
13
|
+
// --link: colour.brand-colour("white");
|
10
14
|
|
11
15
|
@include colour.on-high-contrast {
|
12
16
|
@include colour.colour-border("keyline", 1px, solid, top);
|
13
17
|
}
|
14
18
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
color: inherit;
|
19
|
-
}
|
19
|
+
.tna-logo {
|
20
|
+
margin-top: 2rem;
|
21
|
+
margin-bottom: 1rem;
|
20
22
|
|
21
|
-
|
22
|
-
|
23
|
+
&__background {
|
24
|
+
fill: transparent;
|
23
25
|
}
|
24
|
-
}
|
25
|
-
|
26
|
-
&__top {
|
27
|
-
margin-bottom: 3rem;
|
28
26
|
|
29
|
-
|
27
|
+
&__foreground {
|
28
|
+
fill: currentColor;
|
29
|
+
}
|
30
30
|
}
|
31
31
|
|
32
32
|
&__title {
|
33
|
-
margin-
|
33
|
+
margin-top: 0;
|
34
|
+
margin-bottom: 0;
|
34
35
|
}
|
35
36
|
|
36
37
|
&__address {
|
37
38
|
font-style: normal;
|
38
39
|
}
|
39
40
|
|
40
|
-
&
|
41
|
-
|
42
|
-
}
|
41
|
+
&__meta {
|
42
|
+
margin-top: 1rem;
|
43
43
|
|
44
|
-
|
44
|
+
@include typography.relative-font-size(16);
|
45
45
|
}
|
46
46
|
|
47
|
-
&
|
48
|
-
|
47
|
+
&__social {
|
48
|
+
margin-top: 2rem;
|
49
49
|
|
50
|
-
|
51
|
-
|
50
|
+
&-items {
|
51
|
+
}
|
52
52
|
|
53
|
-
|
54
|
-
|
53
|
+
&-item {
|
54
|
+
margin-right: 1.5rem;
|
55
|
+
margin-bottom: calc(1rem - 3px);
|
56
|
+
|
57
|
+
display: inline-block;
|
58
|
+
|
59
|
+
vertical-align: top;
|
60
|
+
|
61
|
+
&-link {
|
62
|
+
padding: 0 3px;
|
55
63
|
|
56
|
-
|
57
|
-
|
58
|
-
|
64
|
+
display: inline-block;
|
65
|
+
|
66
|
+
border-top: 3px transparent solid;
|
67
|
+
border-bottom: 3px transparent solid;
|
68
|
+
|
69
|
+
&-image {
|
70
|
+
}
|
71
|
+
|
72
|
+
&-text {
|
73
|
+
}
|
74
|
+
|
75
|
+
&:has(#{&}-image) {
|
76
|
+
&:hover {
|
77
|
+
@include colour.colour-border("link", 3px, solid, bottom);
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
59
81
|
}
|
60
82
|
}
|
61
83
|
|
62
|
-
&
|
84
|
+
&__mailing-list {
|
85
|
+
margin-top: 2rem;
|
86
|
+
padding: 1rem;
|
87
|
+
|
88
|
+
@include typography.relative-font-size(16);
|
89
|
+
|
90
|
+
@include colour.colour-border("keyline-dark", 1px, dashed);
|
91
|
+
|
92
|
+
// background: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23fff' stroke-width='2' stroke-dasharray='4%2c 8' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e") rgba(colour.brand-colour("white"), 0.1);
|
93
|
+
// background-color: rgba(colour.brand-colour("white"), 0.1);
|
94
|
+
background-color: rgba(#fff, 0.1);
|
63
95
|
}
|
64
96
|
|
65
|
-
&
|
66
|
-
|
97
|
+
&__navigation {
|
98
|
+
&-block {
|
99
|
+
padding-top: 2rem;
|
67
100
|
|
68
|
-
|
69
|
-
|
70
|
-
|
101
|
+
&-heading {
|
102
|
+
}
|
103
|
+
|
104
|
+
&-items {
|
105
|
+
}
|
106
|
+
|
107
|
+
&-item {
|
108
|
+
padding-top: 0.375rem;
|
109
|
+
padding-bottom: 0.375rem;
|
110
|
+
|
111
|
+
@include colour.colour-border("keyline", 1px, solid, bottom);
|
112
|
+
|
113
|
+
&-link {
|
114
|
+
text-decoration: none;
|
115
|
+
|
116
|
+
&:hover {
|
117
|
+
@include typography.interacted-text-decoration;
|
118
|
+
}
|
119
|
+
|
120
|
+
&-icon {
|
121
|
+
width: 0.825rem;
|
122
|
+
height: 0.825rem;
|
123
|
+
margin-right: 0.125rem;
|
124
|
+
margin-left: 0.5rem;
|
125
|
+
|
126
|
+
display: inline-block;
|
127
|
+
|
128
|
+
position: relative;
|
129
|
+
|
130
|
+
vertical-align: middle;
|
131
|
+
|
132
|
+
border: 1px #fff solid;
|
133
|
+
|
134
|
+
&::before {
|
135
|
+
position: absolute;
|
136
|
+
top: -0.25rem;
|
137
|
+
right: -0.25rem;
|
138
|
+
z-index: 2;
|
139
|
+
|
140
|
+
border: 0.25rem transparent solid;
|
141
|
+
border-top-color: #fff;
|
142
|
+
border-right-color: #fff;
|
143
|
+
|
144
|
+
content: "";
|
145
|
+
}
|
146
|
+
|
147
|
+
&::after {
|
148
|
+
width: 4px;
|
149
|
+
height: 13px;
|
150
|
+
|
151
|
+
position: absolute;
|
152
|
+
top: -0.125rem;
|
153
|
+
right: -0.125rem;
|
154
|
+
z-index: 1;
|
155
|
+
|
156
|
+
background-color: #fff;
|
157
|
+
|
158
|
+
outline: 3px transparent solid;
|
159
|
+
@include colour.colour-outline("contrast-background");
|
160
|
+
|
161
|
+
transform: rotate(45deg) translateX(50%);
|
162
|
+
transform-origin: 100% 0;
|
163
|
+
|
164
|
+
content: "";
|
165
|
+
}
|
166
|
+
}
|
167
|
+
}
|
168
|
+
}
|
71
169
|
}
|
72
170
|
}
|
73
171
|
|
74
|
-
&
|
75
|
-
|
172
|
+
&__legal {
|
173
|
+
padding-top: 3rem;
|
76
174
|
|
77
|
-
|
78
|
-
}
|
175
|
+
@include typography.relative-font-size(16);
|
79
176
|
|
80
|
-
|
81
|
-
|
82
|
-
}
|
177
|
+
&-items {
|
178
|
+
margin-bottom: 0;
|
83
179
|
|
84
|
-
|
85
|
-
width: 2.25em;
|
86
|
-
margin: 0 auto 0.5rem;
|
180
|
+
text-align: center;
|
87
181
|
|
88
|
-
|
182
|
+
@include media.on-tiny {
|
183
|
+
text-align: inherit;
|
184
|
+
}
|
185
|
+
}
|
186
|
+
|
187
|
+
&-item {
|
188
|
+
padding: 0.5rem;
|
189
|
+
|
190
|
+
display: inline-block;
|
191
|
+
|
192
|
+
@include media.on-tiny {
|
193
|
+
display: block;
|
194
|
+
}
|
195
|
+
|
196
|
+
&-link {
|
197
|
+
}
|
198
|
+
}
|
199
|
+
}
|
200
|
+
|
201
|
+
hr {
|
202
|
+
margin-top: 1.5rem;
|
203
|
+
margin-bottom: 1rem;
|
89
204
|
}
|
90
205
|
|
91
206
|
&__licence {
|
207
|
+
@include typography.relative-font-size(16);
|
208
|
+
|
92
209
|
&.tna-container {
|
93
210
|
align-items: center;
|
94
211
|
}
|
95
212
|
|
96
213
|
.tna-column {
|
97
|
-
margin-top:
|
214
|
+
margin-top: 0.5rem;
|
98
215
|
}
|
99
216
|
}
|
100
217
|
|
@@ -103,22 +220,11 @@
|
|
103
220
|
}
|
104
221
|
|
105
222
|
&__govuk {
|
106
|
-
margin-top: 2rem;
|
107
|
-
|
108
223
|
text-align: center;
|
109
224
|
}
|
110
225
|
|
111
226
|
&__govuk-link {
|
112
227
|
display: inline-block;
|
113
|
-
|
114
|
-
&,
|
115
|
-
&:visited {
|
116
|
-
@include colour.colour-font("font-dark");
|
117
|
-
}
|
118
|
-
|
119
|
-
&:hover {
|
120
|
-
@include colour.colour-font("link");
|
121
|
-
}
|
122
228
|
}
|
123
229
|
|
124
230
|
&__govuk-logotype-crown {
|
@@ -127,10 +233,38 @@
|
|
127
233
|
}
|
128
234
|
|
129
235
|
@include media.on-mobile {
|
130
|
-
padding-top:
|
236
|
+
padding-top: 0;
|
237
|
+
padding-bottom: 2rem;
|
238
|
+
}
|
131
239
|
|
240
|
+
@include colour.on-high-contrast {
|
132
241
|
&__social {
|
133
|
-
|
242
|
+
&-item {
|
243
|
+
&-link {
|
244
|
+
background-color: colour.brand-colour("black");
|
245
|
+
|
246
|
+
outline: 1px transparent solid;
|
247
|
+
@include colour.colour-outline("keyline-dark");
|
248
|
+
|
249
|
+
&:hover {
|
250
|
+
background-color: inherit;
|
251
|
+
}
|
252
|
+
}
|
253
|
+
}
|
254
|
+
}
|
255
|
+
|
256
|
+
&__navigation {
|
257
|
+
&-block {
|
258
|
+
&-items {
|
259
|
+
@include colour.colour-border("keyline-dark", 0.25rem, solid, top);
|
260
|
+
}
|
261
|
+
}
|
262
|
+
}
|
263
|
+
|
264
|
+
&__mailing-list {
|
265
|
+
background-color: transparent;
|
266
|
+
|
267
|
+
@include colour.colour-border("keyline-dark", 1px, solid);
|
134
268
|
}
|
135
269
|
}
|
136
270
|
}
|
@@ -4,7 +4,7 @@
|
|
4
4
|
{
|
5
5
|
"name": "minimal",
|
6
6
|
"options": {},
|
7
|
-
"html": "<footer class=\"tna-footer \"><div class=\"tna-container tna-footer__licence\"><div class=\"tna-column tna-column--full-tiny\"><svg class=\"tna-footer__licence-logo\" xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" aria-hidden=\"true\" viewBox=\"0 0 483.2 195.7\" width=\"60\" height=\"24\"><path fill=\"currentColor\" d=\"M421.5 142.8V.1l-50.7 32.3v161.1h112.4v-50.7zm-122.3-9.6A47.12 47.12 0 0 1 221 97.8c0-26 21.1-47.1 47.1-47.1 16.7 0 31.4 8.7 39.7 21.8l42.7-27.2A97.63 97.63 0 0 0 268.1 0c-36.5 0-68.3 20.1-85.1 49.7A98 98 0 0 0 97.8 0C43.9 0 0 43.9 0 97.8s43.9 97.8 97.8 97.8c36.5 0 68.3-20.1 85.1-49.7a97.76 97.76 0 0 0 149.6 25.4l19.4 22.2h3v-87.8h-80l24.3 27.5zM97.8 145c-26 0-47.1-21.1-47.1-47.1s21.1-47.1 47.1-47.1 47.2 21 47.2 47S123.8 145 97.8 145\"></path></svg></div><div class=\"tna-column tna-column--flex-1\"><p>All content is available under the <a href=\"https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/\" class=\"tna-footer__link\">Open Government Licence v3.0</a>, except where otherwise stated</p></div><div class=\"tna-column tna-column--full-tiny tna-footer__govuk\"><a href=\"https://www.gov.uk/\" class=\"tna-footer__govuk-link\"><svg class=\"tna-footer__govuk-logotype-crown\" xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" aria-hidden=\"true\" viewBox=\"0 0 132 97\" width=\"44\" height=\"32\"><path fill=\"currentColor\" d=\"M25 30.2c3.5 1.5 7.7-.2 9.1-3.7 1.5-3.6-.2-7.8-3.9-9.2-3.6-1.4-7.6.3-9.1 3.9-1.4 3.5.3 7.5 3.9 9zM9 39.5c3.6 1.5 7.8-.2 9.2-3.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2-8.7L108.6 76c2.8-2 5-3.2 7.5-3.3-4.4 9.4-10 11.9-13.6 11.2-4.3-.8-6.3-4.6-5.6-7.9 1-4.7 5.7-5.9 8-.5 4.3-8.7-3-11.4-7.6-8.8 7.1-7.2 7.9-13.5 2.1-21.1-8 6.1-8.1 12.3-4.5 20.8-4.7-5.4-12.1-2.5-9.5 6.2 3.4-5.2 7.9-2 7.2 3.1-.6 4.3-6.4 7.8-13.5 7.2-10.3-.9-10.9-8-11.2-13.8 2.5-.5 7.1 1.8 11 7.3L80.2 60c-4.1 4.4-8 5.3-12.3 5.4 1.4-4.4 8-11.6 8-11.6H55.5s6.4 7.2 7.9 11.6c-4.2-.1-8-1-12.3-5.4l1.4 16.4c3.9-5.5 8.5-7.7 10.9-7.3-.3 5.8-.9 12.8-11.1 13.8-7.2.6-12.9-2.9-13.5-7.2-.7-5 3.8-8.3 7.1-3.1 2.7-8.7-4.6-11.6-9.4-6.2 3.7-8.5 3.6-14.7-4.6-20.8-5.8 7.6-5 13.9 2.2 21.1-4.7-2.6-11.9.1-7.7 8.8 2.3-5.5 7.1-4.2 8.1.5.7 3.3-1.3 7.1-5.7 7.9-3.5.7-9-1.8-13.5-11.2 2.5.1 4.7 1.3 7.5 3.3l-4.7-15.4c-1.2 4.4-2.7 7.2-4.3 8.7-1.1-3-.9-5.3 0-10.2l-9.5 3.4c5 6.9 9.9 16.7 14 33.5 14.8-2.1 30.8-3.2 47.7-3.2z\"></path></svg>GOV.UK</a></div></div></footer>",
|
7
|
+
"html": "<footer class=\"tna-footer \"><div class=\"tna-container\"><div class=\"tna-column tna-column--flex-1 tna-column--width-1-2-medium tna-column--full-small tna-column--full-tiny tna-column--order-1\"><svg xmlns=\"http://www.w3.org/2000/svg\" xml:space=\"preserve\" class=\"tna-logo\" style=\"enable-background:new 0 0 160 160\" viewBox=\"0 0 160 160\" width=\"96\" height=\"96\"><path fill=\"transparent\" d=\"M0 0h160v160H0z\" class=\"tna-logo__background\"/><g class=\"tna-logo__foreground\" fill=\"currentColor\"><path d=\"M1.9 107.2h156.3V158H1.9v-50.8zm0-52.7h156.3v50.8H1.9V54.5zm0-52.6h77.2v50.8H1.9V1.9zm79 0h77.2v50.8H80.9V1.9zm0-1.9H0v160h160V0H80.9z\"/><path d=\"M21.3 19.5h-5.4v-3h14.3v3h-5.4v18.4h-3.5zM31.6 16.5H35v9h8.4v-9h3.4v21.4h-3.4v-9.3H35v9.3h-3.4zM50.9 16.5h12.2v3h-8.8v6.1h7.4v3h-7.4v6.3h8.8v3H50.9zM19.7 69.2h3.8l6.4 12.5c.6 1.1 1.1 2.7 1.6 4h.2c-.2-1.7-.3-3.6-.3-4.8V69.2h3.5v21.4h-3.7l-6.3-12.3c-.7-1.4-1.2-2.7-1.7-4.2H23c.2 1.4.3 3.3.3 5v11.5h-3.5c-.1 0-.1-21.4-.1-21.4zM47.8 82.6l-1.7-6.3c-.3-1.1-.6-2.2-.9-3.8H45c-.3 1.6-.5 2.6-.8 3.8l-1.7 6.3h5.3zM43 69.2h4.2l6.2 21.4h-3.5l-1.5-5.2h-6.6l-1.4 5.2h-3.6L43 69.2zM57.2 72.3h-5.4v-3.1H66v3.1h-5.4v18.4h-3.4zM67.8 69.2h3.5v21.4h-3.5zM87.5 80c0-5.3-1.7-8-4.8-8-3.2 0-4.8 2.7-4.8 8 0 5.2 1.6 7.9 4.8 7.9 3.2 0 4.8-2.7 4.8-7.9m-13.3 0c0-7 3-11.1 8.5-11.1 5.4 0 8.4 4.1 8.4 11.1 0 6.9-3 11-8.4 11s-8.5-4.1-8.5-11M94.3 69.2H98l6.4 12.5c.6 1.1 1.2 2.7 1.7 4h.2c-.2-1.7-.3-3.6-.3-4.8V69.2h3.4v21.4h-3.7l-6.3-12.3c-.7-1.4-1.2-2.7-1.7-4.2h-.2c.2 1.4.3 3.3.3 5v11.5h-3.5V69.2zM122.4 82.6l-1.7-6.3c-.3-1.1-.6-2.2-.9-3.8h-.2c-.3 1.6-.5 2.6-.8 3.8l-1.7 6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 .7-.1 1.1l-3.4.1c0-.2.1-.5.1-.7 0-1.7-.6-3.2-3-3.2-2.1 0-3 1.2-3 2.8 0 1.7.9 2.5 2.2 2.9l3.5 1.3c2.6 1 4.3 2.6 4.3 5.8 0 3.6-2.4 6.1-7 6.1-5.9 0-6.8-3.9-6.8-6.5 0-.3 0-.6.1-1l3.3-.1z\"/></g></svg><h2 class=\"tna-heading tna-heading--l tna-footer__title\">The National Archives</h2><address class=\"tna-footer__address\">Kew, Richmond<br />TW9 4DU</address></div></div><div class=\"tna-container\"><div class=\"tna-column--full\"><hr /></div></div><div class=\"tna-container tna-footer__licence\"><div class=\"tna-column tna-column--full-tiny\"><svg class=\"tna-footer__licence-logo\" xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" aria-hidden=\"true\" viewBox=\"0 0 483.2 195.7\" width=\"60\" height=\"24\"><path fill=\"currentColor\" d=\"M421.5 142.8V.1l-50.7 32.3v161.1h112.4v-50.7zm-122.3-9.6A47.12 47.12 0 0 1 221 97.8c0-26 21.1-47.1 47.1-47.1 16.7 0 31.4 8.7 39.7 21.8l42.7-27.2A97.63 97.63 0 0 0 268.1 0c-36.5 0-68.3 20.1-85.1 49.7A98 98 0 0 0 97.8 0C43.9 0 0 43.9 0 97.8s43.9 97.8 97.8 97.8c36.5 0 68.3-20.1 85.1-49.7a97.76 97.76 0 0 0 149.6 25.4l19.4 22.2h3v-87.8h-80l24.3 27.5zM97.8 145c-26 0-47.1-21.1-47.1-47.1s21.1-47.1 47.1-47.1 47.2 21 47.2 47S123.8 145 97.8 145\"></path></svg></div><div class=\"tna-column tna-column--flex-1\"><p>All content is available under the <a href=\"https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/\" class=\"tna-footer__link\">Open Government Licence v3.0</a>, except where otherwise stated</p></div><div class=\"tna-column tna-column--full-tiny tna-footer__govuk\"><a href=\"https://www.gov.uk/\" class=\"tna-footer__govuk-link\"><svg class=\"tna-footer__govuk-logotype-crown\" xmlns=\"http://www.w3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 8.1h.2c.3 0 .7.1 1 .1.4 0 .7 0 1-.1h.2c4-.6 7.1-4.1 7.1-8.1 0-.8-.1-1.7-.4-2.4V34l-5.1-15.4c.4-.2.7-.6 1-.9zM66 92.8c16.9 0 32.8 1.1 47.1 3.2 4-16.9 8.9-26.7 14-33.5l-9.6-3.4c1 4.9 1.1 7.2 0 10.2-1.5-1.4-3-4.3-4.2-8.7L108.6 76c2.8-2 5-3.2 7.5-3.3-4.4 9.4-10 11.9-13.6 11.2-4.3-.8-6.3-4.6-5.6-7.9 1-4.7 5.7-5.9 8-.5 4.3-8.7-3-11.4-7.6-8.8 7.1-7.2 7.9-13.5 2.1-21.1-8 6.1-8.1 12.3-4.5 20.8-4.7-5.4-12.1-2.5-9.5 6.2 3.4-5.2 7.9-2 7.2 3.1-.6 4.3-6.4 7.8-13.5 7.2-10.3-.9-10.9-8-11.2-13.8 2.5-.5 7.1 1.8 11 7.3L80.2 60c-4.1 4.4-8 5.3-12.3 5.4 1.4-4.4 8-11.6 8-11.6H55.5s6.4 7.2 7.9 11.6c-4.2-.1-8-1-12.3-5.4l1.4 16.4c3.9-5.5 8.5-7.7 10.9-7.3-.3 5.8-.9 12.8-11.1 13.8-7.2.6-12.9-2.9-13.5-7.2-.7-5 3.8-8.3 7.1-3.1 2.7-8.7-4.6-11.6-9.4-6.2 3.7-8.5 3.6-14.7-4.6-20.8-5.8 7.6-5 13.9 2.2 21.1-4.7-2.6-11.9.1-7.7 8.8 2.3-5.5 7.1-4.2 8.1.5.7 3.3-1.3 7.1-5.7 7.9-3.5.7-9-1.8-13.5-11.2 2.5.1 4.7 1.3 7.5 3.3l-4.7-15.4c-1.2 4.4-2.7 7.2-4.3 8.7-1.1-3-.9-5.3 0-10.2l-9.5 3.4c5 6.9 9.9 16.7 14 33.5 14.8-2.1 30.8-3.2 47.7-3.2z\"></path></svg>GOV.UK</a></div></div></div></footer>",
|
8
8
|
"hidden": false
|
9
9
|
}
|
10
10
|
]
|
@@ -2,10 +2,11 @@ import Footer from "./template.njk";
|
|
2
2
|
import macroOptions from "./macro-options.json";
|
3
3
|
|
4
4
|
const argTypes = {
|
5
|
-
|
6
|
-
address: { control: "text" },
|
7
|
-
navigation: { control: "object" },
|
5
|
+
meta: { control: "text" },
|
8
6
|
social: { control: "object" },
|
7
|
+
navigation: { control: "object" },
|
8
|
+
showNewsletter: { control: "boolean" },
|
9
|
+
legal: { control: "object" },
|
9
10
|
classes: { control: "text" },
|
10
11
|
attributes: { control: "object" },
|
11
12
|
};
|
@@ -22,19 +23,21 @@ export default {
|
|
22
23
|
};
|
23
24
|
|
24
25
|
const Template = ({
|
25
|
-
|
26
|
-
address,
|
27
|
-
navigation,
|
26
|
+
meta,
|
28
27
|
social,
|
28
|
+
navigation,
|
29
|
+
showNewsletter,
|
30
|
+
legal,
|
29
31
|
classes,
|
30
32
|
attributes,
|
31
33
|
}) =>
|
32
34
|
Footer({
|
33
35
|
params: {
|
34
|
-
|
35
|
-
address,
|
36
|
-
navigation,
|
36
|
+
meta,
|
37
37
|
social,
|
38
|
+
navigation,
|
39
|
+
showNewsletter,
|
40
|
+
legal,
|
38
41
|
classes,
|
39
42
|
attributes,
|
40
43
|
},
|
@@ -42,145 +45,151 @@ const Template = ({
|
|
42
45
|
|
43
46
|
export const Standard = Template.bind({});
|
44
47
|
Standard.args = {
|
45
|
-
|
46
|
-
|
48
|
+
meta: "<p>Open today<br />09:00—19:00</p>",
|
49
|
+
social: [
|
50
|
+
{
|
51
|
+
text: "Twitter",
|
52
|
+
href: "#",
|
53
|
+
image: "./images/footer/twitter.svg",
|
54
|
+
},
|
55
|
+
{
|
56
|
+
text: "YouTube",
|
57
|
+
href: "#",
|
58
|
+
image: "./images/footer/youtube.svg",
|
59
|
+
},
|
60
|
+
{
|
61
|
+
text: "Facebook",
|
62
|
+
href: "#",
|
63
|
+
image: "./images/footer/facebook.svg",
|
64
|
+
},
|
65
|
+
{
|
66
|
+
text: "Flickr",
|
67
|
+
href: "#",
|
68
|
+
image: "./images/footer/flickr.svg",
|
69
|
+
},
|
70
|
+
{
|
71
|
+
text: "Instagram",
|
72
|
+
href: "#",
|
73
|
+
image: "./images/footer/instagram.svg",
|
74
|
+
},
|
75
|
+
{
|
76
|
+
text: "RSS",
|
77
|
+
href: "#",
|
78
|
+
image: "./images/footer/rss.svg",
|
79
|
+
},
|
80
|
+
],
|
47
81
|
navigation: [
|
48
82
|
{
|
49
|
-
title: "
|
83
|
+
title: "About us",
|
50
84
|
items: [
|
51
85
|
{
|
52
|
-
text: "
|
86
|
+
text: "Our role",
|
53
87
|
href: "#",
|
54
88
|
},
|
55
89
|
{
|
56
|
-
text: "
|
90
|
+
text: "Our history",
|
57
91
|
href: "#",
|
58
92
|
},
|
59
93
|
{
|
60
|
-
text: "
|
94
|
+
text: "Our collection",
|
61
95
|
href: "#",
|
62
96
|
},
|
63
97
|
{
|
64
|
-
text: "
|
65
|
-
href: "#",
|
66
|
-
},
|
67
|
-
],
|
68
|
-
},
|
69
|
-
{
|
70
|
-
title: "Site help",
|
71
|
-
items: [
|
72
|
-
{
|
73
|
-
text: "Help",
|
98
|
+
text: "Our people",
|
74
99
|
href: "#",
|
75
100
|
},
|
76
101
|
{
|
77
|
-
text: "
|
102
|
+
text: "How we are run",
|
78
103
|
href: "#",
|
79
104
|
},
|
80
105
|
{
|
81
|
-
text: "
|
106
|
+
text: "Our research amd academic collaboration",
|
82
107
|
href: "#",
|
83
108
|
},
|
84
|
-
],
|
85
|
-
},
|
86
|
-
{
|
87
|
-
title: "Websites",
|
88
|
-
items: [
|
89
109
|
{
|
90
|
-
text: "
|
110
|
+
text: "News",
|
91
111
|
href: "#",
|
92
112
|
},
|
93
113
|
{
|
94
|
-
text: "
|
114
|
+
text: "Contact us",
|
95
115
|
href: "#",
|
96
116
|
},
|
97
117
|
{
|
98
|
-
text: "
|
118
|
+
text: "Jobs & careers",
|
99
119
|
href: "#",
|
100
120
|
},
|
101
121
|
{
|
102
|
-
text: "
|
122
|
+
text: "Get involved",
|
103
123
|
href: "#",
|
104
124
|
},
|
125
|
+
],
|
126
|
+
},
|
127
|
+
{
|
128
|
+
title: "Our websites help",
|
129
|
+
items: [
|
105
130
|
{
|
106
131
|
text: "UK Government Web Archive",
|
107
132
|
href: "#",
|
133
|
+
newTab: true,
|
108
134
|
},
|
109
135
|
{
|
110
136
|
text: "Legislation.gov.uk",
|
111
137
|
href: "#",
|
138
|
+
newTab: true,
|
112
139
|
},
|
113
140
|
{
|
114
141
|
text: "Find case law",
|
115
142
|
href: "#",
|
143
|
+
newTab: true,
|
116
144
|
},
|
117
145
|
{
|
118
146
|
text: "The Gazette",
|
119
147
|
href: "#",
|
148
|
+
newTab: true,
|
120
149
|
},
|
121
150
|
],
|
122
151
|
},
|
123
152
|
{
|
124
|
-
title: "
|
153
|
+
title: "Quick links",
|
125
154
|
items: [
|
126
155
|
{
|
127
|
-
text: "
|
128
|
-
href: "#",
|
129
|
-
},
|
130
|
-
{
|
131
|
-
text: "Privacy policy",
|
132
|
-
href: "#",
|
133
|
-
},
|
134
|
-
{
|
135
|
-
text: "Cookies",
|
136
|
-
href: "#",
|
137
|
-
},
|
138
|
-
{
|
139
|
-
text: "Freedom of Information",
|
140
|
-
href: "#",
|
141
|
-
},
|
142
|
-
{
|
143
|
-
text: "Transparency",
|
156
|
+
text: "Press room",
|
144
157
|
href: "#",
|
145
158
|
},
|
146
159
|
{
|
147
|
-
text: "
|
160
|
+
text: "Venue hire",
|
148
161
|
href: "#",
|
149
162
|
},
|
150
163
|
],
|
151
164
|
},
|
152
165
|
],
|
153
|
-
|
166
|
+
showNewsletter: true,
|
167
|
+
legal: [
|
154
168
|
{
|
155
|
-
text: "
|
169
|
+
text: "Accessibility statement",
|
156
170
|
href: "#",
|
157
|
-
image: "./images/footer/twitter.svg",
|
158
|
-
},
|
159
|
-
{
|
160
|
-
text: "YouTube",
|
161
|
-
href: "#",
|
162
|
-
image: "./images/footer/youtube.svg",
|
163
171
|
},
|
164
172
|
{
|
165
|
-
text: "
|
173
|
+
text: "Freedom of information",
|
166
174
|
href: "#",
|
167
|
-
image: "./images/footer/flickr.svg",
|
168
175
|
},
|
169
176
|
{
|
170
|
-
text: "
|
177
|
+
text: "Terms and condidtions",
|
171
178
|
href: "#",
|
172
|
-
image: "./images/footer/facebook.svg",
|
173
179
|
},
|
174
180
|
{
|
175
|
-
text: "
|
181
|
+
text: "Privacy policy",
|
176
182
|
href: "#",
|
177
|
-
image: "./images/footer/instagram.svg",
|
178
183
|
},
|
179
184
|
{
|
180
|
-
text: "
|
185
|
+
text: "Cookies",
|
181
186
|
href: "#",
|
182
|
-
image: "./images/footer/rss.svg",
|
183
187
|
},
|
184
188
|
],
|
185
189
|
classes: "tna-footer--demo",
|
186
190
|
};
|
191
|
+
|
192
|
+
export const Minimal = Template.bind({});
|
193
|
+
Minimal.args = {
|
194
|
+
classes: "tna-footer--demo",
|
195
|
+
};
|
@@ -1,15 +1,41 @@
|
|
1
1
|
[
|
2
2
|
{
|
3
|
-
"name": "
|
4
|
-
"type": "
|
3
|
+
"name": "meta",
|
4
|
+
"type": "string",
|
5
5
|
"required": false,
|
6
6
|
"description": ""
|
7
7
|
},
|
8
8
|
{
|
9
|
-
"name": "
|
10
|
-
"type": "
|
9
|
+
"name": "social",
|
10
|
+
"type": "array",
|
11
11
|
"required": false,
|
12
|
-
"description": ""
|
12
|
+
"description": "",
|
13
|
+
"params": [
|
14
|
+
{
|
15
|
+
"name": "text",
|
16
|
+
"type": "string",
|
17
|
+
"required": true,
|
18
|
+
"description": ""
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"name": "href",
|
22
|
+
"type": "string",
|
23
|
+
"required": true,
|
24
|
+
"description": ""
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"name": "image",
|
28
|
+
"type": "string",
|
29
|
+
"required": true,
|
30
|
+
"description": ""
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"name": "title",
|
34
|
+
"type": "string",
|
35
|
+
"required": false,
|
36
|
+
"description": ""
|
37
|
+
}
|
38
|
+
]
|
13
39
|
},
|
14
40
|
{
|
15
41
|
"name": "navigation",
|
@@ -48,8 +74,8 @@
|
|
48
74
|
"description": ""
|
49
75
|
},
|
50
76
|
{
|
51
|
-
"name": "
|
52
|
-
"type": "
|
77
|
+
"name": "newTab",
|
78
|
+
"type": "boolean",
|
53
79
|
"required": false,
|
54
80
|
"description": ""
|
55
81
|
}
|
@@ -58,7 +84,7 @@
|
|
58
84
|
]
|
59
85
|
},
|
60
86
|
{
|
61
|
-
"name": "
|
87
|
+
"name": "legal",
|
62
88
|
"type": "array",
|
63
89
|
"required": false,
|
64
90
|
"description": "",
|