@comicrelief/component-library 8.45.0 → 8.47.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/Icons/CtaArrow.js +74 -0
- package/dist/components/Atoms/Icons/index.js +8 -1
- package/dist/components/Atoms/Link/Link.style.js +27 -21
- package/dist/components/Atoms/Link/Link.test.js +24 -1
- package/dist/components/Molecules/CardDs/__snapshots__/CardDs.test.js.snap +48 -2
- package/dist/components/Molecules/HeroBanner/HeroBanner.js +75 -31
- package/dist/components/Molecules/HeroBanner/HeroBanner.md +176 -6
- package/dist/components/Molecules/HeroBanner/HeroBanner.style.js +232 -0
- package/dist/components/Molecules/HeroBanner/HeroBanner.test.js +67 -0
- package/dist/components/Molecules/HeroBanner/__snapshots__/HeroBanner.test.js.snap +882 -0
- package/dist/components/Molecules/HeroBanner/_variants.js +12 -0
- package/dist/components/Molecules/HeroBanner/assets/Pause--black.svg +3 -0
- package/dist/components/Molecules/HeroBanner/assets/Pause--white.svg +3 -0
- package/dist/components/Molecules/HeroBanner/assets/Play--black.svg +3 -0
- package/dist/components/Molecules/HeroBanner/assets/Play--white.svg +3 -0
- package/dist/components/Molecules/HeroBanner/assets/alt_cta_underline.svg +3 -0
- package/dist/components/Molecules/HeroBanner/assets/arrow-right.svg +3 -0
- package/dist/components/Molecules/HeroBanner/assets/loader.svg +1 -0
- package/dist/components/Molecules/HeroBanner/assets/video--play-icon.svg +1 -0
- package/dist/components/Molecules/HeroBanner/assets/video--play-icon__hover.svg +1 -0
- package/dist/components/Molecules/HeroBanner/local-preview-layout-fixes.css +6 -0
- package/dist/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +48 -2
- package/dist/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +64 -2
- package/dist/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +24 -1
- package/dist/components/Organisms/CookieBanner/CookieBanner.test.js +24 -1
- package/dist/index.js +1 -1
- package/dist/styleguide/assets/PromoLW.jpg +0 -0
- package/dist/styleguide/data/data.js +1 -0
- package/dist/theme/shared/animations.js +23 -2
- package/dist/theme/shared/global.css +1 -1
- package/package.json +1 -1
- package/src/components/Atoms/Icons/CtaArrow.js +55 -0
- package/src/components/Atoms/Icons/index.js +1 -0
- package/src/components/Atoms/Link/Link.js +1 -1
- package/src/components/Atoms/Link/Link.style.js +8 -1
- package/src/components/Atoms/Link/Link.test.js +24 -1
- package/src/components/Molecules/CardDs/__snapshots__/CardDs.test.js.snap +48 -2
- package/src/components/Molecules/HeroBanner/HeroBanner.js +145 -49
- package/src/components/Molecules/HeroBanner/HeroBanner.md +176 -6
- package/src/components/Molecules/HeroBanner/HeroBanner.style.js +239 -0
- package/src/components/Molecules/HeroBanner/HeroBanner.test.js +89 -0
- package/src/components/Molecules/HeroBanner/__snapshots__/HeroBanner.test.js.snap +882 -0
- package/src/components/Molecules/HeroBanner/_variants.js +7 -0
- package/src/components/Molecules/HeroBanner/assets/Pause--black.svg +3 -0
- package/src/components/Molecules/HeroBanner/assets/Pause--white.svg +3 -0
- package/src/components/Molecules/HeroBanner/assets/Play--black.svg +3 -0
- package/src/components/Molecules/HeroBanner/assets/Play--white.svg +3 -0
- package/src/components/Molecules/HeroBanner/assets/alt_cta_underline.svg +3 -0
- package/src/components/Molecules/HeroBanner/assets/arrow-right.svg +3 -0
- package/src/components/Molecules/HeroBanner/assets/loader.svg +1 -0
- package/src/components/Molecules/HeroBanner/assets/video--play-icon.svg +1 -0
- package/src/components/Molecules/HeroBanner/assets/video--play-icon__hover.svg +1 -0
- package/src/components/Molecules/HeroBanner/local-preview-layout-fixes.css +6 -0
- package/src/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +48 -2
- package/src/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +64 -2
- package/src/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +24 -1
- package/src/components/Organisms/CookieBanner/CookieBanner.test.js +24 -1
- package/src/index.js +1 -1
- package/src/styleguide/assets/PromoLW.jpg +0 -0
- package/src/styleguide/data/data.js +1 -0
- package/src/theme/shared/animations.js +29 -1
- package/src/theme/shared/global.css +1 -1
|
@@ -36,7 +36,6 @@ exports[`renders Column view correctly 1`] = `
|
|
|
36
36
|
padding: 0.5rem 1.25rem;
|
|
37
37
|
-webkit-text-decoration: none;
|
|
38
38
|
text-decoration: none;
|
|
39
|
-
font-weight: 700;
|
|
40
39
|
font-size: 1rem;
|
|
41
40
|
border-radius: 2rem;
|
|
42
41
|
-webkit-transition: all 0.3s;
|
|
@@ -52,6 +51,16 @@ exports[`renders Column view correctly 1`] = `
|
|
|
52
51
|
-ms-flex-align: center;
|
|
53
52
|
align-items: center;
|
|
54
53
|
cursor: pointer;
|
|
54
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
55
|
+
font-weight: 400;
|
|
56
|
+
text-transform: inherit;
|
|
57
|
+
-webkit-letter-spacing: 0;
|
|
58
|
+
-moz-letter-spacing: 0;
|
|
59
|
+
-ms-letter-spacing: 0;
|
|
60
|
+
letter-spacing: 0;
|
|
61
|
+
font-size: 1rem;
|
|
62
|
+
line-height: 1.25rem;
|
|
63
|
+
font-weight: 700;
|
|
55
64
|
background-color: #E52630;
|
|
56
65
|
color: #FFFFFF;
|
|
57
66
|
}
|
|
@@ -127,6 +136,20 @@ exports[`renders Column view correctly 1`] = `
|
|
|
127
136
|
}
|
|
128
137
|
}
|
|
129
138
|
|
|
139
|
+
@media (min-width:740px) {
|
|
140
|
+
.c7 {
|
|
141
|
+
font-size: 1rem;
|
|
142
|
+
line-height: 1.25rem;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@media (min-width:1024px) {
|
|
147
|
+
.c7 {
|
|
148
|
+
font-size: 1.125rem;
|
|
149
|
+
line-height: 1.375rem;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
130
153
|
@media (min-width:740px) {
|
|
131
154
|
.c7 {
|
|
132
155
|
width: auto;
|
|
@@ -294,7 +317,6 @@ exports[`renders correctly 1`] = `
|
|
|
294
317
|
padding: 0.5rem 1.25rem;
|
|
295
318
|
-webkit-text-decoration: none;
|
|
296
319
|
text-decoration: none;
|
|
297
|
-
font-weight: 700;
|
|
298
320
|
font-size: 1rem;
|
|
299
321
|
border-radius: 2rem;
|
|
300
322
|
-webkit-transition: all 0.3s;
|
|
@@ -310,6 +332,16 @@ exports[`renders correctly 1`] = `
|
|
|
310
332
|
-ms-flex-align: center;
|
|
311
333
|
align-items: center;
|
|
312
334
|
cursor: pointer;
|
|
335
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
336
|
+
font-weight: 400;
|
|
337
|
+
text-transform: inherit;
|
|
338
|
+
-webkit-letter-spacing: 0;
|
|
339
|
+
-moz-letter-spacing: 0;
|
|
340
|
+
-ms-letter-spacing: 0;
|
|
341
|
+
letter-spacing: 0;
|
|
342
|
+
font-size: 1rem;
|
|
343
|
+
line-height: 1.25rem;
|
|
344
|
+
font-weight: 700;
|
|
313
345
|
background-color: #E52630;
|
|
314
346
|
color: #FFFFFF;
|
|
315
347
|
}
|
|
@@ -385,6 +417,20 @@ exports[`renders correctly 1`] = `
|
|
|
385
417
|
}
|
|
386
418
|
}
|
|
387
419
|
|
|
420
|
+
@media (min-width:740px) {
|
|
421
|
+
.c7 {
|
|
422
|
+
font-size: 1rem;
|
|
423
|
+
line-height: 1.25rem;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
@media (min-width:1024px) {
|
|
428
|
+
.c7 {
|
|
429
|
+
font-size: 1.125rem;
|
|
430
|
+
line-height: 1.375rem;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
388
434
|
@media (min-width:740px) {
|
|
389
435
|
.c7 {
|
|
390
436
|
width: auto;
|
|
@@ -1,58 +1,154 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
2
|
import PropTypes from 'prop-types';
|
|
4
|
-
|
|
3
|
+
import Picture from '../../Atoms/Picture/Picture';
|
|
5
4
|
import Text from '../../Atoms/Text/Text';
|
|
5
|
+
import Link from '../../Atoms/Link/Link';
|
|
6
|
+
import variants from './_variants';
|
|
7
|
+
import { CtaArrow } from '../../Atoms/Icons/index';
|
|
8
|
+
import altCtaUnderline from './assets/alt_cta_underline.svg';
|
|
9
|
+
import './local-preview-layout-fixes.css';
|
|
10
|
+
|
|
11
|
+
import {
|
|
12
|
+
Container, CopyOuterWrapper, Copy, MediaWrapper,
|
|
13
|
+
CopyInnerWrapper, OuterWrapper, CTAWrapper, HeroBannerLink,
|
|
14
|
+
CtaIconWrapper, CtaText, CtaTextUnderline
|
|
15
|
+
} from './HeroBanner.style';
|
|
16
|
+
|
|
17
|
+
const HeroBanner = ({
|
|
18
|
+
// All variants:
|
|
19
|
+
copyColour = 'black',
|
|
20
|
+
pageBackgroundColour = 'grey_light',
|
|
21
|
+
variant = variants.FULL_HEIGHT,
|
|
22
|
+
copyLeft = true,
|
|
23
|
+
imageAltText = '',
|
|
24
|
+
ctaNewTab = false,
|
|
25
|
+
paddingTop = '0rem',
|
|
26
|
+
paddingBottom = '2rem',
|
|
27
|
+
// Text Banner variant
|
|
28
|
+
textBannerCopyBackgroundColour = 'deep_violet',
|
|
29
|
+
textBannerCtaColour = 'white',
|
|
30
|
+
// 'Media' variants (fallbacks to be provided in the CRcom integration, just in case):
|
|
31
|
+
imageSet = null,
|
|
32
|
+
imageLow = null,
|
|
33
|
+
image = null,
|
|
34
|
+
// All variants:
|
|
35
|
+
children = null,
|
|
36
|
+
ctaUrl = null,
|
|
37
|
+
ctaText = null
|
|
38
|
+
}) => {
|
|
39
|
+
const hasImage = Boolean(imageSet && variant !== variants.TEXT_BANNER);
|
|
40
|
+
const hasCTA = Boolean(ctaUrl) && Boolean(ctaText);
|
|
41
|
+
|
|
42
|
+
const copySection = (
|
|
43
|
+
<Copy
|
|
44
|
+
variant={variant}
|
|
45
|
+
copyColour={copyColour}
|
|
46
|
+
textBannerCopyBackgroundColour={textBannerCopyBackgroundColour}
|
|
47
|
+
>
|
|
48
|
+
{children}
|
|
49
|
+
|
|
50
|
+
{(hasCTA) && (
|
|
51
|
+
<CTAWrapper variant={variant}>
|
|
52
|
+
{(variant !== variants.TEXT_BANNER) ? (
|
|
53
|
+
<>
|
|
54
|
+
<CtaText className="cta">
|
|
55
|
+
{ctaText}
|
|
56
|
+
<CtaTextUnderline
|
|
57
|
+
src={altCtaUnderline}
|
|
58
|
+
alt={ctaText}
|
|
59
|
+
className="cta-text-underline"
|
|
60
|
+
/>
|
|
61
|
+
</CtaText>
|
|
62
|
+
|
|
63
|
+
<CtaIconWrapper>
|
|
64
|
+
<CtaArrow />
|
|
65
|
+
</CtaIconWrapper>
|
|
66
|
+
</>
|
|
6
67
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
68
|
+
) : (
|
|
69
|
+
<Text>
|
|
70
|
+
<Link
|
|
71
|
+
href={ctaUrl}
|
|
72
|
+
type="button"
|
|
73
|
+
color={textBannerCtaColour}
|
|
74
|
+
target={ctaNewTab ? 'blank' : 'self'}
|
|
75
|
+
>
|
|
76
|
+
{ctaText}
|
|
77
|
+
</Link>
|
|
78
|
+
</Text>
|
|
79
|
+
)
|
|
80
|
+
}
|
|
81
|
+
</CTAWrapper>
|
|
82
|
+
)}
|
|
83
|
+
</Copy>
|
|
84
|
+
);
|
|
85
|
+
|
|
86
|
+
return (
|
|
87
|
+
<Container
|
|
88
|
+
pageBackgroundColour={pageBackgroundColour}
|
|
89
|
+
paddingTop={paddingTop}
|
|
90
|
+
paddingBottom={paddingBottom}
|
|
91
|
+
>
|
|
92
|
+
|
|
93
|
+
<OuterWrapper
|
|
94
|
+
variant={variant}
|
|
95
|
+
textBannerCopyBackgroundColour={textBannerCopyBackgroundColour}
|
|
96
|
+
>
|
|
97
|
+
|
|
98
|
+
{(hasImage) && (
|
|
99
|
+
<MediaWrapper imageRight={copyLeft} variant={variant}>
|
|
100
|
+
<Picture
|
|
101
|
+
alt={imageAltText}
|
|
102
|
+
imageLow={imageLow}
|
|
103
|
+
images={imageSet}
|
|
104
|
+
image={image}
|
|
105
|
+
objectFit="cover"
|
|
106
|
+
width="100%"
|
|
107
|
+
height="100%"
|
|
108
|
+
/>
|
|
109
|
+
</MediaWrapper>
|
|
110
|
+
)}
|
|
111
|
+
|
|
112
|
+
<CopyOuterWrapper copyLeft={copyLeft} variant={variant}>
|
|
113
|
+
<CopyInnerWrapper copyLeft={copyLeft} variant={variant}>
|
|
114
|
+
{/* Wraps the 'cards' in a link for non-Text Banners (which use CTA buttons) */}
|
|
115
|
+
{hasCTA && variant !== variants.TEXT_BANNER ? (
|
|
116
|
+
<HeroBannerLink href={ctaUrl} target={ctaNewTab ? '_blank' : '_self'}>
|
|
117
|
+
{ copySection }
|
|
118
|
+
</HeroBannerLink>
|
|
119
|
+
) : (
|
|
120
|
+
<>
|
|
121
|
+
{ copySection }
|
|
122
|
+
</>
|
|
123
|
+
)}
|
|
124
|
+
</CopyInnerWrapper>
|
|
125
|
+
</CopyOuterWrapper>
|
|
126
|
+
</OuterWrapper>
|
|
127
|
+
</Container>
|
|
128
|
+
);
|
|
129
|
+
};
|
|
48
130
|
|
|
49
131
|
HeroBanner.propTypes = {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
132
|
+
pageBackgroundColour: PropTypes.string,
|
|
133
|
+
textBannerCopyBackgroundColour: PropTypes.string,
|
|
134
|
+
textBannerCtaColour: PropTypes.string,
|
|
135
|
+
copyColour: PropTypes.string,
|
|
136
|
+
copyLeft: PropTypes.bool,
|
|
137
|
+
imageLow: PropTypes.string,
|
|
138
|
+
imageSet: PropTypes.string,
|
|
139
|
+
image: PropTypes.string,
|
|
140
|
+
imageAltText: PropTypes.string,
|
|
141
|
+
children: PropTypes.node.isRequired,
|
|
142
|
+
ctaUrl: PropTypes.string,
|
|
143
|
+
ctaText: PropTypes.string,
|
|
144
|
+
ctaNewTab: PropTypes.bool,
|
|
145
|
+
paddingTop: PropTypes.string,
|
|
146
|
+
paddingBottom: PropTypes.string,
|
|
147
|
+
variant: PropTypes.oneOf([
|
|
148
|
+
variants.FULL_HEIGHT,
|
|
149
|
+
variants.HALF_HEIGHT,
|
|
150
|
+
variants.TEXT_BANNER
|
|
151
|
+
])
|
|
56
152
|
};
|
|
57
153
|
|
|
58
154
|
export default HeroBanner;
|
|
@@ -1,9 +1,179 @@
|
|
|
1
|
-
|
|
1
|
+
HeroBanner
|
|
2
2
|
|
|
3
3
|
```js
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
const defaultData = require('../../../styleguide/data/data').defaultData;
|
|
5
|
+
import Text from '../../Atoms/Text/Text';
|
|
6
|
+
import Link from '../../Atoms/Link/Link';
|
|
7
|
+
import variants from './_variants';
|
|
8
|
+
|
|
9
|
+
<div style={{ display: 'flex', flexDirection: 'column', gap: '4rem' }}>
|
|
10
|
+
|
|
11
|
+
<HeroBanner
|
|
12
|
+
pageBackgroundColour="teal_light"
|
|
13
|
+
imageSet={defaultData.heroBannerImage}
|
|
14
|
+
image={defaultData.heroBannerImage}
|
|
15
|
+
imageLow={defaultData.heroBannerImage}
|
|
16
|
+
imageAltText="Image alt text"
|
|
17
|
+
variant={variants.FULL_HEIGHT}
|
|
18
|
+
copyLeft
|
|
19
|
+
>
|
|
20
|
+
<Text tag="h1">
|
|
21
|
+
Full Height: Copy Left
|
|
22
|
+
</Text>
|
|
23
|
+
<Text tag="p">
|
|
24
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
25
|
+
</Text>
|
|
26
|
+
</HeroBanner>
|
|
27
|
+
|
|
28
|
+
<HeroBanner
|
|
29
|
+
pageBackgroundColour="teal_light"
|
|
30
|
+
imageSet={defaultData.heroBannerImage}
|
|
31
|
+
image={defaultData.heroBannerImage}
|
|
32
|
+
imageLow={defaultData.heroBannerImage}
|
|
33
|
+
imageAltText="Image alt text"
|
|
34
|
+
variant={variants.FULL_HEIGHT}
|
|
35
|
+
copyLeft={false}
|
|
36
|
+
ctaText="Register to fundraise"
|
|
37
|
+
ctaUrl="http://www.comicrelief.com/register"
|
|
38
|
+
paddingTop="2rem"
|
|
39
|
+
>
|
|
40
|
+
<Text tag="h1">
|
|
41
|
+
Full Height: Additional Top Padding, Copy Right w/CTA, Same Tab
|
|
42
|
+
</Text>
|
|
43
|
+
<Text tag="p">
|
|
44
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
45
|
+
</Text>
|
|
46
|
+
</HeroBanner>
|
|
47
|
+
|
|
48
|
+
<HeroBanner
|
|
49
|
+
pageBackgroundColour="teal_light"
|
|
50
|
+
imageSet={defaultData.heroBannerImage}
|
|
51
|
+
image={defaultData.heroBannerImage}
|
|
52
|
+
imageLow={defaultData.heroBannerImage}
|
|
53
|
+
imageAltText="Image alt text"
|
|
54
|
+
variant={variants.FULL_HEIGHT}
|
|
55
|
+
ctaText="Register to fundraise but longer"
|
|
56
|
+
ctaUrl="http://www.comicrelief.com/register"
|
|
57
|
+
ctaNewTab
|
|
58
|
+
copyLeft
|
|
59
|
+
>
|
|
60
|
+
<Text tag="h1">
|
|
61
|
+
Full Height: Copy Left w/CTA, New Tab
|
|
62
|
+
</Text>
|
|
63
|
+
<Text tag="p">
|
|
64
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
65
|
+
</Text>
|
|
66
|
+
</HeroBanner>
|
|
67
|
+
|
|
68
|
+
<HeroBanner
|
|
69
|
+
pageBackgroundColour="blue_dark"
|
|
70
|
+
imageSet={defaultData.heroBannerImage}
|
|
71
|
+
image={defaultData.heroBannerImage}
|
|
72
|
+
imageLow={defaultData.heroBannerImage}
|
|
73
|
+
imageAltText="Image alt text"
|
|
74
|
+
copyLeft={false}
|
|
75
|
+
>
|
|
76
|
+
<Text tag="h1">
|
|
77
|
+
Full Height: Copy Right (default variant prop value)
|
|
78
|
+
</Text>
|
|
79
|
+
<Text tag="p">
|
|
80
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
81
|
+
</Text>
|
|
82
|
+
</HeroBanner>
|
|
83
|
+
|
|
84
|
+
<HeroBanner
|
|
85
|
+
pageBackgroundColour="orange"
|
|
86
|
+
imageSet={defaultData.heroBannerImage}
|
|
87
|
+
image={defaultData.heroBannerImage}
|
|
88
|
+
imageLow={defaultData.heroBannerImage}
|
|
89
|
+
imageAltText="Image alt text"
|
|
90
|
+
variant={variants.HALF_HEIGHT}
|
|
91
|
+
>
|
|
92
|
+
<Text tag="h1">
|
|
93
|
+
Half Height: min height
|
|
94
|
+
</Text>
|
|
95
|
+
<Text tag="p">
|
|
96
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua
|
|
97
|
+
</Text>
|
|
98
|
+
</HeroBanner>
|
|
99
|
+
|
|
100
|
+
<HeroBanner
|
|
101
|
+
pageBackgroundColour="teal"
|
|
102
|
+
imageSet={defaultData.heroBannerImage}
|
|
103
|
+
image={defaultData.heroBannerImage}
|
|
104
|
+
imageLow={defaultData.heroBannerImage}
|
|
105
|
+
imageAltText="Image alt text"
|
|
106
|
+
variant={variants.HALF_HEIGHT}
|
|
107
|
+
paddingBottom="0"
|
|
108
|
+
copyLeft={false}
|
|
109
|
+
>
|
|
110
|
+
<Text tag="h1">
|
|
111
|
+
Half Height: adapting to content, no bottom paddding
|
|
112
|
+
</Text>
|
|
113
|
+
<Text tag="p">
|
|
114
|
+
Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.
|
|
115
|
+
</Text>
|
|
116
|
+
|
|
117
|
+
<Text tag="p">
|
|
118
|
+
Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.
|
|
119
|
+
</Text>
|
|
120
|
+
</HeroBanner>
|
|
121
|
+
|
|
122
|
+
<HeroBanner
|
|
123
|
+
pageBackgroundColour="grey_light"
|
|
124
|
+
textBannerCopyBackgroundColour="deep_violet"
|
|
125
|
+
variant={variants.TEXT_BANNER}
|
|
126
|
+
copyColour="white"
|
|
127
|
+
>
|
|
128
|
+
<Text tag="h1">
|
|
129
|
+
Responsive Text Banner
|
|
130
|
+
</Text>
|
|
131
|
+
<Text tag="p">
|
|
132
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua
|
|
133
|
+
</Text>
|
|
134
|
+
</HeroBanner>
|
|
135
|
+
|
|
136
|
+
<HeroBanner
|
|
137
|
+
pageBackgroundColour="grey_light"
|
|
138
|
+
textBannerCopyBackgroundColour="deep_violet"
|
|
139
|
+
variant={variants.TEXT_BANNER}
|
|
140
|
+
ctaUrl="http://www.comicrelief.com/register"
|
|
141
|
+
ctaText="Register"
|
|
142
|
+
copyColour="white"
|
|
143
|
+
paddingBottom="0"
|
|
144
|
+
ctaNewTab
|
|
145
|
+
>
|
|
146
|
+
<Text tag="h1">
|
|
147
|
+
Responsive Text Banner w/CTA, New Tab, no top and bottom padding
|
|
148
|
+
</Text>
|
|
149
|
+
<Text tag="p">
|
|
150
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua
|
|
151
|
+
</Text>
|
|
152
|
+
</HeroBanner>
|
|
153
|
+
|
|
154
|
+
<HeroBanner
|
|
155
|
+
pageBackgroundColour="grey_light"
|
|
156
|
+
textBannerCopyBackgroundColour="blue_light"
|
|
157
|
+
variant={variants.TEXT_BANNER}
|
|
158
|
+
textBannerCtaColour="red"
|
|
159
|
+
ctaText="Register"
|
|
160
|
+
ctaUrl="http://www.comicrelief.com/register"
|
|
161
|
+
>
|
|
162
|
+
<Text tag="h1">
|
|
163
|
+
Responsive Text w/CTA, Same Tab
|
|
164
|
+
</Text>
|
|
165
|
+
<Text tag="p">
|
|
166
|
+
Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.
|
|
167
|
+
</Text>
|
|
168
|
+
|
|
169
|
+
<Text tag="p">
|
|
170
|
+
Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.
|
|
171
|
+
</Text>
|
|
172
|
+
|
|
173
|
+
<Text tag="p">
|
|
174
|
+
Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos.
|
|
175
|
+
</Text>
|
|
176
|
+
</HeroBanner>
|
|
177
|
+
|
|
178
|
+
</div>
|
|
9
179
|
```
|