@nice-digital/global-nav 7.1.1099 → 7.1.1101-GN-245-request-for-a
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.
|
@@ -8,72 +8,99 @@ exports.default = void 0;
|
|
|
8
8
|
var _LegalModule = _interopRequireDefault(require("./Legal.module.scss"));
|
|
9
9
|
var _TrackedLink = _interopRequireDefault(require("../../TrackedLink"));
|
|
10
10
|
var _tracker = require("../../tracker");
|
|
11
|
+
var _ndsGrid = require("@nice-digital/nds-grid");
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
var CERTIFICATE = {
|
|
14
|
+
id: "99cdb154-4ee0-41a4-bdef-6d2fa58bf757",
|
|
15
|
+
expiryDate: "2026-06-02"
|
|
16
|
+
};
|
|
12
17
|
var Legal = function Legal() {
|
|
18
|
+
var today = new Date();
|
|
19
|
+
var expiry = new Date(CERTIFICATE.expiryDate);
|
|
20
|
+
var isValid = today < expiry;
|
|
13
21
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
14
22
|
className: _LegalModule.default.wrapper,
|
|
15
|
-
children: /*#__PURE__*/(0, _jsxRuntime.
|
|
23
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
16
24
|
className: _LegalModule.default.container,
|
|
17
|
-
children:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
25
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ndsGrid.Grid, {
|
|
26
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_ndsGrid.GridItem, {
|
|
27
|
+
cols: 12,
|
|
28
|
+
md: {
|
|
29
|
+
cols: isValid ? 9 : 12
|
|
30
|
+
},
|
|
31
|
+
className: !isValid ? _LegalModule.default.invalidCyberlogo : undefined,
|
|
32
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("nav", {
|
|
33
|
+
className: _LegalModule.default.menu,
|
|
34
|
+
"aria-label": "Legal menu",
|
|
35
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("ul", {
|
|
36
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
37
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TrackedLink.default, {
|
|
38
|
+
href: "https://www.nice.org.uk/accessibility",
|
|
39
|
+
eventAction: _tracker.footerClickEventAction,
|
|
40
|
+
eventLabel: "Accessibility",
|
|
41
|
+
children: "Accessibility"
|
|
42
|
+
})
|
|
43
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
44
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TrackedLink.default, {
|
|
45
|
+
href: "https://www.nice.org.uk/freedom-of-information",
|
|
46
|
+
eventAction: _tracker.footerClickEventAction,
|
|
47
|
+
eventLabel: "Freedom of information",
|
|
48
|
+
children: "Freedom of information"
|
|
49
|
+
})
|
|
50
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
51
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TrackedLink.default, {
|
|
52
|
+
href: "https://www.nice.org.uk/glossary",
|
|
53
|
+
eventAction: _tracker.footerClickEventAction,
|
|
54
|
+
eventLabel: "Glossary",
|
|
55
|
+
children: "Glossary"
|
|
56
|
+
})
|
|
57
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
58
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TrackedLink.default, {
|
|
59
|
+
href: "https://www.nice.org.uk/terms-and-conditions",
|
|
60
|
+
eventAction: _tracker.footerClickEventAction,
|
|
61
|
+
eventLabel: "Terms and conditions",
|
|
62
|
+
children: "Terms and conditions"
|
|
63
|
+
})
|
|
64
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
65
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TrackedLink.default, {
|
|
66
|
+
href: "https://www.nice.org.uk/privacy-notice",
|
|
67
|
+
eventAction: _tracker.footerClickEventAction,
|
|
68
|
+
eventLabel: "Privacy notice",
|
|
69
|
+
children: "Privacy notice"
|
|
70
|
+
})
|
|
71
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
72
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TrackedLink.default, {
|
|
73
|
+
href: "https://www.nice.org.uk/cookies",
|
|
74
|
+
eventAction: _tracker.footerClickEventAction,
|
|
75
|
+
eventLabel: "Cookies",
|
|
76
|
+
children: "Cookies"
|
|
77
|
+
})
|
|
78
|
+
})]
|
|
41
79
|
})
|
|
42
|
-
}), /*#__PURE__*/(0, _jsxRuntime.
|
|
43
|
-
|
|
44
|
-
|
|
80
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
81
|
+
className: _LegalModule.default.copyright,
|
|
82
|
+
children: ["\xA9", " ", /*#__PURE__*/(0, _jsxRuntime.jsx)("abbr", {
|
|
83
|
+
title: "National Institute for Health and Care Excellence",
|
|
84
|
+
children: "NICE"
|
|
85
|
+
}), " ", new Date().getFullYear(), ". All rights reserved. Subject to", " ", /*#__PURE__*/(0, _jsxRuntime.jsx)(_TrackedLink.default, {
|
|
86
|
+
href: "https://www.nice.org.uk/terms-and-conditions#notice-of-rights",
|
|
45
87
|
eventAction: _tracker.footerClickEventAction,
|
|
46
|
-
eventLabel: "
|
|
47
|
-
children: "
|
|
48
|
-
})
|
|
49
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
50
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TrackedLink.default, {
|
|
51
|
-
href: "https://www.nice.org.uk/privacy-notice",
|
|
52
|
-
eventAction: _tracker.footerClickEventAction,
|
|
53
|
-
eventLabel: "Privacy notice",
|
|
54
|
-
children: "Privacy notice"
|
|
55
|
-
})
|
|
56
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
57
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TrackedLink.default, {
|
|
58
|
-
href: "https://www.nice.org.uk/cookies",
|
|
59
|
-
eventAction: _tracker.footerClickEventAction,
|
|
60
|
-
eventLabel: "Cookies",
|
|
61
|
-
children: "Cookies"
|
|
62
|
-
})
|
|
88
|
+
eventLabel: "Notice of rights",
|
|
89
|
+
children: "Notice of rights"
|
|
90
|
+
}), "."]
|
|
63
91
|
})]
|
|
64
|
-
})
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
children: "
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
})]
|
|
92
|
+
}), isValid && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ndsGrid.GridItem, {
|
|
93
|
+
cols: 12,
|
|
94
|
+
md: {
|
|
95
|
+
cols: 3
|
|
96
|
+
},
|
|
97
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("iframe", {
|
|
98
|
+
src: "https://registry.blockmarktech.com/certificates/".concat(CERTIFICATE.id, "/widget/?tooltip_position=bottom_right&theme=transparent&hover=t"),
|
|
99
|
+
className: _LegalModule.default.cyberlogo,
|
|
100
|
+
title: "Cyber Essentials Certification"
|
|
101
|
+
})
|
|
102
|
+
})]
|
|
103
|
+
})
|
|
77
104
|
})
|
|
78
105
|
});
|
|
79
106
|
};
|
|
@@ -20,6 +20,17 @@
|
|
|
20
20
|
@include layout.container;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
.cyberlogo {
|
|
24
|
+
background: transparent;
|
|
25
|
+
border: none;
|
|
26
|
+
height: 100px;
|
|
27
|
+
width: 100px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.invalidCyberlogo {
|
|
31
|
+
display: flex;
|
|
32
|
+
}
|
|
33
|
+
|
|
23
34
|
.menu {
|
|
24
35
|
@include visibility.hide-print;
|
|
25
36
|
margin: utils.rem(0 0 spacing.$medium);
|
|
@@ -62,13 +73,9 @@
|
|
|
62
73
|
.wrapper {
|
|
63
74
|
@include layout.clearfix;
|
|
64
75
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
margin:
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.copyright {
|
|
72
|
-
float: right;
|
|
76
|
+
}
|
|
77
|
+
@include media-queries.mq($until: md) {
|
|
78
|
+
.cyberlogo {
|
|
79
|
+
margin-top: utils.rem(spacing.$medium);
|
|
73
80
|
}
|
|
74
81
|
}
|
package/package.json
CHANGED