diff --git a/web_ui/src/app/login/page.tsx b/web_ui/src/app/login/page.tsx index ec5499d9..cf225989 100644 --- a/web_ui/src/app/login/page.tsx +++ b/web_ui/src/app/login/page.tsx @@ -1,7 +1,112 @@ +'use client'; +import { Button, Input, Form, Checkbox, Divider } from 'antd'; +import { GoogleOutlined, AppleOutlined, LockOutlined, UserOutlined } from '@ant-design/icons'; +import styles from './login.module.css'; +import { useState } from 'react'; + export default function Home() { + const [form] = Form.useForm(); + const [rememberMe, setRememberMe] = useState(false); + return ( -
-

loginpage

+ // 使用 Ant Design 的组件库,使用 antd 的样式 + // 仅前端样式,无交互功能。 + +
+ {/* login 类是整个 container,使用 flex 左右布局 */} +
+ {/* left 为注册的表单,需要填入的内容有:邮箱,密码 */} +
+
+

欢迎回来

+
+ + } + /> + + + + } + /> + + +
+ setRememberMe(e.target.checked)} + > + 30天内自动登录 + + 忘记密码? +
+ + + + + +
+ +
+
+
+ +
+
+
+
+ {/* right 为左侧布局,显示的是应用截图,测试阶段使用 picsum.photos 代替 */} +
+ 应用预览 + {/* 在右上角添加logo */} +
+ Logo +
+
+
); }