Skip to content

Commit

Permalink
登录框增加提示信息 (#4903)
Browse files Browse the repository at this point in the history
* 登陆框增加提示信息

* 前端编译
  • Loading branch information
KeRan213539 committed Feb 8, 2021
1 parent 9ce5501 commit 3a86bd1
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 5 deletions.
2 changes: 2 additions & 0 deletions console-ui/src/locales/en-US.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ const I18N_CONF = {
},
Login: {
login: 'Login',
internalSysTip1: 'Internal system.',
internalSysTip2: 'Not exposed to the public network',
submit: 'Submit',
pleaseInputUsername: 'Please input username',
pleaseInputPassword: 'Please input password',
Expand Down
1 change: 1 addition & 0 deletions console-ui/src/locales/zh-CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const I18N_CONF = {
},
Login: {
login: '登录',
internalSysTip1: '内部系统,不可暴露到公网',
submit: '提交',
pleaseInputUsername: '请输入用户名',
pleaseInputPassword: '请输入密码',
Expand Down
4 changes: 4 additions & 0 deletions console-ui/src/pages/Login/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ class Login extends React.Component {
<div className="animation animation5" />
<Card className="login-panel" contentHeight="auto">
<div className="login-header">{locale.login}</div>
<div className="internal-sys-tip">
<div>{locale.internalSysTip1}</div>
<div>{locale.internalSysTip2}</div>
</div>
<Form className="login-form" field={this.field}>
<FormItem>
<Input
Expand Down
11 changes: 10 additions & 1 deletion console-ui/src/pages/Login/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,18 @@ $contentWidth: 1280px;
margin-top: 58px;
text-align: center;
}
.internal-sys-tip {
width: 100%;
line-height: 25px;
font-size: 20px;
margin-top: 25px;
text-align: center;
font-weight: 800;
color: #ff0000cc;
}
.login-form {
width: 360px;
margin: 80px auto auto auto;
margin: 40px auto auto auto;
input {
height: 60px;
}
Expand Down
6 changes: 3 additions & 3 deletions console/src/main/resources/static/css/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion console/src/main/resources/static/js/main.js

Large diffs are not rendered by default.

0 comments on commit 3a86bd1

Please sign in to comment.