IO-1816 Refactor main page.
This commit is contained in:
@@ -4,27 +4,27 @@ import { enquireScreen } from "enquire-js";
|
||||
import React from "react";
|
||||
import Banner0 from "./Banner0";
|
||||
// import Content4 from "./Content4";
|
||||
import Content0 from "./Content0";
|
||||
import Content1 from "./Content1";
|
||||
//import Content0 from "./Content0";
|
||||
//import Content1 from "./Content1";
|
||||
import {
|
||||
Banner00DataSource,
|
||||
// Content40DataSource,
|
||||
Content00DataSource,
|
||||
Content10DataSource,
|
||||
//Content00DataSource,
|
||||
//Content10DataSource,
|
||||
// Pricing11DataSource,
|
||||
// Content30DataSource,
|
||||
// Content120DataSource,
|
||||
Footer10DataSource,
|
||||
Nav00DataSource,
|
||||
Pricing20DataSource,
|
||||
// Nav00DataSource,
|
||||
//Pricing20DataSource,
|
||||
} from "./data.source";
|
||||
// import Pricing1 from "./Pricing1";
|
||||
// import Content3 from "./Content3";
|
||||
// import Content12 from "./Content12";
|
||||
import Footer1 from "./Footer1";
|
||||
import "./less/antMotionStyle.less";
|
||||
import Nav0 from "./Nav0";
|
||||
import Pricing2 from "./Pricing2";
|
||||
// import Nav0 from "./Nav0";
|
||||
//import Pricing2 from "./Pricing2";
|
||||
|
||||
let isMobile;
|
||||
enquireScreen((b) => {
|
||||
@@ -62,64 +62,64 @@ export default class Home extends React.Component {
|
||||
|
||||
render() {
|
||||
const children = [
|
||||
<Nav0
|
||||
id="Nav0_0"
|
||||
key="Nav0_0"
|
||||
dataSource={Nav00DataSource}
|
||||
isMobile={this.state.isMobile}
|
||||
/>,
|
||||
// <Nav0
|
||||
// id="Nav0_0"
|
||||
// key="Nav0_0"
|
||||
// dataSource={Nav00DataSource}
|
||||
// isMobile={this.state.isMobile}
|
||||
// />,
|
||||
<Banner0
|
||||
id="Banner0_0"
|
||||
key="Banner0_0"
|
||||
dataSource={Banner00DataSource}
|
||||
isMobile={this.state.isMobile}
|
||||
/>,
|
||||
...(process.env.NODE_ENV !== "production"
|
||||
? [
|
||||
// <Content4
|
||||
// id="Content4_0"
|
||||
// key="Content4_0"
|
||||
// dataSource={Content40DataSource}
|
||||
// isMobile={this.state.isMobile}
|
||||
// />,
|
||||
<Content1
|
||||
id="Content1_0"
|
||||
key="Content1_0"
|
||||
dataSource={Content10DataSource}
|
||||
isMobile={this.state.isMobile}
|
||||
/>,
|
||||
<Content0
|
||||
id="Content0_0"
|
||||
key="Content0_0"
|
||||
dataSource={Content00DataSource}
|
||||
isMobile={this.state.isMobile}
|
||||
/>,
|
||||
<Pricing2
|
||||
id="Pricing2_0"
|
||||
key="Pricing2_0"
|
||||
dataSource={Pricing20DataSource}
|
||||
isMobile={this.state.isMobile}
|
||||
/>,
|
||||
// <Pricing1
|
||||
// id="Pricing1_1"
|
||||
// key="Pricing1_1"
|
||||
// dataSource={Pricing11DataSource}
|
||||
// isMobile={this.state.isMobile}
|
||||
// />,
|
||||
// <Content3
|
||||
// id="Content3_0"
|
||||
// key="Content3_0"
|
||||
// dataSource={Content30DataSource}
|
||||
// isMobile={this.state.isMobile}
|
||||
// />,
|
||||
// <Content12
|
||||
// id="Content12_0"
|
||||
// key="Content12_0"
|
||||
// dataSource={Content120DataSource}
|
||||
// isMobile={this.state.isMobile}
|
||||
// />,
|
||||
]
|
||||
: []),
|
||||
// ...(process.env.NODE_ENV !== "production"
|
||||
// ? [
|
||||
// // <Content4
|
||||
// // id="Content4_0"
|
||||
// // key="Content4_0"
|
||||
// // dataSource={Content40DataSource}
|
||||
// // isMobile={this.state.isMobile}
|
||||
// // />,
|
||||
// <Content1
|
||||
// id="Content1_0"
|
||||
// key="Content1_0"
|
||||
// dataSource={Content10DataSource}
|
||||
// isMobile={this.state.isMobile}
|
||||
// />,
|
||||
// <Content0
|
||||
// id="Content0_0"
|
||||
// key="Content0_0"
|
||||
// dataSource={Content00DataSource}
|
||||
// isMobile={this.state.isMobile}
|
||||
// />,
|
||||
// <Pricing2
|
||||
// id="Pricing2_0"
|
||||
// key="Pricing2_0"
|
||||
// dataSource={Pricing20DataSource}
|
||||
// isMobile={this.state.isMobile}
|
||||
// />,
|
||||
// // <Pricing1
|
||||
// // id="Pricing1_1"
|
||||
// // key="Pricing1_1"
|
||||
// // dataSource={Pricing11DataSource}
|
||||
// // isMobile={this.state.isMobile}
|
||||
// // />,
|
||||
// // <Content3
|
||||
// // id="Content3_0"
|
||||
// // key="Content3_0"
|
||||
// // dataSource={Content30DataSource}
|
||||
// // isMobile={this.state.isMobile}
|
||||
// // />,
|
||||
// // <Content12
|
||||
// // id="Content12_0"
|
||||
// // key="Content12_0"
|
||||
// // dataSource={Content120DataSource}
|
||||
// // isMobile={this.state.isMobile}
|
||||
// // />,
|
||||
// ]
|
||||
// : []),
|
||||
<Footer1
|
||||
id="Footer1_0"
|
||||
key="Footer1_0"
|
||||
|
||||
Reference in New Issue
Block a user