From 771de51228807e9f9ad479b3c4db30314e1fdd13 Mon Sep 17 00:00:00 2001 From: thislight Date: Mon, 23 Dec 2024 18:31:56 +0800 Subject: [PATCH] accounts/SignIn: various visual improvement --- src/accounts/SignIn.css | 27 +++++++++++++++++++++++++++ src/accounts/SignIn.tsx | 16 +++++----------- 2 files changed, 32 insertions(+), 11 deletions(-) create mode 100644 src/accounts/SignIn.css diff --git a/src/accounts/SignIn.css b/src/accounts/SignIn.css new file mode 100644 index 0000000..11f467a --- /dev/null +++ b/src/accounts/SignIn.css @@ -0,0 +1,27 @@ +.SignIn { + position: absolute; + left: 50%; + top: 50%; + transform: translate(-50%, -50%); + width: 448px; + + @media (max-width: 600px) { + & { + position: static; + height: 100vh; + width: 100%; + transform: none; + overflow: auto; + } + } + + >.key-content { + height: 100%; + + >form { + display: flex; + flex-flow: column; + gap: 16px; + } + } +} \ No newline at end of file diff --git a/src/accounts/SignIn.tsx b/src/accounts/SignIn.tsx index c8699d2..628e490 100644 --- a/src/accounts/SignIn.tsx +++ b/src/accounts/SignIn.tsx @@ -18,6 +18,7 @@ import { createRestAPIClient } from "masto"; import { getOrRegisterApp } from "./stores"; import { useSearchParams } from "@solidjs/router"; import { $settings } from "../settings/stores"; +import "./SignIn.css"; type ErrorParams = { error: string; @@ -36,13 +37,6 @@ const SignIn: Component = () => { const [targetSiteTitle, setTargetSiteTitle] = createSignal(""); useDocumentTitle("Sign In"); - css` - form { - display: flex; - flex-flow: column; - gap: 16px; - } - `; const serverUrl = () => { const url = rawServerUrl(); @@ -121,19 +115,19 @@ const SignIn: Component = () => { }; return ( -
+

Authorization is failed.

{params.errorDescription}

- Please try again later. If the problem persist, you can seek for + Please try again later. If the problem persists, you can ask for help from the server administrator.

{
- + ); };