diff --git a/site/pages/_app.tsx b/site/pages/_app.tsx index 9cb8010a5dbea..f57ad10d6c774 100644 --- a/site/pages/_app.tsx +++ b/site/pages/_app.tsx @@ -40,16 +40,27 @@ const Contents: React.FC = ({ Component, pageProps }) => { ) } +/** + * ClientRender is a component that only allows its children to be rendered + * client-side. This check is performed by querying the existence of the window + * global. + */ +const ClientRender: React.FC = ({ children }) => ( +
{typeof window === "undefined" ? null : children}
+) + /** * is the root rendering logic of the application - setting up our router * and any contexts / global state management. */ const MyApp: React.FC = (appProps) => { return ( - - - - + + + + + + ) } diff --git a/site/pages/_document.tsx b/site/pages/_document.tsx new file mode 100644 index 0000000000000..12a08ff3f8c62 --- /dev/null +++ b/site/pages/_document.tsx @@ -0,0 +1,33 @@ +import Document, { DocumentContext, Head, Html, Main, NextScript } from "next/document" +import React from "react" + +class MyDocument extends Document { + // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types + static async getInitialProps(ctx: DocumentContext) { + const initialProps = await Document.getInitialProps(ctx) + return { ...initialProps } + } + + render(): JSX.Element { + return ( + + + + + + + + + + + + +
+ + + + ) + } +} + +export default MyDocument diff --git a/site/static/favicon.ico b/site/static/favicon.ico new file mode 100644 index 0000000000000..2e20e00e1a1dc Binary files /dev/null and b/site/static/favicon.ico differ diff --git a/site/static/favicon.png b/site/static/favicon.png new file mode 100644 index 0000000000000..ebb0c8c8062b5 Binary files /dev/null and b/site/static/favicon.png differ diff --git a/site/static/favicon.svg b/site/static/favicon.svg new file mode 100644 index 0000000000000..015e8ebfc7879 --- /dev/null +++ b/site/static/favicon.svg @@ -0,0 +1 @@ + \ No newline at end of file