Move head and footer to _app.js
This commit is contained in:
203
package-lock.json
generated
203
package-lock.json
generated
@@ -11,6 +11,7 @@
|
||||
"@emotion/react": "^11.8.2",
|
||||
"@emotion/styled": "^11.8.1",
|
||||
"@mui/icons-material": "^5.5.1",
|
||||
"@mui/lab": "^5.0.0-alpha.75",
|
||||
"@mui/material": "^5.5.3",
|
||||
"next": "12.1.2",
|
||||
"react": "17.0.2",
|
||||
@@ -467,6 +468,75 @@
|
||||
"node": ">=6.9.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@date-io/core": {
|
||||
"version": "2.13.1",
|
||||
"resolved": "https://registry.npmmirror.com/@date-io/core/-/core-2.13.1.tgz",
|
||||
"integrity": "sha512-pVI9nfkf2qClb2Cxdq0Q4zJhdawMG4ybWZUVGifT78FDwzRMX2SwXBb55s5NRJk0HcIicDuxktmCtemZqMH1Zg=="
|
||||
},
|
||||
"node_modules/@date-io/date-fns": {
|
||||
"version": "2.13.1",
|
||||
"resolved": "https://registry.npmmirror.com/@date-io/date-fns/-/date-fns-2.13.1.tgz",
|
||||
"integrity": "sha512-8fmfwjiLMpFLD+t4NBwDx0eblWnNcgt4NgfT/uiiQTGI81fnPu9tpBMYdAcuWxaV7LLpXgzLBx1SYWAMDVUDQQ==",
|
||||
"dependencies": {
|
||||
"@date-io/core": "^2.13.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"date-fns": "^2.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"date-fns": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@date-io/dayjs": {
|
||||
"version": "2.13.1",
|
||||
"resolved": "https://registry.npmmirror.com/@date-io/dayjs/-/dayjs-2.13.1.tgz",
|
||||
"integrity": "sha512-5bL4WWWmlI4uGZVScANhHJV7Mjp93ec2gNeUHDqqLaMZhp51S0NgD25oqj/k0LqBn1cdU2MvzNpk/ObMmVv5cQ==",
|
||||
"dependencies": {
|
||||
"@date-io/core": "^2.13.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"dayjs": "^1.8.17"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"dayjs": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@date-io/luxon": {
|
||||
"version": "2.13.1",
|
||||
"resolved": "https://registry.npmmirror.com/@date-io/luxon/-/luxon-2.13.1.tgz",
|
||||
"integrity": "sha512-yG+uM7lXfwLyKKEwjvP8oZ7qblpmfl9gxQYae55ifbwiTs0CoCTkYkxEaQHGkYtTqGTzLqcb0O9Pzx6vgWg+yg==",
|
||||
"dependencies": {
|
||||
"@date-io/core": "^2.13.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"luxon": "^1.21.3 || ^2.x"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"luxon": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@date-io/moment": {
|
||||
"version": "2.13.1",
|
||||
"resolved": "https://registry.npmmirror.com/@date-io/moment/-/moment-2.13.1.tgz",
|
||||
"integrity": "sha512-XX1X/Tlvl3TdqQy2j0ZUtEJV6Rl8tOyc5WOS3ki52He28Uzme4Ro/JuPWTMBDH63weSWIZDlbR7zBgp3ZA2y1A==",
|
||||
"dependencies": {
|
||||
"@date-io/core": "^2.13.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"moment": "^2.24.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"moment": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@emotion/babel-plugin": {
|
||||
"version": "11.7.2",
|
||||
"resolved": "https://registry.npmmirror.com/@emotion/babel-plugin/-/babel-plugin-11.7.2.tgz",
|
||||
@@ -721,6 +791,61 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@mui/lab": {
|
||||
"version": "5.0.0-alpha.75",
|
||||
"resolved": "https://registry.npmmirror.com/@mui/lab/-/lab-5.0.0-alpha.75.tgz",
|
||||
"integrity": "sha512-2DgPGYm0wjuSSb9R4cp97LINvHBI7+8eT1WL108GmniwFbAxb0U7hc//QF44W0JyJbLU+qNiScFJupQMTbe4dg==",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.2",
|
||||
"@date-io/date-fns": "^2.13.1",
|
||||
"@date-io/dayjs": "^2.13.1",
|
||||
"@date-io/luxon": "^2.13.1",
|
||||
"@date-io/moment": "^2.13.1",
|
||||
"@mui/base": "5.0.0-alpha.74",
|
||||
"@mui/system": "^5.5.3",
|
||||
"@mui/utils": "^5.5.3",
|
||||
"clsx": "^1.1.1",
|
||||
"prop-types": "^15.7.2",
|
||||
"react-is": "^17.0.2",
|
||||
"react-transition-group": "^4.4.2",
|
||||
"rifm": "^0.12.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@mui/material": "^5.0.0",
|
||||
"@types/react": "^16.8.6 || ^17.0.0",
|
||||
"date-fns": "^2.25.0",
|
||||
"dayjs": "^1.10.7",
|
||||
"luxon": "^1.28.0 || ^2.0.0",
|
||||
"moment": "^2.29.1",
|
||||
"react": "^17.0.0",
|
||||
"react-dom": "^17.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@types/react": {
|
||||
"optional": true
|
||||
},
|
||||
"date-fns": {
|
||||
"optional": true
|
||||
},
|
||||
"dayjs": {
|
||||
"optional": true
|
||||
},
|
||||
"luxon": {
|
||||
"optional": true
|
||||
},
|
||||
"moment": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@mui/lab/node_modules/react-is": {
|
||||
"version": "17.0.2",
|
||||
"resolved": "https://registry.npmmirror.com/react-is/-/react-is-17.0.2.tgz",
|
||||
"integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w=="
|
||||
},
|
||||
"node_modules/@mui/material": {
|
||||
"version": "5.5.3",
|
||||
"resolved": "https://registry.npmmirror.com/@mui/material/-/material-5.5.3.tgz",
|
||||
@@ -3294,6 +3419,14 @@
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/rifm": {
|
||||
"version": "0.12.1",
|
||||
"resolved": "https://registry.npmmirror.com/rifm/-/rifm-0.12.1.tgz",
|
||||
"integrity": "sha512-OGA1Bitg/dSJtI/c4dh90svzaUPt228kzFsUkJbtA2c964IqEAwWXeL9ZJi86xWv3j5SMqRvGULl7bA6cK0Bvg==",
|
||||
"peerDependencies": {
|
||||
"react": ">=16.8"
|
||||
}
|
||||
},
|
||||
"node_modules/rimraf": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmmirror.com/rimraf/-/rimraf-3.0.2.tgz",
|
||||
@@ -4039,6 +4172,43 @@
|
||||
"to-fast-properties": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"@date-io/core": {
|
||||
"version": "2.13.1",
|
||||
"resolved": "https://registry.npmmirror.com/@date-io/core/-/core-2.13.1.tgz",
|
||||
"integrity": "sha512-pVI9nfkf2qClb2Cxdq0Q4zJhdawMG4ybWZUVGifT78FDwzRMX2SwXBb55s5NRJk0HcIicDuxktmCtemZqMH1Zg=="
|
||||
},
|
||||
"@date-io/date-fns": {
|
||||
"version": "2.13.1",
|
||||
"resolved": "https://registry.npmmirror.com/@date-io/date-fns/-/date-fns-2.13.1.tgz",
|
||||
"integrity": "sha512-8fmfwjiLMpFLD+t4NBwDx0eblWnNcgt4NgfT/uiiQTGI81fnPu9tpBMYdAcuWxaV7LLpXgzLBx1SYWAMDVUDQQ==",
|
||||
"requires": {
|
||||
"@date-io/core": "^2.13.1"
|
||||
}
|
||||
},
|
||||
"@date-io/dayjs": {
|
||||
"version": "2.13.1",
|
||||
"resolved": "https://registry.npmmirror.com/@date-io/dayjs/-/dayjs-2.13.1.tgz",
|
||||
"integrity": "sha512-5bL4WWWmlI4uGZVScANhHJV7Mjp93ec2gNeUHDqqLaMZhp51S0NgD25oqj/k0LqBn1cdU2MvzNpk/ObMmVv5cQ==",
|
||||
"requires": {
|
||||
"@date-io/core": "^2.13.1"
|
||||
}
|
||||
},
|
||||
"@date-io/luxon": {
|
||||
"version": "2.13.1",
|
||||
"resolved": "https://registry.npmmirror.com/@date-io/luxon/-/luxon-2.13.1.tgz",
|
||||
"integrity": "sha512-yG+uM7lXfwLyKKEwjvP8oZ7qblpmfl9gxQYae55ifbwiTs0CoCTkYkxEaQHGkYtTqGTzLqcb0O9Pzx6vgWg+yg==",
|
||||
"requires": {
|
||||
"@date-io/core": "^2.13.1"
|
||||
}
|
||||
},
|
||||
"@date-io/moment": {
|
||||
"version": "2.13.1",
|
||||
"resolved": "https://registry.npmmirror.com/@date-io/moment/-/moment-2.13.1.tgz",
|
||||
"integrity": "sha512-XX1X/Tlvl3TdqQy2j0ZUtEJV6Rl8tOyc5WOS3ki52He28Uzme4Ro/JuPWTMBDH63weSWIZDlbR7zBgp3ZA2y1A==",
|
||||
"requires": {
|
||||
"@date-io/core": "^2.13.1"
|
||||
}
|
||||
},
|
||||
"@emotion/babel-plugin": {
|
||||
"version": "11.7.2",
|
||||
"resolved": "https://registry.npmmirror.com/@emotion/babel-plugin/-/babel-plugin-11.7.2.tgz",
|
||||
@@ -4232,6 +4402,33 @@
|
||||
"@babel/runtime": "^7.17.2"
|
||||
}
|
||||
},
|
||||
"@mui/lab": {
|
||||
"version": "5.0.0-alpha.75",
|
||||
"resolved": "https://registry.npmmirror.com/@mui/lab/-/lab-5.0.0-alpha.75.tgz",
|
||||
"integrity": "sha512-2DgPGYm0wjuSSb9R4cp97LINvHBI7+8eT1WL108GmniwFbAxb0U7hc//QF44W0JyJbLU+qNiScFJupQMTbe4dg==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.17.2",
|
||||
"@date-io/date-fns": "^2.13.1",
|
||||
"@date-io/dayjs": "^2.13.1",
|
||||
"@date-io/luxon": "^2.13.1",
|
||||
"@date-io/moment": "^2.13.1",
|
||||
"@mui/base": "5.0.0-alpha.74",
|
||||
"@mui/system": "^5.5.3",
|
||||
"@mui/utils": "^5.5.3",
|
||||
"clsx": "^1.1.1",
|
||||
"prop-types": "^15.7.2",
|
||||
"react-is": "^17.0.2",
|
||||
"react-transition-group": "^4.4.2",
|
||||
"rifm": "^0.12.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"react-is": {
|
||||
"version": "17.0.2",
|
||||
"resolved": "https://registry.npmmirror.com/react-is/-/react-is-17.0.2.tgz",
|
||||
"integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"@mui/material": {
|
||||
"version": "5.5.3",
|
||||
"resolved": "https://registry.npmmirror.com/@mui/material/-/material-5.5.3.tgz",
|
||||
@@ -6173,6 +6370,12 @@
|
||||
"integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==",
|
||||
"dev": true
|
||||
},
|
||||
"rifm": {
|
||||
"version": "0.12.1",
|
||||
"resolved": "https://registry.npmmirror.com/rifm/-/rifm-0.12.1.tgz",
|
||||
"integrity": "sha512-OGA1Bitg/dSJtI/c4dh90svzaUPt228kzFsUkJbtA2c964IqEAwWXeL9ZJi86xWv3j5SMqRvGULl7bA6cK0Bvg==",
|
||||
"requires": {}
|
||||
},
|
||||
"rimraf": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmmirror.com/rimraf/-/rimraf-3.0.2.tgz",
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
"@emotion/react": "^11.8.2",
|
||||
"@emotion/styled": "^11.8.1",
|
||||
"@mui/icons-material": "^5.5.1",
|
||||
"@mui/lab": "^5.0.0-alpha.75",
|
||||
"@mui/material": "^5.5.3",
|
||||
"next": "12.1.2",
|
||||
"react": "17.0.2",
|
||||
|
||||
@@ -1,7 +1,30 @@
|
||||
import '../styles/globals.css'
|
||||
import Link from "next/link";
|
||||
import Head from "next/head";
|
||||
import "../styles/globals.css";
|
||||
import styles from "../styles/Home.module.css";
|
||||
|
||||
function MyApp({ Component, pageProps }) {
|
||||
return <Component {...pageProps} />
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>前端技术分享</title>
|
||||
<meta name="description" content="乐" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
</Head>
|
||||
|
||||
<Component {...pageProps} />
|
||||
|
||||
<footer className={styles.footer}>
|
||||
<Link
|
||||
href="https://beian.miit.gov.cn/"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
粤ICP备2022033906号-1
|
||||
</Link>
|
||||
</footer>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default MyApp
|
||||
export default MyApp;
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user