-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import React from "react"; | ||
|
||
const VideoBackground = () => { | ||
return ( | ||
<div style={containerStyle}> | ||
<video autoPlay muted loop style={videoStyle}> | ||
<source src="/background/output.webm" type="video/webm" /> | ||
Your browser does not support HTML5 video. | ||
</video> | ||
<div style={overlayStyle} /> | ||
</div> | ||
); | ||
}; | ||
|
||
const videoStyle: any = { | ||
width: "100%", | ||
height: "100%", | ||
objectFit: "cover", | ||
}; | ||
|
||
const containerStyle: any = { | ||
position: "fixed", | ||
right: "0", | ||
bottom: "0", | ||
minWidth: "100%", | ||
minHeight: "100%", | ||
zIndex: "0", | ||
overflow: "hidden", | ||
}; | ||
|
||
const overlayStyle: any = { | ||
position: "absolute", | ||
top: "0", | ||
left: "0", | ||
width: "100%", | ||
height: "100%", | ||
background: "rgba(17, 24, 39, 0.80)", | ||
boxShadow: "0px 2.488px 30.481px 0px rgba(0, 7, 72, 0.08)", | ||
backdropFilter: "blur(7.77584171295166px)", | ||
zIndex: "1", | ||
}; | ||
|
||
export default VideoBackground; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
justify-content: center; | ||
padding: 0 20px; | ||
gap: 24px; | ||
z-index: 1; | ||
} | ||
|
||
.statsSection { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.