|
@@ -17,11 +17,22 @@ export default class CourseListLine extends Component {
|
|
|
render() {
|
|
|
return (
|
|
|
<View style={styles.courseList}>
|
|
|
- <View style={[styles.padding, styles.title]}>
|
|
|
+ <View style={[styles.padding, styles.title, styles.border]}>
|
|
|
<Text style={styles.font}>{this.props.title}</Text>
|
|
|
<Text style={styles.color}>共28课</Text>
|
|
|
</View>
|
|
|
-
|
|
|
+ <View style={[styles.padding, styles.title, styles.border]}>
|
|
|
+ <Text style={styles.courseFont}>{this.props.title}</Text>
|
|
|
+ <Text style={styles.courseFont}>></Text>
|
|
|
+ </View>
|
|
|
+ <View style={[styles.padding, styles.title, styles.border]}>
|
|
|
+ <Text style={styles.courseFont}>{this.props.title}</Text>
|
|
|
+ <Text style={styles.courseFont}>></Text>
|
|
|
+ </View>
|
|
|
+ <View style={[styles.padding, styles.title, styles.border]}>
|
|
|
+ <Text style={styles.courseFont}>{this.props.title}</Text>
|
|
|
+ <Text style={styles.courseFont}>></Text>
|
|
|
+ </View>
|
|
|
</View>
|
|
|
);
|
|
|
}
|
|
@@ -36,6 +47,8 @@ const styles = StyleSheet.create({
|
|
|
padding: {
|
|
|
paddingLeft: 20,
|
|
|
paddingRight: 20,
|
|
|
+ paddingTop: 10,
|
|
|
+ paddingBottom: 10,
|
|
|
},
|
|
|
title: {
|
|
|
display: 'flex',
|
|
@@ -44,8 +57,6 @@ const styles = StyleSheet.create({
|
|
|
alignItems: 'center',
|
|
|
},
|
|
|
font: {
|
|
|
- paddingTop: 10,
|
|
|
- paddingBottom: 10,
|
|
|
fontSize: 18,
|
|
|
color: 'black',
|
|
|
fontWeight: 'bold',
|
|
@@ -54,4 +65,13 @@ const styles = StyleSheet.create({
|
|
|
fontSize: 14,
|
|
|
color: 'black',
|
|
|
},
|
|
|
+ courseFont: {
|
|
|
+ color: '#373737',
|
|
|
+ fontSize: 16
|
|
|
+ },
|
|
|
+ border: {
|
|
|
+ borderStyle: 'solid',
|
|
|
+ borderBottomWidth: 1,
|
|
|
+ borderColor: '#F0F1F5'
|
|
|
+ }
|
|
|
});
|