diff --git a/src/components/Molecules/Promo/Promo.js b/src/components/Molecules/Promo/Promo.js index 0635c0e26..dde654d55 100644 --- a/src/components/Molecules/Promo/Promo.js +++ b/src/components/Molecules/Promo/Promo.js @@ -20,7 +20,8 @@ const Promo = ({ loop, poster, showPosterAfterPlaying, - video + video, + lightVideo }) => { // To be updated via useEffect on load: const [isPlaying, setIsPlaying] = useState(false); @@ -72,7 +73,7 @@ const Promo = ({ // eslint-disable-next-line react-hooks/exhaustive-deps }, []); - const lightVideo = false; // to-do: suss out how this relates in context + // const lightVideo = false; // to-do: suss out how this relates in context return ( @@ -110,7 +111,9 @@ const Promo = ({ )} - {children} + + {children} + ); @@ -129,7 +132,8 @@ Promo.propTypes = { loop: PropTypes.bool, video: PropTypes.string, poster: PropTypes.string.isRequired, - showPosterAfterPlaying: PropTypes.bool + showPosterAfterPlaying: PropTypes.bool, + lightVideo: PropTypes.bool }; Promo.defaultProps = { @@ -144,8 +148,8 @@ Promo.defaultProps = { autoPlay: true, loop: true, video: false, - showPosterAfterPlaying: true - + showPosterAfterPlaying: true, + lightVideo: false }; export default Promo; diff --git a/src/components/Molecules/Promo/Promo.md b/src/components/Molecules/Promo/Promo.md index 685b864ce..3d77054a5 100644 --- a/src/components/Molecules/Promo/Promo.md +++ b/src/components/Molecules/Promo/Promo.md @@ -326,10 +326,10 @@ const src = - Promo None w/Video (no loop or autoplay, DARK text albeit the same video) + Promo None w/Video (no loop or autoplay, 'light video', albeit with same file for now) (hasVideo !== false && lightVideo) && css` + background-color: rgba(255, 255, 255, 0.75); + box-shadow: 0px 0px 100px 100px rgba(255, 255, 255, 0.75); + `} } ${({ position }) => position === 'lower' && css`