blob: cceaf2dc5cadc7f5883f2e3660fd6990f984ac0f [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 >
20 {/* <h1>
21 登录创驿
22 </h1>
23 <p>
24 与众多用户和创作者一起交流
25 </p> */}
26 </div>
27 <Flex
28 style={{ width: 400, height: '80vh' }}
29 vertical
30 gap="20px"
31 justify="space-between"
32 >
33 <Card>
34 <Outlet></Outlet>
35 </Card>
36 <Card style={{ padding: 0, margin: 0 }}>
37 <img src={slogan} width="100%" />
38 </Card>
39 </Flex>
40 </Flex>
41 );
42}
43
44export default AuthLayout;