Add: background
This commit is contained in:
18
components/Background.js
Normal file
18
components/Background.js
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user