frontpage/components/Blog/Layout.tsx

30 lines
713 B
TypeScript
Raw Normal View History

2022-10-07 23:36:57 +02:00
import type { NextPage } from "next";
import Head from "next/head";
import Navigation from "./Navigation";
2022-10-15 22:21:58 +02:00
import styles from "../../styles/Blog/Blog.module.scss";
2022-10-07 23:36:57 +02:00
interface ILayoutProps {
title?: string;
}
const Layout: NextPage<ILayoutProps> = ({ title, children }) => {
return <>
<Head>
<title>{title ?? "c0ntroller.de"}</title>
</Head>
2022-10-15 22:21:58 +02:00
<div id={styles.blogBody}>
2022-10-29 21:13:28 +02:00
<header id="top">
2022-10-07 23:36:57 +02:00
<Navigation />
</header>
<main>
{ children }
</main>
2022-10-29 21:13:28 +02:00
<footer id="bottom">
2022-10-15 23:08:49 +02:00
Copyright und so nen Stuff
</footer>
2022-10-07 23:36:57 +02:00
</div>
</>;
};
export default Layout;