fix identity auth page styling

This commit is contained in:
Shawn Erquhart 2017-12-07 13:02:50 -05:00
parent a59f00cfaf
commit 91307a06ce
4 changed files with 21 additions and 2 deletions

View File

@ -119,7 +119,8 @@
"webpack": "^3.6.0", "webpack": "^3.6.0",
"webpack-dev-server": "^2.9.1", "webpack-dev-server": "^2.9.1",
"webpack-merge": "^4.1.0", "webpack-merge": "^4.1.0",
"webpack-postcss-tools": "^1.1.1" "webpack-postcss-tools": "^1.1.1",
"write-file-webpack-plugin": "^4.2.0"
}, },
"dependencies": { "dependencies": {
"classnames": "^2.2.5", "classnames": "^2.2.5",

View File

@ -93,7 +93,8 @@ export default class AuthenticationPage extends React.Component {
if (window.netlifyIdentity) { if (window.netlifyIdentity) {
return <section className="nc-gitGatewayAuthenticationPage-root"> return <section className="nc-gitGatewayAuthenticationPage-root">
<Notifs CustomComponent={Toast} /> <Notifs CustomComponent={Toast} />
<button className="nc-gitGatewayAuthenticationPage-button" onClick={this.handleIdentity}> <Icon className="nc-githubAuthenticationPage-logo" size="500px" type="netlify-cms"/>
<button className="nc-githubAuthenticationPage-button" onClick={this.handleIdentity}>
Login with Netlify Identity Login with Netlify Identity
</button> </button>
</section> </section>

View File

@ -3,6 +3,7 @@ const path = require('path');
const webpack = require('webpack'); const webpack = require('webpack');
const merge = require('webpack-merge'); const merge = require('webpack-merge');
const ExtractTextPlugin = require('extract-text-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin');
const WriteFilePlugin = require('write-file-webpack-plugin');
const HOST = 'localhost'; const HOST = 'localhost';
const PORT = '8080'; const PORT = '8080';
@ -47,6 +48,7 @@ module.exports = merge.smart(require('./webpack.base.js'), {
filename: '[name].css', filename: '[name].css',
disable: true, disable: true,
}), }),
new WriteFilePlugin(),
], ],
devtool: 'source-map', devtool: 'source-map',
devServer: { devServer: {

View File

@ -3254,6 +3254,10 @@ fileset@^2.0.2:
glob "^7.0.3" glob "^7.0.3"
minimatch "^3.0.3" minimatch "^3.0.3"
filesize@^3.2.1:
version "3.5.11"
resolved "https://registry.yarnpkg.com/filesize/-/filesize-3.5.11.tgz#1919326749433bb3cf77368bd158caabcc19e9ee"
fill-range@^2.1.0: fill-range@^2.1.0:
version "2.2.3" version "2.2.3"
resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.3.tgz#50b77dfd7e469bc7492470963699fe7a8485a723" resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.3.tgz#50b77dfd7e469bc7492470963699fe7a8485a723"
@ -9677,6 +9681,17 @@ write-file-stdout@0.0.2:
version "0.0.2" version "0.0.2"
resolved "https://registry.yarnpkg.com/write-file-stdout/-/write-file-stdout-0.0.2.tgz#c252d7c7c5b1b402897630e3453c7bfe690d9ca1" resolved "https://registry.yarnpkg.com/write-file-stdout/-/write-file-stdout-0.0.2.tgz#c252d7c7c5b1b402897630e3453c7bfe690d9ca1"
write-file-webpack-plugin@^4.2.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/write-file-webpack-plugin/-/write-file-webpack-plugin-4.2.0.tgz#7bd18547eaa0ea0b23992fb1e0322e5431d339ef"
dependencies:
chalk "^1.1.1"
debug "^2.6.8"
filesize "^3.2.1"
lodash "^4.5.1"
mkdirp "^0.5.1"
moment "^2.11.2"
write@^0.2.1: write@^0.2.1:
version "0.2.1" version "0.2.1"
resolved "https://registry.yarnpkg.com/write/-/write-0.2.1.tgz#5fc03828e264cea3fe91455476f7a3c566cb0757" resolved "https://registry.yarnpkg.com/write/-/write-0.2.1.tgz#5fc03828e264cea3fe91455476f7a3c566cb0757"