@nationalarchives/frontend 0.1.15-prerelease → 0.1.17-prerelease

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/LICENCE +21 -0
  2. package/nationalarchives/all.css +13 -1
  3. package/nationalarchives/all.css.map +1 -1
  4. package/nationalarchives/all.js +1 -1
  5. package/nationalarchives/all.js.map +1 -1
  6. package/nationalarchives/all.scss +2 -3
  7. package/nationalarchives/assets/fonts/fa-brands-400.ttf +0 -0
  8. package/nationalarchives/assets/fonts/fa-brands-400.woff2 +0 -0
  9. package/nationalarchives/assets/fonts/fa-regular-400.ttf +0 -0
  10. package/nationalarchives/assets/fonts/fa-regular-400.woff2 +0 -0
  11. package/nationalarchives/assets/fonts/fa-solid-900.ttf +0 -0
  12. package/nationalarchives/assets/fonts/fa-solid-900.woff2 +0 -0
  13. package/nationalarchives/components/_index.scss +1 -0
  14. package/nationalarchives/components/breadcrumbs/_index.scss +13 -41
  15. package/nationalarchives/components/breadcrumbs/breadcrumbs.js +1 -1
  16. package/nationalarchives/components/breadcrumbs/breadcrumbs.js.map +1 -1
  17. package/nationalarchives/components/breadcrumbs/breadcrumbs.mjs +8 -4
  18. package/nationalarchives/components/breadcrumbs/breadcrumbs.stories.js +9 -30
  19. package/nationalarchives/components/breadcrumbs/fixtures.json +23 -1
  20. package/nationalarchives/components/breadcrumbs/macro-options.json +6 -0
  21. package/nationalarchives/components/breadcrumbs/template.njk +17 -12
  22. package/nationalarchives/components/button/_button-group.scss +18 -0
  23. package/nationalarchives/components/button/_index.scss +25 -9
  24. package/nationalarchives/components/button/button.stories.js +64 -8
  25. package/nationalarchives/components/button/fixtures.json +3 -3
  26. package/nationalarchives/components/button/macro-options.json +13 -1
  27. package/nationalarchives/components/button/template.njk +7 -2
  28. package/nationalarchives/components/card/_index.scss +67 -51
  29. package/nationalarchives/components/card/card.stories.js +123 -10
  30. package/nationalarchives/components/card/fixtures.json +62 -10
  31. package/nationalarchives/components/card/macro-options.json +9 -3
  32. package/nationalarchives/components/card/template.njk +12 -8
  33. package/nationalarchives/components/filters/_index.scss +19 -14
  34. package/nationalarchives/components/filters/filters.stories.js +3 -4
  35. package/nationalarchives/components/footer/_index.scss +195 -72
  36. package/nationalarchives/components/footer/fixtures.json +1 -1
  37. package/nationalarchives/components/footer/footer.stories.js +82 -74
  38. package/nationalarchives/components/footer/macro-options.json +34 -8
  39. package/nationalarchives/components/footer/template.njk +110 -53
  40. package/nationalarchives/components/grid/_index.scss +2 -2
  41. package/nationalarchives/components/grid/grid.stories.js +2 -3
  42. package/nationalarchives/components/header/_index.scss +57 -23
  43. package/nationalarchives/components/header/header.stories.js +2 -3
  44. package/nationalarchives/components/hero/_index.scss +4 -8
  45. package/nationalarchives/components/hero/hero.stories.js +2 -3
  46. package/nationalarchives/components/index-grid/_index.scss +28 -7
  47. package/nationalarchives/components/index-grid/index-grid.stories.js +27 -4
  48. package/nationalarchives/components/index-grid/macro-options.json +12 -0
  49. package/nationalarchives/components/index-grid/template.njk +9 -11
  50. package/nationalarchives/components/message/_index.scss +12 -6
  51. package/nationalarchives/components/message/phase-banner.stories.js +2 -3
  52. package/nationalarchives/components/phase-banner/phase-banner.stories.js +2 -3
  53. package/nationalarchives/components/picture/_index.scss +5 -5
  54. package/nationalarchives/components/picture/picture.js +1 -1
  55. package/nationalarchives/components/picture/picture.js.map +1 -1
  56. package/nationalarchives/components/picture/picture.mjs +2 -0
  57. package/nationalarchives/components/picture/picture.stories.js +2 -3
  58. package/nationalarchives/components/profile/profile.stories.js +2 -3
  59. package/nationalarchives/components/sensitive-image/sensitive-image.stories.js +3 -4
  60. package/nationalarchives/components/skip-link/_index.scss +63 -0
  61. package/nationalarchives/components/skip-link/fixtures.json +11 -0
  62. package/nationalarchives/{patterns/featured-collection → components/skip-link}/macro-options.json +10 -4
  63. package/nationalarchives/components/skip-link/macro.njk +3 -0
  64. package/nationalarchives/{patterns/featured-collection/featured-collection.stories.js → components/skip-link/skip-link.stories.js} +7 -10
  65. package/nationalarchives/components/skip-link/template.njk +4 -0
  66. package/nationalarchives/components/tabs/_index.scss +7 -5
  67. package/nationalarchives/components/tabs/tabs.stories.js +8 -9
  68. package/nationalarchives/lib/font-awesome/_animated.scss +276 -0
  69. package/nationalarchives/lib/font-awesome/_bordered-pulled.scss +20 -0
  70. package/nationalarchives/lib/font-awesome/_core.scss +42 -0
  71. package/nationalarchives/lib/font-awesome/_fixed-width.scss +7 -0
  72. package/nationalarchives/lib/font-awesome/_functions.scss +57 -0
  73. package/nationalarchives/lib/font-awesome/_icons.scss +11 -0
  74. package/nationalarchives/lib/font-awesome/_list.scss +20 -0
  75. package/nationalarchives/lib/font-awesome/_mixins.scss +74 -0
  76. package/nationalarchives/lib/font-awesome/_rotated-flipped.scss +31 -0
  77. package/nationalarchives/lib/font-awesome/_screen-reader.scss +14 -0
  78. package/nationalarchives/lib/font-awesome/_shims.scss +2653 -0
  79. package/nationalarchives/lib/font-awesome/_sizing.scss +16 -0
  80. package/nationalarchives/lib/font-awesome/_stacked.scss +32 -0
  81. package/nationalarchives/lib/font-awesome/_variables.scss +4976 -0
  82. package/nationalarchives/lib/font-awesome/brands.scss +34 -0
  83. package/nationalarchives/lib/font-awesome/fontawesome.scss +21 -0
  84. package/nationalarchives/lib/font-awesome/regular.scss +28 -0
  85. package/nationalarchives/lib/font-awesome/solid.scss +28 -0
  86. package/nationalarchives/lib/font-awesome/v4-shims.scss +11 -0
  87. package/nationalarchives/stories/utilities/colour-schemes/colour-schemes.mdx +22 -0
  88. package/nationalarchives/stories/utilities/colour-schemes/colour-schemes.stories.js +494 -91
  89. package/nationalarchives/stories/utilities/overrides/overrides.mdx +37 -57
  90. package/nationalarchives/stories/utilities/overrides/overrides.stories.js +8 -14
  91. package/nationalarchives/stories/utilities/typography/heading-groups.stories.js +1 -1
  92. package/nationalarchives/stories/utilities/typography/typography.mdx +2 -0
  93. package/nationalarchives/stories/utilities/typography/typography.stories.js +20 -1
  94. package/nationalarchives/templates/layouts/_generic.njk +10 -8
  95. package/nationalarchives/tools/_colour.scss +163 -49
  96. package/nationalarchives/tools/_index.scss +0 -1
  97. package/nationalarchives/tools/_typography.scss +13 -0
  98. package/nationalarchives/utilities/_debug.scss +41 -1
  99. package/nationalarchives/utilities/_font-awesome.scss +5 -0
  100. package/nationalarchives/utilities/_global.scss +75 -26
  101. package/nationalarchives/utilities/_index.scss +1 -0
  102. package/nationalarchives/utilities/_overrides.scss +54 -9
  103. package/nationalarchives/utilities/_typography.scss +203 -65
  104. package/nationalarchives/variables/_assets.scss +1 -1
  105. package/nationalarchives/variables/_colour.scss +93 -93
  106. package/nationalarchives/variables/_grid.scss +1 -1
  107. package/nationalarchives/variables/_media.scss +23 -23
  108. package/nationalarchives/variables/_spacing.scss +12 -2
  109. package/nationalarchives/variables/_typography.scss +4 -1
  110. package/package.json +14 -14
  111. package/nationalarchives/patterns/_index.scss +0 -1
  112. package/nationalarchives/patterns/featured-collection/_index.scss +0 -13
  113. package/nationalarchives/patterns/featured-collection/macro.njk +0 -3
  114. package/nationalarchives/patterns/featured-collection/template.njk +0 -96
  115. package/nationalarchives/tools/_assets.scss +0 -5
