migrate test backend styling
This commit is contained in:
parent
2f95d8c4fc
commit
33f490055d
@ -12,7 +12,7 @@ const StyledAuthenticationPage = styled.section`
|
|||||||
height: 100vh;
|
height: 100vh;
|
||||||
`
|
`
|
||||||
|
|
||||||
const AuthenticationPageLogo = styled(Icon)`
|
const PageLogoIcon = styled(Icon)`
|
||||||
color: #c4c6d2;
|
color: #c4c6d2;
|
||||||
margin-top: -300px;
|
margin-top: -300px;
|
||||||
`
|
`
|
||||||
@ -23,8 +23,8 @@ const LoginButton = styled.button`
|
|||||||
${buttons.default};
|
${buttons.default};
|
||||||
${buttons.gray};
|
${buttons.gray};
|
||||||
|
|
||||||
padding: 0 30px;
|
padding: 0 12px;
|
||||||
margin-top: -80px;
|
margin-top: -40px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -69,7 +69,7 @@ export default class AuthenticationPage extends React.Component {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<StyledAuthenticationPage>
|
<StyledAuthenticationPage>
|
||||||
<AuthenticationPageLogo size="500px" type="netlify-cms"/>
|
<PageLogoIcon size="300px" type="netlify-cms"/>
|
||||||
{loginError ? <p>{loginError}</p> : null}
|
{loginError ? <p>{loginError}</p> : null}
|
||||||
<LoginButton disabled={inProgress} onClick={this.handleLogin}>
|
<LoginButton disabled={inProgress} onClick={this.handleLogin}>
|
||||||
<Icon type="github" /> {inProgress ? "Logging in..." : "Login with GitHub"}
|
<Icon type="github" /> {inProgress ? "Logging in..." : "Login with GitHub"}
|
||||||
|
@ -1,7 +1,38 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes';
|
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 {
|
export default class AuthenticationPage extends React.Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
@ -29,16 +60,12 @@ export default class AuthenticationPage extends React.Component {
|
|||||||
const { inProgress } = this.props;
|
const { inProgress } = this.props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section className="nc-githubAuthenticationPage-root">
|
<StyledAuthenticationPage>
|
||||||
<Icon className="nc-githubAuthenticationPage-logo" size="500px" type="netlify-cms"/>
|
<PageLogoIcon size="300px" type="netlify-cms"/>
|
||||||
<button
|
<LoginButton disabled={inProgress} onClick={this.handleLogin}>
|
||||||
className="nc-githubAuthenticationPage-button"
|
|
||||||
disabled={inProgress}
|
|
||||||
onClick={this.handleLogin}
|
|
||||||
>
|
|
||||||
{inProgress ? "Logging in..." : "Login"}
|
{inProgress ? "Logging in..." : "Login"}
|
||||||
</button>
|
</LoginButton>
|
||||||
</section>
|
</StyledAuthenticationPage>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
backend:
|
backend:
|
||||||
name: github
|
name: test-repo
|
||||||
repo: erquhart/blank
|
|
||||||
|
|
||||||
display_url: https://example.com
|
display_url: https://example.com
|
||||||
media_folder: "assets/uploads"
|
media_folder: "assets/uploads"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user