From 2dadc9bcfa5213e268a5a98ec0a8b6c67c8e514b Mon Sep 17 00:00:00 2001 From: Lucid Kobold Date: Mon, 13 Sep 2021 16:08:47 -0400 Subject: [PATCH] Fix meta data in accordance to the docs. --- next-env.d.ts | 3 +++ pages/_app.tsx | 19 +++++++++++++++++++ pages/_document.tsx | 6 ++---- pages/index.tsx | 4 ++-- yarn.lock | 32 ++++++++++++++++---------------- 5 files changed, 42 insertions(+), 22 deletions(-) create mode 100644 pages/_app.tsx diff --git a/next-env.d.ts b/next-env.d.ts index c6643fd..9bc3dd4 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,3 +1,6 @@ /// /// /// + +// NOTE: This file should not be edited +// see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/pages/_app.tsx b/pages/_app.tsx new file mode 100644 index 0000000..e2856d0 --- /dev/null +++ b/pages/_app.tsx @@ -0,0 +1,19 @@ +import type { AppProps } from "next/app"; + +import Head from 'next/head' +import React, { Fragment } from "react"; + +function LucidCreationWebsite({ Component, pageProps }: AppProps): JSX.Element { + return ( + + + + + + + + + ) +} + +export default LucidCreationWebsite; diff --git a/pages/_document.tsx b/pages/_document.tsx index 49474bd..83752bc 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -1,15 +1,13 @@ import Document, { Html, Main, NextScript, Head } from 'next/document' import Footer from '../components/layout/Footer' +import React from 'react' class MyDocument extends Document { - render() { + render(): JSX.Element { return ( - - -
diff --git a/pages/index.tsx b/pages/index.tsx index b6f3786..a3fce2b 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -1,7 +1,7 @@ import Head from 'next/head' import React, { Fragment } from 'react' -const IndexPage = () => { +const IndexPage = (): JSX.Element => { return (
@@ -18,4 +18,4 @@ const IndexPage = () => { ) } -export default IndexPage +export default IndexPage; diff --git a/yarn.lock b/yarn.lock index e055ebe..c294949 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2786,6 +2786,22 @@ fsevents@~2.3.1: languageName: node linkType: hard +"lucid-creations-media-website@workspace:.": + version: 0.0.0-use.local + resolution: "lucid-creations-media-website@workspace:." + dependencies: + "@types/node": ^16.4.13 + "@types/react": ^17.0.2 + "@types/react-dom": ^17.0.1 + eslint: ^7.32.0 + eslint-config-next: ^11.0.1 + next: ^11.1.1 + react: ^17.0.2 + react-dom: ^17.0.2 + typescript: 4.3.5 + languageName: unknown + linkType: soft + "make-dir@npm:^3.0.2": version: 3.1.0 resolution: "make-dir@npm:3.1.0" @@ -3961,22 +3977,6 @@ resolve@^2.0.0-next.3: languageName: node linkType: hard -"root-workspace-0b6124@workspace:.": - version: 0.0.0-use.local - resolution: "root-workspace-0b6124@workspace:." - dependencies: - "@types/node": ^16.4.13 - "@types/react": ^17.0.2 - "@types/react-dom": ^17.0.1 - eslint: ^7.32.0 - eslint-config-next: ^11.0.1 - next: ^11.1.1 - react: ^17.0.2 - react-dom: ^17.0.2 - typescript: 4.3.5 - languageName: unknown - linkType: soft - "run-parallel@npm:^1.1.9": version: 1.2.0 resolution: "run-parallel@npm:1.2.0"