add new hero video

This commit is contained in:
amirhouieh 2024-01-09 13:34:03 +01:00 committed by Jinho Jang
parent 071f994fde
commit 18bb0d8c1b
6 changed files with 6 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

BIN
public/videos/output.mp4 Normal file

Binary file not shown.

BIN
public/videos/output.ogv Normal file

Binary file not shown.

BIN
public/videos/output.webm Normal file

Binary file not shown.

BIN
public/videos/poster.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

@ -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;