feat: create background page component

This commit is contained in:
RadoslavDimchev 2023-08-10 12:20:39 +03:00
parent b4cf0b2d95
commit 78eb46da1e
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
import { ReactNode } from 'react'
import { Stack } from 'tamagui'
type PageBackgroundProps = {
children: ReactNode
}
const PageBackground = ({ children }: PageBackgroundProps) => {
return (
<Stack
style={{
backgroundColor: 'white',
width: '100vw',
background: 'linear-gradient(180deg, rgba(245,242,254,1) 0%, rgba(255,255,255,1) 100%)',
height: '100vh',
}}
>
{children}
</Stack>
)
}
export default PageBackground