@comicrelief/component-library 8.47.3 → 8.48.0
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/.eslintrc +3 -0
- package/dist/components/Atoms/SocialIcons/Icon/Icon.js +1 -1
- package/dist/components/Atoms/SocialIcons/SocialIcons.js +39 -14
- package/dist/components/Atoms/SocialIcons/__snapshots__/SocialIcons.test.js.snap +36 -12
- package/dist/components/Molecules/CTAMultiCard/ArrowIcon.js +29 -0
- package/dist/components/Molecules/CTAMultiCard/CTAMultiCard.js +54 -0
- package/dist/components/Molecules/CTAMultiCard/CTAMultiCard.md +104 -0
- package/dist/components/Molecules/CTAMultiCard/CTAMultiCard.style.js +156 -0
- package/dist/components/Molecules/CTAMultiCard/CTAMultiCard.test.js +70 -0
- package/dist/components/Molecules/CTAMultiCard/SingleCard.js +56 -0
- package/dist/components/Molecules/CTAMultiCard/__snapshots__/CTAMultiCard.test.js.snap +2292 -0
- package/dist/components/Molecules/CTAMultiCard/example_data.json +107 -0
- package/dist/components/Molecules/CardDs/CardDs.md +1 -1
- package/dist/components/Molecules/EmailSignUp/EmailSignUp.js +13 -1
- package/dist/components/Molecules/EmailSignUp/EmailSignUp.style.js +6 -6
- package/dist/components/Molecules/HeroBanner/HeroBanner.js +1 -1
- package/dist/components/Organisms/Footer/FundraisingRegulatorLogo/FundraisingRegulatorLogo.js +2 -2
- package/dist/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +12 -4
- package/dist/components/Organisms/FooterNew/FooterNew.js +4 -2
- package/dist/components/Organisms/FooterNew/FooterNew.style.js +68 -68
- package/dist/components/Organisms/FooterNew/__snapshots__/FooterNew.test.js.snap +281 -177
- package/dist/index.js +7 -0
- package/dist/styleguide/assets/challenge-1.jpg +0 -0
- package/dist/theme/shared/animations.js +14 -2
- package/dist/{components/Molecules/HeroBanner → theme/shared}/assets/alt_cta_underline.svg +1 -0
- package/package.json +1 -1
- package/src/components/Atoms/SocialIcons/Icon/Icon.js +1 -0
- package/src/components/Atoms/SocialIcons/SocialIcons.js +7 -3
- package/src/components/Atoms/SocialIcons/__snapshots__/SocialIcons.test.js.snap +36 -12
- package/src/components/Molecules/CTAMultiCard/ArrowIcon.js +22 -0
- package/src/components/Molecules/CTAMultiCard/CTAMultiCard.js +94 -0
- package/src/components/Molecules/CTAMultiCard/CTAMultiCard.md +104 -0
- package/src/components/Molecules/CTAMultiCard/CTAMultiCard.style.js +251 -0
- package/src/components/Molecules/CTAMultiCard/CTAMultiCard.test.js +86 -0
- package/src/components/Molecules/CTAMultiCard/SingleCard.js +100 -0
- package/src/components/Molecules/CTAMultiCard/__snapshots__/CTAMultiCard.test.js.snap +2292 -0
- package/src/components/Molecules/CTAMultiCard/example_data.json +107 -0
- package/src/components/Molecules/CardDs/CardDs.md +1 -1
- package/src/components/Molecules/EmailSignUp/EmailSignUp.js +7 -1
- package/src/components/Molecules/EmailSignUp/EmailSignUp.style.js +56 -6
- package/src/components/Molecules/HeroBanner/HeroBanner.js +1 -1
- package/src/components/Organisms/Footer/FundraisingRegulatorLogo/FundraisingRegulatorLogo.js +2 -2
- package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +12 -4
- package/src/components/Organisms/FooterNew/FooterNew.js +2 -2
- package/src/components/Organisms/FooterNew/FooterNew.style.js +27 -12
- package/src/components/Organisms/FooterNew/__snapshots__/FooterNew.test.js.snap +281 -177
- package/src/index.js +1 -0
- package/src/styleguide/assets/challenge-1.jpg +0 -0
- package/src/theme/shared/animations.js +27 -1
- package/src/{components/Molecules/HeroBanner → theme/shared}/assets/alt_cta_underline.svg +1 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"__typename": "ContentfulParagraphCardsDs",
|
|
3
|
+
"title": "test cards 6",
|
|
4
|
+
"backgroundColour": "Transparent",
|
|
5
|
+
"layout": "3 columns",
|
|
6
|
+
"columnsOnMd": false,
|
|
7
|
+
"paddingOptions": "Both Off",
|
|
8
|
+
"carouselOfCards": false,
|
|
9
|
+
"cards": [
|
|
10
|
+
{
|
|
11
|
+
"id": "fd8ef3fc-7d0d-531b-b2d2-9ac5f40d3d14",
|
|
12
|
+
"title": "Full Card Oooh Chilly",
|
|
13
|
+
"backgroundColour": "White",
|
|
14
|
+
"link": "/test",
|
|
15
|
+
"linkLabel": "test go",
|
|
16
|
+
"image": {
|
|
17
|
+
"description": "",
|
|
18
|
+
"gatsbyImageData": {
|
|
19
|
+
"images": {
|
|
20
|
+
"sources": [
|
|
21
|
+
{
|
|
22
|
+
"srcSet": "https://images.ctfassets.net/zsfivwzfgl3t/4VsIykPLHDNkNCT9djGrX/c8f1e4cb5c6bda5a7b77f18501e9304d/challenge-1.jpg?w=678&h=501&q=80&fm=webp 678w",
|
|
23
|
+
"sizes": "100vw",
|
|
24
|
+
"type": "image/webp"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"fallback": {
|
|
28
|
+
"src": "https://images.ctfassets.net/zsfivwzfgl3t/4VsIykPLHDNkNCT9djGrX/c8f1e4cb5c6bda5a7b77f18501e9304d/challenge-1.jpg?w=678&h=501&fl=progressive&q=80&fm=jpg",
|
|
29
|
+
"srcSet": "https://images.ctfassets.net/zsfivwzfgl3t/4VsIykPLHDNkNCT9djGrX/c8f1e4cb5c6bda5a7b77f18501e9304d/challenge-1.jpg?w=678&h=501&fl=progressive&q=80&fm=jpg 678w",
|
|
30
|
+
"sizes": "100vw"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"layout": "fullWidth",
|
|
34
|
+
"width": 1,
|
|
35
|
+
"height": 0.7389380530973452,
|
|
36
|
+
"placeholder": {
|
|
37
|
+
"fallback": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAAPABQDASIAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAAAAcIBAb/xAAjEAACAgIBBAIDAAAAAAAAAAABAgMEABEGBRIhMQdBE1Fh/8QAFQEBAQAAAAAAAAAAAAAAAAAAAgT/xAAaEQADAQADAAAAAAAAAAAAAAAAAQIDERIT/9oADAMBAAIRAxEAPwBzRcrjVY+0tonyT41nG8y+SLFTkgpQTVFpoqiRZGHc2/egf4RrMM12OHpNi3LsrAjO2vsKCcQtvkbTW570sMUt6xphJKnd+Ma9A78ZRWcS+SWNLpNMqAdQidVaSxErEA6ZgCNj9YZNPTOTpJW7+ovdlnLHyjgAD6GGPug+bP/Z"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "fd8ef3fc-7d0d-531b-b2d2-9ac5f40d3d14-2",
|
|
44
|
+
"title": "Full Card Oooh Chilly",
|
|
45
|
+
"backgroundColour": "White",
|
|
46
|
+
"link": "/test",
|
|
47
|
+
"linkLabel": "test go",
|
|
48
|
+
"image": {
|
|
49
|
+
"description": "",
|
|
50
|
+
"gatsbyImageData": {
|
|
51
|
+
"images": {
|
|
52
|
+
"sources": [
|
|
53
|
+
{
|
|
54
|
+
"srcSet": "https://images.ctfassets.net/zsfivwzfgl3t/4VsIykPLHDNkNCT9djGrX/c8f1e4cb5c6bda5a7b77f18501e9304d/challenge-1.jpg?w=678&h=501&q=80&fm=webp 678w",
|
|
55
|
+
"sizes": "100vw",
|
|
56
|
+
"type": "image/webp"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"fallback": {
|
|
60
|
+
"src": "https://images.ctfassets.net/zsfivwzfgl3t/4VsIykPLHDNkNCT9djGrX/c8f1e4cb5c6bda5a7b77f18501e9304d/challenge-1.jpg?w=678&h=501&fl=progressive&q=80&fm=jpg",
|
|
61
|
+
"srcSet": "https://images.ctfassets.net/zsfivwzfgl3t/4VsIykPLHDNkNCT9djGrX/c8f1e4cb5c6bda5a7b77f18501e9304d/challenge-1.jpg?w=678&h=501&fl=progressive&q=80&fm=jpg 678w",
|
|
62
|
+
"sizes": "100vw"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"layout": "fullWidth",
|
|
66
|
+
"width": 1,
|
|
67
|
+
"height": 0.7389380530973452,
|
|
68
|
+
"placeholder": {
|
|
69
|
+
"fallback": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAAPABQDASIAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAAAAcIBAb/xAAjEAACAgIBBAIDAAAAAAAAAAABAgMEABEGBRIhMQdBE1Fh/8QAFQEBAQAAAAAAAAAAAAAAAAAAAgT/xAAaEQADAQADAAAAAAAAAAAAAAAAAQIDERIT/9oADAMBAAIRAxEAPwBzRcrjVY+0tonyT41nG8y+SLFTkgpQTVFpoqiRZGHc2/egf4RrMM12OHpNi3LsrAjO2vsKCcQtvkbTW570sMUt6xphJKnd+Ma9A78ZRWcS+SWNLpNMqAdQidVaSxErEA6ZgCNj9YZNPTOTpJW7+ovdlnLHyjgAD6GGPug+bP/Z"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "fd8ef3fc-7d0d-531b-b2d2-9ac5f40d3d14-3",
|
|
76
|
+
"title": "Full Card Oooh Chilly",
|
|
77
|
+
"backgroundColour": "White",
|
|
78
|
+
"link": "/test",
|
|
79
|
+
"linkLabel": "test go",
|
|
80
|
+
"image": {
|
|
81
|
+
"description": "",
|
|
82
|
+
"gatsbyImageData": {
|
|
83
|
+
"images": {
|
|
84
|
+
"sources": [
|
|
85
|
+
{
|
|
86
|
+
"srcSet": "https://images.ctfassets.net/zsfivwzfgl3t/4VsIykPLHDNkNCT9djGrX/c8f1e4cb5c6bda5a7b77f18501e9304d/challenge-1.jpg?w=678&h=501&q=80&fm=webp 678w",
|
|
87
|
+
"sizes": "100vw",
|
|
88
|
+
"type": "image/webp"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"fallback": {
|
|
92
|
+
"src": "https://images.ctfassets.net/zsfivwzfgl3t/4VsIykPLHDNkNCT9djGrX/c8f1e4cb5c6bda5a7b77f18501e9304d/challenge-1.jpg?w=678&h=501&fl=progressive&q=80&fm=jpg",
|
|
93
|
+
"srcSet": "https://images.ctfassets.net/zsfivwzfgl3t/4VsIykPLHDNkNCT9djGrX/c8f1e4cb5c6bda5a7b77f18501e9304d/challenge-1.jpg?w=678&h=501&fl=progressive&q=80&fm=jpg 678w",
|
|
94
|
+
"sizes": "100vw"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"layout": "fullWidth",
|
|
98
|
+
"width": 1,
|
|
99
|
+
"height": 0.7389380530973452,
|
|
100
|
+
"placeholder": {
|
|
101
|
+
"fallback": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAAPABQDASIAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAAAAcIBAb/xAAjEAACAgIBBAIDAAAAAAAAAAABAgMEABEGBRIhMQdBE1Fh/8QAFQEBAQAAAAAAAAAAAAAAAAAAAgT/xAAaEQADAQADAAAAAAAAAAAAAAAAAQIDERIT/9oADAMBAAIRAxEAPwBzRcrjVY+0tonyT41nG8y+SLFTkgpQTVFpoqiRZGHc2/egf4RrMM12OHpNi3LsrAjO2vsKCcQtvkbTW570sMUt6xphJKnd+Ma9A78ZRWcS+SWNLpNMqAdQidVaSxErEA6ZgCNj9YZNPTOTpJW7+ovdlnLHyjgAD6GGPug+bP/Z"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# CardDs
|
|
2
|
-
## Image and CTA are clickable and links user through to full content
|
|
2
|
+
## Image and CTA are clickable and links user through to full content. Note that this component can now be considered legacy, as it is superseded by CTAMultiCard.
|
|
3
3
|
|
|
4
4
|
### CardDs: Image, Text & Link
|
|
5
5
|
```js
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _Arrow = _interopRequireDefault(require("../../Atoms/Icons/Arrow"));
|
|
9
10
|
var _EmailSignUp = require("./EmailSignUp.style");
|
|
10
11
|
const EmailSignUp = _ref => {
|
|
11
12
|
let {
|
|
@@ -33,6 +34,17 @@ const EmailSignUp = _ref => {
|
|
|
33
34
|
}, register('email'), rest))), /*#__PURE__*/_react.default.createElement(_EmailSignUp.ButtonWrapper, null, /*#__PURE__*/_react.default.createElement(_EmailSignUp.StyledEmailSignUpButton, {
|
|
34
35
|
type: "submit",
|
|
35
36
|
color: "white"
|
|
36
|
-
}, "
|
|
37
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
38
|
+
className: "emailSignUpButtonContent"
|
|
39
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
40
|
+
className: "emailSignUpButtonLabel"
|
|
41
|
+
}, "Sign up"), /*#__PURE__*/_react.default.createElement("span", {
|
|
42
|
+
className: "emailSignUpButtonArrow",
|
|
43
|
+
"aria-hidden": "true"
|
|
44
|
+
}, /*#__PURE__*/_react.default.createElement(_Arrow.default, {
|
|
45
|
+
direction: "right",
|
|
46
|
+
colour: "white",
|
|
47
|
+
size: 18
|
|
48
|
+
})))))));
|
|
37
49
|
};
|
|
38
50
|
var _default = exports.default = EmailSignUp;
|
|
@@ -72,11 +72,11 @@ const StyledEmailInput = exports.StyledEmailInput = (0, _styledComponents.defaul
|
|
|
72
72
|
theme
|
|
73
73
|
} = _ref7;
|
|
74
74
|
return theme.breakpoints2026('M');
|
|
75
|
-
}, (0, _animations.
|
|
75
|
+
}, (0, _animations.formFieldInputAnimation)(4), _ref8 => {
|
|
76
76
|
let {
|
|
77
77
|
theme
|
|
78
78
|
} = _ref8;
|
|
79
|
-
return (0, _styledComponents.css)(["", "
|
|
79
|
+
return (0, _styledComponents.css)(["font-size:1rem;line-height:1.25rem;font-family:", ";background-color:", ";border-color:transparent;padding-left:18px;transition:background-color 0.2s ease,text-indent 0.18s ease;border:1px solid ", ";color:", ";&::placeholder{color:", ";}&:hover,&:focus{background-color:", ";}"], theme.fontFamilies('Montserrat'), theme.color('grey_5'), theme.color('white'), theme.color('white'), theme.color('grey_2'), theme.color('grey_4_hover'));
|
|
80
80
|
});
|
|
81
81
|
const ButtonWrapper = exports.ButtonWrapper = _styledComponents.default.div.withConfig({
|
|
82
82
|
displayName: "EmailSignUpstyle__ButtonWrapper",
|
|
@@ -90,21 +90,21 @@ const ButtonWrapper = exports.ButtonWrapper = _styledComponents.default.div.with
|
|
|
90
90
|
const StyledEmailSignUpButton = exports.StyledEmailSignUpButton = (0, _styledComponents.default)(_Button.default).withConfig({
|
|
91
91
|
displayName: "EmailSignUpstyle__StyledEmailSignUpButton",
|
|
92
92
|
componentId: "sc-d38yg6-7"
|
|
93
|
-
})(["margin:0;font-family:", ";border-radius:0.5rem;@media ", "{
|
|
93
|
+
})(["margin:0;font-family:", ";padding:", ";border-radius:0.5rem;overflow:hidden;@media ", "{margin:0;}.emailSignUpButtonContent{display:inline-grid;grid-auto-flow:column;grid-template-columns:auto 18px;column-gap:0.5rem;align-items:center;justify-content:center;line-height:1;}.emailSignUpButtonLabel{display:inline-block;transform:translateX(13px);transition:transform 0.22s ease;will-change:transform;}.emailSignUpButtonArrow{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;opacity:0;transform:translateX(-13px);transition:opacity 0.22s ease,transform 0.22s ease;will-change:transform,opacity;svg{fill:currentColor !important;}}&:hover,&:focus{background-color:", ";color:", ";.emailSignUpButtonLabel{transform:translateX(0);}.emailSignUpButtonArrow{opacity:1;transform:translateX(0);}}"], _ref10 => {
|
|
94
94
|
let {
|
|
95
95
|
theme
|
|
96
96
|
} = _ref10;
|
|
97
97
|
return theme.fontFamilies('Montserrat');
|
|
98
|
-
}, _ref11 => {
|
|
98
|
+
}, (0, _spacing.default)('md'), _ref11 => {
|
|
99
99
|
let {
|
|
100
100
|
theme
|
|
101
101
|
} = _ref11;
|
|
102
102
|
return theme.breakpoints2026('M');
|
|
103
|
-
},
|
|
103
|
+
}, _ref12 => {
|
|
104
104
|
let {
|
|
105
105
|
theme
|
|
106
106
|
} = _ref12;
|
|
107
|
-
return theme.color('
|
|
107
|
+
return theme.color('grey_2');
|
|
108
108
|
}, _ref13 => {
|
|
109
109
|
let {
|
|
110
110
|
theme
|
|
@@ -11,7 +11,7 @@ var _Text = _interopRequireDefault(require("../../Atoms/Text/Text"));
|
|
|
11
11
|
var _Link = _interopRequireDefault(require("../../Atoms/Link/Link"));
|
|
12
12
|
var _variants = _interopRequireDefault(require("./_variants"));
|
|
13
13
|
var _index = require("../../Atoms/Icons/index");
|
|
14
|
-
var _alt_cta_underline = _interopRequireDefault(require("
|
|
14
|
+
var _alt_cta_underline = _interopRequireDefault(require("../../../theme/shared/assets/alt_cta_underline.svg"));
|
|
15
15
|
require("./local-preview-layout-fixes.css");
|
|
16
16
|
var _HeroBanner = require("./HeroBanner.style");
|
|
17
17
|
const HeroBanner = _ref => {
|
package/dist/components/Organisms/Footer/FundraisingRegulatorLogo/FundraisingRegulatorLogo.js
CHANGED
|
@@ -12,7 +12,7 @@ var _animations = require("../../../../theme/shared/animations");
|
|
|
12
12
|
const FundraisingRegulatorWrapper = _styledComponents.default.div.withConfig({
|
|
13
13
|
displayName: "FundraisingRegulatorLogo__FundraisingRegulatorWrapper",
|
|
14
14
|
componentId: "sc-1ngdz4u-0"
|
|
15
|
-
})(["width:75%;margin:", ";max-width:
|
|
15
|
+
})(["width:75%;margin:", ";max-width:166px;img{display:block;}", ""], _ref => {
|
|
16
16
|
let {
|
|
17
17
|
$noMargin
|
|
18
18
|
} = _ref;
|
|
@@ -21,7 +21,7 @@ const FundraisingRegulatorWrapper = _styledComponents.default.div.withConfig({
|
|
|
21
21
|
let {
|
|
22
22
|
animateOnHover
|
|
23
23
|
} = _ref2;
|
|
24
|
-
return animateOnHover && (0, _animations.springScaleAnimation)(true);
|
|
24
|
+
return animateOnHover && (0, _animations.springScaleAnimation)(true, 1.03, 1);
|
|
25
25
|
});
|
|
26
26
|
const FundraisingRegulatorLogo = _ref3 => {
|
|
27
27
|
let {
|
|
@@ -164,11 +164,15 @@ exports[`renders correctly 1`] = `
|
|
|
164
164
|
display: -webkit-flex;
|
|
165
165
|
display: -ms-flexbox;
|
|
166
166
|
display: flex;
|
|
167
|
+
-webkit-flex-wrap: nowrap;
|
|
168
|
+
-ms-flex-wrap: nowrap;
|
|
169
|
+
flex-wrap: nowrap;
|
|
170
|
+
gap: 0;
|
|
167
171
|
list-style-type: none;
|
|
168
|
-
-webkit-box-pack:
|
|
169
|
-
-webkit-justify-content:
|
|
170
|
-
-ms-flex-pack:
|
|
171
|
-
justify-content:
|
|
172
|
+
-webkit-box-pack: start;
|
|
173
|
+
-webkit-justify-content: flex-start;
|
|
174
|
+
-ms-flex-pack: start;
|
|
175
|
+
justify-content: flex-start;
|
|
172
176
|
margin: 0 auto 0 0;
|
|
173
177
|
padding: 0;
|
|
174
178
|
-webkit-align-items: center;
|
|
@@ -179,6 +183,10 @@ exports[`renders correctly 1`] = `
|
|
|
179
183
|
|
|
180
184
|
.c4 {
|
|
181
185
|
width: 48px;
|
|
186
|
+
height: auto;
|
|
187
|
+
-webkit-flex: 0 0 48px;
|
|
188
|
+
-ms-flex: 0 0 48px;
|
|
189
|
+
flex: 0 0 48px;
|
|
182
190
|
margin-right: 1.5rem;
|
|
183
191
|
}
|
|
184
192
|
|
|
@@ -63,7 +63,7 @@ const FooterNew = _ref => {
|
|
|
63
63
|
title: `Go to ${campaign} homepage`,
|
|
64
64
|
animateRotate: animateRotate
|
|
65
65
|
}, /*#__PURE__*/_react.default.createElement(_Logo.default, {
|
|
66
|
-
sizeSm: "
|
|
66
|
+
sizeSm: "59px",
|
|
67
67
|
sizeMd: "72px",
|
|
68
68
|
rotate: false,
|
|
69
69
|
campaign: campaign
|
|
@@ -131,6 +131,8 @@ const FooterNew = _ref => {
|
|
|
131
131
|
}, rest)), /*#__PURE__*/_react.default.createElement(_FooterNew.FooterCopyright, null, displayCopyrightText && /*#__PURE__*/_react.default.createElement(_FooterNew.FooterCopyrightText, null, displayCopyrightText), legalText && /*#__PURE__*/_react.default.createElement(_FooterNew.FooterCopyrightText, null, legalText)), /*#__PURE__*/_react.default.createElement(_FooterNew.LogosContainer, {
|
|
132
132
|
$mobileOnly: true,
|
|
133
133
|
$showFundraiserAtBottom: true
|
|
134
|
-
}, showFundraisingRegulatorLogo && /*#__PURE__*/_react.default.createElement(_FundraisingRegulatorLogo.default,
|
|
134
|
+
}, showFundraisingRegulatorLogo && /*#__PURE__*/_react.default.createElement(_FundraisingRegulatorLogo.default, {
|
|
135
|
+
noMargin: true
|
|
136
|
+
})))));
|
|
135
137
|
};
|
|
136
138
|
var _default = exports.default = FooterNew;
|
|
@@ -15,7 +15,7 @@ const FooterWrapper = exports.FooterWrapper = _styledComponents.default.footer.a
|
|
|
15
15
|
})).withConfig({
|
|
16
16
|
displayName: "FooterNewstyle__FooterWrapper",
|
|
17
17
|
componentId: "sc-17mkhu6-0"
|
|
18
|
-
})(["text-align:left;background:", ";padding-top:
|
|
18
|
+
})(["text-align:left;background:", ";padding-top:4.5rem;@media ", "{padding-bottom:", ";}@media ", "{padding-top:5.5rem;padding-bottom:5rem;}"], _ref => {
|
|
19
19
|
let {
|
|
20
20
|
theme
|
|
21
21
|
} = _ref;
|
|
@@ -25,94 +25,99 @@ const FooterWrapper = exports.FooterWrapper = _styledComponents.default.footer.a
|
|
|
25
25
|
theme
|
|
26
26
|
} = _ref2;
|
|
27
27
|
return theme.breakpoints2026('M');
|
|
28
|
-
}, (0, _spacing.default)('lg')
|
|
28
|
+
}, (0, _spacing.default)('lg'), _ref3 => {
|
|
29
|
+
let {
|
|
30
|
+
theme
|
|
31
|
+
} = _ref3;
|
|
32
|
+
return theme.breakpoints2026('L');
|
|
33
|
+
});
|
|
29
34
|
const InnerWrapper = exports.InnerWrapper = _styledComponents.default.div.withConfig({
|
|
30
35
|
displayName: "FooterNewstyle__InnerWrapper",
|
|
31
36
|
componentId: "sc-17mkhu6-1"
|
|
32
|
-
})(["position:relative;display:block;width:100%;height:100%;max-width:1200px;margin:0 auto;padding:0 ", ";@media ", "{padding:0
|
|
37
|
+
})(["position:relative;display:block;width:100%;height:100%;max-width:1200px;margin:0 auto;padding:0 ", ";@media ", "{padding:0 9rem;}"], (0, _spacing.default)('l'), _ref4 => {
|
|
33
38
|
let {
|
|
34
39
|
theme
|
|
35
|
-
} =
|
|
40
|
+
} = _ref4;
|
|
36
41
|
return theme.breakpoints2026('L');
|
|
37
|
-
}
|
|
42
|
+
});
|
|
38
43
|
const FooterLegalLine = exports.FooterLegalLine = (0, _styledComponents.default)(_Text.default).attrs({
|
|
39
44
|
tag: 'p'
|
|
40
45
|
}).withConfig({
|
|
41
46
|
displayName: "FooterNewstyle__FooterLegalLine",
|
|
42
47
|
componentId: "sc-17mkhu6-2"
|
|
43
|
-
})(["text-align:left;margin-top:1rem;margin-bottom:", ";line-height:1.5rem;color:", ";"], (0, _spacing.default)('md'),
|
|
48
|
+
})(["text-align:left;margin-top:1rem;margin-bottom:", ";line-height:1.5rem;color:", ";opacity:0.8;"], (0, _spacing.default)('md'), _ref5 => {
|
|
44
49
|
let {
|
|
45
50
|
theme
|
|
46
|
-
} =
|
|
47
|
-
return theme.color('
|
|
51
|
+
} = _ref5;
|
|
52
|
+
return theme.color('white');
|
|
48
53
|
});
|
|
49
54
|
const TopSection = exports.TopSection = _styledComponents.default.div.withConfig({
|
|
50
55
|
displayName: "FooterNewstyle__TopSection",
|
|
51
56
|
componentId: "sc-17mkhu6-3"
|
|
52
|
-
})(["display:flex;flex-direction:column;margin-bottom:", ";gap:", ";@media ", "{flex-direction:row;justify-content:space-between;align-items:", ";}"], (0, _spacing.default)('md'), (0, _spacing.default)('md'),
|
|
57
|
+
})(["display:flex;flex-direction:column;margin-bottom:", ";gap:", ";@media ", "{flex-direction:row;justify-content:space-between;align-items:", ";}"], (0, _spacing.default)('md'), (0, _spacing.default)('md'), _ref6 => {
|
|
53
58
|
let {
|
|
54
59
|
theme
|
|
55
|
-
} =
|
|
60
|
+
} = _ref6;
|
|
56
61
|
return theme.breakpoints2026('M');
|
|
57
|
-
},
|
|
62
|
+
}, _ref7 => {
|
|
58
63
|
let {
|
|
59
64
|
$hasEmailSignup
|
|
60
|
-
} =
|
|
65
|
+
} = _ref7;
|
|
61
66
|
return $hasEmailSignup ? 'flex-start' : 'center';
|
|
62
67
|
});
|
|
63
68
|
const TopSectionLeft = exports.TopSectionLeft = _styledComponents.default.div.withConfig({
|
|
64
69
|
displayName: "FooterNewstyle__TopSectionLeft",
|
|
65
70
|
componentId: "sc-17mkhu6-4"
|
|
66
|
-
})(["display:flex;flex-direction:column;gap:", ";@media ", "{flex-direction:column;flex:0 0 auto;}"], (0, _spacing.default)('md'),
|
|
71
|
+
})(["display:flex;flex-direction:column;gap:", ";@media ", "{flex-direction:column;flex:0 0 auto;}"], (0, _spacing.default)('md'), _ref8 => {
|
|
67
72
|
let {
|
|
68
73
|
theme
|
|
69
|
-
} =
|
|
74
|
+
} = _ref8;
|
|
70
75
|
return theme.breakpoints2026('M');
|
|
71
76
|
});
|
|
72
77
|
const NewsletterSignUpWrapper = exports.NewsletterSignUpWrapper = _styledComponents.default.div.withConfig({
|
|
73
78
|
displayName: "FooterNewstyle__NewsletterSignUpWrapper",
|
|
74
79
|
componentId: "sc-17mkhu6-5"
|
|
75
|
-
})(["max-width:100%;@media ", "{max-width:100%;}"],
|
|
80
|
+
})(["max-width:100%;@media ", "{max-width:100%;}"], _ref9 => {
|
|
76
81
|
let {
|
|
77
82
|
theme
|
|
78
|
-
} =
|
|
83
|
+
} = _ref9;
|
|
79
84
|
return theme.breakpoints2026('M');
|
|
80
85
|
});
|
|
81
86
|
const SocialIconWrapper = exports.SocialIconWrapper = _styledComponents.default.div.withConfig({
|
|
82
87
|
displayName: "FooterNewstyle__SocialIconWrapper",
|
|
83
88
|
componentId: "sc-17mkhu6-6"
|
|
84
|
-
})(["margin-bottom:", ";box-sizing:content-box;gap:", ";display:", ";@media ", "{box-sizing:border-box;display:", ";margin-bottom:", ";align-items:center;}"], (0, _spacing.default)('md'), (0, _spacing.default)('md'),
|
|
89
|
+
})(["margin-bottom:", ";box-sizing:content-box;gap:", ";display:", ";@media ", "{box-sizing:border-box;display:", ";margin-bottom:", ";align-items:center;}"], (0, _spacing.default)('md'), (0, _spacing.default)('md'), _ref10 => {
|
|
85
90
|
let {
|
|
86
91
|
$desktopOnly
|
|
87
|
-
} =
|
|
92
|
+
} = _ref10;
|
|
88
93
|
if ($desktopOnly) return 'none';
|
|
89
94
|
return 'block';
|
|
90
|
-
},
|
|
95
|
+
}, _ref11 => {
|
|
91
96
|
let {
|
|
92
97
|
theme
|
|
93
|
-
} =
|
|
98
|
+
} = _ref11;
|
|
94
99
|
return theme.breakpoints2026('M');
|
|
95
|
-
},
|
|
100
|
+
}, _ref12 => {
|
|
96
101
|
let {
|
|
97
102
|
$mobileOnly,
|
|
98
103
|
$inTopSection
|
|
99
|
-
} =
|
|
104
|
+
} = _ref12;
|
|
100
105
|
if ($mobileOnly) return 'none';
|
|
101
106
|
if ($inTopSection) return 'flex';
|
|
102
107
|
return 'block';
|
|
103
|
-
},
|
|
108
|
+
}, _ref13 => {
|
|
104
109
|
let {
|
|
105
110
|
$inTopSection
|
|
106
|
-
} =
|
|
111
|
+
} = _ref13;
|
|
107
112
|
return $inTopSection ? '0' : (0, _spacing.default)('md');
|
|
108
113
|
});
|
|
109
114
|
const PrimaryNav = exports.PrimaryNav = _styledComponents.default.nav.withConfig({
|
|
110
115
|
displayName: "FooterNewstyle__PrimaryNav",
|
|
111
116
|
componentId: "sc-17mkhu6-7"
|
|
112
|
-
})(["display:flex;flex-direction:column;list-style:none;padding:", " 0;margin:0 0 ", " 0;gap:", ";@media ", "{flex-direction:row;flex-wrap:wrap;gap:", ";}"], (0, _spacing.default)('md'), (0, _spacing.default)('md'), (0, _spacing.default)('l'),
|
|
117
|
+
})(["display:flex;flex-direction:column;list-style:none;padding:", " 0;margin:0 0 ", " 0;gap:", ";@media ", "{flex-direction:row;flex-wrap:wrap;gap:", ";}"], (0, _spacing.default)('md'), (0, _spacing.default)('md'), (0, _spacing.default)('l'), _ref14 => {
|
|
113
118
|
let {
|
|
114
119
|
theme
|
|
115
|
-
} =
|
|
120
|
+
} = _ref14;
|
|
116
121
|
return theme.breakpoints2026('M');
|
|
117
122
|
}, (0, _spacing.default)('m'));
|
|
118
123
|
const PrimaryNavItem = exports.PrimaryNavItem = _styledComponents.default.li.withConfig({
|
|
@@ -122,24 +127,29 @@ const PrimaryNavItem = exports.PrimaryNavItem = _styledComponents.default.li.wit
|
|
|
122
127
|
const PrimaryNavLink = exports.PrimaryNavLink = (0, _styledComponents.default)(_Link.default).withConfig({
|
|
123
128
|
displayName: "FooterNewstyle__PrimaryNavLink",
|
|
124
129
|
componentId: "sc-17mkhu6-9"
|
|
125
|
-
})(["color:", ";text-decoration:none;font-weight:bold;&:hover,&:focus{text-decoration:underline;text-decoration-color:", ";}"],
|
|
130
|
+
})(["color:", ";text-decoration:none;font-weight:bold;font-size:", ";&:hover,&:focus{text-decoration:underline;text-decoration-color:", ";}"], _ref15 => {
|
|
126
131
|
let {
|
|
127
132
|
theme
|
|
128
|
-
} =
|
|
133
|
+
} = _ref15;
|
|
129
134
|
return theme.color('white');
|
|
130
|
-
},
|
|
135
|
+
}, _ref16 => {
|
|
131
136
|
let {
|
|
132
137
|
theme
|
|
133
|
-
} =
|
|
138
|
+
} = _ref16;
|
|
139
|
+
return theme.fontSize('s');
|
|
140
|
+
}, _ref17 => {
|
|
141
|
+
let {
|
|
142
|
+
theme
|
|
143
|
+
} = _ref17;
|
|
134
144
|
return theme.color('white');
|
|
135
145
|
});
|
|
136
146
|
const PrimaryNavText = exports.PrimaryNavText = (0, _styledComponents.default)(_Text.default).withConfig({
|
|
137
147
|
displayName: "FooterNewstyle__PrimaryNavText",
|
|
138
148
|
componentId: "sc-17mkhu6-10"
|
|
139
|
-
})(["color:", ";font-weight:bold;"],
|
|
149
|
+
})(["color:", ";font-weight:bold;"], _ref18 => {
|
|
140
150
|
let {
|
|
141
151
|
theme
|
|
142
|
-
} =
|
|
152
|
+
} = _ref18;
|
|
143
153
|
return theme.color('white');
|
|
144
154
|
});
|
|
145
155
|
const SecondaryNav = exports.SecondaryNav = _styledComponents.default.nav.withConfig({
|
|
@@ -149,68 +159,58 @@ const SecondaryNav = exports.SecondaryNav = _styledComponents.default.nav.withCo
|
|
|
149
159
|
const SecondaryNavItem = exports.SecondaryNavItem = _styledComponents.default.li.withConfig({
|
|
150
160
|
displayName: "FooterNewstyle__SecondaryNavItem",
|
|
151
161
|
componentId: "sc-17mkhu6-12"
|
|
152
|
-
})(["margin:0;display:flex;align-items:center;@media ", "{display:inline;}&:not(:last-child)::after{content:'|';margin-left:", ";color:", ";}"],
|
|
162
|
+
})(["margin:0;display:flex;align-items:center;@media ", "{display:inline;}&:not(:last-child)::after{content:'|';margin-left:", ";color:", ";opacity:0.8;}"], _ref19 => {
|
|
153
163
|
let {
|
|
154
164
|
theme
|
|
155
|
-
} =
|
|
165
|
+
} = _ref19;
|
|
156
166
|
return theme.breakpoints2026('M');
|
|
157
|
-
}, (0, _spacing.default)('sm'),
|
|
167
|
+
}, (0, _spacing.default)('sm'), _ref20 => {
|
|
158
168
|
let {
|
|
159
169
|
theme
|
|
160
|
-
} =
|
|
161
|
-
return theme.color('
|
|
170
|
+
} = _ref20;
|
|
171
|
+
return theme.color('white');
|
|
162
172
|
});
|
|
163
173
|
const SecondaryNavLink = exports.SecondaryNavLink = (0, _styledComponents.default)(_Link.default).withConfig({
|
|
164
174
|
displayName: "FooterNewstyle__SecondaryNavLink",
|
|
165
175
|
componentId: "sc-17mkhu6-13"
|
|
166
|
-
})(["text-decoration:none;> span{color:", ";text-decoration:underline;text-decoration-color:", ";font-weight:normal;font-size:
|
|
167
|
-
let {
|
|
168
|
-
theme
|
|
169
|
-
} = _ref19;
|
|
170
|
-
return theme.color('grey');
|
|
171
|
-
}, _ref20 => {
|
|
172
|
-
let {
|
|
173
|
-
theme
|
|
174
|
-
} = _ref20;
|
|
175
|
-
return theme.color('grey');
|
|
176
|
-
}, _ref21 => {
|
|
176
|
+
})(["text-decoration:none;> span{color:", ";opacity:0.8;text-decoration:underline;text-decoration-color:", ";font-weight:normal;font-size:0.875rem;}@media ", "{> span{text-decoration:none;}}&:hover,&:focus{text-decoration:underline;text-decoration-color:", ";}"], _ref21 => {
|
|
177
177
|
let {
|
|
178
178
|
theme
|
|
179
179
|
} = _ref21;
|
|
180
|
-
return theme.
|
|
180
|
+
return theme.color('white');
|
|
181
181
|
}, _ref22 => {
|
|
182
182
|
let {
|
|
183
183
|
theme
|
|
184
184
|
} = _ref22;
|
|
185
|
-
return theme.
|
|
185
|
+
return theme.color('white');
|
|
186
186
|
}, _ref23 => {
|
|
187
187
|
let {
|
|
188
188
|
theme
|
|
189
189
|
} = _ref23;
|
|
190
|
-
return theme.
|
|
190
|
+
return theme.breakpoints2026('M');
|
|
191
|
+
}, _ref24 => {
|
|
192
|
+
let {
|
|
193
|
+
theme
|
|
194
|
+
} = _ref24;
|
|
195
|
+
return theme.color('white');
|
|
191
196
|
});
|
|
192
197
|
const SecondaryNavText = exports.SecondaryNavText = (0, _styledComponents.default)(_Text.default).withConfig({
|
|
193
198
|
displayName: "FooterNewstyle__SecondaryNavText",
|
|
194
199
|
componentId: "sc-17mkhu6-14"
|
|
195
|
-
})(["color:", ";font-weight:normal;"],
|
|
200
|
+
})(["color:", ";opacity:0.8;font-weight:normal;"], _ref25 => {
|
|
196
201
|
let {
|
|
197
202
|
theme
|
|
198
|
-
} =
|
|
203
|
+
} = _ref25;
|
|
199
204
|
return theme.color('white');
|
|
200
205
|
});
|
|
201
206
|
const LogosContainer = exports.LogosContainer = _styledComponents.default.div.withConfig({
|
|
202
207
|
displayName: "FooterNewstyle__LogosContainer",
|
|
203
208
|
componentId: "sc-17mkhu6-15"
|
|
204
|
-
})(["display:flex;flex-direction:row;align-items:center;gap:", ";justify-content:", ";margin-
|
|
205
|
-
let {
|
|
206
|
-
$mobileOnly
|
|
207
|
-
} = _ref25;
|
|
208
|
-
return $mobileOnly ? 'flex-start' : 'center';
|
|
209
|
-
}, _ref26 => {
|
|
209
|
+
})(["display:flex;flex-direction:row;align-items:center;gap:", ";justify-content:", ";margin-bottom:", ";", " @media ", "{flex:0 0 auto;margin-top:0;margin-bottom:0;padding-top:", ";display:", ";justify-content:", ";}}@media ", "{display:", ";}"], (0, _spacing.default)('l'), _ref26 => {
|
|
210
210
|
let {
|
|
211
211
|
$mobileOnly
|
|
212
212
|
} = _ref26;
|
|
213
|
-
return $mobileOnly ?
|
|
213
|
+
return $mobileOnly ? 'flex-start' : 'center';
|
|
214
214
|
}, _ref27 => {
|
|
215
215
|
let {
|
|
216
216
|
$mobileOnly
|
|
@@ -293,20 +293,20 @@ const Brand = exports.Brand = (0, _styledComponents.default)(_Link.default).with
|
|
|
293
293
|
const FooterCopyright = exports.FooterCopyright = _styledComponents.default.div.withConfig({
|
|
294
294
|
displayName: "FooterNewstyle__FooterCopyright",
|
|
295
295
|
componentId: "sc-17mkhu6-17"
|
|
296
|
-
})(["display:block;width:100%;height:100%;text-align:left;"])
|
|
296
|
+
})(["display:block;width:100%;height:100%;text-align:left;margin-bottom:", ";@media ", "{margin-bottom:0;}"], (0, _spacing.default)('l'), _ref36 => {
|
|
297
|
+
let {
|
|
298
|
+
theme
|
|
299
|
+
} = _ref36;
|
|
300
|
+
return theme.breakpoints2026('L');
|
|
301
|
+
});
|
|
297
302
|
const FooterCopyrightText = exports.FooterCopyrightText = (0, _styledComponents.default)(_Text.default).attrs({
|
|
298
303
|
tag: 'p'
|
|
299
304
|
}).withConfig({
|
|
300
305
|
displayName: "FooterNewstyle__FooterCopyrightText",
|
|
301
306
|
componentId: "sc-17mkhu6-18"
|
|
302
|
-
})(["color:", ";font-size:
|
|
303
|
-
let {
|
|
304
|
-
theme
|
|
305
|
-
} = _ref36;
|
|
306
|
-
return theme.color('grey');
|
|
307
|
-
}, _ref37 => {
|
|
307
|
+
})(["color:", ";opacity:0.8;font-size:0.875rem;margin-bottom:", ";"], _ref37 => {
|
|
308
308
|
let {
|
|
309
309
|
theme
|
|
310
310
|
} = _ref37;
|
|
311
|
-
return theme.
|
|
311
|
+
return theme.color('white');
|
|
312
312
|
}, (0, _spacing.default)('sm'));
|