diff --git a/public/index.html b/public/index.html
index 71f32d0..12f4393 100644
--- a/public/index.html
+++ b/public/index.html
@@ -8,14 +8,24 @@
Do you like manifest, google? Here you are ' '
-->
Charmless Yggdrasil
-
+
-
diff --git a/src/index.tsx b/src/index.tsx
index 78323fb..f4ac328 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -4,6 +4,7 @@ import { createTheme } from '@mui/material/styles'
import { PageLogin } from './pages/login'
import { BrowserRouter, Route, Routes } from 'react-router-dom'
import { PageNotFound } from './pages/notfound'
+import { PageRegister } from './pages/register'
const API_BASE_ADDRESS = "http://127.0.0.1:30"
@@ -39,6 +40,7 @@ const LSPYggdrasilWebApp = () => {
return
} />
+ } />
} />
diff --git a/src/pages/custom.css b/src/pages/custom.css
new file mode 100644
index 0000000..1ea6cb4
--- /dev/null
+++ b/src/pages/custom.css
@@ -0,0 +1,37 @@
+.MuiBox-root {
+ min-width: 100%;
+ min-height: 100%;
+ display: flex;
+}
+.MuiGrid-item {
+ min-width: 100%;
+ min-height: 100%;
+}
+
+.MuiButton-root {
+ min-width: 100% !important;
+ border-radius: 18px !important;
+}
+.MuiAlert-root,.MuiOutlinedInput-root {
+ border-radius: 8px !important;
+}
+.MuiLink-root {
+ text-align: center;
+ min-width: 100%;
+}
+.MuiAlert-message,.MuiInputLabel-root,.MuiButton-contained {
+ font-family: "OPPO Sans" !important;
+}
+
+div.title {
+ font-size: 1.8rem !important;
+ min-width: unset;
+}
+div.inlineBox {
+ background-color: #0009;
+ padding: 2.6em;
+ border-radius: 30px;
+ min-width: 430px;
+ min-height: 330px;
+ max-width: 500px;
+}
\ No newline at end of file
diff --git a/src/pages/login.tsx b/src/pages/login.tsx
index 09807a2..2ac8614 100644
--- a/src/pages/login.tsx
+++ b/src/pages/login.tsx
@@ -3,6 +3,7 @@ import { useNavigate } from "react-router-dom"
import { api, theme } from '../index'
import axios from "axios"
import { useRef, useState } from "react"
+import "./custom.css"
export const PageLogin = () => {
const navigate = useNavigate()
@@ -33,48 +34,41 @@ export const PageLogin = () => {
return
- { /* The error mentioned above have been fixed by adding this 'as any' */ }
-
+
-
+
-
+
-
+
登录到世界树
-
+
- 用户名或密码不可以为空
+ 无效的用户名或密码
-
-
+
setIllegal(false)} />
-
+
setIllegal(false)} />
-
-
+
+
登录
-
+
{ navigate("/register") }} underline="always"> 没有账号? 点击注册
diff --git a/src/pages/register.tsx b/src/pages/register.tsx
new file mode 100644
index 0000000..e876896
--- /dev/null
+++ b/src/pages/register.tsx
@@ -0,0 +1,82 @@
+import { Box, Button, CssBaseline, Grid, Paper, TextField, ThemeProvider, Typography, Alert, Collapse } from "@mui/material"
+import { useNavigate } from "react-router-dom"
+import { api, theme } from '../index'
+import axios from "axios"
+import { useRef, useState } from "react"
+import "./custom.css"
+
+export const PageRegister = () => {
+ const navigate = useNavigate()
+ const [illegal1, setIllegal1] = useState(false)
+ const [illegal2, setIllegal2] = useState(false)
+ const [illegal3, setIllegal3] = useState(false)
+
+ //TODO
+
+ return
+
+
+
+
+
+
+
+
+
+
+ 注册账户
+
+
+
+
+
+
+ 无效的用户名、密码或邮箱
+
+
+
+
+
+ 无效的邀请码
+
+
+
+
+
+ 无效的邀请码
+
+
+
+
+
+ setIllegal1(false)} />
+
+
+
+ setIllegal1(false)} />
+
+
+
+ setIllegal1(false)} />
+
+
+
+ setIllegal2(false)} />
+
+
+
+ setIllegal3(false)} />
+
+
+
+
+ 注册
+
+
+
+
+
+
+
+
+}
\ No newline at end of file