-
Notifications
You must be signed in to change notification settings - Fork 0
/
card
201 lines (183 loc) · 4.78 KB
/
card
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
import React from 'react'
import {
StyleSheet,
Text,
View,
TouchableNativeFeedback,
Image
} from 'react-native'
const Card = ({ driver, price, carName, seats, bags }) => {
return (
<View style={styles.product}>
<View style={styles.touchable}>
<TouchableNativeFeedback useForeground >
<View>
<View style={styles.rowOneContainer}>
<View>
<Image style={styles.img} source={require('../images/profile.jpg')} />
</View>
<View style={styles.texCont}>
<Text style={styles.txtName}>عبدالوهاب الاحمد</Text>
<View style={styles.reviewCon}>
<Image style={styles.icon} source={require('../images/star.png')} />
<Text style={styles.review}>4.7</Text>
</View>
</View>
<View style={styles.price}>
<View style={styles.firstPrice}>
<Text style={styles.txt}> <Text style={styles.bigPrice}>260</Text> ريال </Text>
<Text style={{ ...styles.text, ...styles.priceBefore }}>500 ريال</Text>
</View>
</View>
</View>
<View style={styles.rowTowContainer}>
<View>
<Text style={styles.carType}>فوردإكسبلوورر</Text>
</View>
<View style={styles.carSpecific}>
<View style={styles.carSpecificTxtCon}>
<Text style={styles.carSpecificTxt}> مقاعد</Text>
<Image style={styles.iconCar} source={require('../images/man.png')} />
</View>
<View style={styles.carSpecificTxtCon}>
<Text style={styles.carSpecificTxt}> شنط</Text>
<Image style={styles.iconCar} source={require('../images/suitcase.png')} />
</View>
</View>
</View>
<View style={styles.rowThreeContainer}>
<View style={styles.carNameCon}>
<Text style={{ ...styles.txt, ...styles.txtCarName }}>سيارة كاملة</Text>
</View>
<View style={styles.iconList}>
<Image style={styles.iconSpecfic} source={require('../images/no-smoking.png')} />
<Image style={styles.iconSpecfic} source={require('../images/status.png')} />
<Image style={styles.iconSpecfic} source={require('../images/video-camera.png')} />
<Image style={styles.iconSpecfic} source={require('../images/wifi.png')} />
</View>
</View>
</View>
</TouchableNativeFeedback>
</View>
</View>
)
}
const styles = StyleSheet.create({
product: {
elevation: 5,
borderRadius: 7,
backgroundColor: 'white',
height: 230,
margin: 20,
},
touchable: {
overflow: "hidden",
borderRadius: 7
},
img: {
width: 80,
height: 80,
borderRadius: 150 / 2,
overflow: "hidden",
borderWidth: 3,
},
rowOneContainer: {
padding: 8,
flexDirection: 'row-reverse',
alignItems: 'center'
},
texCont: {
paddingBottom: 45,
paddingRight: 5,
},
txtName: {
fontFamily: 'OpenSans-Bold',
fontSize: 15,
},
reviewCon: {
flexDirection: "row-reverse",
},
icon: {
width: 20,
height: 20,
alignSelf: "flex-end",
},
review: {
alignSelf: "flex-end",
paddingRight: 3
},
txt: {
fontFamily: 'OpenSans-Bold',
fontSize: 15,
color: '#8fa595'
},
price: {
marginRight: 20,
paddingBottom: 20
},
bigPrice: {
fontSize: 30,
color: "#3da954"
},
priceBefore: {
color: '#8fa595',
textDecorationLine: 'line-through',
fontSize: 17
},
rowTowContainer: {
margin: 10,
height: 60,
backgroundColor: '#f1f4f2',
borderRadius: 7,
justifyContent: "space-between",
flexDirection: "row-reverse"
},
carType: {
paddingTop: 15,
paddingRight: 10,
fontSize: 20,
fontFamily: 'OpenSans-Bold',
},
carSpecificTxtCon: {
paddingVertical: 10,
paddingHorizontal: 10,
flexDirection: "row"
},
carSpecific: {
paddingVertical: 10,
paddingHorizontal: 10,
flexDirection: "row-reverse",
},
carSpecificTxt: {
fontSize: 20,
color: '#8fa595',
},
iconCar: {
width: 17,
height: 17,
alignSelf: "flex-end",
},
rowThreeContainer: {
flexDirection: "row-reverse",
justifyContent: "space-between"
},
carNameCon: {
paddingTop: 10,
paddingRight: 10
},
txtCarName: {
fontSize: 18,
fontFamily: 'OpenSans-Regular',
},
iconList: {
flexDirection: "row-reverse",
paddingTop: 8,
paddingRight: 10
},
iconSpecfic: {
width: 17,
height: 17,
margin: 5
}
})
export default Card