diff --git a/examples/bpk-component-overlay/examples.js b/examples/bpk-component-overlay/examples.js index 41079fb47b..677b23ce90 100644 --- a/examples/bpk-component-overlay/examples.js +++ b/examples/bpk-component-overlay/examples.js @@ -29,6 +29,8 @@ import STYLES from './examples.module.scss'; const IMAGE_SRC = 'https://content.skyscnr.com/m/1c8c6338a92a7a94/original/matt-hardy-6ArTTluciuA-unsplash.jpg'; +const VIDEO_IMG_SRC = + 'https://content.skyscnr.com/m/2af45124245b6759/original/SOCIAL9.png'; const getClassName = cssModules(STYLES); @@ -198,6 +200,47 @@ const VignetteExample = () => { ); }; +const VideoOverlayExamples = () => { + const overlayTypeTop = OVERLAY_TYPES.videoTop; + const overlayTypeBottom = OVERLAY_TYPES.videoBottom; + return ( +
+ {[overlayTypeTop, overlayTypeBottom].map((overlayType) => ( +
+ + + +
+ + {OverlayName({ overlayType })} + +
+
+ ))} +
+ + + + + +
+ + {overlayTypeTop} & {overlayTypeBottom} + +
+
+
+ ); +}; + const WithForegroundContentExample = () => ( `; +exports[`BpkOverlay should render correctly with overlayType={videoBottom} 1`] = ` + +
+ + Backpack + +
+
+ +`; + +exports[`BpkOverlay should render correctly with overlayType={videoTop} 1`] = ` + +
+ + Backpack + +
+
+ +`; + exports[`BpkOverlay should render correctly with overlayType={vignette} 1`] = `