@comicrelief/component-library 8.74.1 → 8.75.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/README.md +12 -0
- package/dist/index.cjs.js +578 -572
- package/dist/index.es.js +5423 -5367
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Atoms/AmbientVideo/AmbientVideo.js +4 -3
- package/src/components/Atoms/Button/Button.js +1 -1
- package/src/components/Atoms/Button/Button.test.js +1 -0
- package/src/components/Atoms/ButtonWithStates/ButtonWithStates.js +2 -2
- package/src/components/Atoms/Confetti/Confetti.js +1 -1
- package/src/components/Atoms/Icons/IconsExample.jsx +2 -1
- package/src/components/Atoms/Icons/Post.js +37 -0
- package/src/components/Atoms/Icons/index.js +1 -0
- package/src/components/Atoms/Icons/post.svg +3 -0
- package/src/components/Atoms/Pagination/Pagination.js +1 -0
- package/src/components/Atoms/Pagination/__snapshots__/Pagination.test.js.snap +110 -0
- package/src/components/Atoms/Picture/Picture.js +4 -0
- package/src/components/Atoms/Picture/Picture.test.js +4 -0
- package/src/components/Atoms/SocialIcons/SocialIcons.js +2 -2
- package/src/components/Atoms/SocialIcons/__snapshots__/SocialIcons.test.js.snap +15 -0
- package/src/components/Atoms/TextInputWithDropdown/TextInputWithDropdown.js +6 -1
- package/src/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +12 -0
- package/src/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +4 -0
- package/src/components/Molecules/Box/__snapshots__/Box.test.js.snap +2 -0
- package/src/components/Molecules/CTA/CTAMultiCard/CTAMultiCard.js +4 -2
- package/src/components/Molecules/CTA/CTAMultiCard/__snapshots__/CTAMultiCard.test.js.snap +40 -0
- package/src/components/Molecules/CTA/CTASingleCard/CTASingleCard.js +2 -1
- package/src/components/Molecules/CTA/CTASingleCard/__snapshots__/CTASingleCard.test.js.snap +6 -0
- package/src/components/Molecules/Card/Card.js +3 -1
- package/src/components/Molecules/Card/__snapshots__/Card.test.js.snap +8 -0
- package/src/components/Molecules/CardDs/__snapshots__/CardDs.test.js.snap +4 -0
- package/src/components/Molecules/Countdown/Countdown.js +5 -5
- package/src/components/Molecules/Descriptor/Descriptor.test.js +221 -221
- package/src/components/Molecules/DoubleCopy/DoubleCopy.js +3 -3
- package/src/components/Molecules/DoubleCopy/DoubleCopy.test.js +3 -0
- package/src/components/Molecules/EmailSignUp/EmailSignUp.js +8 -7
- package/src/components/Molecules/HeroBanner/__snapshots__/HeroBanner.test.js.snap +8 -0
- package/src/components/Molecules/PartnerLink/PartnerLink.test.js +2 -0
- package/src/components/Molecules/PictureOrVideo/__snapshots__/PictureOrVideo.test.js.snap +10 -0
- package/src/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +4 -0
- package/src/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +2 -0
- package/src/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +8 -0
- package/src/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +12 -0
- package/src/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +2 -0
- package/src/components/Molecules/StatsSlice/StatsSlice.js +2 -1
- package/src/components/Molecules/StatsSlice/_StatNode.js +7 -6
- package/src/components/Molecules/StatsSlice/__snapshots__/StatsSlice.test.js.snap +28 -0
- package/src/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +2 -0
- package/src/components/Organisms/DynamicGallery/DynamicGallery.js +4 -3
- package/src/components/Organisms/DynamicGallery/_DynamicGalleryColumn.js +4 -2
- package/src/components/Organisms/DynamicGallery/_Lightbox.js +11 -8
- package/src/components/Organisms/DynamicGallery/__snapshots__/DynamicGallery.test.js.snap +56 -10
- package/src/components/Organisms/EmailBanner/__snapshots__/EmailBanner.test.js.snap +8 -0
- package/src/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +2 -0
- package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +5 -0
- package/src/components/Organisms/FooterNew/__snapshots__/FooterNew.test.js.snap +62 -22
- package/src/components/Organisms/Membership/Membership.test.js +2 -0
- package/src/docs/InstallationDoc.jsx +3 -0
- package/src/index.js +2 -0
- package/src/theme/shared/global.css +0 -1
|
@@ -371,9 +371,11 @@ exports[`renders correctly with data prop 1`] = `
|
|
|
371
371
|
|
|
372
372
|
<div
|
|
373
373
|
className="c0"
|
|
374
|
+
data-testid="CTASingleCardWrapper"
|
|
374
375
|
>
|
|
375
376
|
<div
|
|
376
377
|
className="c1"
|
|
378
|
+
data-testid="CTASingleCardInner"
|
|
377
379
|
>
|
|
378
380
|
<div
|
|
379
381
|
className="c2"
|
|
@@ -390,6 +392,7 @@ exports[`renders correctly with data prop 1`] = `
|
|
|
390
392
|
>
|
|
391
393
|
<div
|
|
392
394
|
className="c7 lazyload"
|
|
395
|
+
data-testid="PictureWrapper"
|
|
393
396
|
>
|
|
394
397
|
<img
|
|
395
398
|
alt="Example image"
|
|
@@ -398,6 +401,7 @@ exports[`renders correctly with data prop 1`] = `
|
|
|
398
401
|
data-sizes="auto"
|
|
399
402
|
data-src="https://images.ctfassets.net/zsfivwzfgl3t/4VsIykPLHDNkNCT9djGrX/c8f1e4cb5c6bda5a7b77f18501e9304d/challenge-1.jpg?w=678&h=501&fl=progressive&q=80&fm=jpg"
|
|
400
403
|
data-srcset="https://images.ctfassets.net/zsfivwzfgl3t/4VsIykPLHDNkNCT9djGrX/c8f1e4cb5c6bda5a7b77f18501e9304d/challenge-1.jpg?w=678&h=501&q=80&fm=webp 678w"
|
|
404
|
+
data-testid="Picture"
|
|
401
405
|
src="https://images.ctfassets.net/zsfivwzfgl3t/4VsIykPLHDNkNCT9djGrX/c8f1e4cb5c6bda5a7b77f18501e9304d/challenge-1.jpg?w=678&h=501&fl=progressive&q=80&fm=jpg"
|
|
402
406
|
srcSet="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
|
|
403
407
|
/>
|
|
@@ -775,9 +779,11 @@ exports[`renders correctly without image 1`] = `
|
|
|
775
779
|
|
|
776
780
|
<div
|
|
777
781
|
className="c0"
|
|
782
|
+
data-testid="CTASingleCardWrapper"
|
|
778
783
|
>
|
|
779
784
|
<div
|
|
780
785
|
className="c1"
|
|
786
|
+
data-testid="CTASingleCardInner"
|
|
781
787
|
>
|
|
782
788
|
<div
|
|
783
789
|
className="c2"
|
|
@@ -23,9 +23,10 @@ const Card = ({
|
|
|
23
23
|
$smallBreakpointRowLayout={smallBreakpointRowLayout}
|
|
24
24
|
$mediumBreakpointRowLayout={mediumBreakpointRowLayout}
|
|
25
25
|
{...rest}
|
|
26
|
+
data-testid="CardContainer"
|
|
26
27
|
>
|
|
27
28
|
{imageLow ? (
|
|
28
|
-
<Wrapper>
|
|
29
|
+
<Wrapper data-testid="CardWrapper">
|
|
29
30
|
<Picture
|
|
30
31
|
alt={imageAltText}
|
|
31
32
|
imageLow={imageLow}
|
|
@@ -44,6 +45,7 @@ const Card = ({
|
|
|
44
45
|
<Copy
|
|
45
46
|
$smallBreakpointRowLayout={smallBreakpointRowLayout}
|
|
46
47
|
$mediumBreakpointRowLayout={mediumBreakpointRowLayout}
|
|
48
|
+
data-testid="CardCopy"
|
|
47
49
|
>
|
|
48
50
|
{children}
|
|
49
51
|
</Copy>
|
|
@@ -52,9 +52,11 @@ exports[`renders correctly 1`] = `
|
|
|
52
52
|
|
|
53
53
|
<div
|
|
54
54
|
className="c0"
|
|
55
|
+
data-testid="CardContainer"
|
|
55
56
|
>
|
|
56
57
|
<div
|
|
57
58
|
className="c1"
|
|
59
|
+
data-testid="CardCopy"
|
|
58
60
|
>
|
|
59
61
|
<h2>
|
|
60
62
|
Title
|
|
@@ -118,11 +120,13 @@ exports[`renders correctly 2`] = `
|
|
|
118
120
|
|
|
119
121
|
<div
|
|
120
122
|
className="c0"
|
|
123
|
+
data-testid="CardContainer"
|
|
121
124
|
mediumBreakpointLayout="Row"
|
|
122
125
|
smallBreakpointLayout="Row"
|
|
123
126
|
>
|
|
124
127
|
<div
|
|
125
128
|
className="c1"
|
|
129
|
+
data-testid="CardCopy"
|
|
126
130
|
>
|
|
127
131
|
<h2>
|
|
128
132
|
Title
|
|
@@ -188,12 +192,15 @@ exports[`renders correctly with no body 1`] = `
|
|
|
188
192
|
|
|
189
193
|
<div
|
|
190
194
|
className="c0"
|
|
195
|
+
data-testid="CardContainer"
|
|
191
196
|
>
|
|
192
197
|
<div
|
|
193
198
|
className="c1"
|
|
199
|
+
data-testid="CardWrapper"
|
|
194
200
|
>
|
|
195
201
|
<div
|
|
196
202
|
className="c2 lazyload"
|
|
203
|
+
data-testid="PictureWrapper"
|
|
197
204
|
>
|
|
198
205
|
<img
|
|
199
206
|
alt=""
|
|
@@ -202,6 +209,7 @@ exports[`renders correctly with no body 1`] = `
|
|
|
202
209
|
data-sizes="auto"
|
|
203
210
|
data-src={null}
|
|
204
211
|
data-srcset="http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg"
|
|
212
|
+
data-testid="Picture"
|
|
205
213
|
src={null}
|
|
206
214
|
srcSet="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
|
|
207
215
|
/>
|
|
@@ -193,6 +193,7 @@ exports[`renders Column view correctly 1`] = `
|
|
|
193
193
|
>
|
|
194
194
|
<div
|
|
195
195
|
className="c3 lazyload"
|
|
196
|
+
data-testid="PictureWrapper"
|
|
196
197
|
>
|
|
197
198
|
<img
|
|
198
199
|
alt="Happy man going to work"
|
|
@@ -201,6 +202,7 @@ exports[`renders Column view correctly 1`] = `
|
|
|
201
202
|
data-sizes="auto"
|
|
202
203
|
data-src={null}
|
|
203
204
|
data-srcset="//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=200&h=150&q=50 200w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=400&h=300&q=50 400w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=800&h=600&q=50 800w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=1200&h=900&q=50 1200w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=1440&h=1080&q=50 1440w"
|
|
205
|
+
data-testid="Picture"
|
|
204
206
|
src={null}
|
|
205
207
|
srcSet="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
|
|
206
208
|
/>
|
|
@@ -472,6 +474,7 @@ exports[`renders correctly 1`] = `
|
|
|
472
474
|
>
|
|
473
475
|
<div
|
|
474
476
|
className="c3 lazyload"
|
|
477
|
+
data-testid="PictureWrapper"
|
|
475
478
|
>
|
|
476
479
|
<img
|
|
477
480
|
alt=""
|
|
@@ -480,6 +483,7 @@ exports[`renders correctly 1`] = `
|
|
|
480
483
|
data-sizes="auto"
|
|
481
484
|
data-src={null}
|
|
482
485
|
data-srcset="//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=200&h=150&q=50 200w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=400&h=300&q=50 400w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=800&h=600&q=50 800w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=1200&h=900&q=50 1200w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=1440&h=1080&q=50 1440w"
|
|
486
|
+
data-testid="Picture"
|
|
483
487
|
src={null}
|
|
484
488
|
srcSet="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
|
|
485
489
|
/>
|
|
@@ -53,8 +53,8 @@ const Countdown = ({
|
|
|
53
53
|
return (
|
|
54
54
|
<>
|
|
55
55
|
{introMessage}
|
|
56
|
-
<Wrapper>
|
|
57
|
-
<Digits>
|
|
56
|
+
<Wrapper data-testid="CountdownWrapper">
|
|
57
|
+
<Digits data-testid="CountdownDigitsDays">
|
|
58
58
|
<Text color={color} family="Anton" size="xl">
|
|
59
59
|
{countdownTime.days}
|
|
60
60
|
</Text>
|
|
@@ -65,7 +65,7 @@ const Countdown = ({
|
|
|
65
65
|
<Text color={color} family="Anton" size="xl">
|
|
66
66
|
:
|
|
67
67
|
</Text>
|
|
68
|
-
<Digits>
|
|
68
|
+
<Digits data-testid="CountdownDigitsHours">
|
|
69
69
|
<Text color={color} family="Anton" size="xl">
|
|
70
70
|
{countdownTime.hours}
|
|
71
71
|
</Text>
|
|
@@ -76,7 +76,7 @@ const Countdown = ({
|
|
|
76
76
|
<Text color={color} family="Anton" size="xl">
|
|
77
77
|
:
|
|
78
78
|
</Text>
|
|
79
|
-
<Digits>
|
|
79
|
+
<Digits data-testid="CountdownDigitsMinutes">
|
|
80
80
|
<Text color={color} family="Anton" size="xl">
|
|
81
81
|
{countdownTime.minutes}
|
|
82
82
|
</Text>
|
|
@@ -84,7 +84,7 @@ const Countdown = ({
|
|
|
84
84
|
minutes
|
|
85
85
|
</Text>
|
|
86
86
|
</Digits>
|
|
87
|
-
<Digits>
|
|
87
|
+
<Digits data-testid="CountdownDigitsSeconds">
|
|
88
88
|
<Text color={color} family="Anton" size="xl">
|
|
89
89
|
{countdownTime.seconds}
|
|
90
90
|
</Text>
|
|
@@ -24,256 +24,256 @@ it('renders article teaser correctly', () => {
|
|
|
24
24
|
).toJSON();
|
|
25
25
|
|
|
26
26
|
expect(tree).toMatchInlineSnapshot(`
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
.c3 {
|
|
28
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
29
|
+
font-weight: 400;
|
|
30
|
+
text-transform: inherit;
|
|
31
|
+
letter-spacing: 0;
|
|
32
|
+
font-size: 1rem;
|
|
33
|
+
line-height: 1.25rem;
|
|
34
|
+
}
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
.c3 {
|
|
37
|
+
font-size: 1rem;
|
|
38
|
+
line-height: normal;
|
|
39
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
40
|
+
font-weight: bold;
|
|
41
|
+
color: #222222;
|
|
42
|
+
}
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
.c3 span {
|
|
45
|
+
font-size: inherit;
|
|
46
|
+
line-height: inherit;
|
|
47
|
+
}
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
.c7 {
|
|
50
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
51
|
+
font-weight: 700;
|
|
52
|
+
text-transform: inherit;
|
|
53
|
+
letter-spacing: 0;
|
|
54
|
+
font-size: 1.25rem;
|
|
55
|
+
line-height: 1.5rem;
|
|
56
|
+
}
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
.c7 span {
|
|
59
|
+
font-size: inherit;
|
|
60
|
+
line-height: inherit;
|
|
61
|
+
}
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
63
|
+
.c10 {
|
|
64
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
65
|
+
font-weight: 400;
|
|
66
|
+
text-transform: inherit;
|
|
67
|
+
letter-spacing: 0;
|
|
68
|
+
font-size: 1rem;
|
|
69
|
+
line-height: 1.25rem;
|
|
70
|
+
}
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
72
|
+
.c10 {
|
|
73
|
+
font-size: 0.75rem;
|
|
74
|
+
line-height: normal;
|
|
75
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
76
|
+
font-weight: normal;
|
|
77
|
+
color: #222222;
|
|
78
|
+
}
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
.c10 span {
|
|
81
|
+
font-size: inherit;
|
|
82
|
+
line-height: inherit;
|
|
83
|
+
}
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
85
|
+
.c0 {
|
|
86
|
+
position: relative;
|
|
87
|
+
width: 100%;
|
|
88
|
+
height: 100%;
|
|
89
|
+
display: flex;
|
|
90
|
+
background-color: #FFFFFF;
|
|
91
|
+
border-radius: 1rem;
|
|
92
|
+
box-shadow: rgba(0,0,0,0.15) 0px 0px 1rem;
|
|
93
|
+
}
|
|
94
94
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
95
|
+
.c1 {
|
|
96
|
+
padding: 2rem;
|
|
97
|
+
height: 100%;
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-direction: column;
|
|
100
|
+
width: 100%;
|
|
101
|
+
}
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
.c2 {
|
|
104
|
+
display: block;
|
|
105
|
+
}
|
|
106
106
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
107
|
+
.c4 {
|
|
108
|
+
display: inline-block;
|
|
109
|
+
margin-bottom: 1rem;
|
|
110
|
+
}
|
|
111
111
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
112
|
+
.c5 {
|
|
113
|
+
display: flex;
|
|
114
|
+
position: absolute;
|
|
115
|
+
top: 0;
|
|
116
|
+
right: 0;
|
|
117
|
+
margin-right: 2rem;
|
|
118
|
+
margin-top: 1.5rem;
|
|
119
|
+
}
|
|
120
120
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
121
|
+
.c5 img:not(:last-child) {
|
|
122
|
+
margin-right: 8px;
|
|
123
|
+
}
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
125
|
+
.c6 {
|
|
126
|
+
object-fit: cover;
|
|
127
|
+
width: 24px;
|
|
128
|
+
height: 24px;
|
|
129
|
+
}
|
|
130
130
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
.c8 {
|
|
132
|
+
margin: 0 0 1.5rem;
|
|
133
|
+
}
|
|
134
134
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
135
|
+
.c9 {
|
|
136
|
+
margin: 0 0 1rem 0;
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-wrap: wrap;
|
|
139
|
+
}
|
|
140
140
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
.c9 span:not(:first-child) {
|
|
142
|
+
margin-left: 1rem;
|
|
143
|
+
}
|
|
144
144
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
145
|
+
.c9 span:not(:first-child)::before {
|
|
146
|
+
content: '';
|
|
147
|
+
position: absolute;
|
|
148
|
+
left: -9px;
|
|
149
|
+
bottom: 5px;
|
|
150
|
+
width: 3px;
|
|
151
|
+
height: 3px;
|
|
152
|
+
background-color: currentColor;
|
|
153
|
+
border-radius: 50%;
|
|
154
|
+
}
|
|
155
155
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
.c11 {
|
|
157
|
+
position: relative;
|
|
158
|
+
}
|
|
159
159
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
.c12 {
|
|
161
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
162
|
+
}
|
|
163
163
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
164
|
+
@media (min-width: 740px) {
|
|
165
|
+
.c3 {
|
|
166
|
+
font-size: 1rem;
|
|
167
|
+
line-height: 1.25rem;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
170
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
171
|
+
@media (min-width: 1024px) {
|
|
172
|
+
.c3 {
|
|
173
|
+
font-size: 1.125rem;
|
|
174
|
+
line-height: 1.375rem;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
177
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
178
|
+
@media (min-width: 740px) {
|
|
179
|
+
.c7 {
|
|
180
|
+
font-size: 1.25rem;
|
|
181
|
+
line-height: 1.5rem;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
184
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
185
|
+
@media (min-width: 1024px) {
|
|
186
|
+
.c7 {
|
|
187
|
+
font-size: 1.375rem;
|
|
188
|
+
line-height: 1.625rem;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
191
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
192
|
+
@media (min-width: 740px) {
|
|
193
|
+
.c10 {
|
|
194
|
+
font-size: 1rem;
|
|
195
|
+
line-height: 1.25rem;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
198
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
199
|
+
@media (min-width: 1024px) {
|
|
200
|
+
.c10 {
|
|
201
|
+
font-size: 1.125rem;
|
|
202
|
+
line-height: 1.375rem;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
205
|
|
|
206
|
-
|
|
207
|
-
|
|
206
|
+
<article
|
|
207
|
+
className="c0"
|
|
208
|
+
>
|
|
209
|
+
<div
|
|
210
|
+
className="c1"
|
|
211
|
+
>
|
|
212
|
+
<div
|
|
213
|
+
className="c2"
|
|
208
214
|
>
|
|
215
|
+
<span
|
|
216
|
+
className="c3 c4"
|
|
217
|
+
>
|
|
218
|
+
15/06/2020
|
|
219
|
+
</span>
|
|
209
220
|
<div
|
|
210
|
-
className="
|
|
221
|
+
className="c5"
|
|
211
222
|
>
|
|
212
|
-
<
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
/>
|
|
228
|
-
<img
|
|
229
|
-
alt="Social Tech icon"
|
|
230
|
-
className="c6"
|
|
231
|
-
src="mock.asset"
|
|
232
|
-
/>
|
|
233
|
-
<img
|
|
234
|
-
alt="Sport for Change icon"
|
|
235
|
-
className="c6"
|
|
236
|
-
src="mock.asset"
|
|
237
|
-
/>
|
|
238
|
-
</div>
|
|
239
|
-
</div>
|
|
240
|
-
<h3
|
|
241
|
-
className="c7 c8"
|
|
242
|
-
>
|
|
243
|
-
Title
|
|
244
|
-
</h3>
|
|
245
|
-
<div
|
|
246
|
-
className="c9"
|
|
247
|
-
>
|
|
248
|
-
<span
|
|
249
|
-
className="c10 c11"
|
|
250
|
-
>
|
|
251
|
-
tag1
|
|
252
|
-
</span>
|
|
253
|
-
<span
|
|
254
|
-
className="c10 c11"
|
|
255
|
-
>
|
|
256
|
-
tag2
|
|
257
|
-
</span>
|
|
258
|
-
<span
|
|
259
|
-
className="c10 c11"
|
|
260
|
-
>
|
|
261
|
-
tag3
|
|
262
|
-
</span>
|
|
263
|
-
<span
|
|
264
|
-
className="c10 c11"
|
|
265
|
-
>
|
|
266
|
-
tag4
|
|
267
|
-
</span>
|
|
268
|
-
</div>
|
|
269
|
-
<div
|
|
270
|
-
className="c12"
|
|
271
|
-
>
|
|
272
|
-
Description go here...
|
|
273
|
-
<br />
|
|
274
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
|
|
275
|
-
</div>
|
|
223
|
+
<img
|
|
224
|
+
alt="How we fund icon"
|
|
225
|
+
className="c6"
|
|
226
|
+
src="mock.asset"
|
|
227
|
+
/>
|
|
228
|
+
<img
|
|
229
|
+
alt="Social Tech icon"
|
|
230
|
+
className="c6"
|
|
231
|
+
src="mock.asset"
|
|
232
|
+
/>
|
|
233
|
+
<img
|
|
234
|
+
alt="Sport for Change icon"
|
|
235
|
+
className="c6"
|
|
236
|
+
src="mock.asset"
|
|
237
|
+
/>
|
|
276
238
|
</div>
|
|
277
|
-
</
|
|
278
|
-
|
|
239
|
+
</div>
|
|
240
|
+
<h3
|
|
241
|
+
className="c7 c8"
|
|
242
|
+
>
|
|
243
|
+
Title
|
|
244
|
+
</h3>
|
|
245
|
+
<div
|
|
246
|
+
className="c9"
|
|
247
|
+
>
|
|
248
|
+
<span
|
|
249
|
+
className="c10 c11"
|
|
250
|
+
>
|
|
251
|
+
tag1
|
|
252
|
+
</span>
|
|
253
|
+
<span
|
|
254
|
+
className="c10 c11"
|
|
255
|
+
>
|
|
256
|
+
tag2
|
|
257
|
+
</span>
|
|
258
|
+
<span
|
|
259
|
+
className="c10 c11"
|
|
260
|
+
>
|
|
261
|
+
tag3
|
|
262
|
+
</span>
|
|
263
|
+
<span
|
|
264
|
+
className="c10 c11"
|
|
265
|
+
>
|
|
266
|
+
tag4
|
|
267
|
+
</span>
|
|
268
|
+
</div>
|
|
269
|
+
<div
|
|
270
|
+
className="c12"
|
|
271
|
+
>
|
|
272
|
+
Description go here...
|
|
273
|
+
<br />
|
|
274
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
|
|
275
|
+
</div>
|
|
276
|
+
</div>
|
|
277
|
+
</article>
|
|
278
|
+
`);
|
|
279
279
|
});
|
|
@@ -4,9 +4,9 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import { Section, CopyWrapper } from './DoubleCopy.style';
|
|
5
5
|
|
|
6
6
|
const DoubleCopy = ({ leftCopy, rightCopy }) => (
|
|
7
|
-
<Section>
|
|
8
|
-
<CopyWrapper>{leftCopy}</CopyWrapper>
|
|
9
|
-
<CopyWrapper>{rightCopy}</CopyWrapper>
|
|
7
|
+
<Section data-testid="DoubleCopySection">
|
|
8
|
+
<CopyWrapper data-testid="DoubleCopyLeftWrapper">{leftCopy}</CopyWrapper>
|
|
9
|
+
<CopyWrapper data-testid="DoubleCopyRightWrapper">{rightCopy}</CopyWrapper>
|
|
10
10
|
</Section>
|
|
11
11
|
);
|
|
12
12
|
|