2022-01-17 07:33:28 +00:00
|
|
|
import { Box, Center, Flex, Image, Text } from '@chakra-ui/react';
|
|
|
|
import React from 'react';
|
|
|
|
import { LOGO_URL } from '../constants';
|
2022-01-15 15:45:46 +00:00
|
|
|
|
|
|
|
export function AuthLayout({ children }: { children: React.ReactNode }) {
|
2022-01-17 07:33:28 +00:00
|
|
|
return (
|
2022-01-19 16:50:25 +00:00
|
|
|
<Flex
|
|
|
|
flexWrap="wrap"
|
|
|
|
h="100%"
|
|
|
|
bg="gray.100"
|
|
|
|
alignItems="center"
|
|
|
|
justifyContent="center"
|
|
|
|
flexDirection="column"
|
|
|
|
>
|
|
|
|
<Flex alignItems="center">
|
|
|
|
<Image
|
|
|
|
src="https://authorizer.dev/images/logo.png"
|
|
|
|
alt="logo"
|
|
|
|
height="50"
|
|
|
|
/>
|
|
|
|
<Text fontSize="x-large" ml="3" letterSpacing="3">
|
|
|
|
AUTHORIZER
|
2022-01-17 07:33:28 +00:00
|
|
|
</Text>
|
2022-01-19 16:50:25 +00:00
|
|
|
</Flex>
|
|
|
|
|
|
|
|
<Box p="6" m="5" rounded="5" bg="white" w="500px" shadow="xl">
|
2022-01-17 07:33:28 +00:00
|
|
|
{children}
|
2022-01-19 16:50:25 +00:00
|
|
|
</Box>
|
2022-01-17 07:33:28 +00:00
|
|
|
</Flex>
|
|
|
|
);
|
2022-01-15 15:45:46 +00:00
|
|
|
}
|