@nationalarchives/frontend 0.1.65 → 0.2.1
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/config/.eslintrc.js +1 -1
- package/config/.htmlvalidate.json +12 -5
- package/config/stylelint.config.js +1 -0
- 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 +0 -18
- package/nationalarchives/analytics.js +1 -1
- package/nationalarchives/analytics.js.map +1 -1
- package/nationalarchives/analytics.mjs +1 -1
- package/nationalarchives/components/_forms.scss +9 -0
- package/nationalarchives/components/_index.scss +2 -35
- package/nationalarchives/components/_presentation.scss +23 -0
- package/nationalarchives/components/accordion/accordion.css +1 -1
- package/nationalarchives/components/accordion/accordion.css.map +1 -1
- package/nationalarchives/components/accordion/accordion.js +1 -1
- package/nationalarchives/components/accordion/accordion.js.map +1 -1
- package/nationalarchives/components/accordion/accordion.mjs +1 -4
- package/nationalarchives/components/accordion/accordion.scss +4 -0
- package/nationalarchives/components/breadcrumbs/breadcrumbs.css.map +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.js +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.js.map +1 -1
- package/nationalarchives/components/button/button.css +1 -1
- package/nationalarchives/components/button/button.css.map +1 -1
- package/nationalarchives/components/button/button.scss +9 -9
- package/nationalarchives/components/card/card.css +1 -1
- package/nationalarchives/components/card/card.css.map +1 -1
- package/nationalarchives/components/card/card.scss +15 -0
- package/nationalarchives/components/card/fixtures.json +74 -26
- package/nationalarchives/components/card/macro-options.json +7 -7
- package/nationalarchives/components/card/template.njk +7 -4
- package/nationalarchives/components/checkboxes/checkboxes.css +1 -1
- package/nationalarchives/components/checkboxes/checkboxes.css.map +1 -1
- package/nationalarchives/components/checkboxes/checkboxes.njk +1 -1
- package/nationalarchives/components/checkboxes/checkboxes.scss +1 -1
- package/nationalarchives/components/checkboxes/macro-options.json +6 -0
- package/nationalarchives/components/compound-filters/compound-filters.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/date-input/date-input.css +1 -1
- package/nationalarchives/components/date-input/date-input.css.map +1 -1
- package/nationalarchives/components/date-input/date-input.scss +2 -2
- package/nationalarchives/components/date-input/fixtures.json +5 -5
- package/nationalarchives/components/date-input/template.njk +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 -2
- package/nationalarchives/components/details/details.css.map +1 -1
- package/nationalarchives/components/details/template.njk +3 -1
- package/nationalarchives/components/error-summary/error-summary.css +1 -1
- package/nationalarchives/components/error-summary/error-summary.css.map +1 -1
- package/nationalarchives/components/error-summary/error-summary.js +1 -1
- package/nationalarchives/components/error-summary/error-summary.js.map +1 -1
- package/nationalarchives/components/error-summary/error-summary.mjs +1 -1
- package/nationalarchives/components/error-summary/error-summary.scss +3 -4
- package/nationalarchives/components/files-list/_index.scss +1 -0
- package/nationalarchives/components/files-list/files-list.css +1 -0
- package/nationalarchives/components/files-list/files-list.css.map +1 -0
- package/nationalarchives/components/{files/files.scss → files-list/files-list.scss} +2 -7
- package/nationalarchives/components/files-list/fixtures.json +74 -0
- package/nationalarchives/components/{files → files-list}/macro-options.json +6 -0
- package/nationalarchives/components/files-list/macro.njk +3 -0
- package/nationalarchives/components/files-list/template.njk +33 -0
- package/nationalarchives/components/footer/footer.css.map +1 -1
- package/nationalarchives/components/footer/footer.js +1 -1
- package/nationalarchives/components/footer/footer.js.map +1 -1
- package/nationalarchives/components/gallery/fixtures.json +1 -1
- package/nationalarchives/components/gallery/gallery.css +1 -1
- package/nationalarchives/components/gallery/gallery.css.map +1 -1
- package/nationalarchives/components/gallery/gallery.js +1 -1
- package/nationalarchives/components/gallery/gallery.js.map +1 -1
- package/nationalarchives/components/gallery/gallery.scss +36 -29
- package/nationalarchives/components/gallery/template.njk +10 -8
- package/nationalarchives/components/global-header/global-header.css.map +1 -1
- package/nationalarchives/components/global-header/global-header.js +1 -1
- package/nationalarchives/components/global-header/global-header.js.map +1 -1
- package/nationalarchives/components/header/header.css.map +1 -1
- package/nationalarchives/components/header/header.js +1 -1
- package/nationalarchives/components/header/header.js.map +1 -1
- package/nationalarchives/components/hero/hero.css +1 -1
- package/nationalarchives/components/hero/hero.css.map +1 -1
- package/nationalarchives/components/hero/hero.scss +0 -24
- 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/index-grid.scss +1 -1
- package/nationalarchives/components/phase-banner/phase-banner.css.map +1 -1
- package/nationalarchives/components/picture/picture.css.map +1 -1
- package/nationalarchives/components/picture/picture.js +1 -1
- package/nationalarchives/components/picture/picture.js.map +1 -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/radios/radios.css +1 -1
- package/nationalarchives/components/radios/radios.css.map +1 -1
- package/nationalarchives/components/radios/radios.scss +1 -1
- package/nationalarchives/components/records-list/_index.scss +1 -0
- package/nationalarchives/components/records-list/fixtures.json +42 -0
- package/nationalarchives/components/records-list/macro.njk +3 -0
- package/nationalarchives/components/records-list/records-list.css +1 -0
- package/nationalarchives/components/records-list/records-list.css.map +1 -0
- package/nationalarchives/components/{featured-records/featured-records.scss → records-list/records-list.scss} +1 -1
- package/nationalarchives/components/records-list/template.njk +21 -0
- 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-field/search-field.scss +1 -1
- package/nationalarchives/components/select/select.css +1 -1
- package/nationalarchives/components/select/select.css.map +1 -1
- package/nationalarchives/components/select/select.scss +2 -2
- package/nationalarchives/components/sidebar/fixtures.json +12 -2
- package/nationalarchives/components/sidebar/sidebar.css +1 -1
- package/nationalarchives/components/sidebar/sidebar.css.map +1 -1
- package/nationalarchives/components/sidebar/template.njk +9 -0
- package/nationalarchives/components/skip-link/skip-link.css.map +1 -1
- package/nationalarchives/components/skip-link/skip-link.js +1 -1
- package/nationalarchives/components/skip-link/skip-link.js.map +1 -1
- package/nationalarchives/components/tabs/tabs.css.map +1 -1
- package/nationalarchives/components/tabs/tabs.js +1 -1
- package/nationalarchives/components/tabs/tabs.js.map +1 -1
- package/nationalarchives/components/text-input/text-input.css +1 -1
- package/nationalarchives/components/text-input/text-input.css.map +1 -1
- package/nationalarchives/components/text-input/text-input.scss +2 -2
- package/nationalarchives/components/textarea/textarea.css +1 -1
- package/nationalarchives/components/textarea/textarea.css.map +1 -1
- package/nationalarchives/components/textarea/textarea.scss +2 -2
- package/nationalarchives/components/warning/warning.css +1 -1
- package/nationalarchives/components/warning/warning.css.map +1 -1
- package/nationalarchives/components/warning/warning.scss +1 -0
- package/nationalarchives/global-header-package.css +1 -1
- package/nationalarchives/global-header-package.css.map +1 -1
- package/nationalarchives/global-header-package.scss +1 -1
- package/nationalarchives/print.css +1 -1
- package/nationalarchives/print.css.map +1 -1
- package/nationalarchives/prototype-kit.css +1 -1
- package/nationalarchives/prototype-kit.css.map +1 -1
- package/nationalarchives/templates/fixtures.json +1 -1
- package/nationalarchives/tools/_colour.scss +28 -53
- package/nationalarchives/utilities/_columns.scss +1 -1
- package/nationalarchives/utilities/_index.scss +1 -0
- package/nationalarchives/utilities/_reset.scss +2 -8
- package/nationalarchives/utilities/{_colour.scss → colour/_index.scss} +2 -2
- package/nationalarchives/utilities/{_forms.scss → forms/_index.scss} +6 -6
- package/nationalarchives/{components/grid/grid.scss → utilities/grid/_index.scss} +6 -1
- package/nationalarchives/utilities/grid/macro.njk +3 -0
- package/nationalarchives/utilities/{_lists.scss → lists/_index.scss} +27 -9
- package/nationalarchives/utilities/{_overrides.scss → overrides/_index.scss} +2 -2
- package/nationalarchives/utilities/{_tables.scss → tables/_index.scss} +20 -8
- package/nationalarchives/utilities/{_typography.scss → typography/_index.scss} +30 -10
- package/nationalarchives/variables/_colour.scss +12 -5
- package/package.json +3 -3
- package/nationalarchives/components/accordion/accordion.stories.js +0 -432
- package/nationalarchives/components/breadcrumbs/breadcrumbs.stories.js +0 -128
- package/nationalarchives/components/button/button-group.stories.js +0 -114
- package/nationalarchives/components/button/button.stories.js +0 -207
- package/nationalarchives/components/card/card.stories.js +0 -402
- package/nationalarchives/components/checkboxes/checkboxes.stories.js +0 -241
- package/nationalarchives/components/compound-filters/compound-filters.stories.js +0 -61
- package/nationalarchives/components/cookie-banner/cookie-banner.stories.js +0 -250
- package/nationalarchives/components/date-input/date-input.stories.js +0 -119
- package/nationalarchives/components/date-search/date-search.stories.js +0 -124
- package/nationalarchives/components/details/details.stories.js +0 -33
- package/nationalarchives/components/error-summary/error-summary.stories.js +0 -59
- package/nationalarchives/components/featured-records/_index.scss +0 -1
- package/nationalarchives/components/featured-records/featured-records.css +0 -1
- package/nationalarchives/components/featured-records/featured-records.css.map +0 -1
- package/nationalarchives/components/featured-records/featured-records.stories.js +0 -50
- package/nationalarchives/components/featured-records/fixtures.json +0 -42
- package/nationalarchives/components/featured-records/macro.njk +0 -3
- package/nationalarchives/components/featured-records/template.njk +0 -21
- package/nationalarchives/components/files/_index.scss +0 -1
- package/nationalarchives/components/files/files.css +0 -1
- package/nationalarchives/components/files/files.css.map +0 -1
- package/nationalarchives/components/files/files.stories.js +0 -59
- package/nationalarchives/components/files/fixtures.json +0 -71
- package/nationalarchives/components/files/macro.njk +0 -3
- package/nationalarchives/components/files/template.njk +0 -33
- package/nationalarchives/components/footer/footer.stories.js +0 -241
- package/nationalarchives/components/gallery/gallery.stories.js +0 -87
- package/nationalarchives/components/global-header/global-header.stories.js +0 -364
- package/nationalarchives/components/grid/_index.scss +0 -1
- package/nationalarchives/components/grid/grid.css +0 -1
- package/nationalarchives/components/grid/grid.css.map +0 -1
- package/nationalarchives/components/grid/grid.stories.js +0 -279
- package/nationalarchives/components/grid/macro.njk +0 -3
- package/nationalarchives/components/header/header.stories.js +0 -239
- package/nationalarchives/components/hero/hero.stories.js +0 -326
- package/nationalarchives/components/index-grid/index-grid.stories.js +0 -128
- package/nationalarchives/components/pagination/pagination.stories.js +0 -532
- package/nationalarchives/components/phase-banner/phase-banner.stories.js +0 -39
- package/nationalarchives/components/picture/picture.stories.js +0 -75
- package/nationalarchives/components/quick-filters/quick-filters.stories.js +0 -76
- package/nationalarchives/components/radios/radios.stories.js +0 -244
- package/nationalarchives/components/search-field/search-field.stories.js +0 -88
- package/nationalarchives/components/search-filters/_index.scss +0 -1
- package/nationalarchives/components/search-filters/fixtures.json +0 -16
- package/nationalarchives/components/search-filters/macro-options.json +0 -39
- package/nationalarchives/components/search-filters/macro.njk +0 -3
- package/nationalarchives/components/search-filters/search-filters.css +0 -1
- package/nationalarchives/components/search-filters/search-filters.css.map +0 -1
- package/nationalarchives/components/search-filters/search-filters.js +0 -2
- package/nationalarchives/components/search-filters/search-filters.js.map +0 -1
- package/nationalarchives/components/search-filters/search-filters.mjs +0 -67
- package/nationalarchives/components/search-filters/search-filters.scss +0 -198
- package/nationalarchives/components/search-filters/search-filters.stories.js +0 -207
- package/nationalarchives/components/search-filters/template.njk +0 -108
- package/nationalarchives/components/select/select.stories.js +0 -197
- package/nationalarchives/components/sensitive-image/_index.scss +0 -1
- package/nationalarchives/components/sensitive-image/fixtures.json +0 -51
- package/nationalarchives/components/sensitive-image/macro-options.json +0 -58
- package/nationalarchives/components/sensitive-image/macro.njk +0 -3
- package/nationalarchives/components/sensitive-image/sensitive-image.css +0 -1
- package/nationalarchives/components/sensitive-image/sensitive-image.css.map +0 -1
- package/nationalarchives/components/sensitive-image/sensitive-image.js +0 -2
- package/nationalarchives/components/sensitive-image/sensitive-image.js.map +0 -1
- package/nationalarchives/components/sensitive-image/sensitive-image.mjs +0 -23
- package/nationalarchives/components/sensitive-image/sensitive-image.scss +0 -85
- package/nationalarchives/components/sensitive-image/sensitive-image.stories.js +0 -86
- package/nationalarchives/components/sensitive-image/template.njk +0 -11
- package/nationalarchives/components/sidebar/sidebar.stories.js +0 -227
- package/nationalarchives/components/skip-link/skip-link.stories.js +0 -76
- package/nationalarchives/components/tabs/tabs.stories.js +0 -300
- package/nationalarchives/components/text-input/text-input.stories.js +0 -188
- package/nationalarchives/components/textarea/textarea.stories.js +0 -130
- package/nationalarchives/components/warning/warning.stories.js +0 -39
- package/nationalarchives/stories/intro.mdx +0 -13
- package/nationalarchives/stories/utilities/colour-schemes/colour-combinations.stories.js +0 -293
- package/nationalarchives/stories/utilities/colour-schemes/colour-themes.stories.js +0 -1513
- package/nationalarchives/stories/utilities/forms/forms.mdx +0 -117
- package/nationalarchives/stories/utilities/lists/lists.stories.js +0 -212
- package/nationalarchives/stories/utilities/overrides/overrides.stories.js +0 -42
- package/nationalarchives/stories/utilities/tables/tables.stories.js +0 -47
- package/nationalarchives/stories/utilities/typography/heading-groups.stories.js +0 -94
- package/nationalarchives/stories/utilities/typography/headings.stories.js +0 -33
- package/nationalarchives/stories/utilities/typography/typography.stories.js +0 -91
- /package/nationalarchives/components/{featured-records → records-list}/macro-options.json +0 -0
- /package/nationalarchives/{components → utilities}/grid/fixtures.json +0 -0
- /package/nationalarchives/{components → utilities}/grid/macro-options.json +0 -0
- /package/nationalarchives/{components → utilities}/grid/template.njk +0 -0
@@ -1,1513 +0,0 @@
|
|
1
|
-
import Accordion from "../../../components/accordion/template.njk";
|
2
|
-
import Breadcrumbs from "../../../components/breadcrumbs/template.njk";
|
3
|
-
import Button from "../../../components/button/template.njk";
|
4
|
-
import Card from "../../../components/card/template.njk";
|
5
|
-
import Checkboxes from "../../../components/checkboxes/template.njk";
|
6
|
-
import ErrorSummary from "../../../components/error-summary/template.njk";
|
7
|
-
import FeaturedRecords from "../../../components/featured-records/template.njk";
|
8
|
-
import Footer from "../../../components/footer/template.njk";
|
9
|
-
import Gallery from "../../../components/gallery/template.njk";
|
10
|
-
import GlobalHeader from "../../../components/global-header/template.njk";
|
11
|
-
import Hero from "../../../components/hero/template.njk";
|
12
|
-
import IndexGrid from "../../../components/index-grid/template.njk";
|
13
|
-
import Pagination from "../../../components/pagination/template.njk";
|
14
|
-
import PhaseBanner from "../../../components/phase-banner/template.njk";
|
15
|
-
import Picture from "../../../components/picture/template.njk";
|
16
|
-
import Radios from "../../../components/radios/template.njk";
|
17
|
-
import SearchField from "../../../components/search-field/template.njk";
|
18
|
-
import Select from "../../../components/select/template.njk";
|
19
|
-
import SkipLink from "../../../components/skip-link/template.njk";
|
20
|
-
import Tabs from "../../../components/tabs/template.njk";
|
21
|
-
import TextInput from "../../../components/text-input/template.njk";
|
22
|
-
import Textarea from "../../../components/textarea/template.njk";
|
23
|
-
import Warning from "../../../components/warning/template.njk";
|
24
|
-
|
25
|
-
const argTypes = {
|
26
|
-
theme: {
|
27
|
-
control: "radio",
|
28
|
-
options: [
|
29
|
-
"system",
|
30
|
-
"light",
|
31
|
-
"dark",
|
32
|
-
// "light high-contrast",
|
33
|
-
// "dark high-contrast",
|
34
|
-
],
|
35
|
-
},
|
36
|
-
accent: {
|
37
|
-
control: "radio",
|
38
|
-
options: ["none", "yellow", "pink", "orange", "green", "blue"],
|
39
|
-
},
|
40
|
-
};
|
41
|
-
|
42
|
-
export default {
|
43
|
-
title: "Utilities/Colours/Themes",
|
44
|
-
argTypes,
|
45
|
-
};
|
46
|
-
|
47
|
-
const Template = ({ theme, accent }) => {
|
48
|
-
document.documentElement.classList.remove(
|
49
|
-
"tna-template",
|
50
|
-
"tna-template--yellow-accent",
|
51
|
-
);
|
52
|
-
|
53
|
-
const cardDefaultOptions = {
|
54
|
-
supertitle: "Card supertitle",
|
55
|
-
title: "Card title",
|
56
|
-
headingLevel: 3,
|
57
|
-
headingSize: "s",
|
58
|
-
href: "#",
|
59
|
-
imageSrc:
|
60
|
-
"https://www.nationalarchives.gov.uk/wp-content/uploads/sites/24/2023/07/tna-building-compress.jpg",
|
61
|
-
imageAlt: "The National Archives office",
|
62
|
-
imageWidth: 499,
|
63
|
-
imageHeight: 333,
|
64
|
-
label: "New",
|
65
|
-
body: "<p>Card body</p>",
|
66
|
-
actions: [
|
67
|
-
{
|
68
|
-
text: "Card action",
|
69
|
-
href: "#",
|
70
|
-
title: "Go and do the action",
|
71
|
-
},
|
72
|
-
],
|
73
|
-
};
|
74
|
-
|
75
|
-
return `<div class="tna-template ${
|
76
|
-
theme === "system"
|
77
|
-
? "tna-template--system-theme"
|
78
|
-
: theme === "dark"
|
79
|
-
? "tna-template--dark-theme"
|
80
|
-
: theme === "high-contrast"
|
81
|
-
? "tna-template--high-contrast-theme"
|
82
|
-
: theme === "dark high-contrast"
|
83
|
-
? "tna-template--dark-theme tna-template--high-contrast-theme"
|
84
|
-
: ""
|
85
|
-
} ${
|
86
|
-
accent === "yellow"
|
87
|
-
? "tna-template--yellow-accent"
|
88
|
-
: accent === "pink"
|
89
|
-
? "tna-template--pink-accent"
|
90
|
-
: accent === "orange"
|
91
|
-
? "tna-template--orange-accent"
|
92
|
-
: accent === "green"
|
93
|
-
? "tna-template--green-accent"
|
94
|
-
: accent === "blue"
|
95
|
-
? "tna-template--blue-accent"
|
96
|
-
: ""
|
97
|
-
}">
|
98
|
-
<div class="tna-template__body tna-template__body--padded">
|
99
|
-
${SkipLink({
|
100
|
-
params: {
|
101
|
-
href: "main-content",
|
102
|
-
},
|
103
|
-
})}
|
104
|
-
${PhaseBanner({
|
105
|
-
params: {
|
106
|
-
phase: "beta",
|
107
|
-
message:
|
108
|
-
'This is a new service - <a href="#">give us your feedback</a> to help improve it.',
|
109
|
-
accent: true,
|
110
|
-
},
|
111
|
-
})}
|
112
|
-
${GlobalHeader({
|
113
|
-
params: {
|
114
|
-
logo: {
|
115
|
-
href: "#/",
|
116
|
-
},
|
117
|
-
topNavigation: [
|
118
|
-
{
|
119
|
-
text: "Search",
|
120
|
-
href: "https://www.nationalarchives.gov.uk/search/",
|
121
|
-
icon: "search",
|
122
|
-
},
|
123
|
-
{
|
124
|
-
text: "Shop",
|
125
|
-
href: "#/shop",
|
126
|
-
icon: "bag-shopping",
|
127
|
-
},
|
128
|
-
{
|
129
|
-
text: "Sign in",
|
130
|
-
href: "#/sign-in",
|
131
|
-
icon: "user",
|
132
|
-
},
|
133
|
-
],
|
134
|
-
navigation: [
|
135
|
-
{
|
136
|
-
text: "Visit",
|
137
|
-
href: "#/visit",
|
138
|
-
},
|
139
|
-
{
|
140
|
-
text: "What’s on",
|
141
|
-
href: "#/whats-on",
|
142
|
-
},
|
143
|
-
{
|
144
|
-
text: "Explore the collection",
|
145
|
-
href: "#/explore-the-collection",
|
146
|
-
},
|
147
|
-
{
|
148
|
-
text: "Help using the archive",
|
149
|
-
href: "#/using-the-archives",
|
150
|
-
},
|
151
|
-
{
|
152
|
-
text: "Education",
|
153
|
-
href: "#/education",
|
154
|
-
},
|
155
|
-
{
|
156
|
-
text: "Professional guidance and services",
|
157
|
-
href: "#/professional-guidance-and-services",
|
158
|
-
},
|
159
|
-
],
|
160
|
-
},
|
161
|
-
})}
|
162
|
-
<div class="tna-container">
|
163
|
-
<div class="tna-column tna-column--full">
|
164
|
-
${Breadcrumbs({
|
165
|
-
params: {
|
166
|
-
items: [
|
167
|
-
{
|
168
|
-
text: "Alpha",
|
169
|
-
href: "#/alpha",
|
170
|
-
},
|
171
|
-
{
|
172
|
-
text: "Beta",
|
173
|
-
href: "#/beta",
|
174
|
-
},
|
175
|
-
{
|
176
|
-
text: "Gamma",
|
177
|
-
href: "#/gamma",
|
178
|
-
},
|
179
|
-
{
|
180
|
-
text: "Delta",
|
181
|
-
href: "#/delta",
|
182
|
-
},
|
183
|
-
{
|
184
|
-
text: "Epsilon",
|
185
|
-
href: "#/epsilon",
|
186
|
-
},
|
187
|
-
],
|
188
|
-
},
|
189
|
-
})}
|
190
|
-
</div>
|
191
|
-
</div>
|
192
|
-
<main class="tna-main" id="main-content">
|
193
|
-
${Hero({
|
194
|
-
params: {
|
195
|
-
title: "Title",
|
196
|
-
text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
197
|
-
imageSrc:
|
198
|
-
"https://www.nationalarchives.gov.uk/wp-content/uploads/sites/24/2023/07/tna-building-compress.jpg",
|
199
|
-
imageAlt: "The National Archives office",
|
200
|
-
imageWidth: 499,
|
201
|
-
imageHeight: 333,
|
202
|
-
imageCaption: "An interesting photo by a famous photographer ©2023",
|
203
|
-
},
|
204
|
-
})}
|
205
|
-
<div class="tna-container tna-section">
|
206
|
-
<div class="tna-column tna-column--width-2-3 tna-column--full-small tna-column--full-tiny">
|
207
|
-
<hgroup class="tna-hgroup-l">
|
208
|
-
<p class="tna-hgroup__supertitle">TNA colour theme</p>
|
209
|
-
<h2 class="tna-hgroup__title">Heading</h2>
|
210
|
-
</hgroup>
|
211
|
-
<p>This is some body text <a href="#">link</a>.</p>
|
212
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vel tincidunt velit, a molestie turpis. Sed odio libero, sodales eleifend lorem sit amet, feugiat consequat nibh.</p>
|
213
|
-
<p>Donec ac tellus in dui rutrum maximus. Aliquam vel euismod eros. Integer ut magna velit. Fusce sed dui sit amet metus eleifend dictum quis vitae mi. Aenean sagittis euismod purus, in accumsan metus venenatis nec. Nullam nec velit felis. Sed nec felis eu nisl varius dictum eu quis nisl.</p>
|
214
|
-
<p>Donec dapibus est arcu, vel pellentesque risus pellentesque eget.</p>
|
215
|
-
<ul class="tna-ul">
|
216
|
-
<li>Alpha</li>
|
217
|
-
<li>Beta</li>
|
218
|
-
<li>Gamma</li>
|
219
|
-
</ul>
|
220
|
-
<div class="tna-button-group">
|
221
|
-
${Button({
|
222
|
-
params: {
|
223
|
-
text: "Primary button",
|
224
|
-
href: "#",
|
225
|
-
},
|
226
|
-
})}
|
227
|
-
${Button({
|
228
|
-
params: {
|
229
|
-
text: "Accent button",
|
230
|
-
href: "#",
|
231
|
-
accent: true,
|
232
|
-
},
|
233
|
-
})}
|
234
|
-
${Button({
|
235
|
-
params: {
|
236
|
-
text: "Explore the collection",
|
237
|
-
href: "#",
|
238
|
-
icon: "map-location-dot",
|
239
|
-
},
|
240
|
-
})}
|
241
|
-
${Button({
|
242
|
-
params: {
|
243
|
-
text: "Plain button",
|
244
|
-
plain: true,
|
245
|
-
},
|
246
|
-
})}
|
247
|
-
</div>
|
248
|
-
</div>
|
249
|
-
<div class="tna-column tna-column--no-padding tna-column--width-1-3 tna-column--full-medium tna-column--full-small tna-column--full-tiny">
|
250
|
-
<div class="tna-container tna-container--no-padding">
|
251
|
-
<div class="tna-column tna-column--full tna-column--width-1-2-medium tna-column--width-1-2-small tna-!--margin-vertical-m tna-!--no-margin-top-large">
|
252
|
-
<div class="tna-aside tna-background-contrast">
|
253
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vel tincidunt velit, a molestie turpis. Sed odio libero, sodales eleifend lorem sit amet, feugiat consequat nibh.</p>
|
254
|
-
<div class="tna-button-group">
|
255
|
-
${Button({
|
256
|
-
params: {
|
257
|
-
text: "Accent button",
|
258
|
-
href: "#",
|
259
|
-
accent: true,
|
260
|
-
},
|
261
|
-
})}
|
262
|
-
</div>
|
263
|
-
</div>
|
264
|
-
</div>
|
265
|
-
<div class="tna-column tna-column--full tna-column--width-1-2-medium tna-column--width-1-2-small tna-!--margin-vertical-m tna-!--no-margin-top-large tna-!--no-margin-bottom-large">
|
266
|
-
<div class="tna-aside tna-background-accent">
|
267
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vel tincidunt velit, a molestie turpis. Sed odio libero, sodales eleifend lorem sit amet, feugiat consequat nibh.</p>
|
268
|
-
<div class="tna-button-group">
|
269
|
-
${Button({
|
270
|
-
params: {
|
271
|
-
text: "Primary button",
|
272
|
-
href: "#",
|
273
|
-
},
|
274
|
-
})}
|
275
|
-
</div>
|
276
|
-
</div>
|
277
|
-
</div>
|
278
|
-
</div>
|
279
|
-
</div>
|
280
|
-
</div>
|
281
|
-
<hr>
|
282
|
-
<div class="tna-container tna-section">
|
283
|
-
<div class="tna-column tna-column--full">
|
284
|
-
<h1 class="tna-heading-xl">
|
285
|
-
This is a heading (XL)
|
286
|
-
</h1>
|
287
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vel tincidunt velit, a molestie turpis. Sed odio libero, sodales eleifend lorem sit amet, feugiat consequat nibh.</p>
|
288
|
-
<h2 class="tna-heading-l">
|
289
|
-
This is a heading (L)
|
290
|
-
</h2>
|
291
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vel tincidunt velit, a molestie turpis. Sed odio libero, sodales eleifend lorem sit amet, feugiat consequat nibh.</p>
|
292
|
-
<h3 class="tna-heading-m">
|
293
|
-
This is a heading (M)
|
294
|
-
</h3>
|
295
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vel tincidunt velit, a molestie turpis. Sed odio libero, sodales eleifend lorem sit amet, feugiat consequat nibh.</p>
|
296
|
-
<h4 class="tna-heading-s">
|
297
|
-
This is a heading (S)
|
298
|
-
</h4>
|
299
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vel tincidunt velit, a molestie turpis. Sed odio libero, sodales eleifend lorem sit amet, feugiat consequat nibh.</p>
|
300
|
-
<hgroup class="tna-hgroup-xl">
|
301
|
-
<p class="tna-hgroup__supertitle">Supertitle</p>
|
302
|
-
<h2 class="tna-hgroup__title">This is a heading (XL)</h2>
|
303
|
-
</hgroup>
|
304
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vel tincidunt velit, a molestie turpis. Sed odio libero, sodales eleifend lorem sit amet, feugiat consequat nibh.</p>
|
305
|
-
<hgroup class="tna-hgroup-l">
|
306
|
-
<p class="tna-hgroup__supertitle">Supertitle</p>
|
307
|
-
<h2 class="tna-hgroup__title">This is a heading (L)</h2>
|
308
|
-
</hgroup>
|
309
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vel tincidunt velit, a molestie turpis. Sed odio libero, sodales eleifend lorem sit amet, feugiat consequat nibh.</p>
|
310
|
-
<hgroup class="tna-hgroup-m">
|
311
|
-
<p class="tna-hgroup__supertitle">Supertitle</p>
|
312
|
-
<h2 class="tna-hgroup__title">This is a heading (M)</h2>
|
313
|
-
</hgroup>
|
314
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vel tincidunt velit, a molestie turpis. Sed odio libero, sodales eleifend lorem sit amet, feugiat consequat nibh.</p>
|
315
|
-
<hgroup class="tna-hgroup-s">
|
316
|
-
<p class="tna-hgroup__supertitle">Supertitle</p>
|
317
|
-
<h2 class="tna-hgroup__title">This is a heading (S)</h2>
|
318
|
-
</hgroup>
|
319
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vel tincidunt velit, a molestie turpis. Sed odio libero, sodales eleifend lorem sit amet, feugiat consequat nibh.</p>
|
320
|
-
<p class="tna-large-paragraph">Large paragraph. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vel tincidunt velit, a molestie turpis. Sed odio libero, sodales eleifend lorem sit amet, feugiat consequat nibh.</p>
|
321
|
-
<p class="tna-scene-setter">
|
322
|
-
We are the official archive of England and Wales. Discover 1,000 years of history through <a href="#">fascinating stories</a> from the past or <a href="#">start your own research</a> and <a href="#">search our catalogue</a> of 32 million records. <a href="#">Plan a visit</a> to access original historic documents from our collections then enjoy the grounds, café, and <a href="#">free exhibitions</a>.
|
323
|
-
</p>
|
324
|
-
<blockquote class="tna-blockquote">
|
325
|
-
<div class="tna-blockquote__quote">
|
326
|
-
<p>A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.</p>
|
327
|
-
</div>
|
328
|
-
<p class="tna-blockquote__citation">Douglas Adams, Mostly Harmless</p>
|
329
|
-
</blockquote>
|
330
|
-
<h2 class="tna-heading-m">
|
331
|
-
<a href="#">Researching with The National Archives</a>
|
332
|
-
</h2>
|
333
|
-
<p>Lorem ipsum <a href="#">link</a></p>
|
334
|
-
<hgroup class="tna-hgroup-m">
|
335
|
-
<p class="tna-hgroup__supertitle">Supertitle</p>
|
336
|
-
<h2 class="tna-hgroup__title">
|
337
|
-
<a href="#">Researching with The National Archives</a>
|
338
|
-
</h2>
|
339
|
-
</hgroup>
|
340
|
-
<p>Lorem ipsum <a href="#">link</a></p>
|
341
|
-
</div>
|
342
|
-
<div class="tna-column tna-column--width-1-2 tna-column--full-small tna-column--full-tiny tna-!--margin-top-m">
|
343
|
-
<h3 class="tna-heading-m">
|
344
|
-
Descriptions
|
345
|
-
</h3>
|
346
|
-
<dl class="tna-dl">
|
347
|
-
<dt>Alpha</dt>
|
348
|
-
<dd>Lorem ipsum</dd>
|
349
|
-
<dt>Beta</dt>
|
350
|
-
<dd>Lorem ipsum</dd>
|
351
|
-
<dt>Gamma</dt>
|
352
|
-
<dd>Lorem ipsum</dd>
|
353
|
-
</dl>
|
354
|
-
</div>
|
355
|
-
<div class="tna-column tna-column--width-1-2 tna-column--full-small tna-column--full-tiny tna-!--margin-top-m">
|
356
|
-
<h3 class="tna-heading-m">
|
357
|
-
Descriptions
|
358
|
-
</h3>
|
359
|
-
<dl class="tna-dl tna-dl--plain">
|
360
|
-
<dt>Alpha</dt>
|
361
|
-
<dd>Lorem ipsum</dd>
|
362
|
-
<dt>Beta</dt>
|
363
|
-
<dd>Lorem ipsum</dd>
|
364
|
-
<dt>Gamma</dt>
|
365
|
-
<dd>Lorem ipsum</dd>
|
366
|
-
</dl>
|
367
|
-
</div>
|
368
|
-
<div class="tna-column tna-column--full tna-!--margin-top-m">
|
369
|
-
<h3 class="tna-heading-m">
|
370
|
-
Descriptions
|
371
|
-
</h3>
|
372
|
-
<dl class="tna-dl tna-dl--icon-padding ">
|
373
|
-
<dt>
|
374
|
-
<i class="fa-solid fa-landmark" aria-hidden="true"></i>
|
375
|
-
Held by
|
376
|
-
</dt>
|
377
|
-
<dd>The National Archives, Kew</dd>
|
378
|
-
<dt>
|
379
|
-
<i class="fa-solid fa-calendar" aria-hidden="true"></i>
|
380
|
-
Date
|
381
|
-
</dt>
|
382
|
-
<dd>1972–1979</dd>
|
383
|
-
<dt>
|
384
|
-
<i class="fa-solid fa-database" aria-hidden="true"></i>
|
385
|
-
Reference
|
386
|
-
</dt>
|
387
|
-
<dd>LC 4</dd>
|
388
|
-
</dl>
|
389
|
-
<h2 class="tna-heading-l">
|
390
|
-
Categories
|
391
|
-
</h2>
|
392
|
-
<dl class="tna-dl-chips">
|
393
|
-
<dt>Published</dt>
|
394
|
-
<dd>
|
395
|
-
<span class="tna-dl-chips__item">
|
396
|
-
<i class="fa-solid fa-calendar"></i>
|
397
|
-
2014
|
398
|
-
</span>
|
399
|
-
</dd>
|
400
|
-
<dt>Author</dt>
|
401
|
-
<dd>
|
402
|
-
<a class="tna-dl-chips__item">
|
403
|
-
<i class="fa-solid fa-user"></i>
|
404
|
-
James
|
405
|
-
</a>
|
406
|
-
</dd>
|
407
|
-
<dt>Category</dt>
|
408
|
-
<dd>
|
409
|
-
<a class="tna-dl-chips__item">
|
410
|
-
Research
|
411
|
-
</a>
|
412
|
-
</dd>
|
413
|
-
<dt>Comments</dt>
|
414
|
-
<dd>
|
415
|
-
<span class="tna-dl-chips__item">
|
416
|
-
3 comments
|
417
|
-
</span>
|
418
|
-
</dd>
|
419
|
-
</dl>
|
420
|
-
<dl class="tna-dl-chips tna-dl-chips--plain">
|
421
|
-
<dt>Published</dt>
|
422
|
-
<dd>
|
423
|
-
<span class="tna-dl-chips__item">
|
424
|
-
<i class="fa-solid fa-calendar"></i>
|
425
|
-
2014
|
426
|
-
</span>
|
427
|
-
</dd>
|
428
|
-
<dt>Author</dt>
|
429
|
-
<dd>
|
430
|
-
<a class="tna-dl-chips__item">
|
431
|
-
<i class="fa-solid fa-user"></i>
|
432
|
-
James
|
433
|
-
</a>
|
434
|
-
</dd>
|
435
|
-
<dt>Category</dt>
|
436
|
-
<dd>
|
437
|
-
<a class="tna-dl-chips__item">
|
438
|
-
Research
|
439
|
-
</a>
|
440
|
-
</dd>
|
441
|
-
<dt>Comments</dt>
|
442
|
-
<dd>
|
443
|
-
<span class="tna-dl-chips__item">
|
444
|
-
3 comments
|
445
|
-
</span>
|
446
|
-
</dd>
|
447
|
-
</dl>
|
448
|
-
${Warning({
|
449
|
-
params: {
|
450
|
-
body: "Please note this page references hunger strikes and force feeding, which some people may find upsetting.",
|
451
|
-
},
|
452
|
-
})}
|
453
|
-
<h2 class="tna-heading-l">
|
454
|
-
Featured records
|
455
|
-
</h2>
|
456
|
-
${FeaturedRecords({
|
457
|
-
params: {
|
458
|
-
items: [
|
459
|
-
{
|
460
|
-
imageSrc: "https://picsum.photos/id/237/400/600",
|
461
|
-
imageWidth: 400,
|
462
|
-
imageHeight: 600,
|
463
|
-
collection: "TS 11/45/167",
|
464
|
-
title: "Court records relating to Robert Wedderburn’s trial",
|
465
|
-
href: "#",
|
466
|
-
date: "1819–1820",
|
467
|
-
},
|
468
|
-
{
|
469
|
-
collection: "HO 42/191",
|
470
|
-
title: "Home office letters",
|
471
|
-
href: "#",
|
472
|
-
date: "1819",
|
473
|
-
},
|
474
|
-
],
|
475
|
-
classes: "tna-featured-records--demo",
|
476
|
-
},
|
477
|
-
})}
|
478
|
-
<h2 class="tna-heading-l">
|
479
|
-
Accordion
|
480
|
-
</h2>
|
481
|
-
${Accordion({
|
482
|
-
params: {
|
483
|
-
items: [
|
484
|
-
{
|
485
|
-
title: "Alpha",
|
486
|
-
text: "Content",
|
487
|
-
},
|
488
|
-
{
|
489
|
-
title: "Beta",
|
490
|
-
body: "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla dignissim vehicula magna, et hendrerit quam iaculis a. Mauris in ultricies enim. Donec bibendum est leo, sed dapibus mauris facilisis vitae.</p><p>Quisque hendrerit condimentum nisl, non volutpat ex eleifend at. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Morbi id suscipit felis, sed tincidunt arcu. Etiam vel blandit diam, vitae commodo mi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla blandit mi vel rhoncus aliquam.</p><p>Pellentesque ultrices bibendum nibh, sit amet ornare turpis efficitur id. Aenean ullamcorper neque eget justo sagittis, rutrum ultrices urna varius. Mauris sodales a lorem at sodales.</p>",
|
491
|
-
},
|
492
|
-
{
|
493
|
-
title: "Gamma",
|
494
|
-
body: `<ul class="tna-ul">
|
495
|
-
<li>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</li>
|
496
|
-
<li>Nulla dignissim vehicula magna, et hendrerit quam iaculis a. Mauris in ultricies enim.</li>
|
497
|
-
<li>Donec bibendum est leo, sed dapibus mauris facilisis vitae.</li>
|
498
|
-
<li>Quisque hendrerit condimentum nisl, non volutpat ex eleifend at. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Morbi id suscipit felis, sed tincidunt arcu. Etiam vel blandit diam, vitae commodo mi.</li>
|
499
|
-
</ul>`,
|
500
|
-
},
|
501
|
-
{
|
502
|
-
title: "Delta",
|
503
|
-
body: `<div class="tna-table-wrapper">
|
504
|
-
<table class="tna-table">
|
505
|
-
<caption class="tna-table__caption">
|
506
|
-
Records added and removed between 2020 and 2022.
|
507
|
-
</caption>
|
508
|
-
<thead class="tna-table__head">
|
509
|
-
<tr class="tna-table__row">
|
510
|
-
<th class="tna-table__header" scope="col">Year</th>
|
511
|
-
<th class="tna-table__header" scope="col">Chinese zodiac sign</th>
|
512
|
-
<th class="tna-table__header tna-table__header--numeric" scope="col">Records added</th>
|
513
|
-
<th class="tna-table__header tna-table__header--numeric" scope="col">Size (megabytes)</th>
|
514
|
-
</tr>
|
515
|
-
</thead>
|
516
|
-
<tbody class="tna-table__body">
|
517
|
-
<tr>
|
518
|
-
<th class="tna-table__header" scope="row">2020</th>
|
519
|
-
<td class="tna-table__cell">Rat</td>
|
520
|
-
<td class="tna-table__cell tna-table__cell--numeric">123,456</td>
|
521
|
-
<td class="tna-table__cell tna-table__cell--numeric">789</td>
|
522
|
-
</tr>
|
523
|
-
<tr>
|
524
|
-
<th class="tna-table__header" scope="row">2021</th>
|
525
|
-
<td class="tna-table__cell">Ox</td>
|
526
|
-
<td class="tna-table__cell tna-table__cell--numeric">456,789</td>
|
527
|
-
<td class="tna-table__cell tna-table__cell--numeric">123</td>
|
528
|
-
</tr>
|
529
|
-
<tr>
|
530
|
-
<th class="tna-table__header" scope="row">2022</th>
|
531
|
-
<td class="tna-table__cell">Tiger</td>
|
532
|
-
<td class="tna-table__cell tna-table__cell--numeric">42,424</td>
|
533
|
-
<td class="tna-table__cell tna-table__cell--numeric">1,337</td>
|
534
|
-
</tr>
|
535
|
-
</tbody>
|
536
|
-
<tfoot class="tna-table__foot">
|
537
|
-
<tr>
|
538
|
-
<th class="tna-table__header" scope="row">Totals</th>
|
539
|
-
<td class="tna-table__cell"></td>
|
540
|
-
<td class="tna-table__cell tna-table__cell--numeric">622,669</td>
|
541
|
-
<td class="tna-table__cell tna-table__cell--numeric">2,249</td>
|
542
|
-
</tr>
|
543
|
-
</tfoot>
|
544
|
-
</table>
|
545
|
-
</div>`,
|
546
|
-
},
|
547
|
-
],
|
548
|
-
group: "group-1",
|
549
|
-
},
|
550
|
-
})}
|
551
|
-
</div>
|
552
|
-
</div>
|
553
|
-
<hr>
|
554
|
-
<div class="tna-container tna-section">
|
555
|
-
<div class="tna-column tna-column--full">
|
556
|
-
<p>Lorem ipsum</p>
|
557
|
-
<p class="tna-!--no-margin-top">Lorem ipsum (tna-!--no-margin-top)</p>
|
558
|
-
<p class="tna-!--margin-top-xs">Lorem ipsum (tna-!--margin-top-xs)</p>
|
559
|
-
<p class="tna-!--margin-top-s">Lorem ipsum (tna-!--margin-top-s)</p>
|
560
|
-
<p class="tna-!--margin-top-m">Lorem ipsum (tna-!--margin-top-m)</p>
|
561
|
-
<p class="tna-!--margin-top-l">Lorem ipsum (tna-!--margin-top-l)</p>
|
562
|
-
<p class="tna-!--margin-top-xl">Lorem ipsum (tna-!--margin-top-xl)</p>
|
563
|
-
</div>
|
564
|
-
</div>
|
565
|
-
${Hero({
|
566
|
-
params: {
|
567
|
-
imageSrc:
|
568
|
-
"https://www.nationalarchives.gov.uk/wp-content/uploads/sites/24/2023/07/tna-building-compress.jpg",
|
569
|
-
imageAlt: "The National Archives office",
|
570
|
-
imageWidth: 499,
|
571
|
-
imageHeight: 333,
|
572
|
-
imageCaption: "An interesting photo by a famous photographer ©2023",
|
573
|
-
},
|
574
|
-
})}
|
575
|
-
<div class="tna-section tna-!--padding-bottom-s">
|
576
|
-
<ul class="tna-ul tna-ul--plain tna-container">
|
577
|
-
<li class="tna-column tna-column--width-1-3 tna-column--width-1-2-small tna-column--full-tiny">
|
578
|
-
${Card({
|
579
|
-
params: {
|
580
|
-
...cardDefaultOptions,
|
581
|
-
classes: "tna-!--margin-bottom-m",
|
582
|
-
},
|
583
|
-
})}
|
584
|
-
</li>
|
585
|
-
<li class="tna-column tna-column--width-1-3 tna-column--width-1-2-small tna-column--full-tiny">
|
586
|
-
${Card({
|
587
|
-
params: {
|
588
|
-
...cardDefaultOptions,
|
589
|
-
style: "contrast",
|
590
|
-
classes: "tna-!--margin-bottom-m",
|
591
|
-
},
|
592
|
-
})}
|
593
|
-
</li>
|
594
|
-
<li class="tna-column tna-column--width-1-3 tna-column--width-1-2-small tna-column--full-tiny">
|
595
|
-
${Card({
|
596
|
-
params: {
|
597
|
-
...cardDefaultOptions,
|
598
|
-
style: "accent",
|
599
|
-
classes: "tna-!--margin-bottom-m",
|
600
|
-
},
|
601
|
-
})}
|
602
|
-
</li>
|
603
|
-
</ul>
|
604
|
-
</div>
|
605
|
-
<hr>
|
606
|
-
<div class="tna-section">
|
607
|
-
<ul class="tna-ul tna-ul--plain tna-container">
|
608
|
-
<li class="tna-column tna-column--width-2-3 tna-column--full-medium tna-column--full-small tna-column--full-tiny">
|
609
|
-
${Card({
|
610
|
-
params: {
|
611
|
-
...cardDefaultOptions,
|
612
|
-
horizontal: true,
|
613
|
-
classes: "tna-!--margin-bottom-m",
|
614
|
-
},
|
615
|
-
})}
|
616
|
-
</li>
|
617
|
-
<li class="tna-column tna-column--width-2-3 tna-column--full-medium tna-column--full-small tna-column--full-tiny">
|
618
|
-
${Card({
|
619
|
-
params: {
|
620
|
-
...cardDefaultOptions,
|
621
|
-
horizontal: true,
|
622
|
-
style: "contrast",
|
623
|
-
classes: "tna-!--margin-bottom-m",
|
624
|
-
},
|
625
|
-
})}
|
626
|
-
</li>
|
627
|
-
<li class="tna-column tna-column--width-2-3 tna-column--full-medium tna-column--full-small tna-column--full-tiny">
|
628
|
-
${Card({
|
629
|
-
params: {
|
630
|
-
...cardDefaultOptions,
|
631
|
-
horizontal: true,
|
632
|
-
style: "accent",
|
633
|
-
},
|
634
|
-
})}
|
635
|
-
</li>
|
636
|
-
</ul>
|
637
|
-
</div>
|
638
|
-
<hr>
|
639
|
-
<div class="tna-container tna-section">
|
640
|
-
<div class="tna-column tna-column--full">
|
641
|
-
${Tabs({
|
642
|
-
params: {
|
643
|
-
title: "Example tabs",
|
644
|
-
items: [
|
645
|
-
{
|
646
|
-
id: "unique-id-a",
|
647
|
-
title: "Alpha section",
|
648
|
-
body: '<h2 class="tna-heading-l">Alpha title</h2><p>Lorem ipsum</p>',
|
649
|
-
},
|
650
|
-
{
|
651
|
-
id: "unique-id-b",
|
652
|
-
title: "Beta section",
|
653
|
-
body: '<h2 class="tna-heading-l">Beta title</h2><p>Lorem ipsum</p>',
|
654
|
-
},
|
655
|
-
{
|
656
|
-
id: "unique-id-c",
|
657
|
-
title: "Gamma section",
|
658
|
-
body: '<h2 class="tna-heading-l">Gamma title</h2><p>Lorem ipsum</p>',
|
659
|
-
},
|
660
|
-
],
|
661
|
-
classes: "tna-tabs--demo",
|
662
|
-
},
|
663
|
-
})}
|
664
|
-
</div>
|
665
|
-
</div>
|
666
|
-
<hr>
|
667
|
-
<div class="tna-container tna-section">
|
668
|
-
<div class="tna-column tna-column--full">
|
669
|
-
${Picture({
|
670
|
-
params: {
|
671
|
-
src: "https://www.nationalarchives.gov.uk/wp-content/uploads/sites/24/2023/07/tna-building-compress.jpg",
|
672
|
-
alt: "The National Archives office",
|
673
|
-
width: 499,
|
674
|
-
height: 333,
|
675
|
-
caption: "<p>This is a pretty image</p>",
|
676
|
-
information: [
|
677
|
-
{
|
678
|
-
id: "transcript",
|
679
|
-
title: "Transcript",
|
680
|
-
body: "<p>Lorem ipsum transcript</p>",
|
681
|
-
},
|
682
|
-
{
|
683
|
-
id: "translation",
|
684
|
-
title: "Translation",
|
685
|
-
body: "<p>Lorem ipsum translation</p>",
|
686
|
-
},
|
687
|
-
],
|
688
|
-
classes: "tna-picture--demo",
|
689
|
-
},
|
690
|
-
})}
|
691
|
-
</div>
|
692
|
-
</div>
|
693
|
-
<div class="tna-container">
|
694
|
-
<div class="tna-column tna-column--full">
|
695
|
-
${Gallery({
|
696
|
-
params: {
|
697
|
-
title: "My gallery",
|
698
|
-
headingLevel: 2,
|
699
|
-
text: "Lorem ipsum",
|
700
|
-
items: [
|
701
|
-
{
|
702
|
-
alt: "Photo 1",
|
703
|
-
width: 600,
|
704
|
-
height: 400,
|
705
|
-
src: "https://picsum.photos/id/50/600/400",
|
706
|
-
description: "This is photo number 1",
|
707
|
-
},
|
708
|
-
{
|
709
|
-
alt: "Photo 2",
|
710
|
-
width: 400,
|
711
|
-
height: 400,
|
712
|
-
src: "https://picsum.photos/id/51/600/600",
|
713
|
-
description: "This is photo number 2",
|
714
|
-
},
|
715
|
-
{
|
716
|
-
alt: "Photo 3",
|
717
|
-
width: 400,
|
718
|
-
height: 600,
|
719
|
-
src: "https://picsum.photos/id/52/400/600",
|
720
|
-
description: "This is photo number 3",
|
721
|
-
},
|
722
|
-
],
|
723
|
-
id: "test-gallery",
|
724
|
-
classes: "tna-gallery--demo",
|
725
|
-
},
|
726
|
-
})}
|
727
|
-
</div>
|
728
|
-
</div>
|
729
|
-
<div class="tna-section">
|
730
|
-
${IndexGrid({
|
731
|
-
params: {
|
732
|
-
title: "My dogs 1",
|
733
|
-
headingLevel: 3,
|
734
|
-
href: "#",
|
735
|
-
items: Array(4)
|
736
|
-
.fill({
|
737
|
-
...{
|
738
|
-
href: "#",
|
739
|
-
src: "https://picsum.photos/id/237/800/600",
|
740
|
-
alt: "Photo of a puppy",
|
741
|
-
width: "800",
|
742
|
-
height: "600",
|
743
|
-
title: "Cat",
|
744
|
-
subtitle: "4 photos",
|
745
|
-
},
|
746
|
-
})
|
747
|
-
.map((item, index) => {
|
748
|
-
const pseudoRandom = ((index * 29) % 8) + 1;
|
749
|
-
return {
|
750
|
-
...item,
|
751
|
-
href: `#/category-${index}`,
|
752
|
-
title: `Category #${index + 101}`,
|
753
|
-
subtitle: `${pseudoRandom} photos`,
|
754
|
-
};
|
755
|
-
}),
|
756
|
-
columns: 4,
|
757
|
-
columnsMedium: 3,
|
758
|
-
columnsSmall: 2,
|
759
|
-
columnsTiny: 1,
|
760
|
-
},
|
761
|
-
})}
|
762
|
-
<div class="tna-container">
|
763
|
-
<div class="tna-column tna-column--full">
|
764
|
-
${Pagination({
|
765
|
-
params: {
|
766
|
-
landmarkLabel: "My dogs 1 results",
|
767
|
-
previous: {
|
768
|
-
href: "#",
|
769
|
-
},
|
770
|
-
items: [
|
771
|
-
{
|
772
|
-
number: 1,
|
773
|
-
href: "#",
|
774
|
-
},
|
775
|
-
{
|
776
|
-
ellipsis: true,
|
777
|
-
},
|
778
|
-
{
|
779
|
-
number: 6,
|
780
|
-
href: "#",
|
781
|
-
},
|
782
|
-
{
|
783
|
-
number: 7,
|
784
|
-
current: true,
|
785
|
-
href: "#",
|
786
|
-
},
|
787
|
-
{
|
788
|
-
number: 8,
|
789
|
-
href: "#",
|
790
|
-
},
|
791
|
-
{
|
792
|
-
ellipsis: true,
|
793
|
-
},
|
794
|
-
{
|
795
|
-
number: 42,
|
796
|
-
href: "#",
|
797
|
-
},
|
798
|
-
],
|
799
|
-
next: {
|
800
|
-
href: "#",
|
801
|
-
},
|
802
|
-
classes: "tna-pagination--demo tna-!--margin-top-m",
|
803
|
-
},
|
804
|
-
})}
|
805
|
-
${SearchField({
|
806
|
-
params: {
|
807
|
-
label: "Catalogue search results",
|
808
|
-
headingLevel: 3,
|
809
|
-
headingSize: "l",
|
810
|
-
id: "search1",
|
811
|
-
name: "q",
|
812
|
-
},
|
813
|
-
})}
|
814
|
-
<div class="tna-button-group">
|
815
|
-
<a href="#" class="tna-button">Primary button</a>
|
816
|
-
<a href="#" class="tna-button tna-button--accent">Accent button</a>
|
817
|
-
<a href="" class="tna-button tna-button--solid-hover">Solid hover button</a>
|
818
|
-
<a href="" class="tna-button tna-button--plain">Plain button</a>
|
819
|
-
</div>
|
820
|
-
</div>
|
821
|
-
</div>
|
822
|
-
</div>
|
823
|
-
<div class="tna-section tna-background-tint">
|
824
|
-
${IndexGrid({
|
825
|
-
params: {
|
826
|
-
title: "My dogs 2",
|
827
|
-
headingLevel: 3,
|
828
|
-
href: "#",
|
829
|
-
items: Array(4)
|
830
|
-
.fill({
|
831
|
-
...{
|
832
|
-
href: "#",
|
833
|
-
src: "https://picsum.photos/id/237/800/600",
|
834
|
-
alt: "Photo of a puppy",
|
835
|
-
width: "800",
|
836
|
-
height: "600",
|
837
|
-
title: "Cat",
|
838
|
-
subtitle: "4 photos",
|
839
|
-
},
|
840
|
-
})
|
841
|
-
.map((item, index) => {
|
842
|
-
const pseudoRandom = ((index * 29) % 8) + 1;
|
843
|
-
return {
|
844
|
-
...item,
|
845
|
-
href: `#/category-${index}`,
|
846
|
-
title: `Category #${index + 101}`,
|
847
|
-
subtitle: `${pseudoRandom} photos`,
|
848
|
-
};
|
849
|
-
}),
|
850
|
-
columns: 4,
|
851
|
-
columnsMedium: 3,
|
852
|
-
columnsSmall: 2,
|
853
|
-
columnsTiny: 1,
|
854
|
-
},
|
855
|
-
})}
|
856
|
-
<div class="tna-container">
|
857
|
-
<div class="tna-column tna-column--full">
|
858
|
-
${Pagination({
|
859
|
-
params: {
|
860
|
-
landmarkLabel: "My dogs 2 results",
|
861
|
-
previous: {
|
862
|
-
href: "#",
|
863
|
-
},
|
864
|
-
items: [
|
865
|
-
{
|
866
|
-
number: 1,
|
867
|
-
href: "#",
|
868
|
-
},
|
869
|
-
{
|
870
|
-
ellipsis: true,
|
871
|
-
},
|
872
|
-
{
|
873
|
-
number: 6,
|
874
|
-
href: "#",
|
875
|
-
},
|
876
|
-
{
|
877
|
-
number: 7,
|
878
|
-
current: true,
|
879
|
-
href: "#",
|
880
|
-
},
|
881
|
-
{
|
882
|
-
number: 8,
|
883
|
-
href: "#",
|
884
|
-
},
|
885
|
-
{
|
886
|
-
ellipsis: true,
|
887
|
-
},
|
888
|
-
{
|
889
|
-
number: 42,
|
890
|
-
href: "#",
|
891
|
-
},
|
892
|
-
],
|
893
|
-
next: {
|
894
|
-
href: "#",
|
895
|
-
},
|
896
|
-
classes: "tna-pagination--demo tna-!--margin-top-m",
|
897
|
-
},
|
898
|
-
})}
|
899
|
-
${SearchField({
|
900
|
-
params: {
|
901
|
-
label: "Catalogue search results",
|
902
|
-
headingLevel: 3,
|
903
|
-
headingSize: "l",
|
904
|
-
id: "search2",
|
905
|
-
name: "q",
|
906
|
-
},
|
907
|
-
})}
|
908
|
-
<div class="tna-button-group">
|
909
|
-
<a href="#" class="tna-button">Primary button</a>
|
910
|
-
<a href="#" class="tna-button tna-button--accent">Accent button</a>
|
911
|
-
<a href="" class="tna-button tna-button--solid-hover">Solid hover button</a>
|
912
|
-
<a href="" class="tna-button tna-button--plain">Plain button</a>
|
913
|
-
</div>
|
914
|
-
</div>
|
915
|
-
</div>
|
916
|
-
</div>
|
917
|
-
<div class="tna-section tna-background-contrast">
|
918
|
-
${IndexGrid({
|
919
|
-
params: {
|
920
|
-
title: "My dogs 3",
|
921
|
-
headingLevel: 3,
|
922
|
-
href: "#",
|
923
|
-
items: Array(4)
|
924
|
-
.fill({
|
925
|
-
...{
|
926
|
-
href: "#",
|
927
|
-
src: "https://picsum.photos/id/237/800/600",
|
928
|
-
alt: "Photo of a puppy",
|
929
|
-
width: "800",
|
930
|
-
height: "600",
|
931
|
-
title: "Cat",
|
932
|
-
subtitle: "4 photos",
|
933
|
-
},
|
934
|
-
})
|
935
|
-
.map((item, index) => {
|
936
|
-
const pseudoRandom = ((index * 29) % 8) + 1;
|
937
|
-
return {
|
938
|
-
...item,
|
939
|
-
href: `#/category-${index}`,
|
940
|
-
title: `Category #${index + 101}`,
|
941
|
-
subtitle: `${pseudoRandom} photos`,
|
942
|
-
};
|
943
|
-
}),
|
944
|
-
columns: 4,
|
945
|
-
columnsMedium: 3,
|
946
|
-
columnsSmall: 2,
|
947
|
-
columnsTiny: 1,
|
948
|
-
},
|
949
|
-
})}
|
950
|
-
<div class="tna-container">
|
951
|
-
<div class="tna-column tna-column--full">
|
952
|
-
${Pagination({
|
953
|
-
params: {
|
954
|
-
landmarkLabel: "My dogs 3 results",
|
955
|
-
previous: {
|
956
|
-
href: "#",
|
957
|
-
},
|
958
|
-
items: [
|
959
|
-
{
|
960
|
-
number: 1,
|
961
|
-
href: "#",
|
962
|
-
},
|
963
|
-
{
|
964
|
-
ellipsis: true,
|
965
|
-
},
|
966
|
-
{
|
967
|
-
number: 6,
|
968
|
-
href: "#",
|
969
|
-
},
|
970
|
-
{
|
971
|
-
number: 7,
|
972
|
-
current: true,
|
973
|
-
href: "#",
|
974
|
-
},
|
975
|
-
{
|
976
|
-
number: 8,
|
977
|
-
href: "#",
|
978
|
-
},
|
979
|
-
{
|
980
|
-
ellipsis: true,
|
981
|
-
},
|
982
|
-
{
|
983
|
-
number: 42,
|
984
|
-
href: "#",
|
985
|
-
},
|
986
|
-
],
|
987
|
-
next: {
|
988
|
-
href: "#",
|
989
|
-
},
|
990
|
-
classes: "tna-pagination--demo tna-!--margin-top-m",
|
991
|
-
},
|
992
|
-
})}
|
993
|
-
${SearchField({
|
994
|
-
params: {
|
995
|
-
label: "Catalogue search results",
|
996
|
-
headingLevel: 3,
|
997
|
-
headingSize: "l",
|
998
|
-
id: "search3",
|
999
|
-
name: "q",
|
1000
|
-
},
|
1001
|
-
})}
|
1002
|
-
<div class="tna-button-group">
|
1003
|
-
<a href="#" class="tna-button">Primary button</a>
|
1004
|
-
<a href="#" class="tna-button tna-button--accent">Accent button</a>
|
1005
|
-
<a href="" class="tna-button tna-button--solid-hover">Solid hover button</a>
|
1006
|
-
<a href="" class="tna-button tna-button--plain">Plain button</a>
|
1007
|
-
</div>
|
1008
|
-
</div>
|
1009
|
-
</div>
|
1010
|
-
</div>
|
1011
|
-
<div class="tna-section tna-background-accent-light">
|
1012
|
-
${IndexGrid({
|
1013
|
-
params: {
|
1014
|
-
title: "My dogs 4",
|
1015
|
-
headingLevel: 3,
|
1016
|
-
href: "#",
|
1017
|
-
items: Array(4)
|
1018
|
-
.fill({
|
1019
|
-
...{
|
1020
|
-
href: "#",
|
1021
|
-
src: "https://picsum.photos/id/237/800/600",
|
1022
|
-
alt: "Photo of a puppy",
|
1023
|
-
width: "800",
|
1024
|
-
height: "600",
|
1025
|
-
title: "Cat",
|
1026
|
-
subtitle: "4 photos",
|
1027
|
-
},
|
1028
|
-
})
|
1029
|
-
.map((item, index) => {
|
1030
|
-
const pseudoRandom = ((index * 29) % 8) + 1;
|
1031
|
-
return {
|
1032
|
-
...item,
|
1033
|
-
href: `#/category-${index}`,
|
1034
|
-
title: `Category #${index + 101}`,
|
1035
|
-
subtitle: `${pseudoRandom} photos`,
|
1036
|
-
};
|
1037
|
-
}),
|
1038
|
-
columns: 4,
|
1039
|
-
columnsMedium: 3,
|
1040
|
-
columnsSmall: 2,
|
1041
|
-
columnsTiny: 1,
|
1042
|
-
},
|
1043
|
-
})}
|
1044
|
-
<div class="tna-container">
|
1045
|
-
<div class="tna-column tna-column--full">
|
1046
|
-
${Pagination({
|
1047
|
-
params: {
|
1048
|
-
landmarkLabel: "My dogs 4 results",
|
1049
|
-
previous: {
|
1050
|
-
href: "#",
|
1051
|
-
},
|
1052
|
-
items: [
|
1053
|
-
{
|
1054
|
-
number: 1,
|
1055
|
-
href: "#",
|
1056
|
-
},
|
1057
|
-
{
|
1058
|
-
ellipsis: true,
|
1059
|
-
},
|
1060
|
-
{
|
1061
|
-
number: 6,
|
1062
|
-
href: "#",
|
1063
|
-
},
|
1064
|
-
{
|
1065
|
-
number: 7,
|
1066
|
-
current: true,
|
1067
|
-
href: "#",
|
1068
|
-
},
|
1069
|
-
{
|
1070
|
-
number: 8,
|
1071
|
-
href: "#",
|
1072
|
-
},
|
1073
|
-
{
|
1074
|
-
ellipsis: true,
|
1075
|
-
},
|
1076
|
-
{
|
1077
|
-
number: 42,
|
1078
|
-
href: "#",
|
1079
|
-
},
|
1080
|
-
],
|
1081
|
-
next: {
|
1082
|
-
href: "#",
|
1083
|
-
},
|
1084
|
-
classes: "tna-pagination--demo tna-!--margin-top-m",
|
1085
|
-
},
|
1086
|
-
})}
|
1087
|
-
${SearchField({
|
1088
|
-
params: {
|
1089
|
-
label: "Catalogue search results",
|
1090
|
-
headingLevel: 3,
|
1091
|
-
headingSize: "l",
|
1092
|
-
id: "search4",
|
1093
|
-
name: "q",
|
1094
|
-
},
|
1095
|
-
})}
|
1096
|
-
<div class="tna-button-group">
|
1097
|
-
<a href="#" class="tna-button">Primary button</a>
|
1098
|
-
<a href="#" class="tna-button tna-button--accent">Accent button</a>
|
1099
|
-
<a href="" class="tna-button tna-button--solid-hover">Solid hover button</a>
|
1100
|
-
<a href="" class="tna-button tna-button--plain">Plain button</a>
|
1101
|
-
</div>
|
1102
|
-
</div>
|
1103
|
-
</div>
|
1104
|
-
</div>
|
1105
|
-
<div class="tna-section tna-background-accent">
|
1106
|
-
${IndexGrid({
|
1107
|
-
params: {
|
1108
|
-
title: "My dogs 5",
|
1109
|
-
headingLevel: 3,
|
1110
|
-
href: "#",
|
1111
|
-
items: Array(4)
|
1112
|
-
.fill({
|
1113
|
-
...{
|
1114
|
-
href: "#",
|
1115
|
-
src: "https://picsum.photos/id/237/800/600",
|
1116
|
-
alt: "Photo of a puppy",
|
1117
|
-
width: "800",
|
1118
|
-
height: "600",
|
1119
|
-
title: "Cat",
|
1120
|
-
subtitle: "4 photos",
|
1121
|
-
},
|
1122
|
-
})
|
1123
|
-
.map((item, index) => {
|
1124
|
-
const pseudoRandom = ((index * 29) % 8) + 1;
|
1125
|
-
return {
|
1126
|
-
...item,
|
1127
|
-
href: `#/category-${index}`,
|
1128
|
-
title: `Category #${index + 101}`,
|
1129
|
-
subtitle: `${pseudoRandom} photos`,
|
1130
|
-
};
|
1131
|
-
}),
|
1132
|
-
columns: 4,
|
1133
|
-
columnsMedium: 3,
|
1134
|
-
columnsSmall: 2,
|
1135
|
-
columnsTiny: 1,
|
1136
|
-
},
|
1137
|
-
})}
|
1138
|
-
<div class="tna-container">
|
1139
|
-
<div class="tna-column tna-column--full">
|
1140
|
-
${Pagination({
|
1141
|
-
params: {
|
1142
|
-
landmarkLabel: "My dogs 5 results",
|
1143
|
-
previous: {
|
1144
|
-
href: "#",
|
1145
|
-
},
|
1146
|
-
items: [
|
1147
|
-
{
|
1148
|
-
number: 1,
|
1149
|
-
href: "#",
|
1150
|
-
},
|
1151
|
-
{
|
1152
|
-
ellipsis: true,
|
1153
|
-
},
|
1154
|
-
{
|
1155
|
-
number: 6,
|
1156
|
-
href: "#",
|
1157
|
-
},
|
1158
|
-
{
|
1159
|
-
number: 7,
|
1160
|
-
current: true,
|
1161
|
-
href: "#",
|
1162
|
-
},
|
1163
|
-
{
|
1164
|
-
number: 8,
|
1165
|
-
href: "#",
|
1166
|
-
},
|
1167
|
-
{
|
1168
|
-
ellipsis: true,
|
1169
|
-
},
|
1170
|
-
{
|
1171
|
-
number: 42,
|
1172
|
-
href: "#",
|
1173
|
-
},
|
1174
|
-
],
|
1175
|
-
next: {
|
1176
|
-
href: "#",
|
1177
|
-
},
|
1178
|
-
classes: "tna-pagination--demo tna-!--margin-top-m",
|
1179
|
-
},
|
1180
|
-
})}
|
1181
|
-
${SearchField({
|
1182
|
-
params: {
|
1183
|
-
label: "Catalogue search results",
|
1184
|
-
headingLevel: 3,
|
1185
|
-
headingSize: "l",
|
1186
|
-
id: "search5",
|
1187
|
-
name: "q",
|
1188
|
-
},
|
1189
|
-
})}
|
1190
|
-
<div class="tna-button-group">
|
1191
|
-
<a href="#" class="tna-button">Primary button</a>
|
1192
|
-
<a href="#" class="tna-button tna-button--accent">Accent button</a>
|
1193
|
-
<a href="" class="tna-button tna-button--solid-hover">Solid hover button</a>
|
1194
|
-
<a href="" class="tna-button tna-button--plain">Plain button</a>
|
1195
|
-
</div>
|
1196
|
-
</div>
|
1197
|
-
</div>
|
1198
|
-
</div>
|
1199
|
-
<div class="tna-section">
|
1200
|
-
<div class="tna-container">
|
1201
|
-
<div class="tna-column tna-column--width-2-3 tna-column--full-small tna-column--full-tiny">
|
1202
|
-
<form>
|
1203
|
-
<h2 class="tna-heading tna-heading--l">
|
1204
|
-
Forms
|
1205
|
-
</h2>
|
1206
|
-
${ErrorSummary({
|
1207
|
-
params: {
|
1208
|
-
title: "There is a problem",
|
1209
|
-
headingLevel: 2,
|
1210
|
-
items: [
|
1211
|
-
{
|
1212
|
-
text: "Enter a valid email address",
|
1213
|
-
href: "#email",
|
1214
|
-
},
|
1215
|
-
],
|
1216
|
-
disableAutoFocus: true,
|
1217
|
-
},
|
1218
|
-
})}
|
1219
|
-
${TextInput({
|
1220
|
-
params: {
|
1221
|
-
label: "Enter your name",
|
1222
|
-
headingLevel: 3,
|
1223
|
-
headingSize: "m",
|
1224
|
-
id: "name",
|
1225
|
-
name: "name",
|
1226
|
-
autofill: "name",
|
1227
|
-
},
|
1228
|
-
})}
|
1229
|
-
${TextInput({
|
1230
|
-
params: {
|
1231
|
-
label: "Enter your email",
|
1232
|
-
headingLevel: 3,
|
1233
|
-
headingSize: "m",
|
1234
|
-
id: "email",
|
1235
|
-
name: "email",
|
1236
|
-
autofill: "email",
|
1237
|
-
error: {
|
1238
|
-
text: "Enter a valid email address",
|
1239
|
-
},
|
1240
|
-
},
|
1241
|
-
})}
|
1242
|
-
${Select({
|
1243
|
-
params: {
|
1244
|
-
label: "Sort by",
|
1245
|
-
headingLevel: 3,
|
1246
|
-
headingSize: "m",
|
1247
|
-
id: "sort",
|
1248
|
-
name: "sort",
|
1249
|
-
items: [
|
1250
|
-
{
|
1251
|
-
text: "Relevance",
|
1252
|
-
value: "relevance",
|
1253
|
-
},
|
1254
|
-
{
|
1255
|
-
text: "Date",
|
1256
|
-
value: "date",
|
1257
|
-
},
|
1258
|
-
{
|
1259
|
-
text: "Title",
|
1260
|
-
value: "title",
|
1261
|
-
},
|
1262
|
-
],
|
1263
|
-
},
|
1264
|
-
})}
|
1265
|
-
${Radios({
|
1266
|
-
params: {
|
1267
|
-
label: "Type",
|
1268
|
-
headingLevel: 3,
|
1269
|
-
headingSize: "m",
|
1270
|
-
id: "type",
|
1271
|
-
name: "type",
|
1272
|
-
items: [
|
1273
|
-
{
|
1274
|
-
text: "Audio",
|
1275
|
-
value: "audio",
|
1276
|
-
},
|
1277
|
-
{
|
1278
|
-
text: "Image",
|
1279
|
-
value: "image",
|
1280
|
-
},
|
1281
|
-
{
|
1282
|
-
text: "Video",
|
1283
|
-
value: "video",
|
1284
|
-
},
|
1285
|
-
],
|
1286
|
-
},
|
1287
|
-
})}
|
1288
|
-
${Checkboxes({
|
1289
|
-
params: {
|
1290
|
-
label: "Categories",
|
1291
|
-
headingLevel: 3,
|
1292
|
-
headingSize: "m",
|
1293
|
-
id: "categories",
|
1294
|
-
name: "categories",
|
1295
|
-
items: [
|
1296
|
-
{
|
1297
|
-
text: "Alpha",
|
1298
|
-
value: "alpha",
|
1299
|
-
},
|
1300
|
-
{
|
1301
|
-
text: "Beta",
|
1302
|
-
value: "beta",
|
1303
|
-
},
|
1304
|
-
{
|
1305
|
-
text: "Gamma",
|
1306
|
-
value: "gamma",
|
1307
|
-
},
|
1308
|
-
],
|
1309
|
-
},
|
1310
|
-
})}
|
1311
|
-
${Textarea({
|
1312
|
-
params: {
|
1313
|
-
label: "Enter your feedback",
|
1314
|
-
headingLevel: 3,
|
1315
|
-
headingSize: "m",
|
1316
|
-
id: "feedback",
|
1317
|
-
name: "feedback",
|
1318
|
-
},
|
1319
|
-
})}
|
1320
|
-
<div class="tna-button-group">
|
1321
|
-
<button type="button" class="tna-button">
|
1322
|
-
Submit
|
1323
|
-
</button>
|
1324
|
-
<a href="#" class="tna-button tna-button--plain">
|
1325
|
-
Skip
|
1326
|
-
</a>
|
1327
|
-
</div>
|
1328
|
-
</form>
|
1329
|
-
</div>
|
1330
|
-
</div>
|
1331
|
-
</div>
|
1332
|
-
</main>
|
1333
|
-
${Footer({
|
1334
|
-
params: {
|
1335
|
-
meta: "<p>Open today<br>09:00–19:00</p>",
|
1336
|
-
social: [
|
1337
|
-
{
|
1338
|
-
href: "https://twitter.com/UKNatArchives",
|
1339
|
-
icon: "twitter",
|
1340
|
-
title: "The National Archives X feed (formally known as Twitter)",
|
1341
|
-
},
|
1342
|
-
{
|
1343
|
-
href: "https://www.youtube.com/c/TheNationalArchivesUK",
|
1344
|
-
icon: "youtube",
|
1345
|
-
title: "The National Archives YouTube channel",
|
1346
|
-
},
|
1347
|
-
{
|
1348
|
-
href: "https://www.facebook.com/TheNationalArchives",
|
1349
|
-
icon: "facebook",
|
1350
|
-
title: "The National Archives Facebook page",
|
1351
|
-
},
|
1352
|
-
{
|
1353
|
-
href: "https://www.flickr.com/photos/nationalarchives",
|
1354
|
-
icon: "flickr",
|
1355
|
-
title: "The National Archives Flickr feed",
|
1356
|
-
},
|
1357
|
-
{
|
1358
|
-
href: "https://www.instagram.com/nationalarchivesuk/",
|
1359
|
-
icon: "instagram",
|
1360
|
-
title: "The National Archives Instagram feed",
|
1361
|
-
},
|
1362
|
-
{
|
1363
|
-
href: "https://www.tiktok.com/@uknatarchives",
|
1364
|
-
icon: "tiktok",
|
1365
|
-
title: "The National Archives TikTok feed",
|
1366
|
-
},
|
1367
|
-
],
|
1368
|
-
navigation: [
|
1369
|
-
{
|
1370
|
-
title: "Quick links",
|
1371
|
-
items: [
|
1372
|
-
{
|
1373
|
-
text: "About us",
|
1374
|
-
href: "https://www.nationalarchives.gov.uk/about/",
|
1375
|
-
},
|
1376
|
-
{
|
1377
|
-
text: "Contact us",
|
1378
|
-
href: "https://www.nationalarchives.gov.uk/contact-us/",
|
1379
|
-
},
|
1380
|
-
{
|
1381
|
-
text: "News",
|
1382
|
-
href: "https://www.nationalarchives.gov.uk/about/news/",
|
1383
|
-
},
|
1384
|
-
{
|
1385
|
-
text: "Blog",
|
1386
|
-
href: "https://blog.nationalarchives.gov.uk/",
|
1387
|
-
},
|
1388
|
-
{
|
1389
|
-
text: "Podcasts",
|
1390
|
-
href: "https://media.nationalarchives.gov.uk/index.php/category/podcasts-2/",
|
1391
|
-
},
|
1392
|
-
{
|
1393
|
-
text: "Image library",
|
1394
|
-
href: "https://images.nationalarchives.gov.uk/",
|
1395
|
-
},
|
1396
|
-
{
|
1397
|
-
text: "Press room",
|
1398
|
-
href: "https://www.nationalarchives.gov.uk/about/press-room/",
|
1399
|
-
},
|
1400
|
-
{
|
1401
|
-
text: "Jobs",
|
1402
|
-
href: "https://www.nationalarchives.gov.uk/about/jobs/",
|
1403
|
-
},
|
1404
|
-
{
|
1405
|
-
text: "British citizenship services",
|
1406
|
-
href: "https://www.nationalarchives.gov.uk/contact-us/british-citizenship-services/",
|
1407
|
-
},
|
1408
|
-
{
|
1409
|
-
text: "Historical Manuscripts Commission",
|
1410
|
-
href: "https://www.nationalarchives.gov.uk/archives-sector/our-archives-sector-role/historical-manuscripts-commission/",
|
1411
|
-
},
|
1412
|
-
],
|
1413
|
-
},
|
1414
|
-
{
|
1415
|
-
title: "Other websites",
|
1416
|
-
items: [
|
1417
|
-
{
|
1418
|
-
text: "UK Government Web Archive",
|
1419
|
-
href: "https://www.nationalarchives.gov.uk/webarchive/",
|
1420
|
-
},
|
1421
|
-
{
|
1422
|
-
text: "Legislation.gov.uk",
|
1423
|
-
href: "https://www.legislation.gov.uk/",
|
1424
|
-
},
|
1425
|
-
{
|
1426
|
-
text: "Find case law",
|
1427
|
-
href: "https://caselaw.nationalarchives.gov.uk/",
|
1428
|
-
},
|
1429
|
-
{
|
1430
|
-
text: "The Gazette",
|
1431
|
-
href: "https://www.thegazette.co.uk/",
|
1432
|
-
},
|
1433
|
-
{
|
1434
|
-
text: "The National Archives Trust",
|
1435
|
-
href: "https://www.nationalarchivestrust.org.uk/",
|
1436
|
-
},
|
1437
|
-
{
|
1438
|
-
text: "Friends of The National Archives",
|
1439
|
-
href: "https://ftna.org.uk/",
|
1440
|
-
},
|
1441
|
-
],
|
1442
|
-
},
|
1443
|
-
],
|
1444
|
-
showNewsletter: true,
|
1445
|
-
legal: [
|
1446
|
-
{
|
1447
|
-
text: "Accessibility statement",
|
1448
|
-
href: "#/accessibility",
|
1449
|
-
},
|
1450
|
-
{
|
1451
|
-
text: "Freedom of information",
|
1452
|
-
href: "#/freedom-of-information",
|
1453
|
-
},
|
1454
|
-
{
|
1455
|
-
text: "Terms and conditions",
|
1456
|
-
href: "#/terms-and-conditions",
|
1457
|
-
},
|
1458
|
-
{
|
1459
|
-
text: "Privacy policy",
|
1460
|
-
href: "#/privacy",
|
1461
|
-
},
|
1462
|
-
{
|
1463
|
-
text: "Cookies",
|
1464
|
-
href: "#/cookies",
|
1465
|
-
},
|
1466
|
-
],
|
1467
|
-
},
|
1468
|
-
})}
|
1469
|
-
</div>
|
1470
|
-
</div>`;
|
1471
|
-
};
|
1472
|
-
|
1473
|
-
export const System = Template.bind({});
|
1474
|
-
System.parameters = {
|
1475
|
-
chromatic: { disableSnapshot: true },
|
1476
|
-
};
|
1477
|
-
System.args = {
|
1478
|
-
theme: "system",
|
1479
|
-
accent: "pink",
|
1480
|
-
};
|
1481
|
-
|
1482
|
-
export const Light = Template.bind({});
|
1483
|
-
Light.args = {
|
1484
|
-
theme: "light",
|
1485
|
-
accent: "pink",
|
1486
|
-
};
|
1487
|
-
|
1488
|
-
export const Dark = Template.bind({});
|
1489
|
-
Dark.parameters = {
|
1490
|
-
chromatic: { disableSnapshot: true },
|
1491
|
-
};
|
1492
|
-
Dark.args = {
|
1493
|
-
theme: "dark",
|
1494
|
-
accent: "pink",
|
1495
|
-
};
|
1496
|
-
|
1497
|
-
// export const LightHighContrast = Template.bind({});
|
1498
|
-
// LightHighContrast.parameters = {
|
1499
|
-
// chromatic: { disableSnapshot: true },
|
1500
|
-
// };
|
1501
|
-
// LightHighContrast.args = {
|
1502
|
-
// theme: "light high-contrast",
|
1503
|
-
// accent: "pink",
|
1504
|
-
// };
|
1505
|
-
|
1506
|
-
// export const DarkHighContrast = Template.bind({});
|
1507
|
-
// DarkHighContrast.parameters = {
|
1508
|
-
// chromatic: { disableSnapshot: true },
|
1509
|
-
// };
|
1510
|
-
// DarkHighContrast.args = {
|
1511
|
-
// theme: "dark high-contrast",
|
1512
|
-
// accent: "pink",
|
1513
|
-
// };
|