feat: move demo video to remote assets (#7)
This commit is contained in:
parent
98e11704e6
commit
10854c836b
@ -1 +0,0 @@
|
|||||||
export { default as DemoVideo } from './demo.mp4';
|
|
@ -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
5
types.d.ts
vendored
@ -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;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user