[Ivan Diaz] - Add login widget first approach

This commit is contained in:
Ivan Diaz 2015-09-06 20:28:48 -03:00
parent cc2654d3f5
commit 4d9a580e81
4 changed files with 46 additions and 2 deletions

View File

@ -0,0 +1,22 @@
import React from 'react/addons';
import Widget from 'core-components/widget';
import Input from 'core-components/input';
import Button from 'core-components/button';
var MainHomePageLoginWidget = React.createClass({
render() {
return (
<Widget>
<h3>Login</h3>
<Input placeholder="email" />
<Input placeholder="password" />
<Button type="primary">LOG IN</Button>
</Widget>
);
}
});
export default MainHomePageLoginWidget;

View File

@ -2,12 +2,14 @@ import React from 'react/addons';
import {ListenerMixin} from 'reflux'; import {ListenerMixin} from 'reflux';
import {RouteHandler} from 'react-router'; import {RouteHandler} from 'react-router';
import MainHomePageLoginWidget from 'app/main/main-home-page-login-widget';
var MainHomePage = React.createClass({ var MainHomePage = React.createClass({
render() { render() {
return ( return (
<div> <div className="main-home-page">
this is the Home page <MainHomePageLoginWidget />
</div> </div>
); );
} }

View File

@ -0,0 +1,4 @@
.main-home-page {
text-align: center;
min-height: 400px;
}

View File

@ -0,0 +1,16 @@
import React from 'react';
var Input = React.createClass({
render() {
return (
<input {...this.getProps()} />
);
},
getProps() {
return this.props;
}
});
export default Input;