-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHome.tsx
59 lines (56 loc) · 1.25 KB
/
Home.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import Banner0 from './Banner';
import Content0 from './Content0';
import Feature1 from './Feature1';
import Feature4 from './Feature4';
import Content3 from './Content3';
import Content11 from './Content11';
import {
Banner01DataSource,
Content00DataSource,
Feature10DataSource,
Feature40DataSource,
Content110DataSource,
Content30DataSource
} from './data.source';
import './less/antMotionStyle.less';
import { isMobile } from 'react-device-detect';
const Home = () => {
const children = [
<Banner0
key="Banner0_1"
dataSource={Banner01DataSource}
isMobile={isMobile}
/>,
<Content0
key="Content0_0"
dataSource={Content00DataSource}
isMobile={isMobile}
/>,
<Feature1
key="Feature1_0"
dataSource={Feature10DataSource}
isMobile={isMobile}
/>,
<Feature4
key="Feature4_0"
dataSource={Feature40DataSource}
isMobile={isMobile}
/>,
<Content3
key="Content12_0"
dataSource={Content30DataSource}
isMobile={isMobile}
/>,
<Content11
key="Content11_0"
dataSource={Content110DataSource}
isMobile={isMobile}
/>,
];
return (
<div className="templates-wrapper">
{children}
</div>
);
}
export default Home;