components#AppLayout TypeScript Examples

The following examples show how to use components#AppLayout. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: _app.tsx    From covid19-visualized with MIT License 6 votes vote down vote up
public render() {
        const { Component, pageProps } = this.props
        return (
            <AppLayout>
                <Head>
                    <title>COVID-19 Visualized</title>
                    {this.meta}
                    <link rel="manifest" href="/manifest.json" />
                    <link rel="shortcut icon" type="image/x-icon" href="/favicon/favicon.ico" />
                    <link rel="icon" type="image/x-icon" href="/favicon/favicon.ico" />
                    <link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png" />
                    <link rel="icon" type="image/png" sizes="96x96" href="/favicon/favicon-96x96.png" />
                    <link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png" />
                    <link rel="icon" type="image/png" sizes="192x192" href="/favicon/android-icon-192x192.png" />
                    <link rel="apple-touch-icon" sizes="57x57" href="/favicon/apple-icon-57x57.png" />
                    <link rel="apple-touch-icon" sizes="60x60" href="/favicon/apple-icon-60x60.png" />
                    <link rel="apple-touch-icon" sizes="72x72" href="/favicon/apple-icon-72x72.png" />
                    <link rel="apple-touch-icon" sizes="76x76" href="/favicon/apple-icon-76x76.png" />
                    <link rel="apple-touch-icon" sizes="114x114" href="/favicon/apple-icon-114x114.png" />
                    <link rel="apple-touch-icon" sizes="120x120" href="/favicon/apple-icon-120x120.png" />
                    <link rel="apple-touch-icon" sizes="144x144" href="/favicon/apple-icon-144x144.png" />
                    <link rel="apple-touch-icon" sizes="152x152" href="/favicon/apple-icon-152x152.png" />
                    <link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-icon-180x180.png" />
                </Head>
                
                <NextNprogress color="#0292ff" height={2} />
                
                <div className="main-layout">
                    <div className="mx-2 text-right">
                        <a href="https://ko-fi.com/B0B71P7PB" target="_blank">
                            <img style={{ border: 0, height: 36 }} src="https://cdn.ko-fi.com/cdn/kofi3.png?v=2" alt="Buy Me a Coffee at ko-fi.com" />
                        </a>
                    </div>
                    <Component  {...pageProps} />
                </div>
            </AppLayout>
        )
    }