diff --git a/assets/css/default.css b/assets/css/default.css index 143009c..0e281d9 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -34,6 +34,11 @@ div.container { } } +.login-info { + margin-top: 5em; + margin-bottom: 1em; +} + .new-post { margin: 8px 0px; padding: 8px; diff --git a/assets/js/login.js b/assets/js/login.js new file mode 100644 index 0000000..f13bf80 --- /dev/null +++ b/assets/js/login.js @@ -0,0 +1,49 @@ +/* + * login - login.js + * + * Copyright (C) 2016 by The wasam@s production + * You can modify and/or distribute this under GPL. + */ +import 'babel-polyfill'; +import 'whatwg-fetch'; +import * as React from 'react'; +import {render} from 'react-dom'; +import {Flux} from 'flumpt'; +import injectTapEventPlugin from 'react-tap-event-plugin'; +import {MuiThemeProvider, RaisedButton} from 'material-ui'; +import ImageNavigateNext from 'material-ui/svg-icons/image/navigate-next'; +import Footer from './component/footer'; +import muiTheme from './theme'; + +require('../css/default.css'); +injectTapEventPlugin(); + +const main = document.querySelector('#main'); +const state = { +}; + +class Login extends Flux { + render(state) { + return( +
+ + {location.href = "/auth/twitter"}} + primary={true} + icon={} + /> + +
+ ); + } +} + +const app = new Login({ + renderer: el => { + render(el, main); + }, + initialState: state +}); +app.update(_initialState => (state)); + diff --git a/assets/js/top.js b/assets/js/top.js deleted file mode 100644 index e69de29..0000000 diff --git a/views/login.haml b/views/login.haml index 92fdbc7..011b801 100644 --- a/views/login.haml +++ b/views/login.haml @@ -2,13 +2,9 @@ %html %head %title login - Massr + %link{rel: "stylesheet", type: "text/css", href: "/css/main.css"} != haml :head %body - != haml :header - .container-fluid - .row-fluid - .span12 - .main - %p<#{_need_login} - %a.btn.btn-large.btn-primary{:href => "/auth/twitter", :title => "Login"}