Add: background
This commit is contained in:
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
public/SprbScan021.png.webp filter=lfs diff=lfs merge=lfs -text
|
||||||
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>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import Head from "next/head";
|
import Head from "next/head";
|
||||||
import styles from "../styles/Home.module.css";
|
import styles from "../styles/Home.module.css";
|
||||||
|
import Background from "../components/Background";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Box,
|
Box,
|
||||||
@@ -27,6 +28,7 @@ const theme = createTheme({
|
|||||||
function MyApp({ Component, pageProps }) {
|
function MyApp({ Component, pageProps }) {
|
||||||
return (
|
return (
|
||||||
<ThemeProvider theme={theme}>
|
<ThemeProvider theme={theme}>
|
||||||
|
<Background />
|
||||||
<Container
|
<Container
|
||||||
sx={{
|
sx={{
|
||||||
p: 3,
|
p: 3,
|
||||||
|
|||||||
BIN
public/SprbScan021.png.webp
(Stored with Git LFS)
Normal file
BIN
public/SprbScan021.png.webp
(Stored with Git LFS)
Normal file
Binary file not shown.
Reference in New Issue
Block a user