diff --git a/web/client/assets/images/login_bg.png b/web/client/assets/images/login_bg.png index 08658af..03940ac 100644 Binary files a/web/client/assets/images/login_bg.png and b/web/client/assets/images/login_bg.png differ diff --git a/web/client/src/sections/auth/containers/login.js b/web/client/src/sections/auth/containers/login.js index 1753745..88bbc07 100644 --- a/web/client/src/sections/auth/containers/login.js +++ b/web/client/src/sections/auth/containers/login.js @@ -90,163 +90,46 @@ const Login = props => { }; return ( -
- +
+
+
+
+
欢迎登录系统
+
+
-
- - - - - -
-

- 政务数据资源中心 -

- { - setCurTabKey(k) - }}> - - -
- 用户名 -
- - { - setUserName(e.target.value) - setInputChanged(true) - }} - /> - -
- 密码 -
- - { - setPassword(e.target.value) - setInputChanged(true) - }} - /> - - -
- -
-
- 手机号 -
- - { - setPhone(e.target.value) - setInputChanged(true) - }} - /> - -
- 验证码 -
- - - { - setCode(e.target.value) - setInputChanged(true) - }} - /> - - - -
-
-
- - - { - inputChanged || !error ? - - : - - {error} - - } - - -
- -
+ + { + setUserName(e.target.value) + setInputChanged(true) + }} + /> + + + { + setPassword(e.target.value) + setInputChanged(true) + }} + /> + + + +
-
+
); } diff --git a/web/client/src/sections/auth/style.less b/web/client/src/sections/auth/style.less index 5ff6f58..5ed8001 100644 --- a/web/client/src/sections/auth/style.less +++ b/web/client/src/sections/auth/style.less @@ -1,13 +1,112 @@ -#loginContainer { - .ant-form { - color: aliceblue; +.login { + width: 100%; + height: 100%; + position: absolute; + top: 0; + left: 0; + background-image: url('/assets/images/login_bg.png'); + background-size: 100% 100%; + + .left { + + background-size: 100% 100%; + background-repeat: no-repeat; + width: 55%; + height: 100%; + float: left; + top: 0px; + left: 0px; + } + + .right { + width: 45%; + height: 100%; + // background-color: #000066; + float: left; + right: 0px; + bottom: 0px; + } +} + +@media screen and (max-height:1440px) { + .loginBox { + top: 25%; + } +} + +@media screen and (max-height: 768px) { + .loginBox { + top: 20%; + } +} + +@media screen and (max-height: 630px) { + .loginBox { + top: 10%; + } +} + +.loginBox { + height: 50%; + width: 25%; + position: absolute; + right: 16.5%; + z-index: 20; + background: #fff; + text-align: center; + padding-top: 30px; + + @media screen and (min-height:1080px) { + height: 40%; + } + + ._title { + font-family: SourceHanSansCN-Medium; + font-weight: 500; + font-size: 24px; + color: rgba(0, 0, 0, 0.75); + letter-spacing: 0; + } + + ._divider { + width: 58px; + height: 4px; + background: #4263F7; + display: inline-block; + } + + h1 { + color: #fff; + font-size: 58px; + } + + .loginFormTit { + width: 20%; + font-size: 18px; + color: rgb(255, 255, 255); + // margin-bottom: 10px; + } + + .loginInp { + width: 80%; + height: 50px; + background: #ffffff; + border: 1px solid #C2C2C2; + border-radius: 5px; } - .ant-tabs { - color: aliceblue; + .loginBtn { + width: 80%; + height: 50px; + margin-top: 40px; + border-radius: 5px; + font-size: 16px; + background: #4263F7; + border-color: #4263F7; } - .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn { - color: aliceblue; + .loginBtn:hover { + background: #4263F7; + border-color: #4263F7; } } \ No newline at end of file