blob: 382001cd286bca19a74b70d177d913e28bf56761 [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"
22301014b1477f72025-06-07 22:54:40 +08005
22301014bc4616f2025-06-03 16:59:44 +08006function AuthLayout() {
7
8 return (
9 <Flex gap="20px" justify="center">
10 <div
11 style={{
12 width: '45%',
13 height: '80vh',
14 backgroundImage: `url(${auth_background})`,
15 backgroundSize: 'cover',
16 backgroundPosition: 'center',
17 borderRadius: '12px',
18 position: 'relative',
19 }}
20 >
2230101462240ab2025-06-07 09:28:16 +080021 <Card style={{ padding: 0, margin: 0, background: 'rgba(255,255,255,0)', border: 'none' }}>
22 <img src={slogan} width="100%" />
23 </Card>
22301014bc4616f2025-06-03 16:59:44 +080024 </div>
25 <Flex
26 style={{ width: 400, height: '80vh' }}
27 vertical
28 gap="20px"
29 justify="space-between"
30 >
31 <Card>
32 <Outlet></Outlet>
33 </Card>
2230101462240ab2025-06-07 09:28:16 +080034
22301014bc4616f2025-06-03 16:59:44 +080035 </Flex>
36 </Flex>
37 );
38}
39
40export default AuthLayout;