Add: background

This commit is contained in:
2022-04-06 10:35:13 +08:00
parent 9907163234
commit c9b7f9024c
4 changed files with 24 additions and 0 deletions

18
components/Background.js Normal file
View File

@@ -0,0 +1,18 @@
import Image from "next/image";
import bgImage from "../public/SprbScan021.png.webp";
export default function Background() {
return (
<div
style={{
position: "fixed",
height: "100vh",
width: "100vw",
overflow: "hidden",
zIndex: "-1",
}}
>
<Image src={bgImage} alt="background" layout="fill" objectFit="cover" />
</div>
);
}