From 1c82b7b0c3954ed9c5688081e7944efc33ce99e8 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Mon, 19 Jun 2017 00:54:07 +0100 Subject: [PATCH] add register button --- src/components/structures/LoginBox.js | 7 +++++++ .../vector/css/matrix-react-sdk/structures/_LoginBox.scss | 8 +++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/components/structures/LoginBox.js b/src/components/structures/LoginBox.js index 445585a7..c9f8e87a 100644 --- a/src/components/structures/LoginBox.js +++ b/src/components/structures/LoginBox.js @@ -47,6 +47,10 @@ module.exports = React.createClass({ dis.dispatch({ action: 'start_login' }); }, + onRegisterClick: function() { + dis.dispatch({ action: 'start_registration' }); + }, + render: function() { var TintableSvg = sdk.getComponent('elements.TintableSvg'); @@ -71,6 +75,9 @@ module.exports = React.createClass({ { _t("Login") } + + { _t("Register") } + ); } diff --git a/src/skins/vector/css/matrix-react-sdk/structures/_LoginBox.scss b/src/skins/vector/css/matrix-react-sdk/structures/_LoginBox.scss index 3c8091fe..92d8833b 100644 --- a/src/skins/vector/css/matrix-react-sdk/structures/_LoginBox.scss +++ b/src/skins/vector/css/matrix-react-sdk/structures/_LoginBox.scss @@ -19,13 +19,15 @@ limitations under the License. width: 100%; } -.mx_LoginBox_loginButton { +.mx_LoginBox_loginButton, +.mx_LoginBox_registerButton { margin-top: -8px; height: 40px; border: 0px; border-radius: 40px; - padding-left: 1em; - padding-right: 1em; + margin-left: 4px; + margin-right: 4px; + width: 80px; background-color: $accent-color; color: $primary-bg-color;