hw7 started, added project info page

This commit is contained in:
2026-04-15 23:29:17 +10:00
parent e7d5d07523
commit e5147e90b2
15 changed files with 636 additions and 80 deletions

View File

@@ -0,0 +1,36 @@
import { useState } from "react";
import { playbackVideo } from '../../data.tsx';
const BgVideo = () => {
const videoSrc = playbackVideo;
const [loading, setLoading] = useState(true);
const makeVisible = () => {
setLoading(false);
}
return (
<video
onLoadedData={makeVisible}
autoPlay
muted
loop
style={{
position: "fixed",
minWidth: "100vw",
minHeight: "100vh",
left: 0,
top: 0,
zIndex: -1,
opacity: loading ? 0 : 1,
transition: "opacity, 2s ease-in-out"
}}
>
<source src={videoSrc} type="video/mp4" />
</video>
);
}
export default BgVideo;