mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add missing file
This commit is contained in:
parent
fe232a09c1
commit
4a143b069c
1 changed files with 56 additions and 0 deletions
56
packages/web/components/templates/AuthLayout.tsx
Normal file
56
packages/web/components/templates/AuthLayout.tsx
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
import { Box, VStack, HStack } from '../elements/LayoutPrimitives'
|
||||
import { OmnivoreNameLogo } from '../elements/images/OmnivoreNameLogo'
|
||||
import { theme } from '../tokens/stitches.config'
|
||||
import { GoogleReCaptchaProvider } from '@google-recaptcha/react'
|
||||
|
||||
type ProfileLayoutProps = {
|
||||
logoDestination?: string
|
||||
children: React.ReactNode
|
||||
}
|
||||
|
||||
export function AuthLayout(props: ProfileLayoutProps): JSX.Element {
|
||||
return (
|
||||
<>
|
||||
<VStack
|
||||
alignment="center"
|
||||
distribution="center"
|
||||
css={{
|
||||
// bg: '$omnivoreYellow',
|
||||
height: '100vh',
|
||||
bg: '$omnivoreYellow',
|
||||
}}
|
||||
>
|
||||
{props.children}
|
||||
</VStack>
|
||||
|
||||
<Box
|
||||
css={{
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
left: 0,
|
||||
m: '0',
|
||||
width: '100%',
|
||||
}}
|
||||
>
|
||||
<HStack
|
||||
alignment="center"
|
||||
distribution="between"
|
||||
css={{
|
||||
mt: '18px',
|
||||
ml: '18px',
|
||||
mr: '0',
|
||||
'@smDown': {
|
||||
ml: '8px',
|
||||
mt: '10px',
|
||||
},
|
||||
}}
|
||||
>
|
||||
<OmnivoreNameLogo
|
||||
color={theme.colors.omnivoreGray.toString()}
|
||||
href={props.logoDestination ?? '/login'}
|
||||
/>
|
||||
</HStack>
|
||||
</Box>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Loading…
Reference in a new issue