pronounss/frontend/pages/_app.tsx

37 lines
1.1 KiB
TypeScript
Raw Normal View History

import "../styles/globals.css";
import type { AppProps } from "next/app";
import Container from "../components/Container";
import Navigation from "../components/Navigation";
import { RecoilRoot } from "recoil";
2022-08-17 03:04:06 +02:00
import Head from "next/head";
function MyApp({ Component, pageProps }: AppProps) {
const domain =
typeof window !== "undefined" ? window.location.origin : process.env.DOMAIN;
return (
<RecoilRoot>
2022-08-17 03:04:06 +02:00
<Head>
<title key="title">pronouns.cc</title>
2022-11-20 23:00:52 +01:00
<meta property="og:type" content="website" />
<meta name="theme-color" content="#aa8ed6" />
<meta key="og:sitename" property="og:site_name" content="pronouns.cc" />
<meta key="og:title" property="og:title" content="pronouns.cc" />
2022-11-20 23:00:52 +01:00
<meta
key="og:description"
2022-11-20 23:00:52 +01:00
property="og:description"
content="Name and pronoun cards!"
/>
<meta key="og:url" property="og:url" content={domain} />
2022-08-17 03:04:06 +02:00
</Head>
<Navigation />
<Container>
<Component {...pageProps} />
</Container>
</RecoilRoot>
);
}
export default MyApp;