Move head and footer to _app.js

This commit is contained in:
2022-04-06 00:21:49 +08:00
parent 3806e87638
commit de33d12ab0
4 changed files with 231 additions and 22 deletions

View File

@@ -1,6 +1,4 @@
import Head from "next/head";
import Image from "next/image";
import Link from "next/link";
import styles from "../styles/Home.module.css";
import imageNewFolder from "../public/images/new_folder.webp";
import imageGuGuGu from "../public/images/gugugu.webp";
@@ -8,14 +6,8 @@ import imageGuGuGu from "../public/images/gugugu.webp";
export default function Home() {
return (
<div className={styles.container}>
<Head>
<title>网站建设中</title>
<meta name="description" content="乐" />
<link rel="icon" href="/favicon.ico" />
</Head>
<main className={styles.main}>
<h1 className={styles.title}>网站建设中</h1>
<h1 className={styles.title}>前端技术分享</h1>
<p className={styles.description}>即将上线...</p>
@@ -30,16 +22,6 @@ export default function Home() {
</div>
</div>
</main>
<footer className={styles.footer}>
<Link
href="https://beian.miit.gov.cn/"
target="_blank"
rel="noopener noreferrer"
>
粤ICP备2022033906号-1
</Link>
</footer>
</div>
);
}