@@ -4,7 +4,7 @@
4
4
  {
5
5
  "name": "minimal",
6
6
  "options": {},
7
- "html": "<footer class=\"tna-footer \"><div class=\"tna-container tna-footer__licence\"><div class=\"tna-column tna-column--full-tiny\"><svg class=\"tna-footer__licence-logo\" xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" aria-hidden=\"true\" viewBox=\"0 0 483.2 195.7\" width=\"60\" height=\"24\"><path fill=\"currentColor\" d=\"M421.5 142.8V.1l-50.7 32.3v161.1h112.4v-50.7zm-122.3-9.6A47.12 47.12 0 0 1 221 97.8c0-26 21.1-47.1 47.1-47.1 16.7 0 31.4 8.7 39.7 21.8l42.7-27.2A97.63 97.63 0 0 0 268.1 0c-36.5 0-68.3 20.1-85.1 49.7A98 98 0 0 0 97.8 0C43.9 0 0 43.9 0 97.8s43.9 97.8 97.8 97.8c36.5 0 68.3-20.1 85.1-49.7a97.76 97.76 0 0 0 149.6 25.4l19.4 22.2h3v-87.8h-80l24.3 27.5zM97.8 145c-26 0-47.1-21.1-47.1-47.1s21.1-47.1 47.1-47.1 47.2 21 47.2 47S123.8 145 97.8 145\"></path></svg></div><div class=\"tna-column tna-column--flex-1\"><p>All content is available under the <a href=\"https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/\" class=\"tna-footer__link\">Open Government Licence v3.0</a>, except where otherwise stated</p></div><div class=\"tna-column tna-column--full-tiny tna-footer__govuk\"><a href=\"https://www.gov.uk/\" class=\"tna-footer__govuk-link\"><svg class=\"tna-footer__govuk-logotype-crown\" xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" aria-hidden=\"true\" viewBox=\"0 0 132 97\" width=\"44\" height=\"32\"><path fill=\"currentColor\" d=\"M25 30.2c3.5 1.5 7.7-.2 9.1-3.7 1.5-3.6-.2-7.8-3.9-9.2-3.6-1.4-7.6.3-9.1 3.9-1.4 3.5.3 7.5 3.9 9zM9 39.5c3.6 1.5 7.8-.2 9.2-3.7 1.5-3.6-.2-7.8-3.9-9.1-3.6-1.5-7.6.2-9.1 3.8-1.4 3.5.3 7.5 3.8 9zM4.4 57.2c3.5 1.5 7.7-.2 9.1-3.8 1.5-3.6-.2-7.7-3.9-9.1-3.5-1.5-7.6.3-9.1 3.8-1.4 3.5.3 7.6 3.9 9.1zm38.3-21.4c3.5 1.5 7.7-.2 9.1-3.8 1.5-3.6-.2-7.7-3.9-9.1-3.6-1.5-7.6.3-9.1 3.8-1.3 3.6.4 7.7 3.9 9.1zm64.4-5.6c-3.6 1.5-7.8-.2-9.1-3.7-1.5-3.6.2-7.8 3.8-9.2 3.6-1.4 7.7.3 9.2 3.9 1.3 3.5-.4 7.5-3.9 9zm15.9 9.3c-3.6 1.5-7.7-.2-9.1-3.7-1.5-3.6.2-7.8 3.7-9.1 3.6-1.5 7.7.2 9.2 3.8 1.5 3.5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8-8.3 7.1-3.1 2.7-8.7-4.6-11.6-9.4-6.2 3.7-8.5 3.6-14.7-4.6-20.8-5.8 7.6-5 13.9 2.2 21.1-4.7-2.6-11.9.1-7.7 8.8 2.3-5.5 7.1-4.2 8.1.5.7 3.3-1.3 7.1-5.7 7.9-3.5.7-9-1.8-13.5-11.2 2.5.1 4.7 1.3 7.5 3.3l-4.7-15.4c-1.2 4.4-2.7 7.2-4.3 8.7-1.1-3-.9-5.3 0-10.2l-9.5 3.4c5 6.9 9.9 16.7 14 33.5 14.8-2.1 30.8-3.2 47.7-3.2z\"></path></svg>GOV.UK</a></div></div></footer>",
7
+ "html": "<footer class=\"tna-footer \"><div class=\"tna-container\"><div class=\"tna-column tna-column--flex-1 tna-column--width-1-2-medium tna-column--full-small tna-column--full-tiny tna-column--order-1\"><svg xmlns=\"http://www.w3.org/2000/svg\" xml:space=\"preserve\" class=\"tna-logo\" style=\"enable-background:new 0 0 160 160\" viewBox=\"0 0 160 160\" width=\"96\" height=\"96\"><path fill=\"transparent\" d=\"M0 0h160v160H0z\" class=\"tna-logo__background\"/><g class=\"tna-logo__foreground\" fill=\"currentColor\"><path d=\"M1.9 107.2h156.3V158H1.9v-50.8zm0-52.7h156.3v50.8H1.9V54.5zm0-52.6h77.2v50.8H1.9V1.9zm79 0h77.2v50.8H80.9V1.9zm0-1.9H0v160h160V0H80.9z\"/><path d=\"M21.3 19.5h-5.4v-3h14.3v3h-5.4v18.4h-3.5zM31.6 16.5H35v9h8.4v-9h3.4v21.4h-3.4v-9.3H35v9.3h-3.4zM50.9 16.5h12.2v3h-8.8v6.1h7.4v3h-7.4v6.3h8.8v3H50.9zM19.7 69.2h3.8l6.4 12.5c.6 1.1 1.1 2.7 1.6 4h.2c-.2-1.7-.3-3.6-.3-4.8V69.2h3.5v21.4h-3.7l-6.3-12.3c-.7-1.4-1.2-2.7-1.7-4.2H23c.2 1.4.3 3.3.3 5v11.5h-3.5c-.1 0-.1-21.4-.1-21.4zM47.8 82.6l-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 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\"/></g></svg><h2 class=\"tna-heading tna-heading--l tna-footer__title\">The National Archives</h2><address class=\"tna-footer__address\">Kew, Richmond<br />TW9 4DU</address></div></div><div class=\"tna-container\"><div class=\"tna-column--full\"><hr /></div></div><div class=\"tna-container tna-footer__licence\"><div class=\"tna-column tna-column--full-tiny\"><svg class=\"tna-footer__licence-logo\" xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" aria-hidden=\"true\" viewBox=\"0 0 483.2 195.7\" width=\"60\" height=\"24\"><path fill=\"currentColor\" d=\"M421.5 142.8V.1l-50.7 32.3v161.1h112.4v-50.7zm-122.3-9.6A47.12 47.12 0 0 1 221 97.8c0-26 21.1-47.1 47.1-47.1 16.7 0 31.4 8.7 39.7 21.8l42.7-27.2A97.63 97.63 0 0 0 268.1 0c-36.5 0-68.3 20.1-85.1 49.7A98 98 0 0 0 97.8 0C43.9 0 0 43.9 0 97.8s43.9 97.8 97.8 97.8c36.5 0 68.3-20.1 85.1-49.7a97.76 97.76 0 0 0 149.6 25.4l19.4 22.2h3v-87.8h-80l24.3 27.5zM97.8 145c-26 0-47.1-21.1-47.1-47.1s21.1-47.1 47.1-47.1 47.2 21 47.2 47S123.8 145 97.8 145\"></path></svg></div><div class=\"tna-column tna-column--flex-1\"><p>All content is available under the <a href=\"https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/\" class=\"tna-footer__link\">Open Government Licence v3.0</a>, except where otherwise stated</p></div><div class=\"tna-column tna-column--full-tiny tna-footer__govuk\"><a href=\"https://www.gov.uk/\" class=\"tna-footer__govuk-link\"><svg class=\"tna-footer__govuk-logotype-crown\" xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" aria-hidden=\"true\" viewBox=\"0 0 132 97\" width=\"44\" height=\"32\"><path fill=\"currentColor\" d=\"M25 30.2c3.5 1.5 7.7-.2 9.1-3.7 1.5-3.6-.2-7.8-3.9-9.2-3.6-1.4-7.6.3-9.1 3.9-1.4 3.5.3 7.5 3.9 9zM9 39.5c3.6 1.5 7.8-.2 9.2-3.7 1.5-3.6-.2-7.8-3.9-9.1-3.6-1.5-7.6.2-9.1 3.8-1.4 3.5.3 7.5 3.8 9zM4.4 57.2c3.5 1.5 7.7-.2 9.1-3.8 1.5-3.6-.2-7.7-3.9-9.1-3.5-1.5-7.6.3-9.1 3.8-1.4 3.5.3 7.6 3.9 9.1zm38.3-21.4c3.5 1.5 7.7-.2 9.1-3.8 1.5-3.6-.2-7.7-3.9-9.1-3.6-1.5-7.6.3-9.1 3.8-1.3 3.6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13.8 2.5-.5 7.1 1.8 11 7.3L80.2 60c-4.1 4.4-8 5.3-12.3 5.4 1.4-4.4 8-11.6 8-11.6H55.5s6.4 7.2 7.9 11.6c-4.2-.1-8-1-12.3-5.4l1.4 16.4c3.9-5.5 8.5-7.7 10.9-7.3-.3 5.8-.9 12.8-11.1 13.8-7.2.6-12.9-2.9-13.5-7.2-.7-5 3.8-8.3 7.1-3.1 2.7-8.7-4.6-11.6-9.4-6.2 3.7-8.5 3.6-14.7-4.6-20.8-5.8 7.6-5 13.9 2.2 21.1-4.7-2.6-11.9.1-7.7 8.8 2.3-5.5 7.1-4.2 8.1.5.7 3.3-1.3 7.1-5.7 7.9-3.5.7-9-1.8-13.5-11.2 2.5.1 4.7 1.3 7.5 3.3l-4.7-15.4c-1.2 4.4-2.7 7.2-4.3 8.7-1.1-3-.9-5.3 0-10.2l-9.5 3.4c5 6.9 9.9 16.7 14 33.5 14.8-2.1 30.8-3.2 47.7-3.2z\"></path></svg>GOV.UK</a></div></div></div></footer>",
8
8
  "hidden": false
9
9
  }
