@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
|
@@ -0,0 +1,882 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders "Full Height Media" Hero Banner correctly 1`] = `
|
|
4
|
+
.c8 {
|
|
5
|
+
font-family: 'Anton',Impact,sans-serif;
|
|
6
|
+
font-weight: 400;
|
|
7
|
+
text-transform: uppercase;
|
|
8
|
+
-webkit-letter-spacing: 0;
|
|
9
|
+
-moz-letter-spacing: 0;
|
|
10
|
+
-ms-letter-spacing: 0;
|
|
11
|
+
letter-spacing: 0;
|
|
12
|
+
font-size: 2rem;
|
|
13
|
+
line-height: 2rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.c8 {
|
|
17
|
+
color: #000000;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.c8 span {
|
|
21
|
+
font-size: inherit;
|
|
22
|
+
line-height: inherit;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.c9 {
|
|
26
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
27
|
+
font-weight: 400;
|
|
28
|
+
text-transform: inherit;
|
|
29
|
+
-webkit-letter-spacing: 0;
|
|
30
|
+
-moz-letter-spacing: 0;
|
|
31
|
+
-ms-letter-spacing: 0;
|
|
32
|
+
letter-spacing: 0;
|
|
33
|
+
font-size: 1rem;
|
|
34
|
+
line-height: 1.25rem;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.c9 {
|
|
38
|
+
color: #000000;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.c9 span {
|
|
42
|
+
font-size: inherit;
|
|
43
|
+
line-height: inherit;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.c3 {
|
|
47
|
+
display: block;
|
|
48
|
+
width: 100%;
|
|
49
|
+
height: 100%;
|
|
50
|
+
position: relative;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.c4 {
|
|
54
|
+
width: 100%;
|
|
55
|
+
height: 100%;
|
|
56
|
+
display: block;
|
|
57
|
+
object-fit: cover;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.c0 {
|
|
61
|
+
width: 100%;
|
|
62
|
+
height: auto;
|
|
63
|
+
display: -webkit-box;
|
|
64
|
+
display: -webkit-flex;
|
|
65
|
+
display: -ms-flexbox;
|
|
66
|
+
display: flex;
|
|
67
|
+
position: relative;
|
|
68
|
+
-webkit-flex-direction: column;
|
|
69
|
+
-ms-flex-direction: column;
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
background: #86E4E9;
|
|
72
|
+
-webkit-box-pack: center;
|
|
73
|
+
-webkit-justify-content: center;
|
|
74
|
+
-ms-flex-pack: center;
|
|
75
|
+
justify-content: center;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.c1 {
|
|
79
|
+
width: 100%;
|
|
80
|
+
max-width: none;
|
|
81
|
+
position: relative;
|
|
82
|
+
display: -webkit-box;
|
|
83
|
+
display: -webkit-flex;
|
|
84
|
+
display: -ms-flexbox;
|
|
85
|
+
display: flex;
|
|
86
|
+
-webkit-flex-direction: column;
|
|
87
|
+
-ms-flex-direction: column;
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
-webkit-align-items: center;
|
|
90
|
+
-webkit-box-align: center;
|
|
91
|
+
-ms-flex-align: center;
|
|
92
|
+
align-items: center;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.c2 {
|
|
96
|
+
width: 100%;
|
|
97
|
+
height: 100%;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.c5 {
|
|
101
|
+
position: relative;
|
|
102
|
+
height: 100%;
|
|
103
|
+
left: 0;
|
|
104
|
+
right: 0;
|
|
105
|
+
display: -webkit-box;
|
|
106
|
+
display: -webkit-flex;
|
|
107
|
+
display: -ms-flexbox;
|
|
108
|
+
display: flex;
|
|
109
|
+
width: calc(100% - (2 * 1rem));
|
|
110
|
+
margin: -2rem 1rem 2rem;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.c7 {
|
|
114
|
+
width: 100%;
|
|
115
|
+
z-index: 1;
|
|
116
|
+
border-radius: 1rem;
|
|
117
|
+
padding: 1.5rem;
|
|
118
|
+
color: #000000;
|
|
119
|
+
background-color: #FFFFFF;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.c6 {
|
|
123
|
+
width: 100%;
|
|
124
|
+
height: 100%;
|
|
125
|
+
display: -webkit-box;
|
|
126
|
+
display: -webkit-flex;
|
|
127
|
+
display: -ms-flexbox;
|
|
128
|
+
display: flex;
|
|
129
|
+
-webkit-align-items: center;
|
|
130
|
+
-webkit-box-align: center;
|
|
131
|
+
-ms-flex-align: center;
|
|
132
|
+
align-items: center;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@media (min-width:740px) {
|
|
136
|
+
.c8 {
|
|
137
|
+
font-size: 2.5rem;
|
|
138
|
+
line-height: 2.5rem;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@media (min-width:1024px) {
|
|
143
|
+
.c8 {
|
|
144
|
+
font-size: 3rem;
|
|
145
|
+
line-height: 3rem;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@media (min-width:740px) {
|
|
150
|
+
.c9 {
|
|
151
|
+
font-size: 1rem;
|
|
152
|
+
line-height: 1.25rem;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
@media (min-width:1024px) {
|
|
157
|
+
.c9 {
|
|
158
|
+
font-size: 1.125rem;
|
|
159
|
+
line-height: 1.375rem;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@media (min-width:1024px) {
|
|
164
|
+
.c0 {
|
|
165
|
+
padding: 0rem 2rem 2rem;
|
|
166
|
+
-webkit-align-items: center;
|
|
167
|
+
-webkit-box-align: center;
|
|
168
|
+
-ms-flex-align: center;
|
|
169
|
+
align-items: center;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@media (min-width:1024px) {
|
|
174
|
+
.c1 {
|
|
175
|
+
width: 100%;
|
|
176
|
+
max-width: 1500px;
|
|
177
|
+
border-radius: 1rem;
|
|
178
|
+
overflow: hidden;
|
|
179
|
+
height: 75vh;
|
|
180
|
+
min-height: 600px;
|
|
181
|
+
max-height: 750px;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@media (min-width:1024px) {
|
|
186
|
+
.c2 {
|
|
187
|
+
position: absolute;
|
|
188
|
+
top: 0;
|
|
189
|
+
left: 0;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.c2 img {
|
|
193
|
+
object-position: top center;
|
|
194
|
+
height: 100%;
|
|
195
|
+
-webkit-transform: scale(1.02);
|
|
196
|
+
-ms-transform: scale(1.02);
|
|
197
|
+
transform: scale(1.02);
|
|
198
|
+
-webkit-transition: -webkit-transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
|
|
199
|
+
-webkit-transition: transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
|
|
200
|
+
transition: transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.c2:has(+ div a:hover) > div > img {
|
|
204
|
+
-webkit-transform: scale(1.04);
|
|
205
|
+
-ms-transform: scale(1.04);
|
|
206
|
+
transform: scale(1.04);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@media (min-width:740px) {
|
|
211
|
+
.c5 {
|
|
212
|
+
width: calc(100% - 4rem);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
@media (min-width:1024px) {
|
|
217
|
+
.c5 {
|
|
218
|
+
position: relative;
|
|
219
|
+
top: auto;
|
|
220
|
+
left: auto;
|
|
221
|
+
height: 100%;
|
|
222
|
+
width: 100%;
|
|
223
|
+
max-width: 1200px;
|
|
224
|
+
display: -webkit-box;
|
|
225
|
+
display: -webkit-flex;
|
|
226
|
+
display: -ms-flexbox;
|
|
227
|
+
display: flex;
|
|
228
|
+
-webkit-align-items: center;
|
|
229
|
+
-webkit-box-align: center;
|
|
230
|
+
-ms-flex-align: center;
|
|
231
|
+
align-items: center;
|
|
232
|
+
margin: 0 auto;
|
|
233
|
+
-webkit-box-pack: start;
|
|
234
|
+
-webkit-justify-content: flex-start;
|
|
235
|
+
-ms-flex-pack: start;
|
|
236
|
+
justify-content: flex-start;
|
|
237
|
+
height: 75vh;
|
|
238
|
+
min-height: 600px;
|
|
239
|
+
max-height: 750px;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
@media (min-width:1024px) {
|
|
244
|
+
.c7 {
|
|
245
|
+
padding: 2rem 2rem 1.75rem;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
@media (min-width:1024px) {
|
|
250
|
+
.c7 {
|
|
251
|
+
width: 92%;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
@media (min-width:1024px) {
|
|
256
|
+
.c6 {
|
|
257
|
+
height: auto;
|
|
258
|
+
width: 50%;
|
|
259
|
+
margin: 2rem 0;
|
|
260
|
+
-webkit-box-pack: end;
|
|
261
|
+
-webkit-justify-content: flex-end;
|
|
262
|
+
-ms-flex-pack: end;
|
|
263
|
+
justify-content: flex-end;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
<div
|
|
268
|
+
className="c0"
|
|
269
|
+
>
|
|
270
|
+
<div
|
|
271
|
+
className="c1"
|
|
272
|
+
>
|
|
273
|
+
<div
|
|
274
|
+
className="c2"
|
|
275
|
+
>
|
|
276
|
+
<div
|
|
277
|
+
className="c3 lazyload"
|
|
278
|
+
height="100%"
|
|
279
|
+
width="100%"
|
|
280
|
+
>
|
|
281
|
+
<img
|
|
282
|
+
alt="Image alt text"
|
|
283
|
+
className="c4 lazyload"
|
|
284
|
+
data-lowsrc="../PromoLW.jpg"
|
|
285
|
+
data-sizes="auto"
|
|
286
|
+
data-src="../PromoLW.jpg"
|
|
287
|
+
data-srcset="../PromoLW.jpg"
|
|
288
|
+
height="100%"
|
|
289
|
+
src="../PromoLW.jpg"
|
|
290
|
+
srcSet="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
|
|
291
|
+
width="100%"
|
|
292
|
+
/>
|
|
293
|
+
</div>
|
|
294
|
+
</div>
|
|
295
|
+
<div
|
|
296
|
+
className="c5"
|
|
297
|
+
>
|
|
298
|
+
<div
|
|
299
|
+
className="c6"
|
|
300
|
+
>
|
|
301
|
+
<div
|
|
302
|
+
className="c7"
|
|
303
|
+
>
|
|
304
|
+
<h1
|
|
305
|
+
className="c8"
|
|
306
|
+
>
|
|
307
|
+
Curabitur pretium tincidunt lacus
|
|
308
|
+
</h1>
|
|
309
|
+
<p
|
|
310
|
+
className="c9"
|
|
311
|
+
>
|
|
312
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
313
|
+
</p>
|
|
314
|
+
</div>
|
|
315
|
+
</div>
|
|
316
|
+
</div>
|
|
317
|
+
</div>
|
|
318
|
+
</div>
|
|
319
|
+
`;
|
|
320
|
+
|
|
321
|
+
exports[`renders "Half Height Media" Hero Banner correctly 1`] = `
|
|
322
|
+
.c8 {
|
|
323
|
+
font-family: 'Anton',Impact,sans-serif;
|
|
324
|
+
font-weight: 400;
|
|
325
|
+
text-transform: uppercase;
|
|
326
|
+
-webkit-letter-spacing: 0;
|
|
327
|
+
-moz-letter-spacing: 0;
|
|
328
|
+
-ms-letter-spacing: 0;
|
|
329
|
+
letter-spacing: 0;
|
|
330
|
+
font-size: 2rem;
|
|
331
|
+
line-height: 2rem;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.c8 {
|
|
335
|
+
color: #000000;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.c8 span {
|
|
339
|
+
font-size: inherit;
|
|
340
|
+
line-height: inherit;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.c9 {
|
|
344
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
345
|
+
font-weight: 400;
|
|
346
|
+
text-transform: inherit;
|
|
347
|
+
-webkit-letter-spacing: 0;
|
|
348
|
+
-moz-letter-spacing: 0;
|
|
349
|
+
-ms-letter-spacing: 0;
|
|
350
|
+
letter-spacing: 0;
|
|
351
|
+
font-size: 1rem;
|
|
352
|
+
line-height: 1.25rem;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.c9 {
|
|
356
|
+
color: #000000;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.c9 span {
|
|
360
|
+
font-size: inherit;
|
|
361
|
+
line-height: inherit;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.c3 {
|
|
365
|
+
display: block;
|
|
366
|
+
width: 100%;
|
|
367
|
+
height: 100%;
|
|
368
|
+
position: relative;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.c4 {
|
|
372
|
+
width: 100%;
|
|
373
|
+
height: 100%;
|
|
374
|
+
display: block;
|
|
375
|
+
object-fit: cover;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.c0 {
|
|
379
|
+
width: 100%;
|
|
380
|
+
height: auto;
|
|
381
|
+
display: -webkit-box;
|
|
382
|
+
display: -webkit-flex;
|
|
383
|
+
display: -ms-flexbox;
|
|
384
|
+
display: flex;
|
|
385
|
+
position: relative;
|
|
386
|
+
-webkit-flex-direction: column;
|
|
387
|
+
-ms-flex-direction: column;
|
|
388
|
+
flex-direction: column;
|
|
389
|
+
background: #86E4E9;
|
|
390
|
+
-webkit-box-pack: center;
|
|
391
|
+
-webkit-justify-content: center;
|
|
392
|
+
-ms-flex-pack: center;
|
|
393
|
+
justify-content: center;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.c1 {
|
|
397
|
+
width: 100%;
|
|
398
|
+
max-width: none;
|
|
399
|
+
position: relative;
|
|
400
|
+
display: -webkit-box;
|
|
401
|
+
display: -webkit-flex;
|
|
402
|
+
display: -ms-flexbox;
|
|
403
|
+
display: flex;
|
|
404
|
+
-webkit-flex-direction: column;
|
|
405
|
+
-ms-flex-direction: column;
|
|
406
|
+
flex-direction: column;
|
|
407
|
+
-webkit-align-items: center;
|
|
408
|
+
-webkit-box-align: center;
|
|
409
|
+
-ms-flex-align: center;
|
|
410
|
+
align-items: center;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.c2 {
|
|
414
|
+
width: 100%;
|
|
415
|
+
height: 100%;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.c5 {
|
|
419
|
+
position: relative;
|
|
420
|
+
height: 100%;
|
|
421
|
+
left: 0;
|
|
422
|
+
right: 0;
|
|
423
|
+
display: -webkit-box;
|
|
424
|
+
display: -webkit-flex;
|
|
425
|
+
display: -ms-flexbox;
|
|
426
|
+
display: flex;
|
|
427
|
+
width: calc(100% - (2 * 1rem));
|
|
428
|
+
margin: -2rem 1rem 2rem;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.c7 {
|
|
432
|
+
width: 100%;
|
|
433
|
+
z-index: 1;
|
|
434
|
+
border-radius: 1rem;
|
|
435
|
+
padding: 1.5rem;
|
|
436
|
+
color: #000000;
|
|
437
|
+
background-color: #FFFFFF;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.c6 {
|
|
441
|
+
width: 100%;
|
|
442
|
+
height: 100%;
|
|
443
|
+
display: -webkit-box;
|
|
444
|
+
display: -webkit-flex;
|
|
445
|
+
display: -ms-flexbox;
|
|
446
|
+
display: flex;
|
|
447
|
+
-webkit-align-items: center;
|
|
448
|
+
-webkit-box-align: center;
|
|
449
|
+
-ms-flex-align: center;
|
|
450
|
+
align-items: center;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
@media (min-width:740px) {
|
|
454
|
+
.c8 {
|
|
455
|
+
font-size: 2.5rem;
|
|
456
|
+
line-height: 2.5rem;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
@media (min-width:1024px) {
|
|
461
|
+
.c8 {
|
|
462
|
+
font-size: 3rem;
|
|
463
|
+
line-height: 3rem;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
@media (min-width:740px) {
|
|
468
|
+
.c9 {
|
|
469
|
+
font-size: 1rem;
|
|
470
|
+
line-height: 1.25rem;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
@media (min-width:1024px) {
|
|
475
|
+
.c9 {
|
|
476
|
+
font-size: 1.125rem;
|
|
477
|
+
line-height: 1.375rem;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
@media (min-width:1024px) {
|
|
482
|
+
.c0 {
|
|
483
|
+
padding: 0rem 2rem 2rem;
|
|
484
|
+
-webkit-align-items: center;
|
|
485
|
+
-webkit-box-align: center;
|
|
486
|
+
-ms-flex-align: center;
|
|
487
|
+
align-items: center;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
@media (min-width:1024px) {
|
|
492
|
+
.c1 {
|
|
493
|
+
width: 100%;
|
|
494
|
+
max-width: 1500px;
|
|
495
|
+
border-radius: 1rem;
|
|
496
|
+
overflow: hidden;
|
|
497
|
+
height: auto;
|
|
498
|
+
min-height: 450px;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
@media (min-width:1024px) {
|
|
503
|
+
.c2 {
|
|
504
|
+
position: absolute;
|
|
505
|
+
top: 0;
|
|
506
|
+
left: 0;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.c2 img {
|
|
510
|
+
object-position: top center;
|
|
511
|
+
height: 100%;
|
|
512
|
+
-webkit-transform: scale(1.02);
|
|
513
|
+
-ms-transform: scale(1.02);
|
|
514
|
+
transform: scale(1.02);
|
|
515
|
+
-webkit-transition: -webkit-transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
|
|
516
|
+
-webkit-transition: transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
|
|
517
|
+
transition: transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
|
|
518
|
+
min-height: 450px;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.c2:has(+ div a:hover) > div > img {
|
|
522
|
+
-webkit-transform: scale(1.04);
|
|
523
|
+
-ms-transform: scale(1.04);
|
|
524
|
+
transform: scale(1.04);
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
@media (min-width:740px) {
|
|
529
|
+
.c5 {
|
|
530
|
+
width: calc(100% - 4rem);
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
@media (min-width:1024px) {
|
|
535
|
+
.c5 {
|
|
536
|
+
position: relative;
|
|
537
|
+
top: auto;
|
|
538
|
+
left: auto;
|
|
539
|
+
height: 100%;
|
|
540
|
+
width: 100%;
|
|
541
|
+
max-width: 1200px;
|
|
542
|
+
display: -webkit-box;
|
|
543
|
+
display: -webkit-flex;
|
|
544
|
+
display: -ms-flexbox;
|
|
545
|
+
display: flex;
|
|
546
|
+
-webkit-align-items: center;
|
|
547
|
+
-webkit-box-align: center;
|
|
548
|
+
-ms-flex-align: center;
|
|
549
|
+
align-items: center;
|
|
550
|
+
margin: 0 auto;
|
|
551
|
+
-webkit-box-pack: end;
|
|
552
|
+
-webkit-justify-content: flex-end;
|
|
553
|
+
-ms-flex-pack: end;
|
|
554
|
+
justify-content: flex-end;
|
|
555
|
+
height: auto;
|
|
556
|
+
min-height: 450px;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
@media (min-width:1024px) {
|
|
561
|
+
.c7 {
|
|
562
|
+
padding: 2rem 2rem 1.75rem;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
@media (min-width:1024px) {
|
|
567
|
+
.c7 {
|
|
568
|
+
width: 92%;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
@media (min-width:1024px) {
|
|
573
|
+
.c6 {
|
|
574
|
+
height: auto;
|
|
575
|
+
width: 50%;
|
|
576
|
+
margin: 2rem 0;
|
|
577
|
+
-webkit-box-pack: start;
|
|
578
|
+
-webkit-justify-content: flex-start;
|
|
579
|
+
-ms-flex-pack: start;
|
|
580
|
+
justify-content: flex-start;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
<div
|
|
585
|
+
className="c0"
|
|
586
|
+
>
|
|
587
|
+
<div
|
|
588
|
+
className="c1"
|
|
589
|
+
>
|
|
590
|
+
<div
|
|
591
|
+
className="c2"
|
|
592
|
+
>
|
|
593
|
+
<div
|
|
594
|
+
className="c3 lazyload"
|
|
595
|
+
height="100%"
|
|
596
|
+
width="100%"
|
|
597
|
+
>
|
|
598
|
+
<img
|
|
599
|
+
alt="Image alt text"
|
|
600
|
+
className="c4 lazyload"
|
|
601
|
+
data-lowsrc="../PromoLW.jpg"
|
|
602
|
+
data-sizes="auto"
|
|
603
|
+
data-src="../PromoLW.jpg"
|
|
604
|
+
data-srcset="../PromoLW.jpg"
|
|
605
|
+
height="100%"
|
|
606
|
+
src="../PromoLW.jpg"
|
|
607
|
+
srcSet="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
|
|
608
|
+
width="100%"
|
|
609
|
+
/>
|
|
610
|
+
</div>
|
|
611
|
+
</div>
|
|
612
|
+
<div
|
|
613
|
+
className="c5"
|
|
614
|
+
>
|
|
615
|
+
<div
|
|
616
|
+
className="c6"
|
|
617
|
+
>
|
|
618
|
+
<div
|
|
619
|
+
className="c7"
|
|
620
|
+
>
|
|
621
|
+
<h1
|
|
622
|
+
className="c8"
|
|
623
|
+
>
|
|
624
|
+
Curabitur pretium tincidunt lacus
|
|
625
|
+
</h1>
|
|
626
|
+
<p
|
|
627
|
+
className="c9"
|
|
628
|
+
>
|
|
629
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
630
|
+
</p>
|
|
631
|
+
</div>
|
|
632
|
+
</div>
|
|
633
|
+
</div>
|
|
634
|
+
</div>
|
|
635
|
+
</div>
|
|
636
|
+
`;
|
|
637
|
+
|
|
638
|
+
exports[`renders "Text Banner" Hero Banner correctly 1`] = `
|
|
639
|
+
.c5 {
|
|
640
|
+
font-family: 'Anton',Impact,sans-serif;
|
|
641
|
+
font-weight: 400;
|
|
642
|
+
text-transform: uppercase;
|
|
643
|
+
-webkit-letter-spacing: 0;
|
|
644
|
+
-moz-letter-spacing: 0;
|
|
645
|
+
-ms-letter-spacing: 0;
|
|
646
|
+
letter-spacing: 0;
|
|
647
|
+
font-size: 2rem;
|
|
648
|
+
line-height: 2rem;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.c5 {
|
|
652
|
+
color: #000000;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.c5 span {
|
|
656
|
+
font-size: inherit;
|
|
657
|
+
line-height: inherit;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
.c6 {
|
|
661
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
662
|
+
font-weight: 400;
|
|
663
|
+
text-transform: inherit;
|
|
664
|
+
-webkit-letter-spacing: 0;
|
|
665
|
+
-moz-letter-spacing: 0;
|
|
666
|
+
-ms-letter-spacing: 0;
|
|
667
|
+
letter-spacing: 0;
|
|
668
|
+
font-size: 1rem;
|
|
669
|
+
line-height: 1.25rem;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
.c6 {
|
|
673
|
+
color: #000000;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
.c6 span {
|
|
677
|
+
font-size: inherit;
|
|
678
|
+
line-height: inherit;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
.c0 {
|
|
682
|
+
width: 100%;
|
|
683
|
+
height: auto;
|
|
684
|
+
display: -webkit-box;
|
|
685
|
+
display: -webkit-flex;
|
|
686
|
+
display: -ms-flexbox;
|
|
687
|
+
display: flex;
|
|
688
|
+
position: relative;
|
|
689
|
+
-webkit-flex-direction: column;
|
|
690
|
+
-ms-flex-direction: column;
|
|
691
|
+
flex-direction: column;
|
|
692
|
+
background: #86E4E9;
|
|
693
|
+
-webkit-box-pack: center;
|
|
694
|
+
-webkit-justify-content: center;
|
|
695
|
+
-ms-flex-pack: center;
|
|
696
|
+
justify-content: center;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
.c1 {
|
|
700
|
+
width: 100%;
|
|
701
|
+
max-width: none;
|
|
702
|
+
position: relative;
|
|
703
|
+
display: -webkit-box;
|
|
704
|
+
display: -webkit-flex;
|
|
705
|
+
display: -ms-flexbox;
|
|
706
|
+
display: flex;
|
|
707
|
+
-webkit-flex-direction: column;
|
|
708
|
+
-ms-flex-direction: column;
|
|
709
|
+
flex-direction: column;
|
|
710
|
+
-webkit-align-items: center;
|
|
711
|
+
-webkit-box-align: center;
|
|
712
|
+
-ms-flex-align: center;
|
|
713
|
+
align-items: center;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.c2 {
|
|
717
|
+
position: relative;
|
|
718
|
+
height: 100%;
|
|
719
|
+
left: 0;
|
|
720
|
+
right: 0;
|
|
721
|
+
display: -webkit-box;
|
|
722
|
+
display: -webkit-flex;
|
|
723
|
+
display: -ms-flexbox;
|
|
724
|
+
display: flex;
|
|
725
|
+
width: calc(100% - (2 * 1rem));
|
|
726
|
+
margin: 2rem 1rem;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
.c4 {
|
|
730
|
+
width: 100%;
|
|
731
|
+
z-index: 1;
|
|
732
|
+
border-radius: 1rem;
|
|
733
|
+
padding: 3rem 1.5rem;
|
|
734
|
+
color: #000000;
|
|
735
|
+
background-color: #2C0230;
|
|
736
|
+
text-align: center;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
.c3 {
|
|
740
|
+
width: 100%;
|
|
741
|
+
height: 100%;
|
|
742
|
+
display: -webkit-box;
|
|
743
|
+
display: -webkit-flex;
|
|
744
|
+
display: -ms-flexbox;
|
|
745
|
+
display: flex;
|
|
746
|
+
-webkit-align-items: center;
|
|
747
|
+
-webkit-box-align: center;
|
|
748
|
+
-ms-flex-align: center;
|
|
749
|
+
align-items: center;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
@media (min-width:740px) {
|
|
753
|
+
.c5 {
|
|
754
|
+
font-size: 2.5rem;
|
|
755
|
+
line-height: 2.5rem;
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
@media (min-width:1024px) {
|
|
760
|
+
.c5 {
|
|
761
|
+
font-size: 3rem;
|
|
762
|
+
line-height: 3rem;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
@media (min-width:740px) {
|
|
767
|
+
.c6 {
|
|
768
|
+
font-size: 1rem;
|
|
769
|
+
line-height: 1.25rem;
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
@media (min-width:1024px) {
|
|
774
|
+
.c6 {
|
|
775
|
+
font-size: 1.125rem;
|
|
776
|
+
line-height: 1.375rem;
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
@media (min-width:1024px) {
|
|
781
|
+
.c0 {
|
|
782
|
+
padding: 0rem 2rem 2rem;
|
|
783
|
+
-webkit-align-items: center;
|
|
784
|
+
-webkit-box-align: center;
|
|
785
|
+
-ms-flex-align: center;
|
|
786
|
+
align-items: center;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
@media (min-width:1024px) {
|
|
791
|
+
.c1 {
|
|
792
|
+
width: 100%;
|
|
793
|
+
max-width: 1500px;
|
|
794
|
+
border-radius: 1rem;
|
|
795
|
+
overflow: hidden;
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
@media (min-width:740px) {
|
|
800
|
+
.c2 {
|
|
801
|
+
width: calc(100% - 4rem);
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
@media (min-width:1024px) {
|
|
806
|
+
.c2 {
|
|
807
|
+
position: relative;
|
|
808
|
+
top: auto;
|
|
809
|
+
left: auto;
|
|
810
|
+
height: 100%;
|
|
811
|
+
width: 100%;
|
|
812
|
+
display: -webkit-box;
|
|
813
|
+
display: -webkit-flex;
|
|
814
|
+
display: -ms-flexbox;
|
|
815
|
+
display: flex;
|
|
816
|
+
-webkit-align-items: center;
|
|
817
|
+
-webkit-box-align: center;
|
|
818
|
+
-ms-flex-align: center;
|
|
819
|
+
align-items: center;
|
|
820
|
+
margin: 0 auto;
|
|
821
|
+
-webkit-box-pack: center;
|
|
822
|
+
-webkit-justify-content: center;
|
|
823
|
+
-ms-flex-pack: center;
|
|
824
|
+
justify-content: center;
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
@media (min-width:740px) {
|
|
829
|
+
.c4 {
|
|
830
|
+
padding: 4rem 11%;
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
@media (min-width:1024px) {
|
|
835
|
+
.c4 {
|
|
836
|
+
width: 100%;
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
@media (min-width:1024px) {
|
|
841
|
+
.c3 {
|
|
842
|
+
height: auto;
|
|
843
|
+
width: 100%;
|
|
844
|
+
margin: 0;
|
|
845
|
+
-webkit-box-pack: start;
|
|
846
|
+
-webkit-justify-content: flex-start;
|
|
847
|
+
-ms-flex-pack: start;
|
|
848
|
+
justify-content: flex-start;
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
<div
|
|
853
|
+
className="c0"
|
|
854
|
+
>
|
|
855
|
+
<div
|
|
856
|
+
className="c1"
|
|
857
|
+
>
|
|
858
|
+
<div
|
|
859
|
+
className="c2"
|
|
860
|
+
>
|
|
861
|
+
<div
|
|
862
|
+
className="c3"
|
|
863
|
+
>
|
|
864
|
+
<div
|
|
865
|
+
className="c4"
|
|
866
|
+
>
|
|
867
|
+
<h1
|
|
868
|
+
className="c5"
|
|
869
|
+
>
|
|
870
|
+
Curabitur pretium tincidunt lacus
|
|
871
|
+
</h1>
|
|
872
|
+
<p
|
|
873
|
+
className="c6"
|
|
874
|
+
>
|
|
875
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
876
|
+
</p>
|
|
877
|
+
</div>
|
|
878
|
+
</div>
|
|
879
|
+
</div>
|
|
880
|
+
</div>
|
|
881
|
+
</div>
|
|
882
|
+
`;
|