diff options
Diffstat (limited to 'pages')
-rw-r--r-- | pages/_document.tsx | 14 | ||||
-rw-r--r-- | pages/index.tsx | 9 |
2 files changed, 20 insertions, 3 deletions
diff --git a/pages/_document.tsx b/pages/_document.tsx new file mode 100644 index 00000000..e2f593fb --- /dev/null +++ b/pages/_document.tsx @@ -0,0 +1,14 @@ +import { Html, Head, Main, NextScript } from 'next/document' + +export default function Document() { + return ( + <Html lang="en"> + <Head /> + <body> + <Main /> + <NextScript /> + </body> + </Html> + ) +} + diff --git a/pages/index.tsx b/pages/index.tsx index b984cae5..7e72bc24 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -1,13 +1,16 @@ import type { NextPage } from 'next' import Head from 'next/head' import Image from 'next/image' +import Layout from '../components/layout' import styles from '../styles/Home.module.css' const Home: NextPage = () => { return ( - <h1 className="text-3xl font-bold underline"> - Hello world! - </h1> + <Layout> + <h1 className="text-3xl font-bold underline"> + Hello world! + </h1> + </Layout> ) } |