This commit is contained in:
Sean Edmunds
2025-04-10 16:08:56 -05:00
parent 12f6ac82a0
commit 0d7608fd1e
6 changed files with 28 additions and 23 deletions

View File

@@ -1,23 +1,10 @@
import { Box } from '@mantine/core';
import { useCommonHooks } from 'hooks';
import { Outlet } from 'react-router-dom';
import { boxClasses } from 'styles';
export function MainLayout() {
const { theme } = useCommonHooks();
return (
<Box
style={{
width: '100%',
height: '100%',
position: 'fixed',
backgroundImage: `linear-gradient(${theme.backgroundColor}33, ${theme.backgroundColor}33), url(/backgrounds/${theme.backgroundImage})`,
backgroundSize: 'cover',
backgroundRepeat: 'no-repeat',
backgroundPosition: 'center',
zIndex: -1,
overflow: 'scroll',
}}
>
<Box className={boxClasses.layoutContainer}>
<Outlet />
</Box>
);