|
1 | 1 | import { UserOutlined } from "@ant-design/icons";
|
2 | 2 | import { Button, ConfigProvider, Input } from "antd";
|
3 | 3 |
|
4 |
| -import loginImg from "../../assets/login.png"; |
| 4 | +import loginImage from "../../assets/login.png"; |
5 | 5 | import { useAction } from "./hook";
|
6 | 6 |
|
7 | 7 | export const Login = () => {
|
8 | 8 | const { userInfo, loginLoading, handleOnLogin, updateUserInfo } = useAction();
|
9 | 9 |
|
10 | 10 | return (
|
11 |
| - <div className="w-screen h-screen bg-[#2866F1] flex justify-end md:justify-normal"> |
12 |
| - <div className="w-3/5 h-full hidden min-[75rem]:block"> |
| 11 | + <div className="w-screen h-screen bg-[#2866F1] flex justify-end md:justify-normal overflow-hidden no-scrollbar"> |
| 12 | + <div className="w-3/5 h-full hidden lg:block"> |
13 | 13 | <img
|
14 |
| - src={loginImg} |
| 14 | + src={loginImage} |
15 | 15 | alt=""
|
16 | 16 | className="w-full h-full bg-cover img-no-darg"
|
17 | 17 | />
|
18 | 18 | </div>
|
19 |
| - <div className="w-full min-[75rem]:w-2/5 lg:px-5 min-[75rem]:bg-white bg-[#2866F1] rounded-l-3xl box-border flex items-center justify-center relative"> |
20 |
| - <div className="absolute flex min-[75rem]:hidden top-2 left-2 text-3xl text-white select-none"> |
| 19 | + <div className="w-full lg:w-2/5 lg:px-5 lg:bg-white bg-[#2866F1] rounded-l-3xl box-border flex items-center justify-center relative"> |
| 20 | + <div className="absolute flex lg:hidden top-2 left-2 text-3xl text-white select-none"> |
21 | 21 | <strong>CAMERA AI</strong>
|
22 | 22 | </div>
|
23 |
| - <div className="w-96 h-[27.5rem] min-[75rem]:box-border box-content p-3 min-[75rem]:p-0 bg-white flex flex-col justify-center space-y-4 rounded-md min-[75rem]:rounded-none"> |
24 |
| - <strong className="text-3xl select-none">Welcome</strong> |
| 23 | + <div className="w-96 h-[440px] lg:box-border box-content p-3 lg:p-0 bg-white flex flex-col justify-center space-y-4 rounded-md lg:rounded-none"> |
| 24 | + <strong className="text-3xl select-none">Welcome,</strong> |
25 | 25 | <Input
|
26 |
| - placeholder="請輸入帳號" |
| 26 | + placeholder="Basic usage" |
27 | 27 | size="large"
|
28 | 28 | prefix={<UserOutlined />}
|
29 | 29 | value={userInfo.userName}
|
30 | 30 | onChange={(e) => updateUserInfo("userName", e.target.value)}
|
31 | 31 | />
|
32 | 32 | <Input.Password
|
33 |
| - placeholder="請輸入密碼" |
| 33 | + placeholder="Basic usage" |
34 | 34 | size="large"
|
35 | 35 | prefix={<UserOutlined />}
|
36 | 36 | value={userInfo.password}
|
|
0 commit comments