diff --git a/packages/netlify-cms-backend-github/src/AuthenticationPage.js b/packages/netlify-cms-backend-github/src/AuthenticationPage.js index 0a713f1a..ac63d117 100644 --- a/packages/netlify-cms-backend-github/src/AuthenticationPage.js +++ b/packages/netlify-cms-backend-github/src/AuthenticationPage.js @@ -12,7 +12,7 @@ const StyledAuthenticationPage = styled.section` height: 100vh; ` -const AuthenticationPageLogo = styled(Icon)` +const PageLogoIcon = styled(Icon)` color: #c4c6d2; margin-top: -300px; ` @@ -23,8 +23,8 @@ const LoginButton = styled.button` ${buttons.default}; ${buttons.gray}; - padding: 0 30px; - margin-top: -80px; + padding: 0 12px; + margin-top: -40px; display: flex; align-items: center; position: relative; @@ -69,7 +69,7 @@ export default class AuthenticationPage extends React.Component { return ( - + {loginError ?

{loginError}

: null} {inProgress ? "Logging in..." : "Login with GitHub"} diff --git a/packages/netlify-cms-backend-test/src/AuthenticationPage.js b/packages/netlify-cms-backend-test/src/AuthenticationPage.js index af4a878b..07f8c944 100644 --- a/packages/netlify-cms-backend-test/src/AuthenticationPage.js +++ b/packages/netlify-cms-backend-test/src/AuthenticationPage.js @@ -1,7 +1,38 @@ import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; -import { Icon } from 'netlify-cms-ui-default'; +import styled from 'react-emotion'; +import { Icon, buttons, shadows } from 'netlify-cms-ui-default'; + +const StyledAuthenticationPage = styled.section` + display: flex; + flex-flow: column nowrap; + align-items: center; + justify-content: center; + height: 100vh; +` + +const PageLogoIcon = styled(Icon)` + color: #c4c6d2; + margin-top: -300px; +` + +const LoginButton = styled.button` + ${buttons.button}; + ${shadows.dropDeep}; + ${buttons.default}; + ${buttons.gray}; + + padding: 0 30px; + margin-top: -40px; + display: flex; + align-items: center; + position: relative; + + ${Icon} { + margin-right: 18px; + } +` export default class AuthenticationPage extends React.Component { static propTypes = { @@ -29,16 +60,12 @@ export default class AuthenticationPage extends React.Component { const { inProgress } = this.props; return ( -
- - -
+
+
); } } diff --git a/packages/netlify-cms-core/example/config.yml b/packages/netlify-cms-core/example/config.yml index dc07d832..943e8ebf 100644 --- a/packages/netlify-cms-core/example/config.yml +++ b/packages/netlify-cms-core/example/config.yml @@ -1,6 +1,5 @@ backend: - name: github - repo: erquhart/blank + name: test-repo display_url: https://example.com media_folder: "assets/uploads"