Fix meta data in accordance to the docs.

This commit is contained in:
2021-09-13 16:08:47 -04:00
parent d4ccb7a5c8
commit 2dadc9bcfa
5 changed files with 42 additions and 22 deletions

3
next-env.d.ts vendored
View File

@@ -1,3 +1,6 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.

19
pages/_app.tsx Normal file
View File

@@ -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 (
<Fragment>
<Head>
<meta charSet="utf-8" />
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
<link rel="icon" href="/logo/favicon/favicon.ico" />
</Head>
<Component {...pageProps} />
</Fragment>
)
}
export default LucidCreationWebsite;

View File

@@ -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 (
<Html>
<Head>
<meta name="description" content="The new and improved Lucid Creations Media website." />
<meta charSet="utf-8" />
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
<link rel="icon" href="/logo/favicon/favicon.ico" />
</Head>
<body>
<Main />

View File

@@ -1,7 +1,7 @@
import Head from 'next/head'
import React, { Fragment } from 'react'
const IndexPage = () => {
const IndexPage = (): JSX.Element => {
return (
<div>
<Head>
@@ -18,4 +18,4 @@ const IndexPage = () => {
)
}
export default IndexPage
export default IndexPage;

View File

@@ -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"