@comicrelief/component-library 8.26.0 → 8.28.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/dist/components/Atoms/Button/Button.test.js +62 -1
- package/dist/components/Atoms/ButtonWithStates/ButtonWithStates.js +4 -1
- package/dist/components/Atoms/Checkbox/Checkbox.js +1 -1
- package/dist/components/Atoms/Checkbox/Checkbox.test.js +160 -1
- package/dist/components/Atoms/Icons/Arrow.js +1 -1
- package/dist/components/Atoms/Icons/Chevron.js +1 -1
- package/dist/components/Atoms/Input/Input.js +3 -3
- package/dist/components/Atoms/Input/input.test.js +238 -2
- package/dist/components/Atoms/Label/Label.js +9 -1
- package/dist/components/Atoms/Link/Link.test.js +219 -4
- package/dist/components/Atoms/Logo/Logo.test.js +36 -1
- package/dist/components/Atoms/Pagination/Item/Item.js +1 -1
- package/dist/components/Atoms/Pagination/List/List.js +1 -1
- package/dist/components/Atoms/Pagination/Pagination.js +1 -1
- package/dist/components/Atoms/Pagination/Pagination.test.js +14 -14
- package/dist/components/Atoms/Picture/Picture.js +9 -2
- package/dist/components/Atoms/Picture/Picture.md +2 -1
- package/dist/components/Atoms/Picture/Picture.test.js +90 -2
- package/dist/components/Atoms/RadioButton/RadioButton.test.js +178 -1
- package/dist/components/Atoms/RichText/RichText.test.js +14 -1
- package/dist/components/Atoms/SocialIcons/Icon/Icon.js +2 -2
- package/dist/components/Atoms/SocialIcons/Utils/Links.js +3 -3
- package/dist/components/Atoms/Text/Text.js +3 -3
- package/dist/components/Atoms/TextArea/TextArea.test.js +90 -1
- package/dist/components/Atoms/TextInputWithDropdown/TextInputWithDropdown.js +3 -3
- package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.js +1 -1
- package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +479 -2
- package/dist/components/Molecules/Card/Card.style.js +1 -1
- package/dist/components/Molecules/Chip/Chip.test.js +104 -1
- package/dist/components/Molecules/Descriptor/Descriptor.js +1 -1
- package/dist/components/Molecules/Descriptor/Descriptor.test.js +216 -1
- package/dist/components/Molecules/DoubleCopy/DoubleCopy.test.js +55 -1
- package/dist/components/Molecules/PartnerLink/PartnerLink.test.js +148 -1
- package/dist/components/Molecules/Promo/_ProgressRing.js +5 -5
- package/dist/components/Molecules/SchoolLookup/SchoolLookup.js +1 -1
- package/dist/components/Molecules/SearchInput/SearchInput.test.js +190 -1
- package/dist/components/Molecules/SearchResult/SearchResult.js +1 -1
- package/dist/components/Molecules/ShareButton/ShareButton.js +3 -3
- package/dist/components/Molecules/ShareButton/ShareButton.test.js +112 -1
- package/dist/components/Molecules/SimpleSchoolLookup/SimpleSchoolLookup.js +1 -1
- package/dist/components/Molecules/SingleMessage/SingleMessage.js +4 -4
- package/dist/components/Molecules/SingleMessage/SingleMessage.style.js +2 -2
- package/dist/components/Molecules/SingleMessageDS/SingleMessageDs.js +1 -1
- package/dist/components/Molecules/SingleMessageDS/SingleMessageDs.style.js +8 -8
- package/dist/components/Molecules/VideoBanner/VideoBanner.test.js +18 -1
- package/dist/components/Organisms/CookieBanner/CookieBanner.test.js +181 -1
- package/dist/components/Organisms/Donate/Donate.js +1 -1
- package/dist/components/Organisms/Donate/Donate.style.js +3 -1
- package/dist/components/Organisms/Donate/Form/Form.js +8 -8
- package/dist/components/Organisms/Donate/GivingSelector/GivingSelector.js +4 -4
- package/dist/components/Organisms/Donate/MoneyBuy/MoneyBuy.js +1 -1
- package/dist/components/Organisms/Footer/Footer.js +1 -1
- package/dist/components/Organisms/Footer/Nav/Nav.js +1 -1
- package/dist/components/Organisms/Header/HeaderNav/HeaderNav.js +2 -2
- package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.js +1 -1
- package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNavItem2025.js +5 -5
- package/dist/components/Organisms/ImpactSlider/ImpactSlider.style.js +1 -1
- package/dist/components/Organisms/ImpactSlider/_ImpactMoneybuys.js +1 -1
- package/dist/components/Organisms/ImpactSlider/_utils.js +2 -2
- package/dist/components/Organisms/MarketingPreferencesDS/_MarketingPreferencesDS.js +5 -5
- package/dist/components/Organisms/MarketingPreferencesDS/_OptInCheckbox.js +3 -3
- package/dist/components/Organisms/Membership/Form/Form.js +5 -5
- package/dist/components/Organisms/Membership/Membership.style.js +1 -1
- package/dist/components/Organisms/Membership/Membership.test.js +633 -1
- package/dist/components/Organisms/Membership/MoneyBox/MoneyBox.js +1 -1
- package/dist/components/Organisms/RichtextCarousel/RichtextCarousel.test.js +208 -1
- package/dist/components/Organisms/WYMDCarousel/WYMDCarousel.test.js +341 -1
- package/dist/components/Organisms/WYMDCarousel/_utils.js +1 -1
- package/dist/theme/crTheme/colors.js +0 -8
- package/dist/theme/crTheme/linkStyles.js +4 -4
- package/dist/theme/shared/allBreakpoints.js +1 -1
- package/dist/theme/shared/fontFamilies.js +1 -1
- package/dist/utils/Membership.js +2 -2
- package/dist/utils/ShareButton/sharePopUpHelper.js +1 -1
- package/dist/utils/ShareButton/shareUrlHelper.js +2 -2
- package/dist/utils/internalLinkHelper.js +1 -1
- package/package.json +1 -1
- package/src/components/Atoms/Picture/Picture.md +2 -1
- package/src/theme/crTheme/colors.js +0 -8
|
@@ -22,5 +22,637 @@ it('renders correctly', () => {
|
|
|
22
22
|
subtitle: "Jordan was close to suicide - which is now the biggest killer of men under 45 in the UK. Join now and help save lives.",
|
|
23
23
|
otherDescription: "Your donation will help us fund amazing projects in the UK and around the world."
|
|
24
24
|
})).toJSON();
|
|
25
|
-
expect(tree).toMatchInlineSnapshot("\n .c6 {\n font-size: 1.5rem;\n line-height: 1.5rem;\n text-transform: inherit;\n font-weight: 800;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c7 {\n font-size: 1rem;\n line-height: 1rem;\n text-transform: inherit;\n line-height: normal;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c12 {\n font-size: 1rem;\n line-height: 1rem;\n text-transform: inherit;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c22 {\n font-size: 1rem;\n line-height: 1rem;\n text-transform: inherit;\n font-weight: 500;\n line-height: normal;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c1 {\n display: block;\n width: 100%;\n height: 100%;\n position: relative;\n }\n\n .c3 {\n width: 100%;\n height: 100%;\n display: block;\n object-fit: cover;\n }\n\n .c14 {\n width: 100%;\n position: relative;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-flex-direction: column;\n -ms-flex-direction: column;\n flex-direction: column;\n color: #5C5C5E;\n }\n\n .c16 {\n margin-bottom: 0.5rem;\n font-weight: normal;\n }\n\n .c17 {\n position: relative;\n font-size: 1.25rem;\n }\n\n .c18 {\n position: relative;\n width: 100%;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: end;\n -webkit-justify-content: flex-end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n }\n\n .c19 {\n position: relative;\n box-sizing: border-box;\n width: 100%;\n height: 48px;\n padding: 1rem 2.4rem 1rem 1.5rem;\n background-color: #F4F3F5;\n border: 1px solid;\n border-color: #E1E2E3;\n box-shadow: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n color: #000000;\n border-radius: 0.5rem;\n font-size: inherit;\n z-index: 2;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c19:focus {\n border: 1px solid #666;\n }\n\n .c15 {\n display: block;\n }\n\n .c15 input {\n border: 2px solid #E1E2E3;\n font-size: 1.5rem;\n font-weight: 800;\n -webkit-letter-spacing: -2px;\n -moz-letter-spacing: -2px;\n -ms-letter-spacing: -2px;\n letter-spacing: -2px;\n height: auto;\n }\n\n .c20 {\n display: block;\n }\n\n .c20 input {\n border: 2px solid #E1E2E3;\n font-size: 1.5rem;\n font-weight: 800;\n -webkit-letter-spacing: -2px;\n -moz-letter-spacing: -2px;\n -ms-letter-spacing: -2px;\n letter-spacing: -2px;\n height: auto;\n border-color: #E52630;\n background-color: #E52630;\n color: #FFFFFF;\n }\n\n .c0 {\n background-color: #FEE3CC;\n position: relative;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n min-height: 100vh;\n }\n\n .c2 {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: auto;\n }\n\n .c2:before {\n color: #FEE3CC;\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n box-shadow: inset 0px 4rem 2rem -2rem;\n }\n\n .c4 {\n position: relative;\n max-width: 320px;\n text-align: center;\n margin-bottom: 50%;\n }\n\n .c5 {\n padding: 2rem 1rem 0;\n margin-bottom: 2rem;\n }\n\n .c8 {\n background-color: #FFFFFF;\n box-shadow: 0px 1rem 4rem rgba(0,0,0,0.3);\n height: 450px;\n }\n\n .c9 {\n padding: 1rem;\n }\n\n .c9 h3 {\n margin-top: 1rem;\n }\n\n .c9 input {\n max-width: 100%;\n margin: 0;\n }\n\n .c10 {\n padding: 0;\n margin: 0;\n border: none;\n }\n\n .c10 > :not(:last-child):not(legend) {\n margin-bottom: 2rem;\n }\n\n .c11 {\n margin: 0;\n padding: 0;\n }\n\n .c13 {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -webkit-justify-content: space-between;\n -ms-flex-pack: justify;\n justify-content: space-between;\n }\n\n .c13 label {\n -webkit-flex: 0 0 30%;\n -ms-flex: 0 0 30%;\n flex: 0 0 30%;\n }\n\n .c13 label input {\n cursor: pointer;\n padding: 1rem;\n }\n\n .c13 label:hover input {\n border-color: #E52630;\n }\n\n .c21 {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n }\n\n .c23 {\n margin-right: auto;\n }\n\n .c24 {\n position: relative;\n -webkit-flex: 0 0 50%;\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n font-weight: 400;\n display: block;\n }\n\n .c24 span {\n position: absolute;\n padding: 0px 15px;\n font-size: 20px;\n top: 50%;\n -webkit-transform: translateY(-50%);\n -ms-transform: translateY(-50%);\n transform: translateY(-50%);\n left: 0px;\n font-weight: 500;\n }\n\n .c24 input {\n border: 2px solid #E1E2E3;\n background: transparent;\n padding: 0.5rem 1rem 0.5rem 2rem;\n }\n\n .c24 input:focus {\n border: 2px solid #E52630;\n }\n\n .c26 {\n line-height: 1.5;\n }\n\n .c25 {\n width: 100%;\n color: #FFFFFF;\n font-size: 1rem;\n font-weight: bold;\n cursor: pointer;\n padding: 1rem 0.5rem;\n background: #E52630;\n border: none;\n border-radius: 100px;\n }\n\n .c25:active,\n .c25:focus,\n .c25:hover {\n background-color: #961D35;\n }\n\n @supports not ((object-fit:cover) or (object-fit:contain)) {\n .c3 {\n visibility: hidden;\n }\n }\n\n @media (min-width:740px) {\n\n }\n\n @media (min-width:1024px) {\n\n }\n\n @media (min-width:1024px) {\n .c0 {\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: inherit;\n -webkit-justify-content: inherit;\n -ms-flex-pack: inherit;\n justify-content: inherit;\n min-height: 750px;\n height: 100vh;\n max-height: 900px;\n -webkit-flex-direction: row;\n -ms-flex-direction: row;\n flex-direction: row;\n }\n }\n\n @media (min-width:1024px) {\n .c2 {\n height: 100%;\n }\n\n .c2:before {\n content: none;\n }\n }\n\n @media (min-width:1024px) {\n .c4 {\n margin: 0 8rem;\n max-width: 420px;\n }\n }\n\n @media (min-width:1024px) {\n .c8 {\n height: 430px;\n }\n }\n\n @media (min-width:1024px) {\n .c24 {\n -webkit-flex: 0 0 60%;\n -ms-flex: 0 0 60%;\n flex: 0 0 60%;\n }\n }\n\n @media (min-width:1024px) {\n .c25 {\n width: auto;\n padding: 1rem 2rem;\n margin: 0 auto 2rem;\n }\n }\n\n <div\n className=\"c0\"\n id=\"mship-1\"\n >\n <div\n className=\"c1 c2\"\n height=\"100%\"\n width=\"100%\"\n >\n <img\n alt=\"Background image\"\n className=\"c3 lazyload\"\n data-src={null}\n height=\"100%\"\n width=\"100%\"\n />\n </div>\n <div\n className=\"c4\"\n >\n <div\n className=\"c5\"\n >\n <h2\n className=\"c6\"\n color=\"inherit\"\n size=\"l\"\n >\n Help someone like Jordan see a better tomorrow\n </h2>\n <p\n className=\"c7\"\n color=\"inherit\"\n size=\"s\"\n >\n Jordan was close to suicide - which is now the biggest killer of men under 45 in the UK. Join now and help save lives.\n </p>\n </div>\n <div\n className=\"c8\"\n >\n <form\n className=\"c9\"\n onSubmit={[Function]}\n >\n <fieldset\n className=\"c10\"\n >\n <legend\n className=\"c11\"\n >\n <h3\n className=\"c12\"\n color=\"inherit\"\n size=\"s\"\n >\n Choose your monthly donation\n </h3>\n </legend>\n <div\n className=\"c13\"\n >\n <label\n className=\"c14 c15\"\n htmlFor=\"mship-1--moneyBuy-box1\"\n >\n <span\n className=\"c7 c16\"\n color=\"inherit\"\n dangerouslySetInnerHTML={\n Object {\n \"__html\": \"\",\n }\n }\n size=\"s\"\n />\n <div\n className=\"c17\"\n >\n \n <div\n className=\"c18\"\n >\n <input\n aria-describedby=\"mship-1--moneyBuy-box1\"\n aria-label=\"\xA35\"\n className=\"c19\"\n id=\"mship-1--moneyBuy-box1\"\n name=\"mship-1--moneyBuy1\"\n onClick={[Function]}\n placeholder=\"\"\n required={false}\n type=\"button\"\n value=\"\xA3 5\"\n />\n \n </div>\n </div>\n \n </label>\n <label\n className=\"c14 c20\"\n htmlFor=\"mship-1--moneyBuy-box2\"\n >\n <span\n className=\"c7 c16\"\n color=\"inherit\"\n dangerouslySetInnerHTML={\n Object {\n \"__html\": \"\",\n }\n }\n size=\"s\"\n />\n <div\n className=\"c17\"\n >\n \n <div\n className=\"c18\"\n >\n <input\n aria-describedby=\"mship-1--moneyBuy-box2\"\n aria-label=\"\xA310\"\n className=\"c19\"\n id=\"mship-1--moneyBuy-box2\"\n name=\"mship-1--moneyBuy2\"\n onClick={[Function]}\n placeholder=\"\"\n required={false}\n type=\"button\"\n value=\"\xA3 10\"\n />\n \n </div>\n </div>\n \n </label>\n <label\n className=\"c14 c15\"\n htmlFor=\"mship-1--moneyBuy-box3\"\n >\n <span\n className=\"c7 c16\"\n color=\"inherit\"\n dangerouslySetInnerHTML={\n Object {\n \"__html\": \"\",\n }\n }\n size=\"s\"\n />\n <div\n className=\"c17\"\n >\n \n <div\n className=\"c18\"\n >\n <input\n aria-describedby=\"mship-1--moneyBuy-box3\"\n aria-label=\"\xA320\"\n className=\"c19\"\n id=\"mship-1--moneyBuy-box3\"\n name=\"mship-1--moneyBuy3\"\n onClick={[Function]}\n placeholder=\"\"\n required={false}\n type=\"button\"\n value=\"\xA3 20\"\n />\n \n </div>\n </div>\n \n </label>\n </div>\n <div\n className=\"c21\"\n >\n <span\n className=\"c22 c23\"\n color=\"inherit\"\n size=\"s\"\n >\n Other amount\n </span>\n <label\n className=\"c14 c24\"\n htmlFor=\"mship-1--MoneyBuy-userInput\"\n >\n <span\n className=\"c7 c16\"\n color=\"inherit\"\n dangerouslySetInnerHTML={\n Object {\n \"__html\": \"\xA3\",\n }\n }\n size=\"s\"\n />\n <div\n className=\"c17\"\n >\n \n <div\n className=\"c18\"\n >\n <input\n aria-describedby=\"mship-1--MoneyBuy-userInput\"\n aria-label=\"Input a different amount\"\n className=\"c19\"\n id=\"mship-1--MoneyBuy-userInput\"\n max=\"25000\"\n min=\"1\"\n name=\"membership_amount\"\n onChange={[Function]}\n onClick={[Function]}\n onKeyPress={[Function]}\n pattern=\"[^[0-9]+([,.][0-9]+)?$]\"\n placeholder=\"0.00\"\n required={false}\n step=\"0.01\"\n type=\"number\"\n value=\"\"\n />\n \n </div>\n </div>\n \n </label>\n </div>\n <input\n className=\"c25\"\n type=\"submit\"\n value=\"Donate\"\n />\n <p\n className=\"c26\"\n />\n </fieldset>\n </form>\n </div>\n </div>\n </div>\n ");
|
|
25
|
+
expect(tree).toMatchInlineSnapshot(`
|
|
26
|
+
.c6 {
|
|
27
|
+
font-size: 1.5rem;
|
|
28
|
+
line-height: 1.5rem;
|
|
29
|
+
text-transform: inherit;
|
|
30
|
+
font-weight: 800;
|
|
31
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.c7 {
|
|
35
|
+
font-size: 1rem;
|
|
36
|
+
line-height: 1rem;
|
|
37
|
+
text-transform: inherit;
|
|
38
|
+
line-height: normal;
|
|
39
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.c12 {
|
|
43
|
+
font-size: 1rem;
|
|
44
|
+
line-height: 1rem;
|
|
45
|
+
text-transform: inherit;
|
|
46
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.c22 {
|
|
50
|
+
font-size: 1rem;
|
|
51
|
+
line-height: 1rem;
|
|
52
|
+
text-transform: inherit;
|
|
53
|
+
font-weight: 500;
|
|
54
|
+
line-height: normal;
|
|
55
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.c1 {
|
|
59
|
+
display: block;
|
|
60
|
+
width: 100%;
|
|
61
|
+
height: 100%;
|
|
62
|
+
position: relative;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.c3 {
|
|
66
|
+
width: 100%;
|
|
67
|
+
height: 100%;
|
|
68
|
+
display: block;
|
|
69
|
+
object-fit: cover;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.c14 {
|
|
73
|
+
width: 100%;
|
|
74
|
+
position: relative;
|
|
75
|
+
display: -webkit-box;
|
|
76
|
+
display: -webkit-flex;
|
|
77
|
+
display: -ms-flexbox;
|
|
78
|
+
display: flex;
|
|
79
|
+
-webkit-flex-direction: column;
|
|
80
|
+
-ms-flex-direction: column;
|
|
81
|
+
flex-direction: column;
|
|
82
|
+
color: #5C5C5E;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.c16 {
|
|
86
|
+
margin-bottom: 0.5rem;
|
|
87
|
+
font-weight: normal;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.c17 {
|
|
91
|
+
position: relative;
|
|
92
|
+
font-size: 1.25rem;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.c18 {
|
|
96
|
+
position: relative;
|
|
97
|
+
width: 100%;
|
|
98
|
+
display: -webkit-box;
|
|
99
|
+
display: -webkit-flex;
|
|
100
|
+
display: -ms-flexbox;
|
|
101
|
+
display: flex;
|
|
102
|
+
-webkit-box-pack: end;
|
|
103
|
+
-webkit-justify-content: flex-end;
|
|
104
|
+
-ms-flex-pack: end;
|
|
105
|
+
justify-content: flex-end;
|
|
106
|
+
-webkit-align-items: center;
|
|
107
|
+
-webkit-box-align: center;
|
|
108
|
+
-ms-flex-align: center;
|
|
109
|
+
align-items: center;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.c19 {
|
|
113
|
+
position: relative;
|
|
114
|
+
box-sizing: border-box;
|
|
115
|
+
width: 100%;
|
|
116
|
+
height: 48px;
|
|
117
|
+
padding: 1rem 2.4rem 1rem 1.5rem;
|
|
118
|
+
background-color: #F4F3F5;
|
|
119
|
+
border: 1px solid;
|
|
120
|
+
border-color: #E1E2E3;
|
|
121
|
+
box-shadow: none;
|
|
122
|
+
-webkit-appearance: none;
|
|
123
|
+
-moz-appearance: none;
|
|
124
|
+
appearance: none;
|
|
125
|
+
color: #000000;
|
|
126
|
+
border-radius: 0.5rem;
|
|
127
|
+
font-size: inherit;
|
|
128
|
+
z-index: 2;
|
|
129
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.c19:focus {
|
|
133
|
+
border: 1px solid #666;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.c15 {
|
|
137
|
+
display: block;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.c15 input {
|
|
141
|
+
border: 2px solid #E1E2E3;
|
|
142
|
+
font-size: 1.5rem;
|
|
143
|
+
font-weight: 800;
|
|
144
|
+
-webkit-letter-spacing: -2px;
|
|
145
|
+
-moz-letter-spacing: -2px;
|
|
146
|
+
-ms-letter-spacing: -2px;
|
|
147
|
+
letter-spacing: -2px;
|
|
148
|
+
height: auto;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.c20 {
|
|
152
|
+
display: block;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.c20 input {
|
|
156
|
+
border: 2px solid #E1E2E3;
|
|
157
|
+
font-size: 1.5rem;
|
|
158
|
+
font-weight: 800;
|
|
159
|
+
-webkit-letter-spacing: -2px;
|
|
160
|
+
-moz-letter-spacing: -2px;
|
|
161
|
+
-ms-letter-spacing: -2px;
|
|
162
|
+
letter-spacing: -2px;
|
|
163
|
+
height: auto;
|
|
164
|
+
border-color: #E52630;
|
|
165
|
+
background-color: #E52630;
|
|
166
|
+
color: #FFFFFF;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.c0 {
|
|
170
|
+
background-color: #FEE3CC;
|
|
171
|
+
position: relative;
|
|
172
|
+
display: -webkit-box;
|
|
173
|
+
display: -webkit-flex;
|
|
174
|
+
display: -ms-flexbox;
|
|
175
|
+
display: flex;
|
|
176
|
+
-webkit-box-pack: center;
|
|
177
|
+
-webkit-justify-content: center;
|
|
178
|
+
-ms-flex-pack: center;
|
|
179
|
+
justify-content: center;
|
|
180
|
+
min-height: 100vh;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.c2 {
|
|
184
|
+
position: absolute;
|
|
185
|
+
bottom: 0;
|
|
186
|
+
left: 0;
|
|
187
|
+
right: 0;
|
|
188
|
+
height: auto;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.c2:before {
|
|
192
|
+
color: #FEE3CC;
|
|
193
|
+
content: '';
|
|
194
|
+
position: absolute;
|
|
195
|
+
width: 100%;
|
|
196
|
+
height: 100%;
|
|
197
|
+
box-shadow: inset 0px 4rem 2rem -2rem;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.c4 {
|
|
201
|
+
position: relative;
|
|
202
|
+
max-width: 320px;
|
|
203
|
+
text-align: center;
|
|
204
|
+
margin-bottom: 50%;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.c5 {
|
|
208
|
+
padding: 2rem 1rem 0;
|
|
209
|
+
margin-bottom: 2rem;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.c8 {
|
|
213
|
+
background-color: #FFFFFF;
|
|
214
|
+
box-shadow: 0px 1rem 4rem rgba(0,0,0,0.3);
|
|
215
|
+
height: 450px;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.c9 {
|
|
219
|
+
padding: 1rem;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.c9 h3 {
|
|
223
|
+
margin-top: 1rem;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.c9 input {
|
|
227
|
+
max-width: 100%;
|
|
228
|
+
margin: 0;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.c10 {
|
|
232
|
+
padding: 0;
|
|
233
|
+
margin: 0;
|
|
234
|
+
border: none;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.c10 > :not(:last-child):not(legend) {
|
|
238
|
+
margin-bottom: 2rem;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.c11 {
|
|
242
|
+
margin: 0;
|
|
243
|
+
padding: 0;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.c13 {
|
|
247
|
+
display: -webkit-box;
|
|
248
|
+
display: -webkit-flex;
|
|
249
|
+
display: -ms-flexbox;
|
|
250
|
+
display: flex;
|
|
251
|
+
-webkit-box-pack: justify;
|
|
252
|
+
-webkit-justify-content: space-between;
|
|
253
|
+
-ms-flex-pack: justify;
|
|
254
|
+
justify-content: space-between;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.c13 label {
|
|
258
|
+
-webkit-flex: 0 0 30%;
|
|
259
|
+
-ms-flex: 0 0 30%;
|
|
260
|
+
flex: 0 0 30%;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.c13 label input {
|
|
264
|
+
cursor: pointer;
|
|
265
|
+
padding: 1rem;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.c13 label:hover input {
|
|
269
|
+
border-color: #E52630;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.c21 {
|
|
273
|
+
display: -webkit-box;
|
|
274
|
+
display: -webkit-flex;
|
|
275
|
+
display: -ms-flexbox;
|
|
276
|
+
display: flex;
|
|
277
|
+
-webkit-align-items: center;
|
|
278
|
+
-webkit-box-align: center;
|
|
279
|
+
-ms-flex-align: center;
|
|
280
|
+
align-items: center;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.c23 {
|
|
284
|
+
margin-right: auto;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.c24 {
|
|
288
|
+
position: relative;
|
|
289
|
+
-webkit-flex: 0 0 50%;
|
|
290
|
+
-ms-flex: 0 0 50%;
|
|
291
|
+
flex: 0 0 50%;
|
|
292
|
+
font-weight: 400;
|
|
293
|
+
display: block;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.c24 span {
|
|
297
|
+
position: absolute;
|
|
298
|
+
padding: 0px 15px;
|
|
299
|
+
font-size: 20px;
|
|
300
|
+
top: 50%;
|
|
301
|
+
-webkit-transform: translateY(-50%);
|
|
302
|
+
-ms-transform: translateY(-50%);
|
|
303
|
+
transform: translateY(-50%);
|
|
304
|
+
left: 0px;
|
|
305
|
+
font-weight: 500;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.c24 input {
|
|
309
|
+
border: 2px solid #E1E2E3;
|
|
310
|
+
background: transparent;
|
|
311
|
+
padding: 0.5rem 1rem 0.5rem 2rem;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.c24 input:focus {
|
|
315
|
+
border: 2px solid #E52630;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.c26 {
|
|
319
|
+
line-height: 1.5;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.c25 {
|
|
323
|
+
width: 100%;
|
|
324
|
+
color: #FFFFFF;
|
|
325
|
+
font-size: 1rem;
|
|
326
|
+
font-weight: bold;
|
|
327
|
+
cursor: pointer;
|
|
328
|
+
padding: 1rem 0.5rem;
|
|
329
|
+
background: #E52630;
|
|
330
|
+
border: none;
|
|
331
|
+
border-radius: 100px;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.c25:active,
|
|
335
|
+
.c25:focus,
|
|
336
|
+
.c25:hover {
|
|
337
|
+
background-color: #961D35;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
@supports not ((object-fit:cover) or (object-fit:contain)) {
|
|
341
|
+
.c3 {
|
|
342
|
+
visibility: hidden;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
@media (min-width:740px) {
|
|
347
|
+
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
@media (min-width:1024px) {
|
|
351
|
+
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
@media (min-width:1024px) {
|
|
355
|
+
.c0 {
|
|
356
|
+
-webkit-align-items: center;
|
|
357
|
+
-webkit-box-align: center;
|
|
358
|
+
-ms-flex-align: center;
|
|
359
|
+
align-items: center;
|
|
360
|
+
-webkit-box-pack: inherit;
|
|
361
|
+
-webkit-justify-content: inherit;
|
|
362
|
+
-ms-flex-pack: inherit;
|
|
363
|
+
justify-content: inherit;
|
|
364
|
+
min-height: 750px;
|
|
365
|
+
height: 100vh;
|
|
366
|
+
max-height: 900px;
|
|
367
|
+
-webkit-flex-direction: row;
|
|
368
|
+
-ms-flex-direction: row;
|
|
369
|
+
flex-direction: row;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
@media (min-width:1024px) {
|
|
374
|
+
.c2 {
|
|
375
|
+
height: 100%;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.c2:before {
|
|
379
|
+
content: none;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
@media (min-width:1024px) {
|
|
384
|
+
.c4 {
|
|
385
|
+
margin: 0 8rem;
|
|
386
|
+
max-width: 420px;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
@media (min-width:1024px) {
|
|
391
|
+
.c8 {
|
|
392
|
+
height: 430px;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
@media (min-width:1024px) {
|
|
397
|
+
.c24 {
|
|
398
|
+
-webkit-flex: 0 0 60%;
|
|
399
|
+
-ms-flex: 0 0 60%;
|
|
400
|
+
flex: 0 0 60%;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
@media (min-width:1024px) {
|
|
405
|
+
.c25 {
|
|
406
|
+
width: auto;
|
|
407
|
+
padding: 1rem 2rem;
|
|
408
|
+
margin: 0 auto 2rem;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
<div
|
|
413
|
+
className="c0"
|
|
414
|
+
id="mship-1"
|
|
415
|
+
>
|
|
416
|
+
<div
|
|
417
|
+
className="c1 c2"
|
|
418
|
+
height="100%"
|
|
419
|
+
width="100%"
|
|
420
|
+
>
|
|
421
|
+
<img
|
|
422
|
+
alt="Background image"
|
|
423
|
+
className="c3 lazyload"
|
|
424
|
+
data-src={null}
|
|
425
|
+
height="100%"
|
|
426
|
+
width="100%"
|
|
427
|
+
/>
|
|
428
|
+
</div>
|
|
429
|
+
<div
|
|
430
|
+
className="c4"
|
|
431
|
+
>
|
|
432
|
+
<div
|
|
433
|
+
className="c5"
|
|
434
|
+
>
|
|
435
|
+
<h2
|
|
436
|
+
className="c6"
|
|
437
|
+
color="inherit"
|
|
438
|
+
size="l"
|
|
439
|
+
>
|
|
440
|
+
Help someone like Jordan see a better tomorrow
|
|
441
|
+
</h2>
|
|
442
|
+
<p
|
|
443
|
+
className="c7"
|
|
444
|
+
color="inherit"
|
|
445
|
+
size="s"
|
|
446
|
+
>
|
|
447
|
+
Jordan was close to suicide - which is now the biggest killer of men under 45 in the UK. Join now and help save lives.
|
|
448
|
+
</p>
|
|
449
|
+
</div>
|
|
450
|
+
<div
|
|
451
|
+
className="c8"
|
|
452
|
+
>
|
|
453
|
+
<form
|
|
454
|
+
className="c9"
|
|
455
|
+
onSubmit={[Function]}
|
|
456
|
+
>
|
|
457
|
+
<fieldset
|
|
458
|
+
className="c10"
|
|
459
|
+
>
|
|
460
|
+
<legend
|
|
461
|
+
className="c11"
|
|
462
|
+
>
|
|
463
|
+
<h3
|
|
464
|
+
className="c12"
|
|
465
|
+
color="inherit"
|
|
466
|
+
size="s"
|
|
467
|
+
>
|
|
468
|
+
Choose your monthly donation
|
|
469
|
+
</h3>
|
|
470
|
+
</legend>
|
|
471
|
+
<div
|
|
472
|
+
className="c13"
|
|
473
|
+
>
|
|
474
|
+
<label
|
|
475
|
+
className="c14 c15"
|
|
476
|
+
htmlFor="mship-1--moneyBuy-box1"
|
|
477
|
+
>
|
|
478
|
+
<span
|
|
479
|
+
className="c7 c16"
|
|
480
|
+
color="inherit"
|
|
481
|
+
dangerouslySetInnerHTML={
|
|
482
|
+
Object {
|
|
483
|
+
"__html": "",
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
size="s"
|
|
487
|
+
/>
|
|
488
|
+
<div
|
|
489
|
+
className="c17"
|
|
490
|
+
>
|
|
491
|
+
|
|
492
|
+
<div
|
|
493
|
+
className="c18"
|
|
494
|
+
>
|
|
495
|
+
<input
|
|
496
|
+
aria-describedby="mship-1--moneyBuy-box1"
|
|
497
|
+
aria-label="£5"
|
|
498
|
+
className="c19"
|
|
499
|
+
id="mship-1--moneyBuy-box1"
|
|
500
|
+
name="mship-1--moneyBuy1"
|
|
501
|
+
onClick={[Function]}
|
|
502
|
+
placeholder=""
|
|
503
|
+
required={false}
|
|
504
|
+
type="button"
|
|
505
|
+
value="£ 5"
|
|
506
|
+
/>
|
|
507
|
+
|
|
508
|
+
</div>
|
|
509
|
+
</div>
|
|
510
|
+
|
|
511
|
+
</label>
|
|
512
|
+
<label
|
|
513
|
+
className="c14 c20"
|
|
514
|
+
htmlFor="mship-1--moneyBuy-box2"
|
|
515
|
+
>
|
|
516
|
+
<span
|
|
517
|
+
className="c7 c16"
|
|
518
|
+
color="inherit"
|
|
519
|
+
dangerouslySetInnerHTML={
|
|
520
|
+
Object {
|
|
521
|
+
"__html": "",
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
size="s"
|
|
525
|
+
/>
|
|
526
|
+
<div
|
|
527
|
+
className="c17"
|
|
528
|
+
>
|
|
529
|
+
|
|
530
|
+
<div
|
|
531
|
+
className="c18"
|
|
532
|
+
>
|
|
533
|
+
<input
|
|
534
|
+
aria-describedby="mship-1--moneyBuy-box2"
|
|
535
|
+
aria-label="£10"
|
|
536
|
+
className="c19"
|
|
537
|
+
id="mship-1--moneyBuy-box2"
|
|
538
|
+
name="mship-1--moneyBuy2"
|
|
539
|
+
onClick={[Function]}
|
|
540
|
+
placeholder=""
|
|
541
|
+
required={false}
|
|
542
|
+
type="button"
|
|
543
|
+
value="£ 10"
|
|
544
|
+
/>
|
|
545
|
+
|
|
546
|
+
</div>
|
|
547
|
+
</div>
|
|
548
|
+
|
|
549
|
+
</label>
|
|
550
|
+
<label
|
|
551
|
+
className="c14 c15"
|
|
552
|
+
htmlFor="mship-1--moneyBuy-box3"
|
|
553
|
+
>
|
|
554
|
+
<span
|
|
555
|
+
className="c7 c16"
|
|
556
|
+
color="inherit"
|
|
557
|
+
dangerouslySetInnerHTML={
|
|
558
|
+
Object {
|
|
559
|
+
"__html": "",
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
size="s"
|
|
563
|
+
/>
|
|
564
|
+
<div
|
|
565
|
+
className="c17"
|
|
566
|
+
>
|
|
567
|
+
|
|
568
|
+
<div
|
|
569
|
+
className="c18"
|
|
570
|
+
>
|
|
571
|
+
<input
|
|
572
|
+
aria-describedby="mship-1--moneyBuy-box3"
|
|
573
|
+
aria-label="£20"
|
|
574
|
+
className="c19"
|
|
575
|
+
id="mship-1--moneyBuy-box3"
|
|
576
|
+
name="mship-1--moneyBuy3"
|
|
577
|
+
onClick={[Function]}
|
|
578
|
+
placeholder=""
|
|
579
|
+
required={false}
|
|
580
|
+
type="button"
|
|
581
|
+
value="£ 20"
|
|
582
|
+
/>
|
|
583
|
+
|
|
584
|
+
</div>
|
|
585
|
+
</div>
|
|
586
|
+
|
|
587
|
+
</label>
|
|
588
|
+
</div>
|
|
589
|
+
<div
|
|
590
|
+
className="c21"
|
|
591
|
+
>
|
|
592
|
+
<span
|
|
593
|
+
className="c22 c23"
|
|
594
|
+
color="inherit"
|
|
595
|
+
size="s"
|
|
596
|
+
>
|
|
597
|
+
Other amount
|
|
598
|
+
</span>
|
|
599
|
+
<label
|
|
600
|
+
className="c14 c24"
|
|
601
|
+
htmlFor="mship-1--MoneyBuy-userInput"
|
|
602
|
+
>
|
|
603
|
+
<span
|
|
604
|
+
className="c7 c16"
|
|
605
|
+
color="inherit"
|
|
606
|
+
dangerouslySetInnerHTML={
|
|
607
|
+
Object {
|
|
608
|
+
"__html": "£",
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
size="s"
|
|
612
|
+
/>
|
|
613
|
+
<div
|
|
614
|
+
className="c17"
|
|
615
|
+
>
|
|
616
|
+
|
|
617
|
+
<div
|
|
618
|
+
className="c18"
|
|
619
|
+
>
|
|
620
|
+
<input
|
|
621
|
+
aria-describedby="mship-1--MoneyBuy-userInput"
|
|
622
|
+
aria-label="Input a different amount"
|
|
623
|
+
className="c19"
|
|
624
|
+
id="mship-1--MoneyBuy-userInput"
|
|
625
|
+
max="25000"
|
|
626
|
+
min="1"
|
|
627
|
+
name="membership_amount"
|
|
628
|
+
onChange={[Function]}
|
|
629
|
+
onClick={[Function]}
|
|
630
|
+
onKeyPress={[Function]}
|
|
631
|
+
pattern="[^[0-9]+([,.][0-9]+)?$]"
|
|
632
|
+
placeholder="0.00"
|
|
633
|
+
required={false}
|
|
634
|
+
step="0.01"
|
|
635
|
+
type="number"
|
|
636
|
+
value=""
|
|
637
|
+
/>
|
|
638
|
+
|
|
639
|
+
</div>
|
|
640
|
+
</div>
|
|
641
|
+
|
|
642
|
+
</label>
|
|
643
|
+
</div>
|
|
644
|
+
<input
|
|
645
|
+
className="c25"
|
|
646
|
+
type="submit"
|
|
647
|
+
value="Donate"
|
|
648
|
+
/>
|
|
649
|
+
<p
|
|
650
|
+
className="c26"
|
|
651
|
+
/>
|
|
652
|
+
</fieldset>
|
|
653
|
+
</form>
|
|
654
|
+
</div>
|
|
655
|
+
</div>
|
|
656
|
+
</div>
|
|
657
|
+
`);
|
|
26
658
|
});
|
|
@@ -55,7 +55,7 @@ const MoneyBuy = _ref7 => {
|
|
|
55
55
|
} = _ref7;
|
|
56
56
|
return /*#__PURE__*/_react.default.createElement(MoneyBox, Object.assign({}, rest, {
|
|
57
57
|
"aria-label": description,
|
|
58
|
-
value:
|
|
58
|
+
value: `${currency} ${amount}`,
|
|
59
59
|
type: "button",
|
|
60
60
|
label: "",
|
|
61
61
|
errorMsg: "",
|