Skip to content

Commit

Permalink
Feat: Add background to next login page infiniflow#3221
Browse files Browse the repository at this point in the history
  • Loading branch information
cike8899 committed Jan 14, 2025
1 parent d8346cb commit 30cb57d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
6 changes: 5 additions & 1 deletion web/.prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
23 changes: 23 additions & 0 deletions web/src/assets/svg/next-login-bg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion web/src/pages/login-next/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const Login = () => {
const step = Number((searchParams.get('step') ?? Step.SignIn) as Step);

return (
<div className="w-full h-full flex items-center pl-[15%]">
<div className="w-full h-full flex items-center pl-[15%] bg-[url('@/assets/svg/next-login-bg.svg')]">
<div className="inline-block">
{step === Step.SignIn && <SignInCard></SignInCard>}
{step === Step.SignUp && <SignUpCard></SignUpCard>}
Expand Down

0 comments on commit 30cb57d

Please sign in to comment.