Migrate to Next

This commit is contained in:
2022-11-11 22:41:53 +00:00
parent 58e38dbedd
commit 4aaad4d704
352 changed files with 15583 additions and 21335 deletions

19
components/Layout.js Normal file
View 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>
);
}