mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
add register button
This commit is contained in:
parent
612cad5d9e
commit
1c82b7b0c3
@ -47,6 +47,10 @@ module.exports = React.createClass({
|
|||||||
dis.dispatch({ action: 'start_login' });
|
dis.dispatch({ action: 'start_login' });
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onRegisterClick: function() {
|
||||||
|
dis.dispatch({ action: 'start_registration' });
|
||||||
|
},
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
var TintableSvg = sdk.getComponent('elements.TintableSvg');
|
var TintableSvg = sdk.getComponent('elements.TintableSvg');
|
||||||
|
|
||||||
@ -71,6 +75,9 @@ module.exports = React.createClass({
|
|||||||
<AccessibleButton className="mx_LoginBox_loginButton" element="button" onClick={this.onLoginClick}>
|
<AccessibleButton className="mx_LoginBox_loginButton" element="button" onClick={this.onLoginClick}>
|
||||||
{ _t("Login") }
|
{ _t("Login") }
|
||||||
</AccessibleButton>
|
</AccessibleButton>
|
||||||
|
<AccessibleButton className="mx_LoginBox_registerButton" element="button" onClick={this.onRegisterClick}>
|
||||||
|
{ _t("Register") }
|
||||||
|
</AccessibleButton>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -19,13 +19,15 @@ limitations under the License.
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_LoginBox_loginButton {
|
.mx_LoginBox_loginButton,
|
||||||
|
.mx_LoginBox_registerButton {
|
||||||
margin-top: -8px;
|
margin-top: -8px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
border: 0px;
|
border: 0px;
|
||||||
border-radius: 40px;
|
border-radius: 40px;
|
||||||
padding-left: 1em;
|
margin-left: 4px;
|
||||||
padding-right: 1em;
|
margin-right: 4px;
|
||||||
|
width: 80px;
|
||||||
|
|
||||||
background-color: $accent-color;
|
background-color: $accent-color;
|
||||||
color: $primary-bg-color;
|
color: $primary-bg-color;
|
||||||
|
Loading…
Reference in New Issue
Block a user