Portfolio-v3/components/layout.js
Robert S 79cc0cb8d1
Layout function o.O
Cleaned up the code and that's about it.
2021-12-10 23:09:37 +01:00

37 lines
No EOL
1.7 KiB
JavaScript

import Link from 'next/link';
import Head from 'next/head';
import Navbar from "./navbar";
import Footer from "./footer";
export default function Layout({
children,
title = '',
}) {
return (
<>
<Head>
<meta charSet="UTF-8"/>
<title>Robert S. {title && `- ${title}`}</title>
<meta name="description" content="A developer and tech enthusiast from the Netherlands." />
<meta name="keywords" content="HTML,CSS,JavaScript,Python,SQL,MySQL,PostgreSQL,MongoDB,Redis,Flask,Tailwind,TailwindCSS,Bootstrap" />
<meta name="author" content="Robert Stokreef" />
<link rel="icon" href="/favicon.ico" />
<meta property="og:title" content="Robert S. - My work" />
<meta property="og:description" content="A developer and tech enthusiast from the Netherlands." />
<meta property="og:url" content="https://robert-s.dev/work" />
<meta property="og:image" content="https://robert-s.dev/logo.jpg" />
<meta name="theme-color" content="#F43F5E" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@ThatGuy5275" />
<meta name="twitter:title" content="Robert S. - My work" />
<meta name="twitter:description" content="A developer and tech enthusiast from the Netherlands."/>
<meta name="twitter:image" content="https://robert-s.dev/logo.jpg"/>
</Head>
<div className="flex flex-col min-h-screen">
<Navbar />
{children}
<Footer />
</div>
</>
)
}