@@ -9,7 +9,10 @@ import {
9
9
Pillar ,
10
10
} from '../../lib/articleFormat' ;
11
11
import type { Branding } from '../../types/branding' ;
12
- import type { DCRContainerPalette } from '../../types/front' ;
12
+ import type {
13
+ DCRContainerPalette ,
14
+ DCRSupportingContent ,
15
+ } from '../../types/front' ;
13
16
import type { MainMedia } from '../../types/mainMedia' ;
14
17
import { ContainerOverrides } from '../ContainerOverrides' ;
15
18
import { FrontSection } from '../FrontSection' ;
@@ -80,6 +83,19 @@ const mainGallery: MainMedia = {
80
83
count : '5' ,
81
84
} ;
82
85
86
+ const twoSublinks : DCRSupportingContent [ ] = [
87
+ {
88
+ ...aBasicLink ,
89
+ headline : 'Headline 1' ,
90
+ kickerText : 'Kicker' ,
91
+ } ,
92
+ {
93
+ ...aBasicLink ,
94
+ headline : 'Headline 2' ,
95
+ kickerText : 'Kicker' ,
96
+ } ,
97
+ ] ;
98
+
83
99
const CardWrapper = ( { children } : { children : React . ReactNode } ) => {
84
100
return (
85
101
< div
@@ -345,23 +361,48 @@ export const WithMediaTypeAndSublinks = () => {
345
361
design : ArticleDesign . Video ,
346
362
theme : Pillar . Sport ,
347
363
} }
348
- containerType = "flexible/general"
349
364
mainMedia = { { ...mainVideo , duration : 30 } }
350
365
headlineText = "Video"
351
- imagePositionOnDesktop = "top"
352
- imagePositionOnMobile = "left"
353
- supportingContent = { [
354
- {
355
- ...aBasicLink ,
356
- headline : 'Headline 1' ,
357
- kickerText : 'Kicker' ,
358
- } ,
359
- {
360
- ...aBasicLink ,
361
- headline : 'Headline 2' ,
362
- kickerText : 'Kicker' ,
363
- } ,
364
- ] }
366
+ supportingContent = { twoSublinks }
367
+ />
368
+ </ CardWrapper >
369
+ < CardWrapper >
370
+ < Card
371
+ { ...basicCardProps }
372
+ format = { {
373
+ display : ArticleDisplay . Standard ,
374
+ design : ArticleDesign . Video ,
375
+ theme : Pillar . Sport ,
376
+ } }
377
+ mainMedia = { { ...mainVideo , duration : 0 } }
378
+ headlineText = "Video without duration"
379
+ supportingContent = { twoSublinks }
380
+ />
381
+ </ CardWrapper >
382
+ < CardWrapper >
383
+ < Card
384
+ { ...basicCardProps }
385
+ format = { {
386
+ display : ArticleDisplay . Standard ,
387
+ design : ArticleDesign . Audio ,
388
+ theme : Pillar . Sport ,
389
+ } }
390
+ mainMedia = { mainAudio }
391
+ headlineText = "Audio"
392
+ supportingContent = { twoSublinks }
393
+ />
394
+ </ CardWrapper >
395
+ < CardWrapper >
396
+ < Card
397
+ { ...basicCardProps }
398
+ format = { {
399
+ display : ArticleDisplay . Standard ,
400
+ design : ArticleDesign . Gallery ,
401
+ theme : Pillar . Sport ,
402
+ } }
403
+ mainMedia = { mainGallery }
404
+ headlineText = "Gallery"
405
+ supportingContent = { twoSublinks }
365
406
/>
366
407
</ CardWrapper >
367
408
</ CardGroup >
@@ -1764,18 +1805,7 @@ export const WithBetaContainerAndSublinks = () => {
1764
1805
{ ...basicCardProps }
1765
1806
containerType = "flexible/general"
1766
1807
imagePositionOnMobile = "bottom"
1767
- supportingContent = { [
1768
- {
1769
- ...aBasicLink ,
1770
- headline : 'Headline 1' ,
1771
- kickerText : 'Kicker' ,
1772
- } ,
1773
- {
1774
- ...aBasicLink ,
1775
- headline : 'Headline 2' ,
1776
- kickerText : 'Kicker' ,
1777
- } ,
1778
- ] }
1808
+ supportingContent = { twoSublinks }
1779
1809
/>
1780
1810
</ CardWrapper >
1781
1811
</ CardGroup >
@@ -1791,18 +1821,7 @@ export const WithBetaContainerAndSublinksNoImage = () => {
1791
1821
image = { undefined }
1792
1822
containerType = "flexible/general"
1793
1823
imagePositionOnMobile = "bottom"
1794
- supportingContent = { [
1795
- {
1796
- ...aBasicLink ,
1797
- headline : 'Headline 1' ,
1798
- kickerText : 'Kicker' ,
1799
- } ,
1800
- {
1801
- ...aBasicLink ,
1802
- headline : 'Headline 2' ,
1803
- kickerText : 'Kicker' ,
1804
- } ,
1805
- ] }
1824
+ supportingContent = { twoSublinks }
1806
1825
/>
1807
1826
</ CardWrapper >
1808
1827
</ CardGroup >
0 commit comments