2021-07-02 20:55:26 +02:00
|
|
|
import {useTranslation} from 'next-i18next';
|
|
|
|
|
2021-07-01 00:49:05 +02:00
|
|
|
import Head from 'next/head'
|
|
|
|
import Logo from './Logo'
|
|
|
|
import Link from 'next/link'
|
|
|
|
|
|
|
|
interface PageProps {
|
|
|
|
content: JSX.Element
|
|
|
|
}
|
|
|
|
|
|
|
|
function Page(props: PageProps): JSX.Element {
|
2021-07-02 20:55:26 +02:00
|
|
|
const { t } = useTranslation('common');
|
|
|
|
|
2021-07-01 00:49:05 +02:00
|
|
|
return (
|
2021-12-25 23:58:45 +01:00
|
|
|
<div className="md:w-2/3 xl:w-2/5 md:mx-auto flex flex-col min-h-screen justify-center px-5 pt-12 pb-16">
|
2021-07-01 00:49:05 +02:00
|
|
|
<Head>
|
2021-07-02 20:55:26 +02:00
|
|
|
<title>{t('common:title')}</title>
|
2021-07-01 00:49:05 +02:00
|
|
|
<link rel="icon" href="/favicon.ico"/>
|
|
|
|
</Head>
|
|
|
|
<div>
|
|
|
|
<main className="flex flex-col space-y-5">
|
|
|
|
<Logo/>
|
|
|
|
|
|
|
|
{props.content}
|
|
|
|
|
|
|
|
<footer>
|
2021-12-02 01:02:20 +01:00
|
|
|
<nav className="nav flex flex-row space-x-4 justify-center text-md font-bold flex-wrap">
|
2021-07-02 20:55:26 +02:00
|
|
|
<a href="https://github.com/marvinsxtr/covidpass" className="hover:underline">{t('common:gitHub')}</a>
|
|
|
|
<Link href="/privacy"><a className="hover:underline">{t('common:privacyPolicy')}</a></Link>
|
|
|
|
<Link href="/imprint"><a className="hover:underline">{t('common:imprint')}</a></Link>
|
2021-07-01 00:49:05 +02:00
|
|
|
</nav>
|
|
|
|
</footer>
|
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Page
|