);
@@ -102,16 +99,10 @@ export class LoginPage extends Component {
const { showLoginForm } = this;
return (
-
+
-
- {showLoginForm()}
-
-
+ {showLoginForm()}
+
);
}
}
diff --git a/frontend/pages/LoginPage/styles.scss b/frontend/pages/LoginPage/styles.scss
index 5c352de464..9e5a5cab91 100644
--- a/frontend/pages/LoginPage/styles.scss
+++ b/frontend/pages/LoginPage/styles.scss
@@ -4,7 +4,7 @@
}
.login-form-animation-leave.login-form-animation-leave-active {
- opacity: 0.01;
+ opacity: 0;
transform: scale(1.3);
transition: all 300ms ease-in;
}
diff --git a/frontend/pages/LoginSuccessfulPage/styles.js b/frontend/pages/LoginSuccessfulPage/styles.js
index a1f314b557..2655585897 100644
--- a/frontend/pages/LoginSuccessfulPage/styles.js
+++ b/frontend/pages/LoginSuccessfulPage/styles.js
@@ -18,17 +18,14 @@ export default {
backgroundColor: color.white,
boxShadow: '0 5px 30px 0 rgba(0,0,0,0.30)',
borderRadius: '4px',
- marginTop: '-28px',
+ marginTop: '20px',
paddingBottom: padding.base,
paddingLeft: padding.base,
paddingRight: padding.base,
paddingTop: padding.most,
textAlign: 'center',
width: '340px',
- position: 'absolute',
- left: '50%',
- marginLeft: '-187px',
zIndex: '-1',
-
+ alignSelf: 'center',
},
};
diff --git a/frontend/pages/LogoutPage/LogoutPage.jsx b/frontend/pages/LogoutPage/LogoutPage.jsx
index 2601eb2b02..0cdc40914b 100644
--- a/frontend/pages/LogoutPage/LogoutPage.jsx
+++ b/frontend/pages/LogoutPage/LogoutPage.jsx
@@ -3,6 +3,7 @@ import { connect } from 'react-redux';
import { noop } from 'lodash';
import AuthenticationFormWrapper from '../../components/AuthenticationFormWrapper';
+import componentStyles from './styles';
import debounce from '../../utilities/debounce';
import LogoutForm from '../../components/forms/LogoutForm';
import { logoutUser } from '../../redux/nodes/auth/actions';
@@ -40,13 +41,17 @@ export class LogoutPage extends Component {
render () {
const { user } = this.props;
const { onSubmit } = this;
+ const { authWrapperStyles, whiteTabStyles } = componentStyles;
if (!user) return false;
return (
-
-
-
+
);
}
}
diff --git a/frontend/pages/LogoutPage/styles.js b/frontend/pages/LogoutPage/styles.js
new file mode 100644
index 0000000000..d56ffcd4ba
--- /dev/null
+++ b/frontend/pages/LogoutPage/styles.js
@@ -0,0 +1,24 @@
+import styles from '../../styles';
+
+const { color } = styles;
+
+export default {
+ whiteTabStyles: {
+ backgroundColor: color.white,
+ height: '30px',
+ marginTop: '20px',
+ borderTopLeftRadius: '4px',
+ borderTopRightRadius: '4px',
+ boxShadow: '0 5px 30px 0 rgba(0,0,0,0.3)',
+ width: '376px',
+ alignSelf: 'center',
+ },
+ authWrapperStyles: {
+ alignItems: 'center',
+ display: 'flex',
+ flexDirection: 'column',
+ position: 'relative',
+ height: 'calc(100vh - 94px)',
+ justifyContent: 'center',
+ },
+};