@@ -44,6 +44,29 @@ const aBasicLink = {
44
44
} ,
45
45
} ;
46
46
47
+ const supportingContent = [
48
+ {
49
+ ...aBasicLink ,
50
+ headline : 'Headline 1' ,
51
+ kickerText : 'Kicker' ,
52
+ } ,
53
+ {
54
+ ...aBasicLink ,
55
+ headline : 'Headline 2' ,
56
+ kickerText : 'Kicker' ,
57
+ format : {
58
+ theme : Pillar . Sport ,
59
+ design : ArticleDesign . Gallery ,
60
+ display : ArticleDisplay . Standard ,
61
+ } ,
62
+ } ,
63
+ {
64
+ ...aBasicLink ,
65
+ headline : 'Headline 3' ,
66
+ kickerText : 'Kicker' ,
67
+ } ,
68
+ ] ;
69
+
47
70
const CardWrapper = ( {
48
71
maxWidth,
49
72
children,
@@ -230,36 +253,152 @@ export const WithTrailText: Story = {
230
253
231
254
export const WithSublinks : Story = {
232
255
args : {
233
- supportingContent : [
234
- {
235
- ...aBasicLink ,
236
- headline : 'Headline 1' ,
237
- kickerText : 'Kicker' ,
238
- } ,
239
- {
240
- ...aBasicLink ,
241
- headline : 'Headline 2' ,
242
- kickerText : 'Kicker' ,
243
- format : {
244
- theme : Pillar . Sport ,
245
- design : ArticleDesign . Gallery ,
246
- display : ArticleDisplay . Standard ,
256
+ supportingContent,
257
+ } ,
258
+ } ;
259
+
260
+ export const Immersive : Story = {
261
+ args : {
262
+ aspectRatio : '5:3' ,
263
+ mobileAspectRatio : '4:5' ,
264
+ imageSize : 'feature-immersive' ,
265
+ maxWidth : '940' ,
266
+ isImmersive : true ,
267
+ } ,
268
+ } ;
269
+
270
+ export const ImmersiveWithSublinks : Story = {
271
+ args : {
272
+ aspectRatio : '5:3' ,
273
+ mobileAspectRatio : '4:5' ,
274
+ imageSize : 'feature-immersive' ,
275
+ maxWidth : '940' ,
276
+ isImmersive : true ,
277
+ supportingContent,
278
+ } ,
279
+ } ;
280
+ // A standard (non-video) article with a video main media
281
+ export const ImmersiveVideoMainMedia : Story = {
282
+ args : {
283
+ aspectRatio : '5:3' ,
284
+ mobileAspectRatio : '4:5' ,
285
+ imageSize : 'feature-immersive' ,
286
+ maxWidth : '940' ,
287
+ isImmersive : true ,
288
+ ...Video . args ,
289
+ image : {
290
+ src : 'https://media.guim.co.uk/4612af5f4667888fa697139cf570b6373d93a710/2446_345_3218_1931/master/3218.jpg' ,
291
+ altText : 'alt text' ,
292
+ } ,
293
+ format : {
294
+ ...cardProps . format ,
295
+ design : ArticleDesign . Standard ,
296
+ } ,
297
+ } ,
298
+ } ;
299
+
300
+ export const ImmersiveVideo : Story = {
301
+ args : {
302
+ aspectRatio : '5:3' ,
303
+ mobileAspectRatio : '4:5' ,
304
+ imageSize : 'feature-immersive' ,
305
+ maxWidth : '940' ,
306
+ isImmersive : true ,
307
+ format : {
308
+ ...cardProps . format ,
309
+ design : ArticleDesign . Video ,
310
+ } ,
311
+ image : {
312
+ src : 'https://media.guim.co.uk/f2aedd24e5414073a653f68112e0ad070c6f4a2b/254_0_7493_4500/master/7493.jpg' ,
313
+ altText : 'alt text' ,
314
+ } ,
315
+ mainMedia : {
316
+ type : 'Video' ,
317
+ id : 'video-id' ,
318
+ videoId : 'video-id' ,
319
+ height : 1080 ,
320
+ width : 1920 ,
321
+ origin : 'origin' ,
322
+ title : 'Video Title' ,
323
+ duration : 120 ,
324
+ expired : false ,
325
+ images : [
326
+ {
327
+ url : 'https://media.guim.co.uk/video-thumbnail.jpg' ,
328
+ width : 1920 ,
247
329
} ,
330
+ ] ,
331
+ } ,
332
+ } ,
333
+ } ;
334
+
335
+ export const ImmersivePodcast : Story = {
336
+ args : {
337
+ aspectRatio : '5:3' ,
338
+ mobileAspectRatio : '4:5' ,
339
+ imageSize : 'feature-immersive' ,
340
+ maxWidth : '940' ,
341
+ isImmersive : true ,
342
+ format : {
343
+ ...cardProps . format ,
344
+ design : ArticleDesign . Audio ,
345
+ } ,
346
+ image : {
347
+ src : 'https://media.guim.co.uk/ecb7f0bebe473d6ef1375b5cb60b78f9466a5779/0_229_3435_2061/master/3435.jpg' ,
348
+ altText : 'alt text' ,
349
+ } ,
350
+ mainMedia : {
351
+ type : 'Audio' ,
352
+ podcastImage : {
353
+ src : 'https://media.guim.co.uk/be8830289638b0948b1ba4ade906e540554ada88/0_0_5000_3000/master/5000.jpg' ,
354
+ altText : 'Football Weekly' ,
248
355
} ,
249
- {
250
- ...aBasicLink ,
251
- headline : 'Headline 3' ,
252
- kickerText : 'Kicker' ,
253
- } ,
254
- ] ,
356
+ duration : '55:09' ,
357
+ } ,
255
358
} ,
256
359
} ;
257
360
258
- export const StandardImmersive : Story = {
361
+ export const ImmersiveGallery : Story = {
259
362
args : {
260
363
aspectRatio : '5:3' ,
261
364
mobileAspectRatio : '4:5' ,
262
365
imageSize : 'feature-immersive' ,
263
366
maxWidth : '940' ,
367
+ isImmersive : true ,
368
+ format : {
369
+ ...cardProps . format ,
370
+ design : ArticleDesign . Gallery ,
371
+ } ,
372
+ image : {
373
+ src : 'https://media.guim.co.uk/7b500cfe9afe4e211ad771c86e66297c9c22993b/0_61_4801_2880/master/4801.jpg' ,
374
+ altText : 'alt text' ,
375
+ } ,
376
+ mainMedia : {
377
+ type : 'Gallery' ,
378
+ count : '12' ,
379
+ } ,
380
+ } ,
381
+ } ;
382
+
383
+ export const ImmersiveMediaCardWithSublinks : Story = {
384
+ args : {
385
+ aspectRatio : '5:3' ,
386
+ mobileAspectRatio : '4:5' ,
387
+ imageSize : 'feature-immersive' ,
388
+ maxWidth : '940' ,
389
+ isImmersive : true ,
390
+ format : {
391
+ ...cardProps . format ,
392
+ design : ArticleDesign . Gallery ,
393
+ } ,
394
+ image : {
395
+ src : 'https://media.guim.co.uk/7b500cfe9afe4e211ad771c86e66297c9c22993b/0_61_4801_2880/master/4801.jpg' ,
396
+ altText : 'alt text' ,
397
+ } ,
398
+ mainMedia : {
399
+ type : 'Gallery' ,
400
+ count : '12' ,
401
+ } ,
402
+ supportingContent,
264
403
} ,
265
404
} ;
0 commit comments