Migrate to Next
This commit is contained in:
19
components/Layout.js
Normal file
19
components/Layout.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import React from "react";
|
||||
import Head from "next/head";
|
||||
import { Footer, Nav } from ".";
|
||||
import styles from "./Layout.module.css";
|
||||
|
||||
export default function Layout({ title, children }) {
|
||||
const pageTitle = `${title ? `${title} : ` : ""}ABC Project Design`;
|
||||
return (
|
||||
<div className={styles.block}>
|
||||
<Head>
|
||||
<title>{pageTitle}</title>
|
||||
<link rel="icon" href="/favicon.png" />
|
||||
</Head>
|
||||
<Nav />
|
||||
<main className={styles.main}>{children}</main>
|
||||
<Footer />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user