update dashboard

This commit is contained in:
enggar_ganteng 2019-01-06 14:50:52 +07:00
parent 6bbddbc23b
commit a3361afae5
2 changed files with 23 additions and 9 deletions

View File

@ -88,7 +88,7 @@ export default class PopularItemCardComponent extends Component {
return( return(
<div> <div>
<div style={{textAlign:'center',padding:10}}> <div style={{textAlign:'center',padding:10}}>
<img src={it.image} style={{marginLeft:'auto',marginRight:'auto'}} height={'180vh'} width={'100%'} /> <img src={it.image} style={{marginLeft:'auto',marginRight:'auto'}} height={'200vh'} width={'100%'} />
{it.name} {it.name}
<br/> <br/>
<span style={{color:'#0061a7'}}>Rp. {it.price}</span> <span style={{color:'#0061a7'}}>Rp. {it.price}</span>

View File

@ -43,6 +43,7 @@ import slider5 from '../../../../assets/images/slider/5.jpg';
import {ItemCard} from "../Vouchers/ItemCard"; import {ItemCard} from "../Vouchers/ItemCard";
import ModalVouchersComponent from "../Vouchers/Modal"; import ModalVouchersComponent from "../Vouchers/Modal";
import PopularItemCardComponent from "./PopularItemCard"; import PopularItemCardComponent from "./PopularItemCard";
import NewItemCardComponent from "./NewItemCard";
import '../Vouchers/style.scss'; import '../Vouchers/style.scss';
const { const {
@ -271,13 +272,12 @@ export default class DashboardComponent extends React.Component {
<div> <div>
<Grid container spacing={0} style={{}}> <Grid container spacing={0} style={{}}>
<Grid item xs={12}> <Grid item xs={12}>
<div className="voucher"> <div>
<div className="row"> <div className="row">
<div className="col l12 m12 s12 padding"> <div className="col l12 m12 s12 padding">
<p className={'pageTitle'}> <h3>
Popular Items Popular Items
</p> </h3>
<Row gutter={10}> <Row gutter={10}>
<PopularItemCardComponent/> <PopularItemCardComponent/>
</Row> </Row>
@ -286,16 +286,30 @@ export default class DashboardComponent extends React.Component {
</div> </div>
</Grid> </Grid>
<Grid item xs={12}> <Grid item xs={12}>
<div className="voucher"> <div>
<div className="row"> <div className="row">
<div className="col l12 m12 s12 padding"> <div className="col l12 m12 s12 padding">
<p className={'pageTitle'}> <h3>
New Products
</h3>
<Row gutter={10}>
<NewItemCardComponent/>
</Row>
</div>
</div>
</div>
</Grid>
<Grid item xs={12}>
<div className={"voucher"} style={{marginTop:0}}>
<div className="row">
<div className="col l12 m12 s12 padding">
<h3>
Voucher & Gift Card Voucher & Gift Card
</p> </h3>
<Row gutter={10}> <Row gutter={10}>
{data.map((item, index) => { {data.map((item, index) => {
return (<Col onClick={() => this.setState({isOpened: true, data: item})} key={index} span={6}> return (<Col xs={24} xl={6} onClick={() => this.setState({isOpened: true, data: item})} key={index} span={6}>
<ItemCard data={item}/> <ItemCard data={item}/>
</Col>) </Col>)
})} })}