10
10
  ]
@@ -2,10 +2,11 @@ import Footer from "./template.njk";
2
2
  import macroOptions from "./macro-options.json";
3
3
 
4
4
  const argTypes = {
5
- title: { control: "text" },
6
- address: { control: "text" },
7
- navigation: { control: "object" },
5
+ meta: { control: "text" },
8
6
  social: { control: "object" },
7
+ navigation: { control: "object" },
8
+ showNewsletter: { control: "boolean" },
9
+ legal: { control: "object" },
9
10
  classes: { control: "text" },
10
11
  attributes: { control: "object" },
11
12
  };
@@ -22,166 +23,173 @@ export default {
22
23
  };
23
24
 
24
25
  const Template = ({
25
- title,
26
- address,
27
- navigation,
26
+ meta,
28
27
  social,
28
+ navigation,
29
+ showNewsletter,
30
+ legal,
29
31
  classes,
30
32
  attributes,
31
- }) => {
32
- return Footer({
33
+ }) =>
34
+ Footer({
33
35
  params: {
34
- title,
35
- address,
36
- navigation,
36
+ meta,
37
37
  social,
38
+ navigation,
39
+ showNewsletter,
40
+ legal,
38
41
  classes,
39
42
  attributes,
40
43
  },
41
44
  });
42
- };
43
45
 
