[Ivan Diaz] - Responsive design

This commit is contained in:
Ivan Diaz 2016-04-27 21:08:57 -03:00
parent 3a8710d99a
commit 52dbed0d11
9 changed files with 1088 additions and 316 deletions

View File

@ -1,14 +1,15 @@
import React from 'react';
const React = require( 'react');
const classNames = require('classnames');
import UserActions from 'actions/user-actions';
import UserStore from 'stores/user-store';
const UserActions = require('actions/user-actions');
const UserStore = require('stores/user-store');
import Button from 'core-components/button';
import Form from 'core-components/form';
import Input from 'core-components/input';
import Checkbox from 'core-components/checkbox';
import Widget from 'core-components/widget';
import WidgetTransition from 'core-components/widget-transition';
const Button = require('core-components/button');
const Form = require('core-components/form');
const Input = require('core-components/input');
const Checkbox = require('core-components/checkbox');
const Widget = require('core-components/widget');
const WidgetTransition = require('core-components/widget-transition');
let MainHomePageLoginWidget = React.createClass({
@ -20,7 +21,7 @@ let MainHomePageLoginWidget = React.createClass({
render() {
return (
<WidgetTransition sideToShow={this.state.sideToShow} className="login-widget--container">
<WidgetTransition sideToShow={this.state.sideToShow} className={classNames('login-widget--container', this.props.className)}>
{this.renderLogin()}
{this.renderPasswordRecovery()}
</WidgetTransition>
@ -36,7 +37,9 @@ let MainHomePageLoginWidget = React.createClass({
<Input placeholder="password" name="password" className="login-widget--input" password/>
<Checkbox name="remember" label="Remember Me" className="login-widget--input"/>
</div>
<Button type="primary">LOG IN</Button>
<div className="login-widget--submit-button">
<Button type="primary">LOG IN</Button>
</div>
</Form>
<Button className="login-widget--forgot-password" type="link" onClick={this.handleForgetPasswordClick}>
{'Forgot your password?'}
@ -52,7 +55,9 @@ let MainHomePageLoginWidget = React.createClass({
<div className="login-widget--inputs">
<Input placeholder="email" name="email" className="login-widget--input"/>
</div>
<Button type="primary">Recover my password</Button>
<div className="login-widget--submit-button">
<Button type="primary">Recover my password</Button>
</div>
</Form>
<Button className="login-widget--forgot-password" type="link" onClick={this.handleBackToLoginClick}>
{'Back to login form'}

View File

@ -1,8 +1,7 @@
.login-widget {
&--container {
margin: 0 auto;
height: 327px;
height: 361px;
}
&--input {

View File

@ -0,0 +1,16 @@
const React = require('react');
const classNames = require('classnames');
const Widget = require('core-components/widget');
const MainHomePagePortal = React.createClass({
render() {
return (
<Widget className={classNames('main-home-page-portal', this.props.className)}>
support portal
</Widget>
);
}
});
export default MainHomePagePortal;

View File

@ -0,0 +1,3 @@
.main-home-page-portal {
}

View File

@ -1,15 +1,15 @@
import React from 'react';
import {ListenerMixin} from 'reflux';
import {RouteHandler} from 'react-router';
const React = require( 'react');
import MainHomePageLoginWidget from 'app/main/main-home/main-home-page-login-widget';
const MainHomePageLoginWidget = require('app/main/main-home/main-home-page-login-widget');
const MainHomePagePortal = require('app/main/main-home/main-home-page-portal');
let MainHomePage = React.createClass({
const MainHomePage = React.createClass({
render() {
return (
<div className="main-home-page">
<MainHomePageLoginWidget />
<MainHomePageLoginWidget className="col-md-4" />
<MainHomePagePortal className="col-md-8" />
</div>
);
}

View File

@ -9,9 +9,7 @@
transition: max-height 0.15s ease-out;
&--content {
text-align: center;
min-height: 400px;
width: 1100px;
padding: 20px;
}
}

View File

@ -1,7 +1,6 @@
.widget-transition {
position: relative;
display: inline-block;
min-width: 324px;
&--widget {
display: inline-block;

View File

@ -6,7 +6,7 @@
text-align: center;
padding: 20px;
min-width: 324px;
min-height: 327px;
min-height: 361px;
&--title {
text-transform: uppercase;

File diff suppressed because it is too large Load Diff