Commit 7b2836db by tungnq

TODO: Đã dựng xong giao diện list danh sách điểm danh của lớp học

parent 0be258de
...@@ -10,7 +10,6 @@ const styles = StyleSheet.create({ ...@@ -10,7 +10,6 @@ const styles = StyleSheet.create({
body: { body: {
flex: 1, flex: 1,
backgroundColor: R.colors.white, backgroundColor: R.colors.white,
paddingHorizontal:15
}, },
card: { card: {
borderWidth: 1, borderWidth: 1,
...@@ -27,6 +26,7 @@ const styles = StyleSheet.create({ ...@@ -27,6 +26,7 @@ const styles = StyleSheet.create({
shadowOpacity: Platform.OS === 'ios' ? 0.25 : 1, shadowOpacity: Platform.OS === 'ios' ? 0.25 : 1,
shadowRadius: 5, shadowRadius: 5,
elevation: Platform.OS === 'ios' ? 1 : 2, elevation: Platform.OS === 'ios' ? 1 : 2,
marginHorizontal:15
}, },
btnCard: { btnCard: {
borderRadius: 10, borderRadius: 10,
...@@ -44,7 +44,6 @@ const styles = StyleSheet.create({ ...@@ -44,7 +44,6 @@ const styles = StyleSheet.create({
fontWeight: '400', fontWeight: '400',
}, },
searchContainer:{ searchContainer:{
width:'100%',
flexDirection:'row', flexDirection:'row',
alignItems:'center', alignItems:'center',
borderColor:R.colors.grayBorderInputTextHeader, borderColor:R.colors.grayBorderInputTextHeader,
...@@ -52,6 +51,7 @@ const styles = StyleSheet.create({ ...@@ -52,6 +51,7 @@ const styles = StyleSheet.create({
borderRadius:100, borderRadius:100,
paddingHorizontal:10, paddingHorizontal:10,
paddingVertical:5, paddingVertical:5,
marginHorizontal:15
}, },
textInput:{ textInput:{
fontSize: R.sizes.sm, fontSize: R.sizes.sm,
...@@ -67,16 +67,20 @@ const styles = StyleSheet.create({ ...@@ -67,16 +67,20 @@ const styles = StyleSheet.create({
width:24, width:24,
height:24, height:24,
}, },
list:{
marginVertical:10
},
item:{ item:{
paddingVertical:10, paddingVertical:10,
paddingHorizontal:15, paddingHorizontal:15,
borderRadius:10, marginHorizontal:15,
borderWidth:1, marginTop:10,
borderColor:R.colors.grayBorderInputTextHeader, marginBottom:15,
marginVertical:5, backgroundColor:R.colors.white,
borderRadius:15,
shadowColor: R.colors.black,
shadowOffset: {width: 0.5, height: 2},
shadowOpacity: Platform.OS === 'ios' ? 0.25 : 1,
shadowRadius: 5,
elevation: Platform.OS === 'ios' ? 1 : 2,
}, },
row:{ row:{
flexDirection:'row', flexDirection:'row',
...@@ -85,12 +89,13 @@ const styles = StyleSheet.create({ ...@@ -85,12 +89,13 @@ const styles = StyleSheet.create({
textTitle:{ textTitle:{
fontSize: R.sizes.sm, fontSize: R.sizes.sm,
color: R.colors.black, color: R.colors.black,
fontFamily: R.fonts.fontRegular, fontFamily: R.fonts.fontMedium,
fontWeight: '400', fontWeight: '600',
}, },
btnContainer:{ btnContainer:{
flexDirection:'row', flexDirection:'row',
justifyContent:'space-between', justifyContent:'space-between',
marginVertical:5
}, },
iconQR:{ iconQR:{
width:24, width:24,
......
...@@ -25,32 +25,32 @@ const ListRollCallView = props => { ...@@ -25,32 +25,32 @@ const ListRollCallView = props => {
<View style={styles.row}> <View style={styles.row}>
<Text style={styles.textTitle}> <Text style={styles.textTitle}>
Mã lp: Mã lp:
<Text style={styles.text}>{item.classCode}</Text> <Text style={[styles.text ,{color:R.colors.blue , fontWeight:'600', fontFamily:R.fonts.fontMedium}]}>{item.classCode}</Text>
</Text> </Text>
<Text style={styles.textTitle}> <Text style={styles.textTitle}>
Đã hc / Tng tiết: Đã hc / Tng tiết:
<Text style={styles.text}> <Text style={[styles.text ,{color:R.colors.blue }]}>
{item.lessonLearned}/{item.generalDetails} {item.lessonLearned}/{item.generalDetails}
</Text> </Text>
</Text> </Text>
</View> </View>
<View style={styles.row}> <View style={styles.row}>
<Text style={styles.textTitle}> <Text style={styles.textTitle}>
Sĩ s: Sĩ s:{' '}
<Text style={styles.text}>{item.numberOfStudent}</Text> <Text style={[styles.text ,{color:R.colors.blue }]}>{item.numberOfStudent}</Text>
</Text> </Text>
<Text style={styles.textTitle}> <Text style={styles.textTitle}>
Tng s sinh viên trượt đim danh: Tng s sv trượt đim danh:{' '}
<Text style={styles.text}>{item.totalStudentFailedRollCall}</Text> <Text style={[styles.text, {color:R.colors.red }]}>{item.totalStudentFailedRollCall}</Text>
</Text> </Text>
</View> </View>
<Text style={styles.textTitle}> <Text style={styles.textTitle}>
Ngày bt đầu: Ngày bt đầu:{' '}
<Text style={styles.text}>{item.dateStart}</Text> <Text style={[styles.text ,{color:R.colors.blue }]}>{item.dateStart}</Text>
</Text> </Text>
<Text style={styles.textTitle}> <Text style={styles.textTitle}>
Ngày kết thúc: Ngày kết thúc:{' '}
<Text style={styles.text}>{item.dateEnd}</Text> <Text style={[styles.text ,{color:R.colors.blue }]}>{item.dateEnd}</Text>
</Text> </Text>
<View style={styles.btnContainer}> <View style={styles.btnContainer}>
<Button <Button
...@@ -58,7 +58,8 @@ const ListRollCallView = props => { ...@@ -58,7 +58,8 @@ const ListRollCallView = props => {
onPress={()=>{}} onPress={()=>{}}
backgroundColor={R.colors.brown} backgroundColor={R.colors.brown}
textColor={R.colors.white} textColor={R.colors.white}
containerStyle={{paddingHorizontal:5, borderRadius:20}} fontSize={12}
containerStyle={{paddingHorizontal:5,paddingVertical:5, borderRadius:20}}
/> />
<Button <Button
title="Điểm danh" title="Điểm danh"
...@@ -66,6 +67,8 @@ const ListRollCallView = props => { ...@@ -66,6 +67,8 @@ const ListRollCallView = props => {
containerStyle={{paddingHorizontal:5, borderRadius:20}} containerStyle={{paddingHorizontal:5, borderRadius:20}}
backgroundColor={R.colors.brown} backgroundColor={R.colors.brown}
textColor={R.colors.white} textColor={R.colors.white}
fontSize={12}
width={85}
/> />
<Button <Button
title="Chi tiết" title="Chi tiết"
...@@ -73,6 +76,8 @@ const ListRollCallView = props => { ...@@ -73,6 +76,8 @@ const ListRollCallView = props => {
containerStyle={{paddingHorizontal:5, borderRadius:20}} containerStyle={{paddingHorizontal:5, borderRadius:20}}
backgroundColor={R.colors.blue} backgroundColor={R.colors.blue}
textColor={R.colors.white} textColor={R.colors.white}
fontSize={12}
width={85}
/> />
</View> </View>
</View> </View>
...@@ -80,7 +85,7 @@ const ListRollCallView = props => { ...@@ -80,7 +85,7 @@ const ListRollCallView = props => {
}; };
return ( return (
<View style={styles.container}> <View style={styles.container}>
<Header title={'Báo bù lịch dạy'} isBack /> <Header title={'Danh sách lớp điểm danh'} isBack />
<View style={styles.body}> <View style={styles.body}>
<View style={styles.card}> <View style={styles.card}>
<TouchableOpacity style={styles.btnCard}> <TouchableOpacity style={styles.btnCard}>
...@@ -101,6 +106,7 @@ const ListRollCallView = props => { ...@@ -101,6 +106,7 @@ const ListRollCallView = props => {
keyExtractor={(item, index) => `${index}`} keyExtractor={(item, index) => `${index}`}
style={styles.list} style={styles.list}
/> />
</View> </View>
</View> </View>
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment