+
+

+
Login into our System
-
)
}
diff --git a/src/common/pages/Login/style.scss b/src/common/pages/Login/style.scss
index 4077e85..dc1bc01 100644
--- a/src/common/pages/Login/style.scss
+++ b/src/common/pages/Login/style.scss
@@ -1,83 +1,82 @@
-.login {
+@import url('https://fonts.googleapis.com/css?family=Thasadith');
+.loginWrapper{
display: flex;
+ height: 100vh;
justify-content: center;
align-items: center;
- flex-direction: column;
- //background-size: cover;
- //position: fixed;
- //height: 100%;
- //width: 100%;
- //top:0;
- //overflow: hidden;
- .logo {
- width: 100%;
- }
+ //background-color: #aaafff;
+ background-image: url("../../../../assets/images/login/background.jpg");
+ background-repeat: no-repeat;
+ background-size: contain;
+ background-position: center bottom;
+ margin-top: -56px !important;
- .background {
- height: 100%;
- overflow: hidden;
- background: rgba(128, 0, 128, 0.82); /* fallback for old browsers */
- background: -webkit-linear-gradient(to top, rgba(0, 204, 187, 0.86), rgba(43, 69, 230, 0.91), rgba(128, 0, 128, 0.92)); /* Chrome 10-25, Safari 5.1-6 */
- background: linear-gradient(to top, rgba(0, 204, 187, 0.86), rgba(43, 69, 230, 0.91), rgba(128, 0, 128, 0.92));
- position: absolute;
- width: 100%;
- }
- .ant-form-explain {
- text-align: left;
- }
- .login-box {
- position: absolute;
- top: 0;
- right: 0;
- width: 460px;
- height: 320px;
- padding: 36px;
- background-color: #1e2e4a;
- box-shadow: 0 0 100px rgba(0, 0, 0, .08);
- .header {
+ .formContainer{
+ display: flex;
+ flex-direction: column;
+ margin-top: -17.5vh;
+
+ .logoLogin{
+ width: 200px;
+ height: auto;
+ align-self: center;
+ }
+
+ .textLogin{
text-align: center;
- cursor: pointer;
- margin-bottom: 24px;
- img {
- width: 40px;
- margin-right: 8px;
- }
- span {
- vertical-align: text-bottom;
- font-size: 16px;
- text-transform: uppercase;
- display: inline-block;
- }
- p {
- font-size: 16px;
- text-transform: uppercase;
+ margin-top: 5vh;
+ margin-bottom: 6.5vh;
+ font-size: 1.25rem;
+ font-weight: lighter;
+ color: #555;
+ font-family: 'Thasadith', sans-serif;
+ }
+ .formParent{
+ display: flex;
+ flex-direction: row;
+
+ .inputContainer{
+ display: flex;
+ flex-direction: column;
+ background-color: #fff;
+ box-shadow: 0 14px 28px rgba(0,0,0,0.06), 0 10px 10px rgba(0,0,0,0.03);
+
+ .usernameForm{
+ border: 0px;
+ padding: 15px;
+ width: 20vw;
+ border-bottom: 1px solid #eee;
+ }
+ .passwordForm{
+ border: 0px;
+ padding: 15px;
+ width: 20vw;
+ }
+ }
+
+ .buttonLogin{
+ width: 100px;
+ height: 35px;
+ align-self: center;
+ margin-left: -3vw;
+ box-shadow: 0 14px 28px rgba(0,0,0,0.09), 0 10px 10px rgba(0,0,0,0.06) !important;
+ color: #fff;
+ border: 0px;
+ background-color: #6772e5;
+ border-radius: 2.5px;
+ cursor: pointer;
+ transition: 0.5s;
+ }
+
+ .buttonLogin:hover{
+ background-color: #424770;
}
}
}
}
-//
-//.login::before {
-// content: "";
-// position: absolute;
-// z-index: -1;
-// background: -webkit-gradient(linear, left top, right bottom, from(#D7BBEA), to(#65A8F1));
-// background: linear-gradient(to bottom right, #D7BBEA, #65A8F1);
-// top: 0;
-// left: 0;
-// bottom: 0;
-// right: 0;
-//}
-//.login-wrapper {
-// margin: 0 auto;
-// position: relative;
-// min-height: 100%;
-// box-shadow: none;
-// border-radius: 0;
-// background-image: url('/assets/images/bg-pattern2.png');
-// background-size: contain;
-// background-repeat: repeat;
-// background-position: 0 0;
-//}
+textarea:focus, input:focus{
+ outline: none;
+}
diff --git a/src/common/pages/Vouchers/index.js b/src/common/pages/Vouchers/index.js
index 277da90..769fde5 100644
--- a/src/common/pages/Vouchers/index.js
+++ b/src/common/pages/Vouchers/index.js
@@ -1,11 +1,12 @@
import React from 'react';
import {inject, observer} from 'mobx-react';
import {Link} from 'react-router';
-import {Affix, Card, Slider, Select, Col, Row, Carousel } from 'antd';
+import {Affix, Card, Slider, Select, Col, Row } from 'antd';
import {Tab, Tabs} from 'material-ui';
import './style.scss';
import {ItemCard} from "./ItemCard";
import ModalVouchersComponent from "./Modal";
+import EmptyComponent from '../EmptyComponent';
const Option = Select.Option;
@inject('appstate')
@@ -31,9 +32,12 @@ export default class VouchersComponent extends React.Component {
},
};
this.defaultState = Object.assign({}, this.state);
+ this.vouchersStore = props.appstate.vouchers;
}
componentDidMount() {
+ this.vouchersStore.getList();
+ console.log('res list component',this.vouchersStore.getList())
}
render() {
@@ -186,14 +190,6 @@ export default class VouchersComponent extends React.Component {
return (
- {/*
*/}
- {/*
*/}
- {/**/}
- {/**/}
- {/**/}
- {/**/}
- {/**/}
- {/*
*/}
@@ -201,11 +197,17 @@ export default class VouchersComponent extends React.Component {
- {data.map((item, index) => {
- return ( this.setState({isOpened: true, data: item})} key={index} span={6}>
-
- )
- })}
+ {
+ (data.length > 0) ?
+ data.map((item, index) => {
+ return ( this.setState({isOpened: true, data: item})} key={index} span={6}>
+
+ )
+ })
+ : (
+
+ )
+ }
{}, onCancel = () => {}, title='Redeem your code'} = this.props;
+
+ return (
+
+
+
+ )
+ }
+}
diff --git a/src/common/pages/Wallet/Modal/style.scss b/src/common/pages/Wallet/Modal/style.scss
new file mode 100644
index 0000000..bf2b2d1
--- /dev/null
+++ b/src/common/pages/Wallet/Modal/style.scss
@@ -0,0 +1,15 @@
+.modalContainer{
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+ align-items: center;
+
+ .stripeText{
+ margin-top: 12px;
+ margin-left: 10px;
+ margin-right: 10px;
+ }
+ .inputCode{
+ text-align: center;
+ }
+}
diff --git a/src/common/pages/Wallet/index.js b/src/common/pages/Wallet/index.js
index 99d3b7b..5471c88 100644
--- a/src/common/pages/Wallet/index.js
+++ b/src/common/pages/Wallet/index.js
@@ -31,6 +31,7 @@ import Loader from 'react-loader-advanced';
import './style.scss';
import {DIALOG} from "../../stores/global_ui";
import faker from 'faker';
+import ModalTopupComponent from "./Modal";
@inject('appstate')
@observer
@@ -44,6 +45,7 @@ export default class WalletComponent extends React.Component {
slideIndex: 0,
filteredInfo: null,
sortedInfo: null,
+ modalTopup: false,
};
this.defaultState = Object.assign({}, this.state);
this.http = props.appstate.http;
@@ -60,6 +62,10 @@ export default class WalletComponent extends React.Component {
// this.authStore.getWallet();
}
+ setModalTopup = (bool) => {
+ this.setState({modalTopup: bool});
+ };
+
render() {
const voucher = ;
const points = ;
@@ -207,7 +213,7 @@ export default class WalletComponent extends React.Component {
className="ToolbarGroupLastButton"
icon={}
label="Top Up"
- // onClick={() => this.globalUI.showDialog(DIALOG.WALLET.WITHDRAW)}
+ onClick={() => this.setModalTopup(true)}
primary={true}/>
}
@@ -283,8 +289,7 @@ export default class WalletComponent extends React.Component {
-
-
+