@@ -29,6 +29,8 @@ import STYLES from './examples.module.scss';
29
29
30
30
const IMAGE_SRC =
31
31
'https://content.skyscnr.com/m/1c8c6338a92a7a94/original/matt-hardy-6ArTTluciuA-unsplash.jpg' ;
32
+ const VIDEO_IMG_SRC =
33
+ 'https://content.skyscnr.com/m/2af45124245b6759/original/SOCIAL9.png' ;
32
34
33
35
const getClassName = cssModules ( STYLES ) ;
34
36
@@ -198,6 +200,47 @@ const VignetteExample = () => {
198
200
) ;
199
201
} ;
200
202
203
+ const VideoOverlayExamples = ( ) => {
204
+ const overlayTypeTop = OVERLAY_TYPES . videoTop ;
205
+ const overlayTypeBottom = OVERLAY_TYPES . videoBottom ;
206
+ return (
207
+ < div className = { getClassName ( 'bpk-overlay-stories' ) } >
208
+ { [ overlayTypeTop , overlayTypeBottom ] . map ( ( overlayType ) => (
209
+ < div className = { getClassName ( 'bpk-overlay-stories__overlay-story' ) } >
210
+ < BpkOverlay overlayType = { overlayType } >
211
+ < BpkImage
212
+ src = { VIDEO_IMG_SRC }
213
+ altText = "Sail boat"
214
+ aspectRatio = { 360 / 640 }
215
+ />
216
+ </ BpkOverlay >
217
+ < div className = { getClassName ( 'bpk-overlay-stories__overlay--name' ) } >
218
+ < BpkText textStyle = { TEXT_STYLES . xl } >
219
+ { OverlayName ( { overlayType } ) }
220
+ </ BpkText >
221
+ </ div >
222
+ </ div >
223
+ ) ) }
224
+ < div className = { getClassName ( 'bpk-overlay-stories__overlay-story' ) } >
225
+ < BpkOverlay overlayType = { overlayTypeTop } >
226
+ < BpkOverlay overlayType = { overlayTypeBottom } >
227
+ < BpkImage
228
+ src = { VIDEO_IMG_SRC }
229
+ altText = "Sail boat"
230
+ aspectRatio = { 360 / 640 }
231
+ />
232
+ </ BpkOverlay >
233
+ </ BpkOverlay >
234
+ < div className = { getClassName ( 'bpk-overlay-stories__overlay--name' ) } >
235
+ < BpkText textStyle = { TEXT_STYLES . xl } >
236
+ { overlayTypeTop } & { overlayTypeBottom }
237
+ </ BpkText >
238
+ </ div >
239
+ </ div >
240
+ </ div >
241
+ ) ;
242
+ } ;
243
+
201
244
const WithForegroundContentExample = ( ) => (
202
245
< BpkOverlay
203
246
overlayType = { OVERLAY_TYPES . solidHigh }
@@ -240,6 +283,7 @@ export {
240
283
LeftExamples ,
241
284
RightExamples ,
242
285
VignetteExample ,
286
+ VideoOverlayExamples ,
243
287
WithForegroundContentExample ,
244
288
MixedExample ,
245
289
} ;
0 commit comments