Initial next app with favicon and metadata.
This commit is contained in:
24
pages/_document.tsx
Normal file
24
pages/_document.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import Document, { Html, Main, NextScript, Head } from 'next/document'
|
||||
import Footer from '../components/layout/Footer'
|
||||
|
||||
class MyDocument extends Document {
|
||||
render() {
|
||||
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 />
|
||||
<NextScript />
|
||||
</body>
|
||||
<Footer />
|
||||
</Html>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
export default MyDocument
|
||||
21
pages/index.tsx
Normal file
21
pages/index.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import Head from 'next/head'
|
||||
import React, { Fragment } from 'react'
|
||||
|
||||
const IndexPage = () => {
|
||||
return (
|
||||
<div>
|
||||
<Head>
|
||||
<title>Lucid Creations Media</title>
|
||||
</Head>
|
||||
<Fragment>
|
||||
<div>
|
||||
<span>
|
||||
Hello world!!
|
||||
</span>
|
||||
</div>
|
||||
</Fragment>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default IndexPage
|
||||
Reference in New Issue
Block a user