30 lines
717 B
TypeScript
30 lines
717 B
TypeScript
import type { NextPage } from "next";
|
|
import Head from "next/head";
|
|
import Navigation from "./Navigation";
|
|
|
|
import styles from "../../styles/Blog/Blog.module.scss";
|
|
|
|
interface ILayoutProps {
|
|
title?: string;
|
|
}
|
|
|
|
const Layout: NextPage<ILayoutProps> = ({ title, children }) => {
|
|
return <>
|
|
<Head>
|
|
<title>{title ?? "c0ntroller.de"}</title>
|
|
</Head>
|
|
<div id={styles.blogBody}>
|
|
<header id={"top"}>
|
|
<Navigation />
|
|
</header>
|
|
<main>
|
|
{ children }
|
|
</main>
|
|
<footer id={"bottom"}>
|
|
Copyright und so nen Stuff
|
|
</footer>
|
|
</div>
|
|
</>;
|
|
};
|
|
|
|
export default Layout; |