@nationalarchives/frontend 0.1.52 → 0.1.54
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 +1 -1
- package/nationalarchives/all.css.map +1 -1
- package/nationalarchives/all.js +1 -1
- package/nationalarchives/all.js.map +1 -1
- package/nationalarchives/all.mjs +7 -0
- package/nationalarchives/analytics.js +1 -1
- package/nationalarchives/analytics.js.map +1 -1
- package/nationalarchives/analytics.mjs +4 -4
- package/nationalarchives/assets/fonts/OpenSans-SemiBold.ttf +0 -0
- package/nationalarchives/components/breadcrumbs/breadcrumbs.css +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.css.map +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.scss +9 -8
- package/nationalarchives/components/button/button-group.stories.js +0 -8
- package/nationalarchives/components/button/button.css +1 -1
- package/nationalarchives/components/button/button.css.map +1 -1
- package/nationalarchives/components/button/button.scss +12 -6
- package/nationalarchives/components/button/fixtures.json +76 -0
- package/nationalarchives/components/card/card.css +1 -1
- package/nationalarchives/components/card/card.css.map +1 -1
- package/nationalarchives/components/card/card.scss +1 -1
- package/nationalarchives/components/card/fixtures.json +24 -24
- package/nationalarchives/components/card/macro-options.json +1 -1
- package/nationalarchives/components/card/template.njk +1 -1
- package/nationalarchives/components/checkboxes/checkboxes.css +1 -1
- package/nationalarchives/components/checkboxes/checkboxes.css.map +1 -1
- package/nationalarchives/components/checkboxes/checkboxes.scss +3 -2
- package/nationalarchives/components/compound-filters/compound-filters.css +1 -1
- package/nationalarchives/components/compound-filters/compound-filters.css.map +1 -1
- package/nationalarchives/components/compound-filters/compound-filters.scss +10 -6
- package/nationalarchives/components/cookie-banner/README.md +6 -2
- package/nationalarchives/components/cookie-banner/cookie-banner.css.map +1 -1
- package/nationalarchives/components/cookie-banner/cookie-banner.js +1 -1
- package/nationalarchives/components/cookie-banner/cookie-banner.js.map +1 -1
- package/nationalarchives/components/cookie-banner/cookie-banner.mjs +2 -1
- package/nationalarchives/components/cookie-banner/cookie-banner.stories.js +7 -8
- package/nationalarchives/components/date-input/date-input.css +1 -1
- package/nationalarchives/components/date-input/date-input.css.map +1 -1
- package/nationalarchives/components/date-search/date-search.css +1 -1
- package/nationalarchives/components/date-search/date-search.css.map +1 -1
- package/nationalarchives/components/date-search/date-search.scss +2 -0
- package/nationalarchives/components/error-summary/error-summary.css +1 -1
- package/nationalarchives/components/error-summary/error-summary.css.map +1 -1
- package/nationalarchives/components/featured-records/featured-records.css +1 -1
- package/nationalarchives/components/featured-records/featured-records.css.map +1 -1
- package/nationalarchives/components/featured-records/featured-records.scss +5 -3
- package/nationalarchives/components/footer/analytics.js +8 -0
- package/nationalarchives/components/footer/fixtures.json +9 -2
- package/nationalarchives/components/footer/footer.css +1 -1
- package/nationalarchives/components/footer/footer.css.map +1 -1
- package/nationalarchives/components/footer/footer.js +2 -0
- package/nationalarchives/components/footer/footer.js.map +1 -0
- package/nationalarchives/components/footer/footer.mjs +87 -0
- package/nationalarchives/components/footer/footer.scss +28 -8
- package/nationalarchives/components/footer/footer.stories.js +62 -3
- package/nationalarchives/components/footer/template.njk +168 -120
- package/nationalarchives/components/gallery/gallery.css +1 -1
- package/nationalarchives/components/gallery/gallery.css.map +1 -1
- package/nationalarchives/components/gallery/gallery.scss +2 -1
- package/nationalarchives/components/global-header/global-header.css +1 -1
- package/nationalarchives/components/global-header/global-header.css.map +1 -1
- package/nationalarchives/components/global-header/global-header.scss +13 -10
- package/nationalarchives/components/grid/grid.css +1 -1
- package/nationalarchives/components/grid/grid.css.map +1 -1
- package/nationalarchives/components/grid/grid.scss +3 -3
- package/nationalarchives/components/header/header.css +1 -1
- package/nationalarchives/components/header/header.css.map +1 -1
- package/nationalarchives/components/header/header.scss +17 -15
- package/nationalarchives/components/hero/fixtures.json +106 -18
- package/nationalarchives/components/hero/hero.css +1 -1
- package/nationalarchives/components/hero/hero.css.map +1 -1
- package/nationalarchives/components/hero/hero.scss +78 -19
- package/nationalarchives/components/hero/hero.stories.js +60 -32
- package/nationalarchives/components/hero/macro-options.json +34 -3
- package/nationalarchives/components/hero/template.njk +27 -6
- package/nationalarchives/components/index-grid/index-grid.css +1 -1
- package/nationalarchives/components/index-grid/index-grid.css.map +1 -1
- package/nationalarchives/components/index-grid/macro-options.json +1 -1
- package/nationalarchives/components/pagination/pagination.css +1 -1
- package/nationalarchives/components/pagination/pagination.css.map +1 -1
- package/nationalarchives/components/pagination/pagination.scss +2 -2
- package/nationalarchives/components/phase-banner/phase-banner.css.map +1 -1
- package/nationalarchives/components/picture/picture.css +1 -1
- package/nationalarchives/components/picture/picture.css.map +1 -1
- package/nationalarchives/components/picture/picture.scss +5 -1
- package/nationalarchives/components/quick-filters/quick-filters.css +1 -1
- package/nationalarchives/components/quick-filters/quick-filters.css.map +1 -1
- package/nationalarchives/components/quick-filters/quick-filters.scss +4 -2
- package/nationalarchives/components/radios/radios.css +1 -1
- package/nationalarchives/components/radios/radios.css.map +1 -1
- package/nationalarchives/components/radios/radios.scss +3 -2
- package/nationalarchives/components/search-field/search-field.css +1 -1
- package/nationalarchives/components/search-field/search-field.css.map +1 -1
- package/nationalarchives/components/search-filters/search-filters.css +1 -1
- package/nationalarchives/components/search-filters/search-filters.css.map +1 -1
- package/nationalarchives/components/search-filters/search-filters.scss +7 -6
- package/nationalarchives/components/select/select.css +1 -1
- package/nationalarchives/components/select/select.css.map +1 -1
- package/nationalarchives/components/sensitive-image/sensitive-image.css +1 -1
- package/nationalarchives/components/sensitive-image/sensitive-image.css.map +1 -1
- package/nationalarchives/components/sensitive-image/sensitive-image.scss +7 -6
- package/nationalarchives/components/skip-link/skip-link.css +1 -1
- package/nationalarchives/components/skip-link/skip-link.css.map +1 -1
- package/nationalarchives/components/skip-link/skip-link.scss +4 -4
- package/nationalarchives/components/tabs/tabs.css +1 -1
- package/nationalarchives/components/tabs/tabs.css.map +1 -1
- package/nationalarchives/components/tabs/tabs.scss +8 -6
- package/nationalarchives/components/text-input/text-input.css +1 -1
- package/nationalarchives/components/text-input/text-input.css.map +1 -1
- package/nationalarchives/components/textarea/textarea.css +1 -1
- package/nationalarchives/components/textarea/textarea.css.map +1 -1
- package/nationalarchives/components/textarea/textarea.scss +7 -4
- package/nationalarchives/components/warning/warning.css +1 -1
- package/nationalarchives/components/warning/warning.css.map +1 -1
- package/nationalarchives/components/warning/warning.scss +7 -5
- package/nationalarchives/global-header-package.css +1 -1
- package/nationalarchives/global-header-package.css.map +1 -1
- package/nationalarchives/lib/cookies.mjs +21 -4
- package/nationalarchives/lib/functions.css +1 -0
- package/nationalarchives/lib/functions.css.map +1 -0
- package/nationalarchives/lib/functions.scss +16 -0
- package/nationalarchives/prototype-kit.css +1 -1
- package/nationalarchives/prototype-kit.css.map +1 -1
- package/nationalarchives/stories/utilities/colour-schemes/colour-combinations.stories.js +6 -2
- package/nationalarchives/stories/utilities/colour-schemes/colour-themes.stories.js +2 -1
- package/nationalarchives/templates/fixtures.json +27 -4
- package/nationalarchives/templates/layouts/_generic.njk +15 -15
- package/nationalarchives/tools/_colour.scss +3 -3
- package/nationalarchives/tools/_typography.scss +8 -9
- package/nationalarchives/utilities/_a11y.scss +4 -4
- package/nationalarchives/utilities/_debug.scss +2 -2
- package/nationalarchives/utilities/_global.scss +8 -0
- package/nationalarchives/utilities/_imports.scss +57 -0
- package/nationalarchives/utilities/_index.scss +1 -0
- package/nationalarchives/utilities/_lists.scss +36 -19
- package/nationalarchives/utilities/_tables.scss +8 -8
- package/nationalarchives/utilities/_typography.scss +6 -42
- package/nationalarchives/variables/_colour.scss +7 -2
- package/nationalarchives/variables/_typography.scss +55 -4
- package/package.json +21 -20
- package/nationalarchives/assets/fonts/OpenSans-Italic.ttf +0 -0
@@ -0,0 +1,87 @@
|
|
1
|
+
import Cookies from "../../lib/cookies.mjs";
|
2
|
+
|
3
|
+
export class Footer {
|
4
|
+
constructor($module) {
|
5
|
+
this.$module = $module;
|
6
|
+
this.$themeSelector =
|
7
|
+
$module && $module.querySelector(".tna-footer__theme-selector");
|
8
|
+
this.$tnaTemplate = document.querySelector(".tna-template");
|
9
|
+
|
10
|
+
if (!this.$module || !this.$themeSelector || !this.$tnaTemplate) {
|
11
|
+
return;
|
12
|
+
}
|
13
|
+
|
14
|
+
this.$themeSelectorButtons = this.$themeSelector.querySelectorAll(
|
15
|
+
"button.tna-footer__theme-selector-button[value]",
|
16
|
+
);
|
17
|
+
|
18
|
+
Array.from(this.$themeSelectorButtons).forEach(($themeSelectorButton) => {
|
19
|
+
$themeSelectorButton.addEventListener("click", (e) => {
|
20
|
+
const $button = e.target;
|
21
|
+
this.setTheme($button.value);
|
22
|
+
this.selectThemeSelectorButton($button);
|
23
|
+
});
|
24
|
+
});
|
25
|
+
|
26
|
+
this.cookies = new Cookies();
|
27
|
+
if (this.cookies.isPolicyAccepted("settings")) {
|
28
|
+
this.showThemeSelector();
|
29
|
+
}
|
30
|
+
this.cookies.on("changePolicy", (data) => {
|
31
|
+
if (Object.hasOwn(data, "settings")) {
|
32
|
+
if (data.settings === true) {
|
33
|
+
this.showThemeSelector();
|
34
|
+
} else {
|
35
|
+
this.cookies.delete("theme");
|
36
|
+
this.hideThemeSelector();
|
37
|
+
}
|
38
|
+
}
|
39
|
+
});
|
40
|
+
}
|
41
|
+
|
42
|
+
showThemeSelector() {
|
43
|
+
this.$themeSelector.removeAttribute("hidden");
|
44
|
+
if (this.cookies.exists("theme")) {
|
45
|
+
const $currentThemeButton = Array.from(this.$themeSelectorButtons).find(
|
46
|
+
($button) => $button.value === this.cookies.get("theme"),
|
47
|
+
);
|
48
|
+
if ($currentThemeButton) {
|
49
|
+
this.selectThemeSelectorButton($currentThemeButton);
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
hideThemeSelector() {
|
55
|
+
this.$themeSelector.setAttribute("hidden", true);
|
56
|
+
}
|
57
|
+
|
58
|
+
setTheme(theme) {
|
59
|
+
if (theme === "light") {
|
60
|
+
this.$tnaTemplate.classList.remove(
|
61
|
+
"tna-template--system-theme",
|
62
|
+
"tna-template--dark-theme",
|
63
|
+
);
|
64
|
+
} else if (theme === "dark") {
|
65
|
+
this.$tnaTemplate.classList.remove("tna-template--system-theme");
|
66
|
+
this.$tnaTemplate.classList.add(`tna-template--dark-theme`);
|
67
|
+
} else if (theme === "system") {
|
68
|
+
this.$tnaTemplate.classList.remove("tna-template--dark-theme");
|
69
|
+
this.$tnaTemplate.classList.add(`tna-template--system-theme`);
|
70
|
+
} else {
|
71
|
+
return;
|
72
|
+
}
|
73
|
+
this.cookies.set("theme", theme);
|
74
|
+
}
|
75
|
+
|
76
|
+
selectThemeSelectorButton($selectedButton) {
|
77
|
+
Array.from(this.$themeSelectorButtons).forEach(($button) => {
|
78
|
+
if ($button.value === $selectedButton.value) {
|
79
|
+
$button.classList.remove("tna-button--plain");
|
80
|
+
$button.setAttribute("aria-current", true);
|
81
|
+
} else {
|
82
|
+
$button.classList.add("tna-button--plain");
|
83
|
+
$button.removeAttribute("aria-current");
|
84
|
+
}
|
85
|
+
});
|
86
|
+
}
|
87
|
+
}
|
@@ -4,10 +4,25 @@
|
|
4
4
|
@use "../../tools/typography";
|
5
5
|
|
6
6
|
.tna-footer {
|
7
|
-
|
7
|
+
&__inner {
|
8
|
+
@include colour.contrast;
|
8
9
|
|
9
|
-
|
10
|
-
|
10
|
+
padding-top: spacing.space(1);
|
11
|
+
padding-bottom: spacing.space(3);
|
12
|
+
}
|
13
|
+
|
14
|
+
&__theme-selector {
|
15
|
+
.tna-button-group {
|
16
|
+
justify-content: flex-end;
|
17
|
+
}
|
18
|
+
|
19
|
+
.tna-button {
|
20
|
+
@include typography.main-font-weight-bold;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
&__theme-selector-button {
|
25
|
+
}
|
11
26
|
|
12
27
|
.tna-logo {
|
13
28
|
margin-top: spacing.space(2);
|
@@ -43,8 +58,8 @@
|
|
43
58
|
&-items {
|
44
59
|
display: flex;
|
45
60
|
flex-wrap: wrap;
|
46
|
-
gap: spacing.space(0.3125);
|
47
61
|
align-items: flex-start;
|
62
|
+
gap: spacing.space(0.3125);
|
48
63
|
}
|
49
64
|
|
50
65
|
&-item {
|
@@ -55,9 +70,10 @@
|
|
55
70
|
|
56
71
|
display: block;
|
57
72
|
|
58
|
-
text-align: center;
|
59
73
|
line-height: 1;
|
60
74
|
|
75
|
+
text-align: center;
|
76
|
+
|
61
77
|
border: 0 transparent solid;
|
62
78
|
border-width: 4px 0;
|
63
79
|
|
@@ -192,12 +208,16 @@
|
|
192
208
|
}
|
193
209
|
|
194
210
|
@include media.on-mobile {
|
195
|
-
|
196
|
-
|
211
|
+
&__inner {
|
212
|
+
padding-top: 0;
|
213
|
+
padding-bottom: spacing.space(2);
|
214
|
+
}
|
197
215
|
}
|
198
216
|
|
199
217
|
@include colour.on-high-contrast-and-forced-colours {
|
200
|
-
|
218
|
+
&__inner {
|
219
|
+
@include colour.colour-border("keyline", 1px, solid, top);
|
220
|
+
}
|
201
221
|
|
202
222
|
&__navigation {
|
203
223
|
&-block {
|
@@ -1,5 +1,7 @@
|
|
1
1
|
import Footer from "./template.njk";
|
2
2
|
import macroOptions from "./macro-options.json";
|
3
|
+
import { within, expect } from "@storybook/test";
|
4
|
+
import Cookies from "../../lib/cookies.mjs";
|
3
5
|
|
4
6
|
const argTypes = {
|
5
7
|
meta: { control: "text" },
|
@@ -7,6 +9,11 @@ const argTypes = {
|
|
7
9
|
navigation: { control: "object" },
|
8
10
|
showNewsletter: { control: "boolean" },
|
9
11
|
legal: { control: "object" },
|
12
|
+
themeSelector: { control: "boolean" },
|
13
|
+
currentTheme: {
|
14
|
+
control: "inline-radio",
|
15
|
+
options: ["system", "light", "dark", ""],
|
16
|
+
},
|
10
17
|
classes: { control: "text" },
|
11
18
|
attributes: { control: "object" },
|
12
19
|
};
|
@@ -28,6 +35,8 @@ const Template = ({
|
|
28
35
|
navigation,
|
29
36
|
showNewsletter,
|
30
37
|
legal,
|
38
|
+
themeSelector,
|
39
|
+
currentTheme,
|
31
40
|
classes,
|
32
41
|
attributes,
|
33
42
|
}) =>
|
@@ -38,6 +47,8 @@ const Template = ({
|
|
38
47
|
navigation,
|
39
48
|
showNewsletter,
|
40
49
|
legal,
|
50
|
+
themeSelector,
|
51
|
+
currentTheme,
|
41
52
|
classes,
|
42
53
|
attributes,
|
43
54
|
},
|
@@ -173,10 +184,58 @@ Standard.args = {
|
|
173
184
|
href: "#/cookies",
|
174
185
|
},
|
175
186
|
],
|
176
|
-
classes: "tna-footer--demo",
|
177
187
|
};
|
178
188
|
|
179
189
|
export const Minimal = Template.bind({});
|
180
|
-
Minimal.args = {
|
181
|
-
|
190
|
+
Minimal.args = {};
|
191
|
+
|
192
|
+
export const ThemeSelector = Template.bind({});
|
193
|
+
ThemeSelector.args = {
|
194
|
+
themeSelector: true,
|
195
|
+
currentTheme: "",
|
196
|
+
};
|
197
|
+
ThemeSelector.decorators = [
|
198
|
+
(Story) => {
|
199
|
+
const cookies = new Cookies({ newInstance: true });
|
200
|
+
cookies.set("cookie_preferences_set", true);
|
201
|
+
cookies.acceptPolicy("settings");
|
202
|
+
return Story();
|
203
|
+
},
|
204
|
+
];
|
205
|
+
ThemeSelector.play = async ({ canvasElement }) => {
|
206
|
+
const canvas = within(canvasElement);
|
207
|
+
const systemLightButton = canvas.getByText("System theme");
|
208
|
+
const themeLightButton = canvas.getByText("Light theme");
|
209
|
+
const darkLightButton = canvas.getByText("Dark theme");
|
210
|
+
|
211
|
+
await expect(systemLightButton).toBeVisible();
|
212
|
+
await expect(themeLightButton).toBeVisible();
|
213
|
+
await expect(darkLightButton).toBeVisible();
|
214
|
+
};
|
215
|
+
|
216
|
+
export const ThemeSelectorWithoutCookies = Template.bind({});
|
217
|
+
ThemeSelectorWithoutCookies.parameters = {
|
218
|
+
chromatic: { disableSnapshot: true },
|
219
|
+
};
|
220
|
+
ThemeSelectorWithoutCookies.args = {
|
221
|
+
themeSelector: true,
|
222
|
+
currentTheme: "",
|
223
|
+
};
|
224
|
+
ThemeSelectorWithoutCookies.decorators = [
|
225
|
+
(Story) => {
|
226
|
+
const cookies = new Cookies({ newInstance: true });
|
227
|
+
cookies.set("cookie_preferences_set", true);
|
228
|
+
cookies.rejectPolicy("settings");
|
229
|
+
return Story();
|
230
|
+
},
|
231
|
+
];
|
232
|
+
ThemeSelectorWithoutCookies.play = async ({ canvasElement }) => {
|
233
|
+
const canvas = within(canvasElement);
|
234
|
+
const systemLightButton = canvas.getByText("System theme");
|
235
|
+
const themeLightButton = canvas.getByText("Light theme");
|
236
|
+
const darkLightButton = canvas.getByText("Dark theme");
|
237
|
+
|
238
|
+
await expect(systemLightButton).not.toBeVisible();
|
239
|
+
await expect(themeLightButton).not.toBeVisible();
|
240
|
+
await expect(darkLightButton).not.toBeVisible();
|
182
241
|
};
|
@@ -1,142 +1,190 @@
|
|
1
1
|
{% from "nationalarchives/components/button/macro.njk" import tnaButton %}
|
2
2
|
|
3
3
|
{%- set containerClasses = [params.classes] if params.classes else [] -%}
|
4
|
-
<footer class="tna-footer {{ containerClasses | join(' ') }}"{
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
<
|
10
|
-
<g class="tna-logo__foreground" fill="currentColor">
|
11
|
-
<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" />
|
12
|
-
<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.2H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1-.6-3.6-7.2-4.4-7.8h-2.5v7.8h-3.5v-21.5zM52.9 132.5c0 5.3 1.9 8 4.8 8s4-2 4-5.2l3.5.1c0 .2.1.4.1.6 0 4.4-2.1 7.5-7.5 7.5-5.2 0-8.5-3.9-8.5-11.1 0-7.1 3.3-11 8.5-11 6.4 0 7.5 4.6 7.5 7.2 0 .3 0 .7-.1.9l-3.5.1c0-3.3-1.2-5.2-4-5.2-2.9.2-4.8 2.9-4.8 8.1M68 121.8h3.5v9.1h8.3v-9.1h3.5v21.5h-3.5v-9.4h-8.3v9.4H68zM87.9 121.8h3.5v21.4h-3.5zM94.2 121.8h3.6l3.2 12.3c.5 1.9.8 3.6 1.1 5.6h.2c.3-2 .6-3.7 1.1-5.6l3.2-12.3h3.6l-6.1 21.4H100l-5.8-21.4zM112.7 121.8H125v3.1h-8.8v6h7.4v3h-7.4v6.3h8.8v3.1h-12.3zM130.4 136c0 .2-.1.5-.1.8 0 1.9.8 3.7 3.4 3.7 2.1 0 3.3-1.2 3.3-2.9 0-1.6-.7-2.4-2.2-3l-3.4-1.3c-2.4-.9-4.2-2.4-4.2-5.7 0-3.5 2.3-6.1 6.6-6.1 5.5 0 6.4 3.6 6.4 5.9 0 .3 0 .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" />
|
13
|
-
</g>
|
14
|
-
</svg>
|
15
|
-
<h2 class="tna-heading-m tna-footer__title">The National Archives</h2>
|
16
|
-
<address class="tna-footer__address">
|
17
|
-
Kew, Richmond<br>
|
18
|
-
TW9 4DU
|
19
|
-
</address>
|
20
|
-
{%- if params.meta %}
|
21
|
-
<div class="tna-footer__meta">
|
22
|
-
{{ params.meta | safe }}
|
4
|
+
<footer class="tna-footer {{ containerClasses | join(' ') }}" data-module="tna-footer" {%- for attribute, value in params.attributes %} {{ attribute }}="{{ value }}"{% endfor %}>
|
5
|
+
{%- if params.themeSelector %}
|
6
|
+
<section class="tna-footer__theme-selector tna-background-tint" hidden>
|
7
|
+
<div class="tna-container tna-!--padding-vertical-xs">
|
8
|
+
<div class="tna-column tna-column--flex-1">
|
9
|
+
<h2 class="tna-visually-hidden">Change the site theme</h2>
|
23
10
|
</div>
|
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
|
-
|
11
|
+
<div class="tna-column tna-column--full-small tna-column--full-tiny">
|
12
|
+
<div class="tna-button-group tna-button-group--small">
|
13
|
+
{{ tnaButton({
|
14
|
+
'text': 'System theme',
|
15
|
+
'icon': 'circle-half-stroke',
|
16
|
+
'buttonElement': true,
|
17
|
+
'classes': 'tna-footer__theme-selector-button',
|
18
|
+
'plain': params.currentTheme != 'system',
|
19
|
+
'attributes': {
|
20
|
+
'value': 'system',
|
21
|
+
'aria-current': params.currentTheme == 'system'
|
22
|
+
}
|
23
|
+
}) }}
|
24
|
+
{{ tnaButton({
|
25
|
+
'text': 'Light theme',
|
26
|
+
'icon': 'sun',
|
27
|
+
'buttonElement': true,
|
28
|
+
'classes': 'tna-footer__theme-selector-button',
|
29
|
+
'plain': params.currentTheme and params.currentTheme != 'light',
|
30
|
+
'attributes': {
|
31
|
+
'value': 'light',
|
32
|
+
'aria-current': not params.currentTheme or params.currentTheme == 'light'
|
33
|
+
}
|
34
|
+
}) }}
|
35
|
+
{{ tnaButton({
|
36
|
+
'text': 'Dark theme',
|
37
|
+
'icon': 'moon',
|
38
|
+
'buttonElement': true,
|
39
|
+
'classes': 'tna-footer__theme-selector-button',
|
40
|
+
'plain': params.currentTheme != 'dark',
|
41
|
+
'attributes': {
|
42
|
+
'value': 'dark',
|
43
|
+
'aria-current': params.currentTheme == 'dark'
|
44
|
+
}
|
45
|
+
}) }}
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
</div>
|
49
|
+
</section>
|
50
|
+
{%- endif %}
|
51
|
+
<div class="tna-footer__inner">
|
52
|
+
<div class="tna-container">
|
53
|
+
<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">
|
54
|
+
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" class="tna-logo" viewBox="0 0 160 160" width="96" height="96">
|
55
|
+
<title>The National Archives</title>
|
56
|
+
<path fill="transparent" d="M0 0h160v160H0z" class="tna-logo__background" />
|
57
|
+
<g class="tna-logo__foreground" fill="currentColor">
|
58
|
+
<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" />
|
59
|
+
<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.2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-8.5-11.1 0-7.1 3.3-11 8.5-11 6.4 0 7.5 4.6 7.5 7.2 0 .3 0 .7-.1.9l-3.5.1c0-3.3-1.2-5.2-4-5.2-2.9.2-4.8 2.9-4.8 8.1M68 121.8h3.5v9.1h8.3v-9.1h3.5v21.5h-3.5v-9.4h-8.3v9.4H68zM87.9 121.8h3.5v21.4h-3.5zM94.2 121.8h3.6l3.2 12.3c.5 1.9.8 3.6 1.1 5.6h.2c.3-2 .6-3.7 1.1-5.6l3.2-12.3h3.6l-6.1 21.4H100l-5.8-21.4zM112.7 121.8H125v3.1h-8.8v6h7.4v3h-7.4v6.3h8.8v3.1h-12.3zM130.4 136c0 .2-.1.5-.1.8 0 1.9.8 3.7 3.4 3.7 2.1 0 3.3-1.2 3.3-2.9 0-1.6-.7-2.4-2.2-3l-3.4-1.3c-2.4-.9-4.2-2.4-4.2-5.7 0-3.5 2.3-6.1 6.6-6.1 5.5 0 6.4 3.6 6.4 5.9 0 .3 0 .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" />
|
60
|
+
</g>
|
61
|
+
</svg>
|
62
|
+
<h2 class="tna-heading-m tna-footer__title">The National Archives</h2>
|
63
|
+
<address class="tna-footer__address">
|
64
|
+
Kew, Richmond<br>
|
65
|
+
TW9 4DU
|
66
|
+
</address>
|
67
|
+
{%- if params.meta %}
|
68
|
+
<div class="tna-footer__meta">
|
69
|
+
{{ params.meta | safe }}
|
70
|
+
</div>
|
71
|
+
{%- endif %}
|
72
|
+
{%- if params.social %}
|
73
|
+
<h3 class="tna-!--visually-hidden">
|
74
|
+
Follow us
|
75
|
+
</h3>
|
76
|
+
<nav class="tna-footer__social" aria-label="Social">
|
77
|
+
<ul class="tna-ul tna-ul--plain tna-footer__social-items">
|
78
|
+
{%- for item in params.social %}
|
79
|
+
<li class="tna-footer__social-item">
|
80
|
+
<a href="{{ item.href }}" class="tna-footer__social-item-link" data-name="{{ item.icon }}">
|
81
|
+
{%- if item.icon == 'twitter' %}
|
82
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height="32"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"/></svg>
|
83
|
+
{%- elif item.icon == 'youtube' %}
|
84
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" height="32"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M549.7 124.1c-6.3-23.7-24.8-42.3-48.3-48.6C458.8 64 288 64 288 64S117.2 64 74.6 75.5c-23.5 6.3-42 24.9-48.3 48.6-11.4 42.9-11.4 132.3-11.4 132.3s0 89.4 11.4 132.3c6.3 23.7 24.8 41.5 48.3 47.8C117.2 448 288 448 288 448s170.8 0 213.4-11.5c23.5-6.3 42-24.2 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zm-317.5 213.5V175.2l142.7 81.2-142.7 81.2z"/></svg>
|
85
|
+
{%- elif item.icon == 'facebook' %}
|
86
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height="32"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256C0 376 82.7 476.8 194.2 504.5V334.2H141.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H287V510.1C413.8 494.8 512 386.9 512 256h0z"/></svg>
|
87
|
+
{%- elif item.icon == 'flickr' %}
|
88
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" height="32"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM144.5 319c-35.1 0-63.5-28.4-63.5-63.5s28.4-63.5 63.5-63.5 63.5 28.4 63.5 63.5-28.4 63.5-63.5 63.5zm159 0c-35.1 0-63.5-28.4-63.5-63.5s28.4-63.5 63.5-63.5 63.5 28.4 63.5 63.5-28.4 63.5-63.5 63.5z"/></svg>
|
89
|
+
{%- elif item.icon == 'instagram' %}
|
90
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" height="32"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"/></svg>
|
91
|
+
{%- elif item.icon == 'rss' %}
|
92
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" height="32"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM96 136c0-13.3 10.7-24 24-24c137 0 248 111 248 248c0 13.3-10.7 24-24 24s-24-10.7-24-24c0-110.5-89.5-200-200-200c-13.3 0-24-10.7-24-24zm0 96c0-13.3 10.7-24 24-24c83.9 0 152 68.1 152 152c0 13.3-10.7 24-24 24s-24-10.7-24-24c0-57.4-46.6-104-104-104c-13.3 0-24-10.7-24-24zm0 120a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"/></svg>
|
93
|
+
{%- elif item.icon == 'github' %}
|
94
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512" height="32"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3 .3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5 .3-6.2 2.3zm44.2-1.7c-2.9 .7-4.9 2.6-4.6 4.9 .3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3 .7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3 .3 2.9 2.3 3.9 1.6 1 3.6 .7 4.3-.7 .7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3 .7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3 .7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg>
|
95
|
+
{%- elif item.icon == 'tiktok' %}
|
96
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" height="32"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M448 209.9a210.1 210.1 0 0 1 -122.8-39.3V349.4A162.6 162.6 0 1 1 185 188.3V278.2a74.6 74.6 0 1 0 52.2 71.2V0l88 0a121.2 121.2 0 0 0 1.9 22.2h0A122.2 122.2 0 0 0 381 102.4a121.4 121.4 0 0 0 67 20.1z"/></svg>
|
97
|
+
{%- endif %}
|
98
|
+
<span class="tna-footer__social-item-link-text tna-!--visually-hidden">
|
99
|
+
{{ item.title }}
|
100
|
+
</span>
|
101
|
+
</a>
|
102
|
+
</li>
|
103
|
+
{%- endfor %}
|
104
|
+
</ul>
|
105
|
+
</nav>
|
106
|
+
{%- endif %}
|
107
|
+
</div>
|
108
|
+
{%- if params.navigation %}
|
109
|
+
<div class="tna-footer__navigation tna-column {% if params.showNewsletter %}tna-column--width-1-2{% else %}tna-column--width-2-3{% endif %} tna-column--full-medium tna-column--full-small tna-column--full-tiny tna-column--order-2 tna-column--order-4-medium tna-columns tna-columns--2 tna-columns--1-tiny">
|
110
|
+
{%- for group in params.navigation %}
|
111
|
+
<nav class="tna-footer__navigation-block tna-columns__block" aria-label="{{ group.title }}">
|
112
|
+
{%- if not group.hideTitle %}
|
113
|
+
<h3 class="tna-footer__navigation-block-heading tna-heading-m">
|
114
|
+
{{ group.title }}
|
115
|
+
</h3>
|
116
|
+
{%- endif %}
|
117
|
+
<ul class="tna-footer__navigation-block-items tna-ul tna-ul--plain">
|
118
|
+
{%- for item in group.items %}
|
119
|
+
<li class="tna-footer__navigation-block-item">
|
120
|
+
<a href="{{ item.href }}" class="tna-footer__navigation-block-item-link"{%- if item.title or item.newTab %} title="{{ item.title if item.title else item.text }}{%- if item.newTab %} (opens in new tab){% endif %}"{% endif %}{%- if item.newTab %} target="_blank" rel="noreferrer noopener"{% endif %}>
|
121
|
+
{{ item.text }}
|
54
122
|
</a>
|
55
123
|
</li>
|
56
124
|
{%- endfor %}
|
57
125
|
</ul>
|
58
126
|
</nav>
|
127
|
+
{%- endfor %}
|
128
|
+
</div>
|
129
|
+
{%- endif %}
|
130
|
+
{%- if params.showNewsletter %}
|
131
|
+
<div class="tna-column tna-column--width-1-4 tna-column--width-1-2-medium tna-column--full-small tna-column--full-tiny tna-column--order-3">
|
132
|
+
<div class="tna-footer__mailing-list">
|
133
|
+
<h3 class="tna-footer__navigation-block-heading tna-heading-m">
|
134
|
+
Sign up to our emails
|
135
|
+
</h3>
|
136
|
+
<p>
|
137
|
+
Hear about our latest news, stories from the collection and priority booking for events.
|
138
|
+
</p>
|
139
|
+
<div class="tna-button-group">
|
140
|
+
{{ tnaButton({
|
141
|
+
text: "Subscribe",
|
142
|
+
href: "https://pages.enews.nationalarchives.gov.uk/pages/subscribe"
|
143
|
+
}) | indent(10) }}
|
144
|
+
</div>
|
145
|
+
</div>
|
146
|
+
</div>
|
59
147
|
{%- endif %}
|
60
148
|
</div>
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
</h3>
|
69
|
-
{%- endif %}
|
70
|
-
<ul class="tna-footer__navigation-block-items tna-ul tna-ul--plain">
|
71
|
-
{%- for item in group.items %}
|
72
|
-
<li class="tna-footer__navigation-block-item">
|
73
|
-
<a href="{{ item.href }}" class="tna-footer__navigation-block-item-link"{%- if item.title or item.newTab %} title="{{ item.title if item.title else item.text }}{%- if item.newTab %} (opens in new tab){% endif %}"{% endif %}{%- if item.newTab %} target="_blank" rel="noreferrer noopener"{% endif %}>
|
149
|
+
<div class="tna-container">
|
150
|
+
{%- if params.legal %}
|
151
|
+
<nav class="tna-footer__legal tna-column tna-column--full" aria-label="Legal">
|
152
|
+
<ul class="tna-footer__legal-items tna-ul tna-ul--plain">
|
153
|
+
{%- for item in params.legal %}
|
154
|
+
<li class="tna-footer__legal-item">
|
155
|
+
<a href="{{ item.href }}" class="tna-footer__legal-item-link" {%- if item.title %} title="{{ item.title }}"{% endif %}>
|
74
156
|
{{ item.text }}
|
75
157
|
</a>
|
76
158
|
</li>
|
77
|
-
|
159
|
+
{%- endfor %}
|
78
160
|
</ul>
|
161
|
+
<hr>
|
79
162
|
</nav>
|
80
|
-
{%-
|
81
|
-
|
82
|
-
|
83
|
-
{%- if params.showNewsletter %}
|
84
|
-
<div class="tna-column tna-column--width-1-4 tna-column--width-1-2-medium tna-column--full-small tna-column--full-tiny tna-column--order-3">
|
85
|
-
<div class="tna-footer__mailing-list">
|
86
|
-
<h3 class="tna-footer__navigation-block-heading tna-heading-m">
|
87
|
-
Sign up to our emails
|
88
|
-
</h3>
|
89
|
-
<p>
|
90
|
-
Hear about our latest news, stories from the collection and priority booking for events.
|
91
|
-
</p>
|
92
|
-
<div class="tna-button-group">
|
93
|
-
{{ tnaButton({
|
94
|
-
text: "Subscribe",
|
95
|
-
href: "https://pages.enews.nationalarchives.gov.uk/pages/subscribe"
|
96
|
-
}) | indent(10) }}
|
97
|
-
</div>
|
163
|
+
{%- else %}
|
164
|
+
<div class="tna-column--full">
|
165
|
+
<hr>
|
98
166
|
</div>
|
167
|
+
{%- endif %}
|
99
168
|
</div>
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
<ul class="tna-footer__legal-items tna-ul tna-ul--plain">
|
106
|
-
{%- for item in params.legal %}
|
107
|
-
<li class="tna-footer__legal-item">
|
108
|
-
<a href="{{ item.href }}" class="tna-footer__legal-item-link" {%- if item.title %} title="{{ item.title }}"{% endif %}>
|
109
|
-
{{ item.text }}
|
110
|
-
</a>
|
111
|
-
</li>
|
112
|
-
{%- endfor %}
|
113
|
-
</ul>
|
114
|
-
<hr>
|
115
|
-
</nav>
|
116
|
-
{%- else %}
|
117
|
-
<div class="tna-column--full">
|
118
|
-
<hr>
|
119
|
-
</div>
|
120
|
-
{%- endif %}
|
121
|
-
</div>
|
122
|
-
<div class="tna-container tna-footer__licence">
|
123
|
-
<div class="tna-column tna-column--full-tiny">
|
124
|
-
<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">
|
125
|
-
<title>Open Government Licence</title>
|
126
|
-
<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" />
|
127
|
-
</svg>
|
128
|
-
</div>
|
129
|
-
<div class="tna-column tna-column--flex-1">
|
130
|
-
<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>
|
131
|
-
</div>
|
132
|
-
<div class="tna-column tna-column--full-small tna-column--full-tiny tna-footer__govuk">
|
133
|
-
<a href="https://www.gov.uk/" class="tna-footer__govuk-link">
|
134
|
-
<svg aria-hidden="true" class="tna-footer__govuk-logotype-crown" width="32" height="30" focusable="false" viewBox="0 0 32 30" xmlns="http://www.w3.org/2000/svg">
|
135
|
-
<title>GOV.UK</title>
|
136
|
-
<path d="M22.6 10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 1.9l.4-4.3c-1.1 1.1-2.1 1.4-3.2 1.4.4-1.2 2.1-3 2.1-3h-5.4s1.7 1.9 2.1 3c-1.1 0-2.1-.2-3.2-1.4l.4 4.3c1-1.4 2.2-2 2.9-1.9-.1 1.5-.2 3.4-2.9 3.6-1.9.2-3.4-.8-3.5-1.9-.2-1.3 1-2.2 1.9-.8.7-2.3-1.2-3-2.5-1.6.9-2.2.9-3.9-1.2-5.5-1.5 2-1.3 3.7.6 5.6-1.2-.7-3.1 0-2 2.3.6-1.4 1.8-1.1 2.1.1.2.9-.3 1.9-1.5 2.1-.9.2-2.4-.5-3.5-3 .6 0 1.2.3 2 .9l-1.2-4c-.3 1.1-.7 1.9-1.1 2.3-.3-.8-.2-1.4 0-2.7l-2.9.9C1.3 23 2.6 25.5 3.7 30c3.7-.5 7.9-.8 12.3-.8" fill="currentColor" fill-rule="evenodd" />
|
169
|
+
<div class="tna-container tna-footer__licence">
|
170
|
+
<div class="tna-column tna-column--full-tiny">
|
171
|
+
<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">
|
172
|
+
<title>Open Government Licence</title>
|
173
|
+
<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" />
|
137
174
|
</svg>
|
138
|
-
|
139
|
-
|
175
|
+
</div>
|
176
|
+
<div class="tna-column tna-column--flex-1">
|
177
|
+
<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>
|
178
|
+
</div>
|
179
|
+
<div class="tna-column tna-column--full-small tna-column--full-tiny tna-footer__govuk">
|
180
|
+
<a href="https://www.gov.uk/" class="tna-footer__govuk-link">
|
181
|
+
<svg aria-hidden="true" class="tna-footer__govuk-logotype-crown" width="32" height="30" focusable="false" viewBox="0 0 32 30" xmlns="http://www.w3.org/2000/svg">
|
182
|
+
<title>GOV.UK</title>
|
183
|
+
<path d="M22.6 10.4c-1 .4-2-.1-2.4-1-.4-.9.1-2 1-2.4.9-.4 2 .1 2.4 1s-.1 2-1 2.4m-5.9 6.7c-.9.4-2-.1-2.4-1-.4-.9.1-2 1-2.4.9-.4 2 .1 2.4 1s-.1 2-1 2.4m10.8-3.7c-1 .4-2-.1-2.4-1-.4-.9.1-2 1-2.4.9-.4 2 .1 2.4 1s0 2-1 2.4m3.3 4.8c-1 .4-2-.1-2.4-1-.4-.9.1-2 1-2.4.9-.4 2 .1 2.4 1s-.1 2-1 2.4M17 4.7l2.3 1.2V2.5l-2.3.7-.2-.2.9-3h-3.4l.9 3-.2.2c-.1.1-2.3-.7-2.3-.7v3.4L15 4.7c.1.1.1.2.2.2l-1.3 4c-.1.2-.1.4-.1.6 0 1.1.8 2 1.9 2.2h.7c1-.2 1.9-1.1 1.9-2.1 0-.2 0-.4-.1-.6l-1.3-4c-.1-.2 0-.2.1-.3m-7.6 5.7c.9.4 2-.1 2.4-1 .4-.9-.1-2-1-2.4-.9-.4-2 .1-2.4 1s0 2 1 2.4m-5 3c.9.4 2-.1 2.4-1 .4-.9-.1-2-1-2.4-.9-.4-2 .1-2.4 1s.1 2 1 2.4m-3.2 4.8c.9.4 2-.1 2.4-1 .4-.9-.1-2-1-2.4-.9-.4-2 .1-2.4 1s0 2 1 2.4m14.8 11c4.4 0 8.6.3 12.3.8 1.1-4.5 2.4-7 3.7-8.8l-2.5-.9c.2 1.3.3 1.9 0 2.7-.4-.4-.8-1.1-1.1-2.3l-1.2 4c.7-.5 1.3-.8 2-.9-1.1 2.5-2.6 3.1-3.5 3-1.1-.2-1.7-1.2-1.5-2.1.3-1.2 1.5-1.5 2.1-.1 1.1-2.3-.8-3-2-2.3 1.9-1.9 2.1-3.5.6-5.6-2.1 1.6-2.1 3.2-1.2 5.5-1.2-1.4-3.2-.6-2.5 1.6.9-1.4 2.1-.5 1.9.8-.2 1.1-1.7 2.1-3.5 1.9-2.7-.2-2.9-2.1-2.9-3.6.7-.1 1.9.5 2.9 1.9l.4-4.3c-1.1 1.1-2.1 1.4-3.2 1.4.4-1.2 2.1-3 2.1-3h-5.4s1.7 1.9 2.1 3c-1.1 0-2.1-.2-3.2-1.4l.4 4.3c1-1.4 2.2-2 2.9-1.9-.1 1.5-.2 3.4-2.9 3.6-1.9.2-3.4-.8-3.5-1.9-.2-1.3 1-2.2 1.9-.8.7-2.3-1.2-3-2.5-1.6.9-2.2.9-3.9-1.2-5.5-1.5 2-1.3 3.7.6 5.6-1.2-.7-3.1 0-2 2.3.6-1.4 1.8-1.1 2.1.1.2.9-.3 1.9-1.5 2.1-.9.2-2.4-.5-3.5-3 .6 0 1.2.3 2 .9l-1.2-4c-.3 1.1-.7 1.9-1.1 2.3-.3-.8-.2-1.4 0-2.7l-2.9.9C1.3 23 2.6 25.5 3.7 30c3.7-.5 7.9-.8 12.3-.8" fill="currentColor" fill-rule="evenodd" />
|
184
|
+
</svg>
|
185
|
+
GOV.UK
|
186
|
+
</a>
|
187
|
+
</div>
|
140
188
|
</div>
|
141
189
|
</div>
|
142
190
|
</footer>
|
@@ -1 +1 @@
|
|
1
|
-
.tna-gallery{--background: var(--contrast-background);--font-base: var(--contrast-font-base);--font-dark: var(--contrast-font-dark);--font-light: var(--contrast-font-light);--icon-light: var(--contrast-icon-light);--link: var(--contrast-link);--link-visited: var(--contrast-link-visited);--keyline: var(--contrast-keyline);--keyline-dark: var(--contrast-keyline-dark);--button-text: var(--contrast-button-text);--button-background: var(--contrast-button-background);--button-hover-text: var(--contrast-button-hover-text);--button-hover-background: var(--contrast-button-hover-background);background-color:var(--background, #f4f4f4);color:var(--font-base, #343338)}.tna-gallery{padding-bottom:32px}.tna-gallery__header{padding-top:32px}.tna-gallery__items{width:100%;display:flex;flex-direction:column;align-items:center;gap:48px}.tna-gallery__items:focus{outline:none !important}.tna-gallery__item{margin:0}.tna-gallery__item-index{padding-bottom:16px;text-align:center}.tna-gallery__item-image{margin:0 auto
|
1
|
+
.tna-gallery{--background: var(--contrast-background);--font-base: var(--contrast-font-base);--font-dark: var(--contrast-font-dark);--font-light: var(--contrast-font-light);--icon-light: var(--contrast-icon-light);--link: var(--contrast-link);--link-visited: var(--contrast-link-visited);--keyline: var(--contrast-keyline);--keyline-dark: var(--contrast-keyline-dark);--button-text: var(--contrast-button-text);--button-background: var(--contrast-button-background);--button-hover-text: var(--contrast-button-hover-text);--button-hover-background: var(--contrast-button-hover-background);background-color:var(--background, #f4f4f4);color:var(--font-base, #343338)}.tna-gallery{padding-bottom:32px}.tna-gallery__header{padding-top:32px}.tna-gallery__items{width:100%;display:flex;flex-direction:column;align-items:center;gap:48px}.tna-gallery__items:focus{outline:none !important}.tna-gallery__item{margin:0}.tna-gallery__item-index{padding-bottom:16px;text-align:center}.tna-gallery__item-image{height:auto;margin:0 auto}.tna-gallery__item-description{margin-top:16px;padding:8px 0 8px 16px;border-left:4px var(--keyline-dark, #26262a) solid}@media(max-width: 64em){.tna-gallery__item-tabs{padding-top:32px}}.tna-gallery__item+.tna-gallery__item{border-top:1px var(--keyline, rgb(38 38 42/0.25)) solid}.tna-gallery__toggle-wrapper{text-align:center}.tna-gallery__toggle{margin-top:32px}.tna-gallery--touchable .tna-gallery__items{flex-flow:row nowrap;gap:96px;overflow-x:scroll;scroll-snap-type:x mandatory}.tna-gallery--touchable .tna-gallery__item{width:100%;scroll-snap-align:center;flex:none}.tna-gallery--touchable.tna-gallery--collapsed .tna-gallery__items{overflow:auto}.tna-gallery--collapsed .tna-gallery__item+.tna-gallery__item,.tna-gallery--collapsed .tna-gallery__item:first-child .tna-gallery__item-description,.tna-gallery--collapsed .tna-gallery__item:first-child .tna-gallery__item-tabs{display:none}.tna-gallery--collapsed .tna-gallery__item-figure{width:100%}/*# sourceMappingURL=gallery.css.map */
|