[Ivan Diaz] - Responsive design
This commit is contained in:
parent
3a8710d99a
commit
52dbed0d11
|
@ -1,14 +1,15 @@
|
||||||
import React from 'react';
|
const React = require( 'react');
|
||||||
|
const classNames = require('classnames');
|
||||||
|
|
||||||
import UserActions from 'actions/user-actions';
|
const UserActions = require('actions/user-actions');
|
||||||
import UserStore from 'stores/user-store';
|
const UserStore = require('stores/user-store');
|
||||||
|
|
||||||
import Button from 'core-components/button';
|
const Button = require('core-components/button');
|
||||||
import Form from 'core-components/form';
|
const Form = require('core-components/form');
|
||||||
import Input from 'core-components/input';
|
const Input = require('core-components/input');
|
||||||
import Checkbox from 'core-components/checkbox';
|
const Checkbox = require('core-components/checkbox');
|
||||||
import Widget from 'core-components/widget';
|
const Widget = require('core-components/widget');
|
||||||
import WidgetTransition from 'core-components/widget-transition';
|
const WidgetTransition = require('core-components/widget-transition');
|
||||||
|
|
||||||
let MainHomePageLoginWidget = React.createClass({
|
let MainHomePageLoginWidget = React.createClass({
|
||||||
|
|
||||||
|
@ -20,7 +21,7 @@ let MainHomePageLoginWidget = React.createClass({
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
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.renderLogin()}
|
||||||
{this.renderPasswordRecovery()}
|
{this.renderPasswordRecovery()}
|
||||||
</WidgetTransition>
|
</WidgetTransition>
|
||||||
|
@ -36,7 +37,9 @@ let MainHomePageLoginWidget = React.createClass({
|
||||||
<Input placeholder="password" name="password" className="login-widget--input" password/>
|
<Input placeholder="password" name="password" className="login-widget--input" password/>
|
||||||
<Checkbox name="remember" label="Remember Me" className="login-widget--input"/>
|
<Checkbox name="remember" label="Remember Me" className="login-widget--input"/>
|
||||||
</div>
|
</div>
|
||||||
<Button type="primary">LOG IN</Button>
|
<div className="login-widget--submit-button">
|
||||||
|
<Button type="primary">LOG IN</Button>
|
||||||
|
</div>
|
||||||
</Form>
|
</Form>
|
||||||
<Button className="login-widget--forgot-password" type="link" onClick={this.handleForgetPasswordClick}>
|
<Button className="login-widget--forgot-password" type="link" onClick={this.handleForgetPasswordClick}>
|
||||||
{'Forgot your password?'}
|
{'Forgot your password?'}
|
||||||
|
@ -52,7 +55,9 @@ let MainHomePageLoginWidget = React.createClass({
|
||||||
<div className="login-widget--inputs">
|
<div className="login-widget--inputs">
|
||||||
<Input placeholder="email" name="email" className="login-widget--input"/>
|
<Input placeholder="email" name="email" className="login-widget--input"/>
|
||||||
</div>
|
</div>
|
||||||
<Button type="primary">Recover my password</Button>
|
<div className="login-widget--submit-button">
|
||||||
|
<Button type="primary">Recover my password</Button>
|
||||||
|
</div>
|
||||||
</Form>
|
</Form>
|
||||||
<Button className="login-widget--forgot-password" type="link" onClick={this.handleBackToLoginClick}>
|
<Button className="login-widget--forgot-password" type="link" onClick={this.handleBackToLoginClick}>
|
||||||
{'Back to login form'}
|
{'Back to login form'}
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
.login-widget {
|
.login-widget {
|
||||||
|
|
||||||
&--container {
|
&--container {
|
||||||
margin: 0 auto;
|
height: 361px;
|
||||||
height: 327px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&--input {
|
&--input {
|
||||||
|
|
|
@ -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;
|
|
@ -0,0 +1,3 @@
|
||||||
|
.main-home-page-portal {
|
||||||
|
|
||||||
|
}
|
|
@ -1,15 +1,15 @@
|
||||||
import React from 'react';
|
const React = require( 'react');
|
||||||
import {ListenerMixin} from 'reflux';
|
|
||||||
import {RouteHandler} from 'react-router';
|
|
||||||
|
|
||||||
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() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div className="main-home-page">
|
<div className="main-home-page">
|
||||||
<MainHomePageLoginWidget />
|
<MainHomePageLoginWidget className="col-md-4" />
|
||||||
|
<MainHomePagePortal className="col-md-8" />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,9 +9,7 @@
|
||||||
transition: max-height 0.15s ease-out;
|
transition: max-height 0.15s ease-out;
|
||||||
|
|
||||||
&--content {
|
&--content {
|
||||||
text-align: center;
|
|
||||||
min-height: 400px;
|
min-height: 400px;
|
||||||
width: 1100px;
|
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
.widget-transition {
|
.widget-transition {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
min-width: 324px;
|
|
||||||
|
|
||||||
&--widget {
|
&--widget {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
min-width: 324px;
|
min-width: 324px;
|
||||||
min-height: 327px;
|
min-height: 361px;
|
||||||
|
|
||||||
&--title {
|
&--title {
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue