From c9b7f9024cf9df3da552e7243bee66841d9b4bdb Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Wed, 6 Apr 2022 10:35:13 +0800 Subject: [PATCH] Add: background --- .gitattributes | 1 + components/Background.js | 18 ++++++++++++++++++ pages/_app.js | 2 ++ public/SprbScan021.png.webp | 3 +++ 4 files changed, 24 insertions(+) create mode 100644 .gitattributes create mode 100644 components/Background.js create mode 100644 public/SprbScan021.png.webp diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..8fd4368 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +public/SprbScan021.png.webp filter=lfs diff=lfs merge=lfs -text diff --git a/components/Background.js b/components/Background.js new file mode 100644 index 0000000..815b30e --- /dev/null +++ b/components/Background.js @@ -0,0 +1,18 @@ +import Image from "next/image"; +import bgImage from "../public/SprbScan021.png.webp"; + +export default function Background() { + return ( +
+ background +
+ ); +} diff --git a/pages/_app.js b/pages/_app.js index 7b0ff6f..190f325 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -1,6 +1,7 @@ import Link from "next/link"; import Head from "next/head"; import styles from "../styles/Home.module.css"; +import Background from "../components/Background"; import { Box, @@ -27,6 +28,7 @@ const theme = createTheme({ function MyApp({ Component, pageProps }) { return ( +