@comicrelief/component-library 8.44.3 → 8.45.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/Checkbox/Checkbox.test.js +0 -4
- package/dist/components/Atoms/ErrorText/__snapshots__/ErrorText.test.js.snap +0 -2
- package/dist/components/Atoms/Input/input.test.js +0 -2
- package/dist/components/Atoms/RadioButton/RadioButton.test.js +0 -4
- package/dist/components/Atoms/Select/__snapshots__/Select.test.js.snap +0 -1
- package/dist/components/Atoms/SocialIcons/Icon/Icon.js +39 -14
- package/dist/components/Atoms/SocialIcons/SocialIcons.js +91 -22
- package/dist/components/Atoms/SocialIcons/Utils/Icons.js +26 -7
- package/dist/components/Atoms/SocialIcons/Utils/Links.js +10 -0
- package/dist/components/Atoms/SocialIcons/__snapshots__/SocialIcons.test.js.snap +63 -48
- package/{src/components/Atoms/SocialIcons/assets → dist/components/Atoms/SocialIcons/assets/circled}/facebook.svg +1 -1
- package/{src/components/Atoms/SocialIcons/assets → dist/components/Atoms/SocialIcons/assets/circled}/twitter.svg +1 -1
- package/dist/components/Atoms/SocialIcons/assets/{youtube.svg → circled/youtube.svg} +1 -1
- package/dist/components/Atoms/SocialIcons/assets/standard/facebook.svg +3 -0
- package/dist/components/Atoms/SocialIcons/assets/standard/instagram.svg +3 -0
- package/dist/components/Atoms/SocialIcons/assets/standard/tiktok.svg +3 -0
- package/dist/components/Atoms/SocialIcons/assets/standard/x.svg +3 -0
- package/dist/components/Atoms/SocialIcons/assets/standard/youtube.svg +3 -0
- package/dist/components/Atoms/Text/Text.js +28 -28
- package/dist/components/Atoms/Text/Text.md +8 -8
- package/dist/components/Atoms/Text/__snapshots__/Text.test.js.snap +0 -9
- package/dist/components/Atoms/TextArea/TextArea.test.js +0 -1
- package/dist/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +0 -7
- package/dist/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +0 -4
- package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +0 -10
- package/dist/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +0 -2
- package/dist/components/Molecules/Descriptor/Descriptor.test.js +0 -13
- package/dist/components/Molecules/EmailSignUp/EmailSignUp.js +38 -0
- package/dist/components/Molecules/EmailSignUp/EmailSignUp.style.js +113 -0
- package/dist/components/Molecules/InfoBanner/__snapshots__/InfoBanner.test.js.snap +0 -24
- package/dist/components/Molecules/LogoLinked/LogoLinked.js +6 -6
- package/dist/components/Molecules/PartnerLink/PartnerLink.test.js +0 -2
- package/dist/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +0 -8
- package/dist/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +0 -1
- package/dist/components/Molecules/SearchInput/SearchInput.test.js +0 -1
- package/dist/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +0 -18
- package/dist/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +0 -14
- package/dist/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +0 -4
- package/dist/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +0 -1
- package/dist/components/Organisms/CookieBanner/CookieBanner.test.js +0 -2
- package/dist/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +0 -35
- package/dist/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +0 -8
- package/dist/components/Organisms/Footer/Footer.md +12 -11
- package/dist/components/Organisms/Footer/FundraisingRegulatorLogo/FundraisingRegulatorLogo.js +36 -16
- package/dist/components/Organisms/Footer/Nav/Nav.style.js +8 -8
- package/dist/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +188 -241
- package/dist/components/Organisms/FooterNew/FooterNew.js +136 -0
- package/dist/components/Organisms/FooterNew/FooterNew.md +47 -0
- package/dist/components/Organisms/FooterNew/FooterNew.style.js +312 -0
- package/dist/components/Organisms/FooterNew/FooterNew.test.js +20 -0
- package/dist/components/Organisms/FooterNew/Nav/PrimaryNav.js +32 -0
- package/dist/components/Organisms/FooterNew/Nav/SecondaryNav.js +32 -0
- package/dist/components/Organisms/FooterNew/__snapshots__/FooterNew.test.js.snap +1490 -0
- package/dist/components/Organisms/FooterNew/dev-data/data.js +106 -0
- package/dist/components/Organisms/Membership/Membership.test.js +0 -12
- package/dist/components/Organisms/WYMDCarousel/__snapshots__/WYMDCarousel.test.js.snap +0 -3
- package/dist/index.js +20 -0
- package/dist/theme/crTheme/colors.js +12 -7
- package/dist/theme/shared/animations.js +46 -0
- package/package.json +1 -1
- package/src/components/Atoms/Checkbox/Checkbox.test.js +0 -4
- package/src/components/Atoms/ErrorText/__snapshots__/ErrorText.test.js.snap +0 -2
- package/src/components/Atoms/Input/input.test.js +0 -2
- package/src/components/Atoms/RadioButton/RadioButton.test.js +0 -4
- package/src/components/Atoms/Select/__snapshots__/Select.test.js.snap +0 -1
- package/src/components/Atoms/SocialIcons/Icon/Icon.js +47 -11
- package/src/components/Atoms/SocialIcons/SocialIcons.js +99 -25
- package/src/components/Atoms/SocialIcons/Utils/Icons.js +29 -10
- package/src/components/Atoms/SocialIcons/Utils/Links.js +10 -0
- package/src/components/Atoms/SocialIcons/__snapshots__/SocialIcons.test.js.snap +63 -48
- package/{dist/components/Atoms/SocialIcons/assets → src/components/Atoms/SocialIcons/assets/circled}/facebook.svg +1 -1
- package/{dist/components/Atoms/SocialIcons/assets → src/components/Atoms/SocialIcons/assets/circled}/twitter.svg +1 -1
- package/src/components/Atoms/SocialIcons/assets/{youtube.svg → circled/youtube.svg} +1 -1
- package/src/components/Atoms/SocialIcons/assets/standard/facebook.svg +3 -0
- package/src/components/Atoms/SocialIcons/assets/standard/instagram.svg +3 -0
- package/src/components/Atoms/SocialIcons/assets/standard/tiktok.svg +3 -0
- package/src/components/Atoms/SocialIcons/assets/standard/x.svg +3 -0
- package/src/components/Atoms/SocialIcons/assets/standard/youtube.svg +3 -0
- package/src/components/Atoms/Text/Text.js +19 -19
- package/src/components/Atoms/Text/Text.md +8 -8
- package/src/components/Atoms/Text/__snapshots__/Text.test.js.snap +0 -9
- package/src/components/Atoms/TextArea/TextArea.test.js +0 -1
- package/src/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +0 -7
- package/src/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +0 -4
- package/src/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +0 -10
- package/src/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +0 -2
- package/src/components/Molecules/Descriptor/Descriptor.test.js +0 -13
- package/src/components/Molecules/EmailSignUp/EmailSignUp.js +55 -0
- package/src/components/Molecules/EmailSignUp/EmailSignUp.style.js +107 -0
- package/src/components/Molecules/InfoBanner/__snapshots__/InfoBanner.test.js.snap +0 -24
- package/src/components/Molecules/LogoLinked/LogoLinked.js +5 -14
- package/src/components/Molecules/PartnerLink/PartnerLink.test.js +0 -2
- package/src/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +0 -8
- package/src/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +0 -1
- package/src/components/Molecules/SearchInput/SearchInput.test.js +0 -1
- package/src/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +0 -18
- package/src/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +0 -14
- package/src/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +0 -4
- package/src/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +0 -1
- package/src/components/Organisms/CookieBanner/CookieBanner.test.js +0 -2
- package/src/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +0 -35
- package/src/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +0 -8
- package/src/components/Organisms/Footer/Footer.md +12 -11
- package/src/components/Organisms/Footer/FundraisingRegulatorLogo/FundraisingRegulatorLogo.js +14 -3
- package/src/components/Organisms/Footer/Nav/Nav.style.js +8 -8
- package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +188 -241
- package/src/components/Organisms/FooterNew/FooterNew.js +211 -0
- package/src/components/Organisms/FooterNew/FooterNew.md +47 -0
- package/src/components/Organisms/FooterNew/FooterNew.style.js +294 -0
- package/src/components/Organisms/FooterNew/FooterNew.test.js +24 -0
- package/src/components/Organisms/FooterNew/Nav/PrimaryNav.js +54 -0
- package/src/components/Organisms/FooterNew/Nav/SecondaryNav.js +54 -0
- package/src/components/Organisms/FooterNew/__snapshots__/FooterNew.test.js.snap +1490 -0
- package/src/components/Organisms/FooterNew/dev-data/data.js +123 -0
- package/src/components/Organisms/Membership/Membership.test.js +0 -12
- package/src/components/Organisms/WYMDCarousel/__snapshots__/WYMDCarousel.test.js.snap +0 -3
- package/src/index.js +2 -0
- package/src/theme/crTheme/colors.js +13 -7
- package/src/theme/shared/animations.js +60 -0
- /package/dist/components/Atoms/SocialIcons/assets/{X-white-Subtract.svg → circled/X-white-Subtract.svg} +0 -0
- /package/dist/components/Atoms/SocialIcons/assets/{instagram.svg → circled/instagram.svg} +0 -0
- /package/src/components/Atoms/SocialIcons/assets/{X-white-Subtract.svg → circled/X-white-Subtract.svg} +0 -0
- /package/src/components/Atoms/SocialIcons/assets/{instagram.svg → circled/instagram.svg} +0 -0
package/src/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap
CHANGED
|
@@ -140,7 +140,6 @@ exports[`renders correctly with no value and no options 1`] = `
|
|
|
140
140
|
>
|
|
141
141
|
<span
|
|
142
142
|
className="c2 c3"
|
|
143
|
-
color="inherit"
|
|
144
143
|
dangerouslySetInnerHTML={
|
|
145
144
|
Object {
|
|
146
145
|
"__html": "Search for bikes",
|
|
@@ -314,7 +313,6 @@ exports[`renders correctly with value and no options 1`] = `
|
|
|
314
313
|
>
|
|
315
314
|
<span
|
|
316
315
|
className="c2 c3"
|
|
317
|
-
color="inherit"
|
|
318
316
|
dangerouslySetInnerHTML={
|
|
319
317
|
Object {
|
|
320
318
|
"__html": "Search for bikes",
|
|
@@ -527,7 +525,6 @@ exports[`renders correctly with value and options 1`] = `
|
|
|
527
525
|
>
|
|
528
526
|
<span
|
|
529
527
|
className="c2 c3"
|
|
530
|
-
color="inherit"
|
|
531
528
|
dangerouslySetInnerHTML={
|
|
532
529
|
Object {
|
|
533
530
|
"__html": "Search for bikes",
|
|
@@ -577,7 +574,6 @@ exports[`renders correctly with value and options 1`] = `
|
|
|
577
574
|
>
|
|
578
575
|
<span
|
|
579
576
|
className="c2"
|
|
580
|
-
color="inherit"
|
|
581
577
|
>
|
|
582
578
|
Canyon
|
|
583
579
|
</span>
|
|
@@ -593,7 +589,6 @@ exports[`renders correctly with value and options 1`] = `
|
|
|
593
589
|
>
|
|
594
590
|
<span
|
|
595
591
|
className="c2"
|
|
596
|
-
color="inherit"
|
|
597
592
|
>
|
|
598
593
|
Cannondale
|
|
599
594
|
</span>
|
|
@@ -609,7 +604,6 @@ exports[`renders correctly with value and options 1`] = `
|
|
|
609
604
|
>
|
|
610
605
|
<span
|
|
611
606
|
className="c2"
|
|
612
|
-
color="inherit"
|
|
613
607
|
>
|
|
614
608
|
Condor
|
|
615
609
|
</span>
|
|
@@ -625,7 +619,6 @@ exports[`renders correctly with value and options 1`] = `
|
|
|
625
619
|
>
|
|
626
620
|
<span
|
|
627
621
|
className="c2"
|
|
628
|
-
color="inherit"
|
|
629
622
|
>
|
|
630
623
|
Cube
|
|
631
624
|
</span>
|
|
@@ -175,8 +175,6 @@ exports[`renders correctly 1`] = `
|
|
|
175
175
|
>
|
|
176
176
|
<h2
|
|
177
177
|
className="c2"
|
|
178
|
-
color="inherit"
|
|
179
|
-
size="l"
|
|
180
178
|
>
|
|
181
179
|
I am the title
|
|
182
180
|
</h2>
|
|
@@ -203,8 +201,6 @@ exports[`renders correctly 1`] = `
|
|
|
203
201
|
>
|
|
204
202
|
<p
|
|
205
203
|
className="c6"
|
|
206
|
-
color="inherit"
|
|
207
|
-
size="s"
|
|
208
204
|
>
|
|
209
205
|
Name, surname, email and billing address We need these to process your payment, create a receipt and send it to you. Establishment information We use this information to understand which institutions (e.g. schools, companies) raise money for us. Your details will be kept safe and never shared with other organisations; see our Privacy Policy for more information
|
|
210
206
|
</p>
|
|
@@ -294,16 +294,11 @@ it('renders article teaser correctly', () => {
|
|
|
294
294
|
>
|
|
295
295
|
<span
|
|
296
296
|
className="c8 c9"
|
|
297
|
-
color="inherit"
|
|
298
|
-
size="xs"
|
|
299
297
|
>
|
|
300
298
|
01 July 2019
|
|
301
299
|
</span>
|
|
302
300
|
<h3
|
|
303
301
|
className="c10 c11"
|
|
304
|
-
color="inherit"
|
|
305
|
-
height="2rem"
|
|
306
|
-
size="xl"
|
|
307
302
|
>
|
|
308
303
|
News article
|
|
309
304
|
</h3>
|
|
@@ -576,16 +571,11 @@ it('renders press realese correctly', () => {
|
|
|
576
571
|
>
|
|
577
572
|
<span
|
|
578
573
|
className="c8 c9"
|
|
579
|
-
color="inherit"
|
|
580
|
-
size="xs"
|
|
581
574
|
>
|
|
582
575
|
01 July 2019
|
|
583
576
|
</span>
|
|
584
577
|
<h3
|
|
585
578
|
className="c10 c11"
|
|
586
|
-
color="inherit"
|
|
587
|
-
height="2rem"
|
|
588
|
-
size="xl"
|
|
589
579
|
>
|
|
590
580
|
Press Release
|
|
591
581
|
</h3>
|
|
@@ -69,8 +69,6 @@ exports[`renders correctly 1`] = `
|
|
|
69
69
|
>
|
|
70
70
|
<p
|
|
71
71
|
className="c2"
|
|
72
|
-
color="white"
|
|
73
|
-
size="s"
|
|
74
72
|
>
|
|
75
73
|
Mental health issues affect 1 in 4 of us in the UK. Join now and with your help we can provide vital support for people like Jordan. You know what to do.
|
|
76
74
|
</p>
|
|
@@ -249,8 +249,6 @@ it('renders article teaser correctly', () => {
|
|
|
249
249
|
>
|
|
250
250
|
<span
|
|
251
251
|
className="c3 c4"
|
|
252
|
-
color="grey_dark"
|
|
253
|
-
size="s"
|
|
254
252
|
>
|
|
255
253
|
15/06/2020
|
|
256
254
|
</span>
|
|
@@ -276,9 +274,6 @@ it('renders article teaser correctly', () => {
|
|
|
276
274
|
</div>
|
|
277
275
|
<h3
|
|
278
276
|
className="c7 c8"
|
|
279
|
-
color="inherit"
|
|
280
|
-
height="2rem"
|
|
281
|
-
size="xl"
|
|
282
277
|
>
|
|
283
278
|
Title
|
|
284
279
|
</h3>
|
|
@@ -287,29 +282,21 @@ it('renders article teaser correctly', () => {
|
|
|
287
282
|
>
|
|
288
283
|
<span
|
|
289
284
|
className="c10 c11"
|
|
290
|
-
color="grey_dark"
|
|
291
|
-
size="xs"
|
|
292
285
|
>
|
|
293
286
|
tag1
|
|
294
287
|
</span>
|
|
295
288
|
<span
|
|
296
289
|
className="c10 c11"
|
|
297
|
-
color="grey_dark"
|
|
298
|
-
size="xs"
|
|
299
290
|
>
|
|
300
291
|
tag2
|
|
301
292
|
</span>
|
|
302
293
|
<span
|
|
303
294
|
className="c10 c11"
|
|
304
|
-
color="grey_dark"
|
|
305
|
-
size="xs"
|
|
306
295
|
>
|
|
307
296
|
tag3
|
|
308
297
|
</span>
|
|
309
298
|
<span
|
|
310
299
|
className="c10 c11"
|
|
311
|
-
color="grey_dark"
|
|
312
|
-
size="xs"
|
|
313
300
|
>
|
|
314
301
|
tag4
|
|
315
302
|
</span>
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import {
|
|
4
|
+
EmailSignUpWrapper,
|
|
5
|
+
LabelWrapper,
|
|
6
|
+
StyledLabel,
|
|
7
|
+
FormWrapper,
|
|
8
|
+
InputWrapper,
|
|
9
|
+
StyledEmailInput,
|
|
10
|
+
ButtonWrapper,
|
|
11
|
+
StyledEmailSignUpButton
|
|
12
|
+
} from './EmailSignUp.style';
|
|
13
|
+
|
|
14
|
+
const EmailSignUp = ({ formContext, ...rest }) => {
|
|
15
|
+
const { formState: { errors }, register } = formContext;
|
|
16
|
+
const errorMsg = errors && errors.email && errors.email.message;
|
|
17
|
+
|
|
18
|
+
return (
|
|
19
|
+
<EmailSignUpWrapper>
|
|
20
|
+
<LabelWrapper>
|
|
21
|
+
<StyledLabel>
|
|
22
|
+
Subscribe to our newsletter
|
|
23
|
+
</StyledLabel>
|
|
24
|
+
</LabelWrapper>
|
|
25
|
+
<FormWrapper error={!!errorMsg}>
|
|
26
|
+
<InputWrapper>
|
|
27
|
+
<StyledEmailInput
|
|
28
|
+
name="email"
|
|
29
|
+
type="email"
|
|
30
|
+
id="email-signup"
|
|
31
|
+
label="Email address"
|
|
32
|
+
showLabel={false}
|
|
33
|
+
placeholder="Enter your email address"
|
|
34
|
+
errorMsg={errorMsg}
|
|
35
|
+
optional
|
|
36
|
+
{...register('email')}
|
|
37
|
+
{...rest}
|
|
38
|
+
/>
|
|
39
|
+
</InputWrapper>
|
|
40
|
+
<ButtonWrapper>
|
|
41
|
+
<StyledEmailSignUpButton type="submit" color="white">
|
|
42
|
+
Sign up
|
|
43
|
+
</StyledEmailSignUpButton>
|
|
44
|
+
</ButtonWrapper>
|
|
45
|
+
</FormWrapper>
|
|
46
|
+
</EmailSignUpWrapper>
|
|
47
|
+
);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
EmailSignUp.propTypes = {
|
|
51
|
+
/** React Hook Form context object */
|
|
52
|
+
formContext: PropTypes.shape().isRequired
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export default EmailSignUp;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components';
|
|
2
|
+
import Input from '../../Atoms/Input/Input';
|
|
3
|
+
import Button from '../../Atoms/Button/Button';
|
|
4
|
+
import spacing from '../../../theme/shared/spacing';
|
|
5
|
+
import { springScaleAnimation } from '../../../theme/shared/animations';
|
|
6
|
+
import fontHelper from '../../../theme/crTheme/fontHelper';
|
|
7
|
+
|
|
8
|
+
export const EmailSignUpWrapper = styled.div`
|
|
9
|
+
margin-bottom: ${spacing('m')};
|
|
10
|
+
@media ${({ theme }) => theme.breakpoints2026('M')} {
|
|
11
|
+
margin-bottom: ${spacing('m')};
|
|
12
|
+
}
|
|
13
|
+
color: ${({ theme }) => theme.color('white')};
|
|
14
|
+
`;
|
|
15
|
+
|
|
16
|
+
export const LabelWrapper = styled.div`
|
|
17
|
+
margin-bottom: ${spacing('md')};
|
|
18
|
+
`;
|
|
19
|
+
|
|
20
|
+
export const StyledLabel = styled.span`
|
|
21
|
+
${({ theme }) => css`
|
|
22
|
+
${fontHelper(theme, 'p')}
|
|
23
|
+
font-weight: bold;
|
|
24
|
+
`}
|
|
25
|
+
`;
|
|
26
|
+
|
|
27
|
+
export const FormWrapper = styled.div`
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
gap: ${spacing('md')};
|
|
32
|
+
overflow: visible;
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
@media ${({ theme }) => theme.breakpoints2026('M')} {
|
|
36
|
+
flex-direction: row;
|
|
37
|
+
align-items: center;
|
|
38
|
+
${({ error }) => error && `
|
|
39
|
+
align-items: flex-start;
|
|
40
|
+
`}
|
|
41
|
+
}
|
|
42
|
+
`;
|
|
43
|
+
|
|
44
|
+
export const InputWrapper = styled.div`
|
|
45
|
+
flex: 1;
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
width: 100%;
|
|
49
|
+
overflow: visible;
|
|
50
|
+
@media ${({ theme }) => theme.breakpoints2026('M')} {
|
|
51
|
+
width: auto;
|
|
52
|
+
min-width: 360px;
|
|
53
|
+
}
|
|
54
|
+
`;
|
|
55
|
+
|
|
56
|
+
export const StyledEmailInput = styled(Input)`
|
|
57
|
+
overflow: visible;
|
|
58
|
+
|
|
59
|
+
@media ${({ theme }) => theme.breakpoints2026('M')} {
|
|
60
|
+
${springScaleAnimation(true, 1.04, 1)}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
input {
|
|
64
|
+
${({ theme }) => css`
|
|
65
|
+
${fontHelper(theme, 'formFieldInput')}
|
|
66
|
+
background-color: ${theme.color('grey_5')};
|
|
67
|
+
border-color: transparent;
|
|
68
|
+
transition: background-color 0.2s ease;
|
|
69
|
+
border: 1px solid ${theme.color('white')};
|
|
70
|
+
color: ${theme.color('white')};
|
|
71
|
+
&::placeholder {
|
|
72
|
+
color: ${theme.color('grey_2')};
|
|
73
|
+
}
|
|
74
|
+
&:hover,
|
|
75
|
+
&:focus {
|
|
76
|
+
background-color: ${theme.color('grey_4_hover')};
|
|
77
|
+
}
|
|
78
|
+
`}
|
|
79
|
+
}
|
|
80
|
+
`;
|
|
81
|
+
|
|
82
|
+
export const ButtonWrapper = styled.div`
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
width: 100%;
|
|
87
|
+
@media ${({ theme }) => theme.breakpoints2026('M')} {
|
|
88
|
+
width: auto;
|
|
89
|
+
}
|
|
90
|
+
`;
|
|
91
|
+
|
|
92
|
+
export const StyledEmailSignUpButton = styled(Button)`
|
|
93
|
+
margin: 0;
|
|
94
|
+
font-family: ${({ theme }) => theme.fontFamilies('Montserrat')};
|
|
95
|
+
border-radius: 0.5rem;
|
|
96
|
+
|
|
97
|
+
@media ${({ theme }) => theme.breakpoints2026('M')} {
|
|
98
|
+
${springScaleAnimation(true, 1.02, 1)}
|
|
99
|
+
margin: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&:hover,
|
|
103
|
+
&:focus {
|
|
104
|
+
background-color: ${({ theme }) => theme.color('white')};
|
|
105
|
+
color: ${({ theme }) => theme.color('black')};
|
|
106
|
+
}
|
|
107
|
+
`;
|
|
@@ -140,15 +140,11 @@ exports[`renders correctly 1`] = `
|
|
|
140
140
|
>
|
|
141
141
|
<h3
|
|
142
142
|
className="c2"
|
|
143
|
-
color="inherit"
|
|
144
|
-
size="md"
|
|
145
143
|
>
|
|
146
144
|
Project Name
|
|
147
145
|
</h3>
|
|
148
146
|
<p
|
|
149
147
|
className="c3"
|
|
150
|
-
color="inherit"
|
|
151
|
-
size="s"
|
|
152
148
|
>
|
|
153
149
|
Hello There
|
|
154
150
|
</p>
|
|
@@ -158,15 +154,11 @@ exports[`renders correctly 1`] = `
|
|
|
158
154
|
>
|
|
159
155
|
<h3
|
|
160
156
|
className="c2"
|
|
161
|
-
color="inherit"
|
|
162
|
-
size="md"
|
|
163
157
|
>
|
|
164
158
|
End Date
|
|
165
159
|
</h3>
|
|
166
160
|
<p
|
|
167
161
|
className="c3"
|
|
168
|
-
color="inherit"
|
|
169
|
-
size="s"
|
|
170
162
|
>
|
|
171
163
|
1st June 2020
|
|
172
164
|
</p>
|
|
@@ -176,15 +168,11 @@ exports[`renders correctly 1`] = `
|
|
|
176
168
|
>
|
|
177
169
|
<h3
|
|
178
170
|
className="c2"
|
|
179
|
-
color="inherit"
|
|
180
|
-
size="md"
|
|
181
171
|
>
|
|
182
172
|
Funding theme
|
|
183
173
|
</h3>
|
|
184
174
|
<p
|
|
185
175
|
className="c3"
|
|
186
|
-
color="inherit"
|
|
187
|
-
size="s"
|
|
188
176
|
>
|
|
189
177
|
<a
|
|
190
178
|
className="c4"
|
|
@@ -202,15 +190,11 @@ exports[`renders correctly 1`] = `
|
|
|
202
190
|
>
|
|
203
191
|
<h3
|
|
204
192
|
className="c2"
|
|
205
|
-
color="inherit"
|
|
206
|
-
size="md"
|
|
207
193
|
>
|
|
208
194
|
Amount Awarded
|
|
209
195
|
</h3>
|
|
210
196
|
<p
|
|
211
197
|
className="c3"
|
|
212
|
-
color="inherit"
|
|
213
|
-
size="s"
|
|
214
198
|
>
|
|
215
199
|
£2,000,000
|
|
216
200
|
</p>
|
|
@@ -220,15 +204,11 @@ exports[`renders correctly 1`] = `
|
|
|
220
204
|
>
|
|
221
205
|
<h3
|
|
222
206
|
className="c2"
|
|
223
|
-
color="inherit"
|
|
224
|
-
size="md"
|
|
225
207
|
>
|
|
226
208
|
Start Date
|
|
227
209
|
</h3>
|
|
228
210
|
<p
|
|
229
211
|
className="c3"
|
|
230
|
-
color="inherit"
|
|
231
|
-
size="s"
|
|
232
212
|
>
|
|
233
213
|
1st June 2010
|
|
234
214
|
</p>
|
|
@@ -238,15 +218,11 @@ exports[`renders correctly 1`] = `
|
|
|
238
218
|
>
|
|
239
219
|
<h3
|
|
240
220
|
className="c2"
|
|
241
|
-
color="inherit"
|
|
242
|
-
size="md"
|
|
243
221
|
>
|
|
244
222
|
Beneficiary Country
|
|
245
223
|
</h3>
|
|
246
224
|
<p
|
|
247
225
|
className="c3"
|
|
248
|
-
color="inherit"
|
|
249
|
-
size="s"
|
|
250
226
|
>
|
|
251
227
|
Uk
|
|
252
228
|
</p>
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import styled
|
|
3
|
+
import styled from 'styled-components';
|
|
4
4
|
|
|
5
5
|
import Logo from '../../Atoms/Logo/Logo';
|
|
6
|
+
import { logoRotateAnimation } from '../../../theme/shared/animations';
|
|
6
7
|
|
|
7
8
|
const TitleLabel = styled.span`
|
|
8
9
|
line-height: 0;
|
|
@@ -11,22 +12,12 @@ const TitleLabel = styled.span`
|
|
|
11
12
|
`;
|
|
12
13
|
|
|
13
14
|
const LogoLink = styled.a`
|
|
14
|
-
${({ animateRotate }) => animateRotate
|
|
15
|
-
img {
|
|
16
|
-
transition: transform 0.35s cubic-bezier(0.41, 1.64, 0.41, 0.8);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&:hover,
|
|
20
|
-
&:focus {
|
|
21
|
-
img {
|
|
22
|
-
transform: rotate(-14deg);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
`}
|
|
15
|
+
${({ animateRotate }) => logoRotateAnimation(animateRotate)}
|
|
26
16
|
`;
|
|
27
17
|
|
|
28
18
|
const LogoLinked = ({
|
|
29
|
-
|
|
19
|
+
sizeSm, sizeMd,
|
|
20
|
+
campaign = 'Comic Relief', title = 'Go to Comic Relief homepage', url = '/', animateRotate = false
|
|
30
21
|
}) => {
|
|
31
22
|
if (campaign === 'Sport Relief Gameon') {
|
|
32
23
|
return (
|
|
@@ -301,15 +301,11 @@ exports[`renders Promo correctly 1`] = `
|
|
|
301
301
|
>
|
|
302
302
|
<h1
|
|
303
303
|
className="c7"
|
|
304
|
-
color="white"
|
|
305
|
-
size="super"
|
|
306
304
|
>
|
|
307
305
|
Curabitur pretium tincidunt lacus
|
|
308
306
|
</h1>
|
|
309
307
|
<p
|
|
310
308
|
className="c8"
|
|
311
|
-
color="white"
|
|
312
|
-
size="s"
|
|
313
309
|
>
|
|
314
310
|
Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo, est eros bibendum elit, nec luctus magna sollicitudin.
|
|
315
311
|
</p>
|
|
@@ -642,15 +638,11 @@ exports[`renders Promo correctly end position 1`] = `
|
|
|
642
638
|
>
|
|
643
639
|
<h1
|
|
644
640
|
className="c7"
|
|
645
|
-
color="white"
|
|
646
|
-
size="super"
|
|
647
641
|
>
|
|
648
642
|
Curabitur pretium tincidunt lacus
|
|
649
643
|
</h1>
|
|
650
644
|
<p
|
|
651
645
|
className="c8"
|
|
652
|
-
color="white"
|
|
653
|
-
size="s"
|
|
654
646
|
>
|
|
655
647
|
Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo, est eros bibendum elit, nec luctus magna sollicitudin.
|
|
656
648
|
</p>
|
|
@@ -206,15 +206,11 @@ exports[`renders correctly in minimalist form 1`] = `
|
|
|
206
206
|
>
|
|
207
207
|
<span
|
|
208
208
|
className="c7"
|
|
209
|
-
color="inherit"
|
|
210
|
-
size="xs"
|
|
211
209
|
>
|
|
212
210
|
|
|
213
211
|
</span>
|
|
214
212
|
<h3
|
|
215
213
|
className="c8 c9"
|
|
216
|
-
color="inherit"
|
|
217
|
-
size="xl"
|
|
218
214
|
>
|
|
219
215
|
News article
|
|
220
216
|
</h3>
|
|
@@ -466,22 +462,16 @@ exports[`renders correctly with copy 1`] = `
|
|
|
466
462
|
>
|
|
467
463
|
<span
|
|
468
464
|
className="c7"
|
|
469
|
-
color="inherit"
|
|
470
|
-
size="xs"
|
|
471
465
|
>
|
|
472
466
|
|
|
473
467
|
</span>
|
|
474
468
|
<h3
|
|
475
469
|
className="c8 c9"
|
|
476
|
-
color="inherit"
|
|
477
|
-
size="xl"
|
|
478
470
|
>
|
|
479
471
|
News article
|
|
480
472
|
</h3>
|
|
481
473
|
<p
|
|
482
474
|
className="c10"
|
|
483
|
-
color="inherit"
|
|
484
|
-
size="m"
|
|
485
475
|
>
|
|
486
476
|
News article copy
|
|
487
477
|
</p>
|
|
@@ -696,15 +686,11 @@ exports[`renders correctly with date 1`] = `
|
|
|
696
686
|
>
|
|
697
687
|
<span
|
|
698
688
|
className="c7"
|
|
699
|
-
color="inherit"
|
|
700
|
-
size="xs"
|
|
701
689
|
>
|
|
702
690
|
01 July 2019
|
|
703
691
|
</span>
|
|
704
692
|
<h3
|
|
705
693
|
className="c8 c9"
|
|
706
|
-
color="inherit"
|
|
707
|
-
size="xl"
|
|
708
694
|
>
|
|
709
695
|
News article
|
|
710
696
|
</h3>
|
|
@@ -920,15 +906,11 @@ exports[`renders correctly with date and type 1`] = `
|
|
|
920
906
|
>
|
|
921
907
|
<span
|
|
922
908
|
className="c7"
|
|
923
|
-
color="inherit"
|
|
924
|
-
size="xs"
|
|
925
909
|
>
|
|
926
910
|
article | 01 July 2019
|
|
927
911
|
</span>
|
|
928
912
|
<h3
|
|
929
913
|
className="c8 c9"
|
|
930
|
-
color="inherit"
|
|
931
|
-
size="xl"
|
|
932
914
|
>
|
|
933
915
|
News article
|
|
934
916
|
</h3>
|
|
@@ -190,8 +190,6 @@ exports[`renders Single Message with 100% vertical height image correctly 1`] =
|
|
|
190
190
|
>
|
|
191
191
|
<p
|
|
192
192
|
className="c6"
|
|
193
|
-
color="white"
|
|
194
|
-
size="xxl"
|
|
195
193
|
>
|
|
196
194
|
“The creativity that goes into helping people have a better life is extraordinary.”
|
|
197
195
|
</p>
|
|
@@ -469,15 +467,11 @@ exports[`renders Single Message with Image correctly 1`] = `
|
|
|
469
467
|
>
|
|
470
468
|
<h1
|
|
471
469
|
className="c6"
|
|
472
|
-
color="white"
|
|
473
|
-
size="xxl"
|
|
474
470
|
>
|
|
475
471
|
title
|
|
476
472
|
</h1>
|
|
477
473
|
<p
|
|
478
474
|
className="c7"
|
|
479
|
-
color="white"
|
|
480
|
-
size="s"
|
|
481
475
|
>
|
|
482
476
|
description
|
|
483
477
|
</p>
|
|
@@ -733,8 +727,6 @@ exports[`renders Single Message with double image correctly 1`] = `
|
|
|
733
727
|
>
|
|
734
728
|
<p
|
|
735
729
|
className="c6"
|
|
736
|
-
color="black"
|
|
737
|
-
size="xxl"
|
|
738
730
|
>
|
|
739
731
|
“The creativity that goes into helping people have a better life is extraordinary.”
|
|
740
732
|
</p>
|
|
@@ -1035,15 +1027,11 @@ exports[`renders Single Message with full width correctly 1`] = `
|
|
|
1035
1027
|
>
|
|
1036
1028
|
<h1
|
|
1037
1029
|
className="c6"
|
|
1038
|
-
color="white"
|
|
1039
|
-
size="xxl"
|
|
1040
1030
|
>
|
|
1041
1031
|
title
|
|
1042
1032
|
</h1>
|
|
1043
1033
|
<p
|
|
1044
1034
|
className="c7"
|
|
1045
|
-
color="white"
|
|
1046
|
-
size="s"
|
|
1047
1035
|
>
|
|
1048
1036
|
description
|
|
1049
1037
|
</p>
|
|
@@ -1343,8 +1331,6 @@ exports[`renders Single Message with no Image correctly 1`] = `
|
|
|
1343
1331
|
>
|
|
1344
1332
|
<p
|
|
1345
1333
|
className="c2"
|
|
1346
|
-
color="white"
|
|
1347
|
-
size="xxl"
|
|
1348
1334
|
>
|
|
1349
1335
|
“The creativity that goes into helping people have a better life is extraordinary.”
|
|
1350
1336
|
</p>
|
|
@@ -347,15 +347,11 @@ exports[`renders correctly 1`] = `
|
|
|
347
347
|
>
|
|
348
348
|
<span
|
|
349
349
|
className="c6 c7"
|
|
350
|
-
color="blue_dark"
|
|
351
|
-
size="s"
|
|
352
350
|
>
|
|
353
351
|
Subtitle
|
|
354
352
|
</span>
|
|
355
353
|
<p
|
|
356
354
|
className="c8"
|
|
357
|
-
color="inherit"
|
|
358
|
-
size="s"
|
|
359
355
|
>
|
|
360
356
|
Whatever you’ve got planned, the Sport Relief shop has everything you need to get you looking your best while you’re raising some cash. Also available in Sainsbury’s stores and online and in selected Argos stores.
|
|
361
357
|
</p>
|
|
@@ -178,7 +178,6 @@ it('renders correctly', () => {
|
|
|
178
178
|
>
|
|
179
179
|
<p
|
|
180
180
|
className="c1 c2"
|
|
181
|
-
color="white"
|
|
182
181
|
>
|
|
183
182
|
Hello! Comic Relief uses cookies to help make this website better and improve our services. You can learn more about
|
|
184
183
|
<a
|
|
@@ -194,7 +193,6 @@ it('renders correctly', () => {
|
|
|
194
193
|
</p>
|
|
195
194
|
<p
|
|
196
195
|
className="c1 c2"
|
|
197
|
-
color="white"
|
|
198
196
|
>
|
|
199
197
|
<a
|
|
200
198
|
className="c5 c6"
|