diff --git a/src/backends/netlify-auth/AuthenticationPage.css b/src/backends/netlify-auth/AuthenticationPage.css index fd5e679e..56400cfe 100644 --- a/src/backends/netlify-auth/AuthenticationPage.css +++ b/src/backends/netlify-auth/AuthenticationPage.css @@ -20,6 +20,11 @@ color: #dd0000; } +.message { + font-size: 1.1em; + margin: 20px 10px; +} + .button { padding: .25em 1em; height: auto; diff --git a/src/backends/test-repo/AuthenticationPage.js b/src/backends/test-repo/AuthenticationPage.js index 6d2535d9..92ac194d 100644 --- a/src/backends/test-repo/AuthenticationPage.js +++ b/src/backends/test-repo/AuthenticationPage.js @@ -17,14 +17,15 @@ export default class AuthenticationPage extends React.Component { this.props.onLogin(this.state); }; - handleEmailChange = (e) => { - this.setState({ email: e.target.value }); + handleEmailChange = (value) => { + this.setState({ email: value }); }; render() { return (
+

This is a demo, enter your email to start

f) + .map(s => s.substr(0, 1).toUpperCase() + (s.substr(1) || '')) + .join(' '); +} + export default class TestRepo { constructor(config) { this.config = config; @@ -24,7 +33,7 @@ export default class TestRepo { } authenticate(state) { - return Promise.resolve({ email: state.email }); + return Promise.resolve({ email: state.email, name: nameFromEmail(state.email) }); } entriesByFolder(collection) { @@ -71,7 +80,6 @@ export default class TestRepo { } else { window.repoFiles[folder][fileName].content = entry.raw; } - mediaFiles.forEach(media => media.uploaded = true); return Promise.resolve(); }