chore: update margins in login and reg pages

This commit is contained in:
Tristan Yang
2023-06-16 17:09:15 +08:00
parent f2a0812d05
commit caddb0719e
5 changed files with 5 additions and 10 deletions
+2
View File
@@ -182,6 +182,8 @@ export const authApi = createApi({
try {
await queryFulfilled;
dispatch(resetAuthData());
// 重定向到登录
location.href = "/#/login";
} catch {
console.log("logout error");
}
+2 -4
View File
@@ -134,10 +134,9 @@ export default function LoginPage() {
alt="logo"
className="w-14 h-14 mb-3 md:mb-7 rounded-full"
/>
<h2 className="font-semibold text-2xl text-gray-800 dark:text-white md:mb-2">
<h2 className="font-semibold text-2xl text-gray-800 dark:text-white">
{t("login.title", { name: serverName })}
</h2>
<span className="text-gray-400 dark:text-gray-100">{t("login.desc")}</span>
</div>
<form className="flex flex-col gap-5 w-80 md:min-w-[360px] " onSubmit={handleLogin}>
<Input
@@ -165,9 +164,8 @@ export default function LoginPage() {
</Button>
</form>
{hasDivider && <Divider content="OR" />}
<div className="flex flex-col gap-4">
<div className="flex flex-col gap-3">
{enableMagicLink && <MagicLinkLogin />}
<SocialLoginButtons />
</div>
{whoCanSignUp === "EveryOne" && <SignUpLink />}
+1 -2
View File
@@ -147,10 +147,9 @@ export default function Register() {
alt="logo"
className="w-14 h-14 md:mb-7 rounded-full"
/>
<h2 className="font-semibold text-2xl text-gray-800 dark:text-white md:mb-2">
<h2 className="font-semibold text-2xl text-gray-800 dark:text-white">
{t("reg.title", { name: serverName })}
</h2>
<span className="hidden md:block text-gray-400 dark:text-gray-100">{t("reg.desc")}</span>
</div>
<form