From 0a008784996b09d4dd3e9bd90909507ece7743a1 Mon Sep 17 00:00:00 2001 From: Rodrigo Nascimento Date: Mon, 13 Nov 2017 18:50:07 -0200 Subject: [PATCH] Login view -> Terms of Service and Privacy Policy (#74) --- app/views/LoginView.js | 26 +++++++++++++++----------- app/views/Styles.js | 24 ++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 11 deletions(-) diff --git a/app/views/LoginView.js b/app/views/LoginView.js index 0b508edd..7df68ad1 100644 --- a/app/views/LoginView.js +++ b/app/views/LoginView.js @@ -122,19 +122,23 @@ class LoginView extends React.Component { LOGIN - - REGISTER - + + + REGISTER + - - TERMS OF SERVICE - + + FORGOT MY PASSWORD + + - - PRIVACY POLICY - - - FORGOT MY PASSWORD + + + By proceeding you are agreeing to our + Terms of Service + and + Privacy Policy + {this.props.login.failure && {this.props.login.error.reason}} diff --git a/app/views/Styles.js b/app/views/Styles.js index 29973935..1bf8d7d1 100644 --- a/app/views/Styles.js +++ b/app/views/Styles.js @@ -93,6 +93,10 @@ export default StyleSheet.create({ backgroundColor: '#1d74f5', marginBottom: 20 }, + buttonContainer_inverted: { + paddingVertical: 15, + marginBottom: 0 + }, button: { textAlign: 'center', color: 'white', @@ -105,6 +109,12 @@ export default StyleSheet.create({ borderRadius: 2, fontWeight: '700' }, + button_inverted: { + textAlign: 'center', + color: '#414852', + fontWeight: '700', + flexGrow: 1 + }, error: { textAlign: 'center', color: 'red', @@ -132,5 +142,19 @@ export default StyleSheet.create({ }, enabledButton: { backgroundColor: '#1d74f5' + }, + link: { + fontWeight: 'bold' + }, + loginTermsText: { + marginTop: 10, + textAlign: 'center', + color: '#414852', + fontSize: 16 + }, + loginSecondaryButtons: { + flexDirection: 'row', + justifyContent: 'space-around', + alignItems: 'center' } });