44
46
  export const Standard = Template.bind({});
45
47
  Standard.args = {
46
- title: "The National Archives",
47
- address: "Kew, Richmond TW9 4DU",
48
+ meta: "<p>Open today<br />09:00&mdash;19:00</p>",
49
+ social: [
50
+ {
51
+ text: "Twitter",
52
+ href: "#",
53
+ image: "./images/footer/twitter.svg",
54
+ },
55
+ {
56
+ text: "YouTube",
57
+ href: "#",
58
+ image: "./images/footer/youtube.svg",
59
+ },
60
+ {
61
+ text: "Facebook",
62
+ href: "#",
63
+ image: "./images/footer/facebook.svg",
64
+ },
65
+ {
66
+ text: "Flickr",
67
+ href: "#",
68
+ image: "./images/footer/flickr.svg",
69
+ },
70
+ {
71
+ text: "Instagram",
72
+ href: "#",
73
+ image: "./images/footer/instagram.svg",
74
+ },
75
+ {
76
+ text: "RSS",
77
+ href: "#",
78
+ image: "./images/footer/rss.svg",
79
+ },
80
+ ],
48
81
  navigation: [
49
82
  {
50
- title: "Find out more",
83
+ title: "About us",
51
84
  items: [
52
85
  {
53
- text: "Contact us",
86
+ text: "Our role",
54
87
  href: "#",
55
88
  },
56
89
  {
57
- text: "Press room",
90
+ text: "Our history",
58
91
  href: "#",
59
92
  },
60
93
  {
61
- text: "Jobs and careers",
94
+ text: "Our collection",
62
95
  href: "#",
63
96
  },
64
97
  {
65
- text: "Friends of The National Archives",
98
+ text: "Our people",
66
99
  href: "#",
67
100
  },
68
- ],
69
- },
70
- {
71
- title: "Site help",
72
- items: [
73
101
  {
74
- text: "Help",
102
+ text: "How we are run",
75
103
  href: "#",
76
104
  },
77
105
  {
78
- text: "Website A-Z index",
106
+ text: "Our research amd academic collaboration",
79
107
  href: "#",
80
108
  },
81
109
  {
82
- text: "Accessibility",
110
+ text: "News",
83
111
  href: "#",
84
112
  },
85
- ],
86
- },
87
- {
88
- title: "Websites",
89
- items: [
90
113
  {
91
- text: "Blog",
92
- href: "#",
93
- },
94
- {
95
- text: "Podcasts and videos",
114
+ text: "Contact us",
96
115
  href: "#",
97
116
  },
98
117
  {
99
- text: "Shop",
118
+ text: "Jobs & careers",
100
119
  href: "#",
101
120
  },
102
121
  {
103
- text: "Image library",
122
+ text: "Get involved",
104
123
  href: "#",
105
124
  },
125
+ ],
126
+ },
127
+ {
128
+ title: "Our websites help",
129
+ items: [
106
130
  {
107
131
  text: "UK Government Web Archive",
108
132
  href: "#",
133
+ newTab: true,
109
134
  },
110
135
  {
111
136
  text: "Legislation.gov.uk",
112
137
  href: "#",
138
+ newTab: true,
113
139
  },
114
140
  {
115
141
  text: "Find case law",
116
142
  href: "#",
143
+ newTab: true,
117
144
  },
118
145
  {
119
146
  text: "The Gazette",
120
147
  href: "#",
148
+ newTab: true,
121
149
  },
122
150
  ],
123
151
  },
124
152
  {
125
- title: "Legal",
153
+ title: "Quick links",
126
154
  items: [
127
155
  {
128
- text: "Terms of use",
129
- href: "#",
130
- },
131
- {
132
- text: "Privacy policy",
133
- href: "#",
134
- },
135
- {
136
- text: "Cookies",
137
- href: "#",
138
- },
139
- {
140
- text: "Freedom of Information",
141
- href: "#",
142
- },
143
- {
144
- text: "Transparency",
156
+ text: "Press room",
145
157
  href: "#",
146
158
  },
147
159
  {
148
- text: "Our fees",
160
+ text: "Venue hire",
149
161
  href: "#",
150
162
  },
151
163
  ],
152
164
  },
153
165
  ],
154
- social: [
166
+ showNewsletter: true,
167
+ legal: [
155
168
  {
156
- text: "Twitter",
169
+ text: "Accessibility statement",
157
170
  href: "#",
158
- image: "./images/footer/twitter.svg",
159
- },
160
- {
161
- text: "YouTube",
162
- href: "#",
163
- image: "./images/footer/youtube.svg",
164
171
  },
165
172
  {
166
- text: "Flickr",
173
+ text: "Freedom of information",
167
174
  href: "#",
168
- image: "./images/footer/flickr.svg",
169
175
  },
170
176
  {
171
- text: "Facebook",
177
+ text: "Terms and condidtions",
172
178
  href: "#",
173
- image: "./images/footer/facebook.svg",
174
179
  },
175
180
  {
176
- text: "Instagram",
181
+ text: "Privacy policy",
177
182
  href: "#",
178
- image: "./images/footer/instagram.svg",
179
183
  },
180
184
  {
181
- text: "RSS",
185
+ text: "Cookies",
182
186
  href: "#",
183
- image: "./images/footer/rss.svg",
184
187
  },
185
188
  ],
186
189
  classes: "tna-footer--demo",
187
190
  };
191
+
192
+ export const Minimal = Template.bind({});
193
+ Minimal.args = {
194
+ classes: "tna-footer--demo",
195
+ };
@@ -1,15 +1,41 @@
1
1
  [
2
2
  {
3
- "name": "title",
4
- "type": "text",
3
+ "name": "meta",
4
+ "type": "string",
5
5
  "required": false,
6
6
  "description": ""
7
7
  },
8
8
  {
9
- "name": "address",
10
- "type": "text",
9
+ "name": "social",
10
+ "type": "array",
11
11
  "required": false,
12
- "description": ""
12
+ "description": "",
13
+ "params": [
14
+ {
15
+ "name": "text",
16
+ "type": "string",
17
+ "required": true,
18
+ "description": ""
19
+ },
20
+ {
21
+ "name": "href",
22
+ "type": "string",
23
+ "required": true,
24
+ "description": ""
25
+ },
26
+ {
27
+ "name": "image",
28
+ "type": "string",
29
+ "required": true,
30
+ "description": ""
31
+ },
32
+ {
33
+ "name": "title",
34
+ "type": "string",
35
+ "required": false,
36
+ "description": ""
37
+ }
38
+ ]
13
39
  },
14
40
  {
15
41
  "name": "navigation",
@@ -48,8 +74,8 @@
48
74
  "description": ""
49
75
  },
50
76
  {
51
- "name": "image",
52
- "type": "string",
77
+ "name": "newTab",
78
+ "type": "boolean",
53
79
  "required": false,
54
80
  "description": ""
55
81
  }
@@ -58,7 +84,7 @@
58
84
  ]
59
85
  },
