feat: move demo video to remote assets (#7)
All checks were successful
it-academy/dry-wash-pl/pipeline/pr-main This commit looks good
it-academy/dry-wash-pl/pipeline/head This commit looks good

This commit is contained in:
RustamRu 2024-11-10 11:35:39 +03:00
parent 98e11704e6
commit 10854c836b
4 changed files with 2 additions and 7 deletions

View File

@ -1 +0,0 @@
export { default as DemoVideo } from './demo.mp4';

View File

@ -1,6 +1,5 @@
import React, { FC } from 'react'; import React, { FC } from 'react';
import { Box, Heading, Text, Center, VStack, BoxProps } from '@chakra-ui/react'; import { Box, Heading, Text, Center, VStack, BoxProps } from '@chakra-ui/react';
import { DemoVideo } from '../../../assets/videos';
import { DemoVideoPosterImg } from '../../../assets/images'; import { DemoVideoPosterImg } from '../../../assets/images';
import { CtaButton, SiteLogo, PageSection } from '../'; import { CtaButton, SiteLogo, PageSection } from '../';
@ -11,7 +10,7 @@ export const HeroSection: FC<HeroSectionProps> = ({ flexShrink }) => {
<Box flexShrink={flexShrink} as='header' pos='relative' zIndex={0}> <Box flexShrink={flexShrink} as='header' pos='relative' zIndex={0}>
<Box <Box
as='video' as='video'
src={DemoVideo} src={`${__webpack_public_path__}/remote-assets/demo.mp4`}
poster={DemoVideoPosterImg} poster={DemoVideoPosterImg}
autoPlay autoPlay
loop loop

5
types.d.ts vendored
View File

@ -16,7 +16,4 @@ declare module "*.webp" {
export = value; export = value;
} }
declare module '*.mp4' { declare const __webpack_public_path__: string;
const src: string;
export default src;
}