mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-07 06:00:57 +00:00
Improved login screens (#9953)
- Fix shadow offset - Simplify Wrapper component
This commit is contained in:
@ -17,18 +17,10 @@ import { doLogout } from '../../functions/auth';
|
|||||||
export default function LoginLayoutComponent() {
|
export default function LoginLayoutComponent() {
|
||||||
return (
|
return (
|
||||||
<SplashScreen>
|
<SplashScreen>
|
||||||
<Center mih='100vh'>
|
<Center mih='100vh' p='lg'>
|
||||||
<div
|
<Container>
|
||||||
style={{
|
|
||||||
padding: '10px',
|
|
||||||
backgroundColor: 'rgba(0,0,0,0.5)',
|
|
||||||
boxShadow: '0 0 15px 10px rgba(0,0,0,0.5)'
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Container w='md' miw={400}>
|
|
||||||
<Outlet />
|
<Outlet />
|
||||||
</Container>
|
</Container>
|
||||||
</div>
|
|
||||||
</Center>
|
</Center>
|
||||||
</SplashScreen>
|
</SplashScreen>
|
||||||
);
|
);
|
||||||
@ -50,7 +42,7 @@ export function Wrapper({
|
|||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Paper p='xl' withBorder miw={425}>
|
<Paper p='xl' withBorder miw={425} shadow='lg'>
|
||||||
<Stack gap={smallPadding ? 0 : 'md'}>
|
<Stack gap={smallPadding ? 0 : 'md'}>
|
||||||
<StylishText size='xl'>{titleText}</StylishText>
|
<StylishText size='xl'>{titleText}</StylishText>
|
||||||
<Divider p='xs' />
|
<Divider p='xs' />
|
||||||
|
Reference in New Issue
Block a user