@@ -111,6 +111,18 @@ type Story = StoryObj<typeof meta>;
111
111
112
112
export const Standard : Story = { } ;
113
113
114
+ export const Immersive : Story = {
115
+ args : {
116
+ aspectRatio : '5:3' ,
117
+ mobileAspectRatio : '4:5' ,
118
+ imageSize : 'feature-immersive' ,
119
+ maxWidth : '940' ,
120
+ isImmersive : true ,
121
+ trailText :
122
+ 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua' ,
123
+ } ,
124
+ } ;
125
+
114
126
export const Review : Story = {
115
127
args : {
116
128
image : {
@@ -125,6 +137,13 @@ export const Review: Story = {
125
137
} ,
126
138
} ;
127
139
140
+ export const ReviewImmersive : Story = {
141
+ args : {
142
+ ...Review . args ,
143
+ ...Immersive . args ,
144
+ } ,
145
+ } ;
146
+
128
147
export const SportLiveBlog : Story = {
129
148
args : {
130
149
image : {
@@ -141,6 +160,13 @@ export const SportLiveBlog: Story = {
141
160
} ,
142
161
} ;
143
162
163
+ export const SportLiveBlogImmersive : Story = {
164
+ args : {
165
+ ...SportLiveBlog . args ,
166
+ ...Immersive . args ,
167
+ } ,
168
+ } ;
169
+
144
170
export const Opinion : Story = {
145
171
args : {
146
172
image : {
@@ -152,6 +178,13 @@ export const Opinion: Story = {
152
178
} ,
153
179
} ;
154
180
181
+ export const OpinionImmersive : Story = {
182
+ args : {
183
+ ...Opinion . args ,
184
+ ...Immersive . args ,
185
+ } ,
186
+ } ;
187
+
155
188
export const Podcast : Story = {
156
189
args : {
157
190
format : {
@@ -173,6 +206,13 @@ export const Podcast: Story = {
173
206
} ,
174
207
} ;
175
208
209
+ export const PodcastImmersive : Story = {
210
+ args : {
211
+ ...Podcast . args ,
212
+ ...Immersive . args ,
213
+ } ,
214
+ } ;
215
+
176
216
export const Gallery : Story = {
177
217
args : {
178
218
format : {
@@ -190,6 +230,13 @@ export const Gallery: Story = {
190
230
} ,
191
231
} ;
192
232
233
+ export const GalleryImmersive : Story = {
234
+ args : {
235
+ ...Gallery . args ,
236
+ ...Immersive . args ,
237
+ } ,
238
+ } ;
239
+
193
240
// A video article
194
241
export const Video : Story = {
195
242
args : {
@@ -221,6 +268,13 @@ export const Video: Story = {
221
268
} ,
222
269
} ;
223
270
271
+ export const VideoImmersive : Story = {
272
+ args : {
273
+ ...Video . args ,
274
+ ...Immersive . args ,
275
+ } ,
276
+ } ;
277
+
224
278
// A standard (non-video) article with a video main media
225
279
export const VideoMainMedia : Story = {
226
280
args : {
@@ -236,6 +290,13 @@ export const VideoMainMedia: Story = {
236
290
} ,
237
291
} ;
238
292
293
+ export const VideoMainMediaImmersive : Story = {
294
+ args : {
295
+ ...VideoMainMedia . args ,
296
+ ...Immersive . args ,
297
+ } ,
298
+ } ;
299
+
239
300
export const WithTrailText : Story = {
240
301
args : {
241
302
kickerText : undefined ,
@@ -251,154 +312,22 @@ export const WithTrailText: Story = {
251
312
} ,
252
313
} ;
253
314
254
- export const WithSublinks : Story = {
315
+ export const WithTrailTextImmersive : Story = {
255
316
args : {
256
- supportingContent,
317
+ ...WithTrailText . args ,
318
+ ...Immersive . args ,
257
319
} ,
258
320
} ;
259
321
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 = {
322
+ export const WithSublinks : Story = {
271
323
args : {
272
- aspectRatio : '5:3' ,
273
- mobileAspectRatio : '4:5' ,
274
- imageSize : 'feature-immersive' ,
275
- maxWidth : '940' ,
276
- isImmersive : true ,
277
324
supportingContent,
278
325
} ,
279
326
} ;
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 ,
329
- } ,
330
- ] ,
331
- } ,
332
- } ,
333
- } ;
334
327
335
- export const ImmersivePodcast : Story = {
328
+ export const WithSublinksImmersive : Story = {
336
329
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' ,
355
- } ,
356
- duration : '55:09' ,
357
- } ,
358
- } ,
359
- } ;
360
-
361
- export const ImmersiveGallery : Story = {
362
- args : {
363
- aspectRatio : '5:3' ,
364
- mobileAspectRatio : '4:5' ,
365
- imageSize : 'feature-immersive' ,
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,
330
+ ...WithSublinks . args ,
331
+ ...Immersive . args ,
403
332
} ,
404
333
} ;
0 commit comments