add new hero video
This commit is contained in:
parent
071f994fde
commit
18bb0d8c1b
Binary file not shown.
Before Width: | Height: | Size: 1.8 MiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
|
@ -5,7 +5,11 @@ import React from 'react'
|
|||
export const HeroAssetContainer: React.FC = () => {
|
||||
return (
|
||||
<Container>
|
||||
<Image src="right-side.gif" alt="right-side" />
|
||||
<Video autoPlay loop muted playsInline poster={'/videos/poster.jpeg'}>
|
||||
<source src={'/videos/output.webm'} type={'video/webm'} />
|
||||
<source src={'/videos/output.mp4'} type={'video/mp4'} />
|
||||
<source src={'/videos/output.ogv'} type={'video/ogv'} />
|
||||
</Video>
|
||||
</Container>
|
||||
)
|
||||
}
|
||||
|
@ -20,7 +24,7 @@ const Container = styled.div`
|
|||
}
|
||||
`
|
||||
|
||||
const Image = styled.img`
|
||||
const Video = styled.video`
|
||||
position: fixed;
|
||||
top: ${uiConfigs.navbarHeight}px;
|
||||
right: 0px;
|
||||
|
|
Loading…
Reference in New Issue