2020-11-29 01:25:48 -07:00
|
|
|
import { Flex, Spinner } from '@chakra-ui/react';
|
|
|
|
|
2020-12-11 09:55:21 -07:00
|
|
|
import type { LoadableBaseOptions } from 'next/dynamic';
|
|
|
|
|
2020-12-29 02:09:14 -07:00
|
|
|
export const Loading: LoadableBaseOptions['loading'] = () => (
|
|
|
|
<Flex flexDirection="column" minHeight="100vh" w="100%">
|
|
|
|
<Flex
|
|
|
|
px={2}
|
|
|
|
py={0}
|
|
|
|
w="100%"
|
|
|
|
bg="white"
|
|
|
|
color="black"
|
|
|
|
flex="1 1 auto"
|
|
|
|
textAlign="center"
|
|
|
|
alignItems="center"
|
|
|
|
justifyContent="center"
|
|
|
|
flexDirection="column"
|
|
|
|
css={{
|
|
|
|
'@media (prefers-color-scheme: dark)': { backgroundColor: 'black', color: 'white' },
|
|
|
|
}}>
|
|
|
|
<Spinner color="primary.500" w="6rem" h="6rem" />
|
2020-11-29 01:25:48 -07:00
|
|
|
</Flex>
|
2020-12-29 02:09:14 -07:00
|
|
|
</Flex>
|
|
|
|
);
|