forked from alibaba/ice
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLeftContentDisplay.jsx
More file actions
64 lines (60 loc) · 1.37 KB
/
LeftContentDisplay.jsx
File metadata and controls
64 lines (60 loc) · 1.37 KB
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
60
61
62
63
64
import React, { Component } from 'react';
import './LeftContentDisplay.scss';
export default class LeftContentDisplay extends Component {
static displayName = 'LeftContentDisplay';
constructor(props) {
super(props);
this.state = {};
}
render() {
return (
<div className="left-content-display" style={styles.container}>
<div style={styles.content}>
<div style={styles.col}>
<h2 style={styles.title}>功能描述</h2>
<p style={styles.description}>
功能描述的文案,功能描述的文案功能描述的文案功能描述的文案
</p>
</div>
<div style={styles.col}>
<img
src="https://img.alicdn.com/tfs/TB1MgyDjsLJ8KJjy0FnXXcFDpXa-618-1046.png"
alt="img"
style={styles.image}
/>
</div>
</div>
</div>
);
}
}
const styles = {
container: {
width: '1080px',
margin: '0 auto',
padding: '80px 0',
},
content: {
display: 'flex',
position: 'relative',
alignItems: 'center',
overflow: 'hidden',
height: '600px',
},
col: {
width: '50%',
},
title: {
fontSize: '28px',
fontWeight: 'bold',
},
description: {
color: '#666',
lineHeight: '22px',
},
image: {
position: 'absolute',
top: '20px',
width: '40%',
},
};