2020-07-17 10:03:38 +02:00
|
|
|
import React from 'react';
|
|
|
|
import Head from 'next/head';
|
2020-08-07 11:27:12 +02:00
|
|
|
import Header from 'components/layout/Header';
|
|
|
|
import Footer from 'components/layout/Footer';
|
2020-07-17 10:03:38 +02:00
|
|
|
|
2020-08-18 02:23:46 +02:00
|
|
|
export default function Layout({ title, children, header = true, footer = true }) {
|
2020-07-17 10:03:38 +02:00
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<Head>
|
|
|
|
<title>umami{title && ` - ${title}`}</title>
|
|
|
|
<link rel="icon" href="/favicon.ico" />
|
|
|
|
<link
|
2020-07-30 05:09:41 +02:00
|
|
|
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap"
|
2020-07-17 10:03:38 +02:00
|
|
|
rel="stylesheet"
|
|
|
|
/>
|
2020-09-08 00:25:09 +02:00
|
|
|
<link
|
|
|
|
href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap"
|
|
|
|
rel="stylesheet"
|
|
|
|
/>
|
2020-07-17 10:03:38 +02:00
|
|
|
</Head>
|
2020-08-07 07:03:02 +02:00
|
|
|
{header && <Header />}
|
2020-08-18 02:23:46 +02:00
|
|
|
<main className="container">{children}</main>
|
2020-08-19 08:35:26 +02:00
|
|
|
<div id="__modals" />
|
2020-08-07 07:03:02 +02:00
|
|
|
{footer && <Footer />}
|
2020-07-17 10:03:38 +02:00
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|