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