47 lines
1.9 KiB
TypeScript
47 lines
1.9 KiB
TypeScript
import React from "react";
|
|
import {useTranslation} from 'next-i18next';
|
|
|
|
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 {
|
|
const { t } = useTranslation('common');
|
|
return (
|
|
<div className="md:w-2/3 xl:w-2/5 md:mx-auto flex flex-col min-h-screen justify-center px-5 py-12">
|
|
<Head>
|
|
<title>{t('common:title')}</title>
|
|
<link rel="icon" href="/favicon.ico"/>
|
|
<script src='patch-arrayBuffer.js' />
|
|
</Head>
|
|
<div>
|
|
<main className="flex flex-col space-y-5">
|
|
<Logo/>
|
|
|
|
{props.content}
|
|
|
|
<footer>
|
|
<nav className="nav flex pt-4 flex-row space-x-4 justify-center text-md font-bold flex-wrap">
|
|
{<Link href="/faq"><a className="underline">{t('common:faq')}</a></Link>}
|
|
<a href="https://twitter.com/grassroots_team" className="underline">{t('index:whatsnew')}</a>
|
|
<a href="mailto:grassroots@vaccine-ontario.ca" className="underline">{t('common:contact')}</a>
|
|
<a href="https://github.com/billylo1/covidpass" className="underline">{t('common:gitHub')}</a>
|
|
<a href="https://vaccine-ontario.ca" className="underline">{t('common:returnToMainSite')}</a>
|
|
</nav>
|
|
<div className="flex pt-4 flex-row space-x-4 justify-center text-md flex-wrap">Last updated: 2021-10-19 (v2.2.0)</div>
|
|
</footer>
|
|
</main>
|
|
</div>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<canvas id="canvas" style={{display: 'none'}}/>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Page |