From 30cb57dca16987552a2e5168e21e912b2e35acaa Mon Sep 17 00:00:00 2001 From: bill Date: Tue, 14 Jan 2025 13:36:06 +0800 Subject: [PATCH] Feat: Add background to next login page #3221 --- web/.prettierrc | 6 +++++- web/src/assets/svg/next-login-bg.svg | 23 +++++++++++++++++++++++ web/src/pages/login-next/index.tsx | 2 +- 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 web/src/assets/svg/next-login-bg.svg diff --git a/web/.prettierrc b/web/.prettierrc index 70767cdf754..bd49c752559 100644 --- a/web/.prettierrc +++ b/web/.prettierrc @@ -4,5 +4,9 @@ "trailingComma": "all", "proseWrap": "never", "overrides": [{ "files": ".prettierrc", "options": { "parser": "json" } }], - "plugins": ["prettier-plugin-organize-imports", "prettier-plugin-packagejson"] + "plugins": [ + "prettier-plugin-organize-imports", + "prettier-plugin-packagejson" + ], + "endOfLine": "lf" } diff --git a/web/src/assets/svg/next-login-bg.svg b/web/src/assets/svg/next-login-bg.svg new file mode 100644 index 00000000000..17f050fe926 --- /dev/null +++ b/web/src/assets/svg/next-login-bg.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/web/src/pages/login-next/index.tsx b/web/src/pages/login-next/index.tsx index 5649649f909..a8eda8668f4 100644 --- a/web/src/pages/login-next/index.tsx +++ b/web/src/pages/login-next/index.tsx @@ -97,7 +97,7 @@ const Login = () => { const step = Number((searchParams.get('step') ?? Step.SignIn) as Step); return ( -
+
{step === Step.SignIn && } {step === Step.SignUp && }