mirror of
https://github.com/opensupports/opensupports.git
synced 2025-04-08 18:35:06 +02:00
[Ivan Diaz] - Add login widget first approach
This commit is contained in:
parent
cc2654d3f5
commit
4d9a580e81
22
src/app/main/main-home-page-login-widget.js
Normal file
22
src/app/main/main-home-page-login-widget.js
Normal 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;
|
@ -2,12 +2,14 @@ import React from 'react/addons';
|
||||
import {ListenerMixin} from 'reflux';
|
||||
import {RouteHandler} from 'react-router';
|
||||
|
||||
import MainHomePageLoginWidget from 'app/main/main-home-page-login-widget';
|
||||
|
||||
var MainHomePage = React.createClass({
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
this is the Home page
|
||||
<div className="main-home-page">
|
||||
<MainHomePageLoginWidget />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
4
src/app/main/main-home-page.scss
Normal file
4
src/app/main/main-home-page.scss
Normal file
@ -0,0 +1,4 @@
|
||||
.main-home-page {
|
||||
text-align: center;
|
||||
min-height: 400px;
|
||||
}
|
16
src/core-components/input.js
Normal file
16
src/core-components/input.js
Normal 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;
|
Loading…
x
Reference in New Issue
Block a user