diff --git a/frontend/components/AuthenticationFormWrapper/AuthenticationFormWrapper.jsx b/frontend/components/AuthenticationFormWrapper/AuthenticationFormWrapper.jsx index b22b5f27e3..4926a6dce5 100644 --- a/frontend/components/AuthenticationFormWrapper/AuthenticationFormWrapper.jsx +++ b/frontend/components/AuthenticationFormWrapper/AuthenticationFormWrapper.jsx @@ -10,12 +10,11 @@ class AuthenticationFormWrapper extends Component { render () { const { children } = this.props; - const { containerStyles, whiteTabStyles } = componentStyles; + const { containerStyles } = componentStyles; return (
Kolide text logo -
{children}
); diff --git a/frontend/components/AuthenticationFormWrapper/styles.js b/frontend/components/AuthenticationFormWrapper/styles.js index 15e67adffd..5ba3eeefcb 100644 --- a/frontend/components/AuthenticationFormWrapper/styles.js +++ b/frontend/components/AuthenticationFormWrapper/styles.js @@ -1,22 +1,6 @@ -import styles from '../../styles'; - -const { color } = styles; - export default { containerStyles: { - alignItems: 'center', display: 'flex', - justifyContent: 'center', flexDirection: 'column', - marginTop: '14vh', - }, - whiteTabStyles: { - backgroundColor: color.white, - height: '30px', - marginTop: '12px', - borderTopLeftRadius: '4px', - borderTopRightRadius: '4px', - boxShadow: '0 5px 30px 0 rgba(0,0,0,0.3)', - width: '376px', }, }; diff --git a/frontend/components/LoginRoutes/LoginRoutes.jsx b/frontend/components/LoginRoutes/LoginRoutes.jsx index de403b7375..25da60e99f 100644 --- a/frontend/components/LoginRoutes/LoginRoutes.jsx +++ b/frontend/components/LoginRoutes/LoginRoutes.jsx @@ -28,12 +28,11 @@ export class LoginRoutes extends Component { } render () { - const { containerStyles, logoStyles } = componentStyles; + const { containerStyles } = componentStyles; const { children, location: { pathname } } = this.props; return (
- Kolide text logo +
Avatar ); @@ -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', + }, +};