60
86
  {
61
- "name": "social",
87
+ "name": "legal",
62
88
  "type": "array",
63
89
  "required": false,
64
90
  "description": "",
@@ -1,67 +1,124 @@
1
1
  {%- set containerClasses = [params.classes] if params.classes else [] -%}
2
2
  <footer class="tna-footer {{ containerClasses | join(' ') }}" {%- for attribute, value in params.attributes %} {{ attribute }}="{{ value }}"{% endfor %}>
3
- {%- if params.title or params.address -%}
4
- <div class="tna-container tna-footer__top">
5
- <div class="tna-column tna-column--full">
6
- {%- if params.title -%}
7
- <h2 class="tna-heading tna-heading--l tna-footer__title">
8
- {{ params.title }}
9
- </h2>
10
- {%- endif -%}
11
- {%- if params.address -%}
12
- <address class="tna-footer__address">
13
- {{ params.address }}
14
- </address>
3
+ <div class="tna-container">
4
+ <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">
5
+ <svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" class="tna-logo" style="enable-background:new 0 0 160 160" viewBox="0 0 160 160" width="96" height="96">
6
+ <path fill="transparent" d="M0 0h160v160H0z" class="tna-logo__background"/>
7
+ <g class="tna-logo__foreground" fill="currentColor">
8
+ <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"/>
9
+ <path d="M21.3 19.5h-5.4v-3h14.3v3h-5.4v18.4h-3.5zM31.6 16.5H35v9h8.4v-9h3.4v21.4h-3.4v-9.3H35v9.3h-3.4zM50.9 16.5h12.2v3h-8.8v6.1h7.4v3h-7.4v6.3h8.8v3H50.9zM19.7 69.2h3.8l6.4 12.5c.6 1.1 1.1 2.7 1.6 4h.2c-.2-1.7-.3-3.6-.3-4.8V69.2h3.5v21.4h-3.7l-6.3-12.3c-.7-1.4-1.2-2.7-1.7-4.2H23c.2 1.4.3 3.3.3 5v11.5h-3.5c-.1 0-.1-21.4-.1-21.4zM47.8 82.6l-1.7-6.3c-.3-1.1-.6-2.2-.9-3.8H45c-.3 1.6-.5 2.6-.8 3.8l-1.7 6.3h5.3zM43 69.2h4.2l6.2 21.4h-3.5l-1.5-5.2h-6.6l-1.4 5.2h-3.6L43 69.2zM57.2 72.3h-5.4v-3.1H66v3.1h-5.4v18.4h-3.4zM67.8 69.2h3.5v21.4h-3.5zM87.5 80c0-5.3-1.7-8-4.8-8-3.2 0-4.8 2.7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.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"/>
10
+ </g>
11
+ </svg>
12
+ <h2 class="tna-heading tna-heading--l tna-footer__title">The National Archives</h2>
13
+ <address class="tna-footer__address">
14
+ Kew, Richmond<br />
15
+ TW9 4DU
16
+ </address>
17
+ {%- if params.meta -%}
18
+ <div class="tna-footer__meta">
19
+ {{ params.meta | safe }}
20
+ </div>
21
+ {%- endif -%}
22
+ {%- if params.social -%}
23
+ <nav class="tna-footer__social" aria-label="Social links">
24
+ <ul class="tna-ul tna-ul--plain tna-footer__social-items">
25
+ {%- for item in params.social -%}
26
+ <li class="tna-footer__social-item">
27
+ <a href="{{ item.href }}" class="tna-footer__social-item-link" {%- if item.title %}title="{{ item.title }}"{% endif %}>
28
+ {%- if item.image -%}
29
+ <img class="tna-footer__social-item-link-image" src="{{ item.image }}" alt="{{ item.text }} logo" width="32" height="32" />
30
+ <span class="tna-footer__social-item-link-text tna-visually-hidden">
31
+ {{ item.text }}
32
+ </span>
33
+ {%- else -%}
34
+ <span class="tna-footer__social-item-link-text">
35
+ {{ item.text }}
36
+ </span>
37
+ {%- endif -%}
38
+ </a>
39
+ </li>
40
+ {%- endfor -%}
41
+ </ul>
42
+ </nav>
43
+ {%- endif -%}
44
+ </div>
45
+ {%- if params.navigation -%}
46
+ <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">
47
+ {%- for group in params.navigation -%}
48
+ <nav class="tna-footer__navigation-block tna-columns__block" aria-label="{{ group.title }}">
49
+ <h3 class="tna-footer__navigation-block-heading tna-heading tna-heading--m">
50
+ {{ group.title }}
51
+ </h3>
52
+ <ul class="tna-footer__navigation-block-items tna-ul tna-ul--plain">
53
+ {%- for item in group.items -%}
54
+ <li class="tna-footer__navigation-block-item">
55
+ <a href="{{ item.href }}" class="tna-footer__navigation-block-item-link"{%- if item.title %} title="{{ item.title }}"{% endif %}{%- if item.newTab %} target="_blank"{% endif %}>
56
+ {{ item.text }}
57
+ {%- if item.newTab -%}
58
+ <span class="tna-footer__navigation-block-item-link-icon"></span>
59
+ <span class="tna-visually-hidden">(opens in new tab)</span>
60
+ {%- endif -%}
61
+ </a>
62
+ </li>
63
+ {%- endfor -%}
64
+ </ul>
65
+ </nav>
66
+ {%- endfor -%}
67
+ </div>
15
68
  {%- endif -%}
69
+ {%- if params.showNewsletter -%}
70
+ <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">
71
+ <div class="tna-footer__mailing-list">
72
+ <h3 class="tna-footer__navigation-block-heading tna-heading tna-heading--m">
73
+ Join the National Archives' mailing list
74
+ </h3>
75
+ <p>
76
+ Subscribe for regular news, updates and priority booking for events.
77
+ </p>
78
+ <a href="#" class="tna-button tna-button--accent" role="button">
79
+ Subscribe
80
+ </a>
81
+ </div>
16
82
  </div>
83
+ {%- endif -%}
17
84
  </div>
18
- {%- endif -%}
19
- {%- if params.navigation -%}
20
- <div class="tna-container tna-footer__navigation">
21
- {%- for group in params.navigation -%}
22
- <nav class="tna-column tna-column--flex-1 tna-column--width-1-2-small tna-column--full-tiny tna-footer__navigation-group" aria-label="{{ group.title }}">
23
- <h3 class="tna-heading tna-heading--m tna-footer__navigation-group-title">{{ group.title }}</h3>
24
- <ul class="tna-footer__navigation-group-items">
25
- {%- for item in group.items -%}
26
- <li class="tna-footer__navigation-group-item">
27
- <a href="{{ item.href }}" class="tna-footer__navigation-group-item-link tna-footer__link" {%- if item.title %}title="{{ item.title }}"{% endif %}>{{ item.text }}</a>
85
+ <div class="tna-container">
86
+ {%- if params.legal -%}
87
+ <nav class="tna-footer__legal tna-column tna-column--full" aria-label="General site links">
88
+ <ul class="tna-footer__legal-items tna-ul tna-ul--plain">
89
+ {%- for item in params.legal -%}
90
+ <li class="tna-footer__legal-item">
91
+ <a href="{{ item.href }}" class="tna-footer__legal-item-link" {%- if item.title %} title="{{ item.title }}"{% endif %}>
92
+ {{ item.text }}
93
+ </a>
28
94
  </li>
29
- {%- endfor -%}
95
+ {%- endfor -%}
30
96
  </ul>
97
+ <hr />
31
98
  </nav>
32
- {%- endfor -%}
33
- </div>
34
- {%- endif -%}
35
- {%- if params.social -%}
36
- <nav class="tna-container tna-footer__social" aria-label="Social links">
37
- {%- for item in params.social -%}
38
- <div class="tna-column tna-column--flex-1 tna-column--width-1-4-small tna-column--width-1-2-tiny tna-footer__social-item">
39
- <a href="{{ item.href }}" class="tna-footer__social-item-link tna-footer__link" {%- if item.title %}title="{{ item.title }}"{% endif %}>
40
- {%- if item.image -%}
41
- <img class="tna-footer__social-item-link-image" src="{{ item.image }}" alt="" width="40" height="40" />
42
- {%- endif -%}
43
- {{ item.text }}
44
- </a>
99
+ {%- else -%}
100
+ <div class="tna-column--full">
101
+ <hr />
45
102
  </div>
46
- {%- endfor -%}
47
- </nav>
48
- {%- endif -%}
103
+ {%- endif -%}
104
+ </div>
49
105
  <div class="tna-container tna-footer__licence">
50
- <div class="tna-column tna-column--full-tiny">
51
- <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">
52
- <path fill="currentColor" d="M421.5 142.8V.1l-50.7 32.3v161.1h112.4v-50.7zm-122.3-9.6A47.12 47.12 0 0 1 221 97.8c0-26 21.1-47.1 47.1-47.1 16.7 0 31.4 8.7 39.7 21.8l42.7-27.2A97.63 97.63 0 0 0 268.1 0c-36.5 0-68.3 20.1-85.1 49.7A98 98 0 0 0 97.8 0C43.9 0 0 43.9 0 97.8s43.9 97.8 97.8 97.8c36.5 0 68.3-20.1 85.1-49.7a97.76 97.76 0 0 0 149.6 25.4l19.4 22.2h3v-87.8h-80l24.3 27.5zM97.8 145c-26 0-47.1-21.1-47.1-47.1s21.1-47.1 47.1-47.1 47.2 21 47.2 47S123.8 145 97.8 145"></path>
53
- </svg>
54
- </div>
55
- <div class="tna-column tna-column--flex-1">
56
- <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>
57
- </div>
58
- <div class="tna-column tna-column--full-tiny tna-footer__govuk">
59
- <a href="https://www.gov.uk/" class="tna-footer__govuk-link">
60
- <svg class="tna-footer__govuk-logotype-crown" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true" viewBox="0 0 132 97" width="44" height="32">
61
- <path fill="currentColor" d="M25 30.2c3.5 1.5 7.7-.2 9.1-3.7 1.5-3.6-.2-7.8-3.9-9.2-3.6-1.4-7.6.3-9.1 3.9-1.4 3.5.3 7.5 3.9 9zM9 39.5c3.6 1.5 7.8-.2 9.2-3.7 1.5-3.6-.2-7.8-3.9-9.1-3.6-1.5-7.6.2-9.1 3.8-1.4 3.5.3 7.5 3.8 9zM4.4 57.2c3.5 1.5 7.7-.2 9.1-3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4.3-8.7-3-11.4-7.6-8.8 7.1-7.2 7.9-13.5 2.1-21.1-8 6.1-8.1 12.3-4.5 20.8-4.7-5.4-12.1-2.5-9.5 6.2 3.4-5.2 7.9-2 7.2 3.1-.6 4.3-6.4 7.8-13.5 7.2-10.3-.9-10.9-8-11.2-13.8 2.5-.5 7.1 1.8 11 7.3L80.2 60c-4.1 4.4-8 5.3-12.3 5.4 1.4-4.4 8-11.6 8-11.6H55.5s6.4 7.2 7.9 11.6c-4.2-.1-8-1-12.3-5.4l1.4 16.4c3.9-5.5 8.5-7.7 10.9-7.3-.3 5.8-.9 12.8-11.1 13.8-7.2.6-12.9-2.9-13.5-7.2-.7-5 3.8-8.3 7.1-3.1 2.7-8.7-4.6-11.6-9.4-6.2 3.7-8.5 3.6-14.7-4.6-20.8-5.8 7.6-5 13.9 2.2 21.1-4.7-2.6-11.9.1-7.7 8.8 2.3-5.5 7.1-4.2 8.1.5.7 3.3-1.3 7.1-5.7 7.9-3.5.7-9-1.8-13.5-11.2 2.5.1 4.7 1.3 7.5 3.3l-4.7-15.4c-1.2 4.4-2.7 7.2-4.3 8.7-1.1-3-.9-5.3 0-10.2l-9.5 3.4c5 6.9 9.9 16.7 14 33.5 14.8-2.1 30.8-3.2 47.7-3.2z"></path>
106
+ <div class="tna-column tna-column--full-tiny">
107
+ <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">
108
+ <path fill="currentColor" d="M421.5 142.8V.1l-50.7 32.3v161.1h112.4v-50.7zm-122.3-9.6A47.12 47.12 0 0 1 221 97.8c0-26 21.1-47.1 47.1-47.1 16.7 0 31.4 8.7 39.7 21.8l42.7-27.2A97.63 97.63 0 0 0 268.1 0c-36.5 0-68.3 20.1-85.1 49.7A98 98 0 0 0 97.8 0C43.9 0 0 43.9 0 97.8s43.9 97.8 97.8 97.8c36.5 0 68.3-20.1 85.1-49.7a97.76 97.76 0 0 0 149.6 25.4l19.4 22.2h3v-87.8h-80l24.3 27.5zM97.8 145c-26 0-47.1-21.1-47.1-47.1s21.1-47.1 47.1-47.1 47.2 21 47.2 47S123.8 145 97.8 145"></path>
62
109
  </svg>
63
- GOV.UK
64
- </a>
110
+ </div>
111
+ <div class="tna-column tna-column--flex-1">
112
+ <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>
113
+ </div>
114
+ <div class="tna-column tna-column--full-tiny tna-footer__govuk">
115
+ <a href="https://www.gov.uk/" class="tna-footer__govuk-link">
116
+ <svg class="tna-footer__govuk-logotype-crown" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true" viewBox="0 0 132 97" width="44" height="32">
117
+ <path fill="currentColor" d="M25 30.2c3.5 1.5 7.7-.2 9.1-3.7 1.5-3.6-.2-7.8-3.9-9.2-3.6-1.4-7.6.3-9.1 3.9-1.4 3.5.3 7.5 3.9 9zM9 39.5c3.6 1.5 7.8-.2 9.2-3.7 1.5-3.6-.2-7.8-3.9-9.1-3.6-1.5-7.6.2-9.1 3.8-1.4 3.5.3 7.5 3.8 9zM4.4 57.2c3.5 1.5 7.7-.2 9.1-3.8 1.5-3.6-.2-7.7-3.9-9.1-3.5-1.5-7.6.3-9.1 3.8-1.4 3.5.3 7.6 3.9 9.1zm38.3-21.4c3.5 1.5 7.7-.2 9.1-3.8 1.5-3.6-.2-7.7-3.9-9.1-3.6-1.5-7.6.3-9.1 3.8-1.3 3.6.4 7.7 3.9 9.1zm64.4-5.6c-3.6 1.5-7.8-.2-9.1-3.7-1.5-3.6.2-7.8 3.8-9.2 3.6-1.4 7.7.3 9.2 3.9 1.3 3.5-.4 7.5-3.9 9zm15.9 9.3c-3.6 1.5-7.7-.2-9.1-3.7-1.5-3.6.2-7.8 3.7-9.1 3.6-1.5 7.7.2 9.2 3.8 1.5 3.5-.3 7.5-3.8 9zm4.7 17.7c-3.6 1.5-7.8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.2 3.7-8.5 3.6-14.7-4.6-20.8-5.8 7.6-5 13.9 2.2 21.1-4.7-2.6-11.9.1-7.7 8.8 2.3-5.5 7.1-4.2 8.1.5.7 3.3-1.3 7.1-5.7 7.9-3.5.7-9-1.8-13.5-11.2 2.5.1 4.7 1.3 7.5 3.3l-4.7-15.4c-1.2 4.4-2.7 7.2-4.3 8.7-1.1-3-.9-5.3 0-10.2l-9.5 3.4c5 6.9 9.9 16.7 14 33.5 14.8-2.1 30.8-3.2 47.7-3.2z"></path>
118
+ </svg>
119
+ GOV.UK
120
+ </a>
121
+ </div>
65
122
  </div>
66
123
  </div>
67
124
  </footer>
@@ -50,8 +50,8 @@
50
50
 
51
51
  @include media.on-mobile {
52
52
  .tna-container {
53
- padding-right: math.div(grid.$gutter-width-mobile, 2) + 0.75rem;
54
- padding-left: math.div(grid.$gutter-width-mobile, 2) + 0.75rem;
53
+ padding-right: math.div(grid.$gutter-width-mobile, 2);
54
+ padding-left: math.div(grid.$gutter-width-mobile, 2);
55
55
  }
56
56
 
57
57
  .tna-column {
@@ -30,8 +30,8 @@ const Template = ({
30
30
  htmlElement,
31
31
  classes,
32
32
  attributes,
33
- }) => {
34
- return Header({
33
+ }) =>
34
+ Header({
35
35
  params: {
36
36
  columns,
37
37
  maxWidth,
@@ -42,7 +42,6 @@ const Template = ({
42
42
  attributes,
43
43
  },
44
44
  });
45
- };
46
45
 
47
46
  export const Standard = Template.bind({});
48
47
  Standard.args = {