2022-03-12 23:40:28 -05:00
|
|
|
import '@styles/globals.css'
|
2022-03-06 19:46:59 -05:00
|
|
|
import type { AppProps as NextAppProps } from "next/app";
|
|
|
|
|
2022-03-09 20:11:37 -05:00
|
|
|
import 'react-loading-skeleton/dist/skeleton.css'
|
2022-03-09 20:47:54 -05:00
|
|
|
import { SkeletonTheme } from 'react-loading-skeleton';
|
|
|
|
import Head from 'next/head';
|
2022-03-22 23:06:15 -04:00
|
|
|
import useTheme from '@lib/hooks/use-theme';
|
|
|
|
import { CssBaseline, GeistProvider } from '@geist-ui/core';
|
2022-03-15 22:49:41 -04:00
|
|
|
|
2022-03-06 19:46:59 -05:00
|
|
|
type AppProps<P = any> = {
|
|
|
|
pageProps: P;
|
|
|
|
} & Omit<NextAppProps<P>, "pageProps">;
|
|
|
|
|
|
|
|
|
2022-03-22 23:06:15 -04:00
|
|
|
function MyApp({ Component, pageProps }: AppProps) {
|
|
|
|
const { theme } = useTheme()
|
|
|
|
const skeletonBaseColor = 'var(--light-gray)'
|
|
|
|
const skeletonHighlightColor = 'var(--lighter-gray)'
|
2022-03-09 20:47:54 -05:00
|
|
|
|
2022-03-06 19:46:59 -05:00
|
|
|
return (
|
2022-03-09 20:47:54 -05:00
|
|
|
<>
|
|
|
|
<Head>
|
|
|
|
<meta charSet="utf-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
2022-03-12 18:51:31 -05:00
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png" />
|
|
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png" />
|
|
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon-16x16.png" />
|
2022-03-09 20:47:54 -05:00
|
|
|
<link rel="manifest" href="/site.webmanifest" />
|
2022-03-12 18:51:31 -05:00
|
|
|
<link rel="mask-icon" href="/assets/safari-pinned-tab.svg" color="#5bbad5" />
|
2022-03-09 20:47:54 -05:00
|
|
|
<meta name="apple-mobile-web-app-title" content="Drift" />
|
|
|
|
<meta name="application-name" content="Drift" />
|
|
|
|
<meta name="msapplication-TileColor" content="#da532c" />
|
|
|
|
<meta name="theme-color" content="#ffffff" />
|
2022-03-12 23:13:35 -05:00
|
|
|
<title>Drift</title>
|
2022-03-09 20:47:54 -05:00
|
|
|
</Head>
|
2022-03-22 23:06:15 -04:00
|
|
|
<GeistProvider themeType={theme} >
|
2022-03-09 20:47:54 -05:00
|
|
|
<SkeletonTheme baseColor={skeletonBaseColor} highlightColor={skeletonHighlightColor}>
|
|
|
|
<CssBaseline />
|
2022-03-22 23:06:15 -04:00
|
|
|
<Component {...pageProps} />
|
2022-03-09 20:47:54 -05:00
|
|
|
</SkeletonTheme>
|
|
|
|
</GeistProvider>
|
|
|
|
</>
|
2022-03-06 19:46:59 -05:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default MyApp
|