release: v0.17.0
GitHub Pages / build (push) Canceled after 0s
GitHub Pages / deploy (push) Canceled after 0s
Docker image / meta (push) Successful in 24s
Docs Docker image / meta (push) Successful in 7s
Docker image / build (amd64, linux/amd64, ubuntu-latest) (push) Failing after 59s
Docs Docker image / build (amd64, linux/amd64, ubuntu-latest) (push) Failing after 30s
Docker image / merge (push) Canceled after 0s
Docs Docker image / merge (push) Canceled after 0s
Docker image / build (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Docs Docker image / build (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s

This commit is contained in:
Qiufeng
2026-08-19 22:09:49 +08:00
parent 9414048f9d
commit 84e9e7bff5
469 changed files with 19997 additions and 39561 deletions
+44
View File
@@ -0,0 +1,44 @@
import React, { memo, useState } from 'react';
import classNames from 'classnames';
import Login from './components/Login';
import Register from './components/Register';
import LoginHeader from './components/Header';
import { useAppSelector } from 'modules/store';
import { selectGlobal } from 'modules/global';
import Style from './index.module.less';
export default memo(() => {
const [type, setType] = useState('login');
const globalState = useAppSelector(selectGlobal);
const { theme } = globalState;
const handleSwitchLoginType = () => {
setType(type === 'register' ? 'login' : 'register');
};
return (
<div
className={classNames(Style.loginWrapper, { [Style.light]: theme === 'light', [Style.dark]: theme !== 'light' })}
>
<LoginHeader />
<div className={Style.loginContainer}>
<div className={Style.titleContainer}>
<h1 className={Style.title}>登录到</h1>
<h1 className={Style.title}>元境幻生管理台</h1>
<div className={Style.subTitle}>
<p className={classNames(Style.tip, Style.registerTip)}>
{type === 'register' ? '已有账号?' : '没有账号吗?'}
</p>
<p className={classNames(Style.tip, Style.loginTip)} onClick={handleSwitchLoginType}>
{type === 'register' ? '登录' : '注册新账号'}
</p>
</div>
</div>
{type === 'login' ? <Login /> : <Register />}
</div>
<footer className={Style.copyright}>
Copyright @ 2021-{new Date().getFullYear()} Tencent. All Rights Reserved
</footer>
</div>
);
});