Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
8a1eb9c9
Commit
8a1eb9c9
authored
May 20, 2021
by
wufan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style:登录框优化
parent
6f05f3a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
43 deletions
+48
-43
src/modules/root/Login.jsx
+5
-5
src/modules/root/Login.less
+43
-38
No files found.
src/modules/root/Login.jsx
View file @
8a1eb9c9
...
@@ -153,11 +153,11 @@ function Login(props) {
...
@@ -153,11 +153,11 @@ function Login(props) {
<
div
className=
"login-page"
>
<
div
className=
"login-page"
>
<
div
className=
"login-main"
>
<
div
className=
"login-main"
>
<
div
className=
"left-banner"
>
<
div
className=
"left-banner"
>
<
div
><
img
src=
"https://image.xiaomaiketang.com/xm/Newk4NrxKC.png"
alt=
""
style=
{
{
width
:
60
,
height
:
61
}
}
/></
div
>
<
div
className=
"img-box"
><
img
src=
"https://image.xiaomaiketang.com/xm/tFsjQktcQh.png"
alt=
""
/></
div
>
<
div
className=
"name"
>
小麦企学院
</
div
>
<
div
className=
"desc"
>
一键开启直播授课 让知识更有价值
</
div
>
</
div
>
</
div
>
<
div
className=
"login-box"
>
<
div
className=
"login-box"
>
<
div
className=
"left-top-block color-block"
></
div
>
<
div
className=
"right-bottom-block color-block"
></
div
>
<
div
className=
"login"
>
<
div
className=
"login"
>
<
div
className=
"r"
>
<
div
className=
"r"
>
<
Tabs
defaultActiveKey=
"1"
>
<
Tabs
defaultActiveKey=
"1"
>
...
@@ -173,7 +173,7 @@ function Login(props) {
...
@@ -173,7 +173,7 @@ function Login(props) {
autoComplete=
"off"
autoComplete=
"off"
name=
"account"
name=
"account"
maxLength=
{
11
}
maxLength=
{
11
}
placeholder=
"手机号"
placeholder=
"
请输入
手机号"
value=
{
phone
}
value=
{
phone
}
onChange=
{
(
e
)
=>
{
setPhone
(
e
.
target
.
value
)
}
}
onChange=
{
(
e
)
=>
{
setPhone
(
e
.
target
.
value
)
}
}
/>
/>
...
@@ -186,7 +186,7 @@ function Login(props) {
...
@@ -186,7 +186,7 @@ function Login(props) {
type=
"text"
type=
"text"
id=
"phoneverify"
id=
"phoneverify"
name=
"phoneverify"
name=
"phoneverify"
placeholder=
"验证码"
placeholder=
"
请输入
验证码"
autoComplete=
"off"
autoComplete=
"off"
value=
{
phoneverify
}
value=
{
phoneverify
}
maxLength=
{
4
}
maxLength=
{
4
}
...
...
src/modules/root/Login.less
View file @
8a1eb9c9
...
@@ -4,49 +4,49 @@
...
@@ -4,49 +4,49 @@
font-family: "微软雅黑";
font-family: "微软雅黑";
padding: 0;
padding: 0;
min-width: 1200px;
min-width: 1200px;
background: #
21242e
;
background: #
F4F6FA
;
height: 100%;
height: 100%;
.login-main {
.login-main {
min-width: 1200px;
min-width: 1200px;
display: flex;
}
}
.left-banner {
.left-banner {
position: fixed;
position: relative;
min-width: 315px;
width: 540px;
text-align: center;
height: 100vh;
top: 50%;
.img-box {
left: 30%;
background: #2966FF;
-webkit-transform: translate(-50%, -50%);
width: 540px;
-moz-transform: translate(-50%, -50%);
height: 100vh;
-ms-transform: translate(-50%, -50%);
img {
-o-transform: translate(-50%, -50%);
width: 540px;
transform: translate(-50%, -50%);
height: 800px;
.name {
position: absolute;
font-size: 30px;
left: 50%;
font-weight: 500;
top: 50%;
color: #ffffff;
transform: translate(-50%,-50%);
line-height: 42px;
}
margin-top: 11px;
}
.desc {
font-size: 14px;
font-weight: 400;
color: #ffffff;
line-height: 20px;
margin-top: 10px;
}
}
}
}
.login-box {
.login-box {
min-width: 360px;
min-width: 740px;
height: 340px;
height: 100vh;
position: fixed;
width: calc(100vw - 500px);
top: 50%;
position: relative;
left: 70%;
.color-block {
-webkit-transform: translate(-50%, -50%);
width: 256px;
-moz-transform: translate(-50%, -50%);
height: 256px;
-ms-transform: translate(-50%, -50%);
background: rgba(41, 102, 255, 0.05);
-o-transform: translate(-50%, -50%);
position: absolute;
transform: translate(-50%, -50%);
top:0;
left: 0;
&.right-bottom-block {
top:auto;
left: auto;
bottom: 0;
right: 0;
}
}
.go-to-site {
.go-to-site {
position: absolute;
position: absolute;
bottom: -80px;
bottom: -80px;
...
@@ -74,10 +74,15 @@
...
@@ -74,10 +74,15 @@
display: -webkit-flex;
display: -webkit-flex;
flex-direction: row;
flex-direction: row;
-webkit-flex-direction: row;
-webkit-flex-direction: row;
height: 100%;
width: 380px;
height: 380px;
position: absolute;
left: 50%;
top:50%;
transform: translate(-50%,-50%);
overflow: hidden;
overflow: hidden;
background-color: #ffffff;
background-color: #ffffff;
border-radius: 4px;
//box-shadow: 0 0 17px @sun;
border-radius: 4px;
.ant-tabs-tab-btn {
.ant-tabs-tab-btn {
color: #999999;
color: #999999;
font-size: 16px;
font-size: 16px;
...
@@ -411,7 +416,7 @@
...
@@ -411,7 +416,7 @@
}
}
}
}
.submit {
.submit {
margin-top:
11
px;
margin-top:
24
px;
button {
button {
// font-weight: 300;
// font-weight: 300;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment