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" |
22301014 | b1477f7 | 2025-06-07 22:54:40 +0800 | [diff] [blame] | 5 | |
22301014 | bc4616f | 2025-06-03 16:59:44 +0800 | [diff] [blame] | 6 | function 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 | > |
22301014 | 62240ab | 2025-06-07 09:28:16 +0800 | [diff] [blame] | 21 | <Card style={{ padding: 0, margin: 0, background: 'rgba(255,255,255,0)', border: 'none' }}> |
| 22 | <img src={slogan} width="100%" /> |
| 23 | </Card> |
22301014 | bc4616f | 2025-06-03 16:59:44 +0800 | [diff] [blame] | 24 | </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> |
22301014 | 62240ab | 2025-06-07 09:28:16 +0800 | [diff] [blame] | 34 | |
22301014 | bc4616f | 2025-06-03 16:59:44 +0800 | [diff] [blame] | 35 | </Flex> |
| 36 | </Flex> |
| 37 | ); |
| 38 | } |
| 39 | |
| 40 | export default AuthLayout; |