22301014 | bc4616f | 2025-06-03 16:59:44 +0800 | [diff] [blame^] | 1 | import { Card, Flex } from "antd"; |
| 2 | import { Outlet } from "react-router"; |
| 3 | import auth_background from "../../assets/auth_background.png" |
| 4 | import slogan from "../../assets/slogan.png" |
| 5 | function 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 | |
| 44 | export default AuthLayout; |