diff --git a/client/assets/images/icons/close-icon.svg b/client/assets/images/icons/close-icon.svg new file mode 100644 index 0000000000000..15f68d2e4f891 --- /dev/null +++ b/client/assets/images/icons/close-icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/client/components/hundred-year-loader-view.tsx b/client/components/hundred-year-loader-view.tsx index 1e23eeca451cc..d8f0c4783b5de 100644 --- a/client/components/hundred-year-loader-view.tsx +++ b/client/components/hundred-year-loader-view.tsx @@ -8,6 +8,7 @@ const DESKTOP_EARTH_LOOP_URL = 'https://wpcom.files.wordpress.com/2023/09/earth- type LoaderProps = { isMobile: boolean; loadingText: TranslateResult; + hideVideoContainer?: boolean; }; const FullPageContainer = styled.div< { isMobile: boolean } >` @@ -51,7 +52,7 @@ export const VideoPreload = memo( ( { isMobile }: { isMobile: boolean } ) => ) ); -function VideoLoader( { isMobile, loadingText }: LoaderProps ) { +function VideoLoader( { isMobile, loadingText, hideVideoContainer }: LoaderProps ) { const videoObject = useRef< HTMLVideoElement | null >( null ); const FullPageVideoContainer = styled( FullPageContainer )< { isMobile: boolean } >` @@ -65,8 +66,9 @@ function VideoLoader( { isMobile, loadingText }: LoaderProps ) { opacity: 25%; } `; - return ( - + + const videoElement = ( + <> { isMobile ? (