blob: 656d8696fbffc84428c444f48c54aef30880bbfc [file] [log] [blame]
22301014bc4616f2025-06-03 16:59:44 +08001import { Card, Flex } from "antd";
2import { Outlet } from "react-router";
3import auth_background from "../../assets/auth_background.png"
4import slogan from "../../assets/slogan.png"
5function AuthLayout() {
6
7 return (
8 <Flex gap="20px" justify="center">
9 <div
10 style={{
11 width: '45%',
12 height: '80vh',
13 backgroundImage: `url(${auth_background})`,
14 backgroundSize: 'cover',
15 backgroundPosition: 'center',
16 borderRadius: '12px',
17 position: 'relative',
18 }}
19 >
2230101462240ab2025-06-07 09:28:16 +080020 <Card style={{ padding: 0, margin: 0, background: 'rgba(255,255,255,0)', border: 'none' }}>
21 <img src={slogan} width="100%" />
22 </Card>
22301014bc4616f2025-06-03 16:59:44 +080023 </div>
24 <Flex
25 style={{ width: 400, height: '80vh' }}
26 vertical
27 gap="20px"
28 justify="space-between"
29 >
30 <Card>
31 <Outlet></Outlet>
32 </Card>
2230101462240ab2025-06-07 09:28:16 +080033
22301014bc4616f2025-06-03 16:59:44 +080034 </Flex>
35 </Flex>
36 );
37}
38
39export default AuthLayout;