2022-10-07 23:36:57 +02:00
|
|
|
import type { NextPage } from "next";
|
2022-10-16 00:05:44 +02:00
|
|
|
import { useEffect } from "react";
|
2022-10-07 23:36:57 +02:00
|
|
|
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-07 23:36:57 +02:00
|
|
|
<header>
|
|
|
|
<Navigation />
|
|
|
|
</header>
|
|
|
|
<main>
|
|
|
|
{ children }
|
|
|
|
</main>
|
2022-10-15 23:08:49 +02:00
|
|
|
<footer>
|
|
|
|
Copyright und so nen Stuff
|
|
|
|
</footer>
|
2022-10-07 23:36:57 +02:00
|
|
|
</div>
|
|
|
|
</>;
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Layout;
|