-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
256 lines (241 loc) · 16.3 KB
/
App.js
File metadata and controls
256 lines (241 loc) · 16.3 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
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
import React, { Fragment } from 'react';
import {
StyleSheet,
ScrollView,
View,
Text,
Image,
TextInput,
TouchableOpacity
} from 'react-native';
const App = () => {
return (
<View style={{ flex: 1 }}>
<ScrollView style={{ flex: 1 }}>
{/* CONTENT */}
<View style={{ flex: 1, backgroundColor: 'white' }}>
{/* searchbar */}
<View style={{ marginHorizontal: 16, flexDirection: 'row', paddingTop: 16 }}>
<View style={{ position: 'relative', flex: 1, justifyContent: 'center' }}>
<TextInput placeholder='What do you want to eat?' style={{ borderWidth: 1, borderColor: '#E8E8E8E8', borderRadius: 25, height: 40, fontSize: 13, paddingLeft: 45, paddingRight: 20, backgroundColor: 'white' }} />
<Image source={require('./icon/search.png')} style={{ position: 'absolute', top: 8, left: 12 }} />
</View>
<View style={{ width: 35, alignItems: 'center', justifyContent: 'center', marginStart: 16 }}>
<Image source={require('./icon/promo.png')} />
</View>
</View>
{/* gopayView */}
<View style={{ marginHorizontal: 16, marginTop: 8 }}>
<View style={{ flexDirection: 'row', justifyContent: 'space-between', backgroundColor: '#2C5FB8', borderTopLeftRadius: 4, borderTopRightRadius: 4, padding: 16 }}>
<Image source={require('./icon/gopay.png')} />
<Text style={{ fontSize: 16, fontWeight: 'bold', color: 'white' }}>Rp50.000</Text>
</View>
<View style={{ flexDirection: 'row', paddingTop: 20, paddingBottom: 14, backgroundColor: '#2F65BD', borderBottomLeftRadius: 4, borderBottomRightRadius: 4 }}>
<View style={{ flex: 1, alignItems: 'center' }}>
<Image source={require('./icon/pay.png')} />
<Text style={{ fontSize: 13, color: 'white', fontWeight: 'bold', marginTop: 14 }}>Pay</Text>
</View>
<View style={{ flex: 1, alignItems: 'center' }}>
<Image source={require('./icon/nearby.png')} />
<Text style={{ fontSize: 13, color: 'white', fontWeight: 'bold', marginTop: 14 }}>Nearby</Text>
</View>
<View style={{ flex: 1, alignItems: 'center' }}>
<Image source={require('./icon/topup.png')} />
<Text style={{ fontSize: 13, color: 'white', fontWeight: 'bold', marginTop: 14 }}>Topup</Text>
</View>
<View style={{ flex: 1, alignItems: 'center' }}>
<Image source={require('./icon/more.png')} />
<Text style={{ fontSize: 13, color: 'white', fontWeight: 'bold', marginTop: 14 }}>More</Text>
</View>
</View>
</View>
{/* mainFeature */}
<View style={{ flexDirection: 'row', flexWrap: 'wrap', marginTop: 18 }}>
<View style={{ justifyContent: 'space-between', flexDirection: 'row', width: '100%' }}>
<View style={{ width: `${100 / 4}%`, alignItems: 'center' }}>
<View style={{ width: 58, height: 58, borderWidth: 1, borderColor: '#EFEFEF', borderRadius: 18, justifyContent: 'center', alignItems: 'center' }}>
<Image source={require('./icon/go-ride.png')} />
</View>
<Text style={{ fontSize: 11, fontWeight: 'bold', textAlign: 'center', marginTop: 6 }}>GO-RIDE</Text>
</View>
<View style={{ width: `${100 / 4}%`, alignItems: 'center' }}>
<View style={{ width: 58, height: 58, borderWidth: 1, borderColor: '#EFEFEF', borderRadius: 18, justifyContent: 'center', alignItems: 'center' }}>
<Image source={require('./icon/go-car.png')} />
</View>
<Text style={{ fontSize: 11, fontWeight: 'bold', textAlign: 'center', marginTop: 6 }}>GO-CAR</Text>
</View>
<View style={{ width: `${100 / 4}%`, alignItems: 'center' }}>
<View style={{ width: 58, height: 58, borderWidth: 1, borderColor: '#EFEFEF', borderRadius: 18, justifyContent: 'center', alignItems: 'center' }}>
<Image source={require('./icon/go-bluebird.png')} />
</View>
<Text style={{ fontSize: 11, fontWeight: 'bold', textAlign: 'center', marginTop: 6 }}>GO-BLUEBIRD</Text>
</View>
<View style={{ width: `${100 / 4}%`, alignItems: 'center' }}>
<View style={{ width: 58, height: 58, borderWidth: 1, borderColor: '#EFEFEF', borderRadius: 18, justifyContent: 'center', alignItems: 'center' }}>
<Image source={require('./icon/go-send.png')} />
</View>
<Text style={{ fontSize: 11, fontWeight: 'bold', textAlign: 'center', marginTop: 6 }}>GO-SEND</Text>
</View>
</View>
<View style={{ justifyContent: 'space-between', flexDirection: 'row', width: '100%', marginTop: 18 }}>
<View style={{ width: `${100 / 4}%`, alignItems: 'center' }}>
<View style={{ width: 58, height: 58, borderWidth: 1, borderColor: '#EFEFEF', borderRadius: 18, justifyContent: 'center', alignItems: 'center' }}>
<Image source={require('./icon/go-deals.png')} />
</View>
<Text style={{ fontSize: 11, fontWeight: 'bold', textAlign: 'center', marginTop: 6 }}>GO-DEALS</Text>
</View>
<View style={{ width: `${100 / 4}%`, alignItems: 'center' }}>
<View style={{ width: 58, height: 58, borderWidth: 1, borderColor: '#EFEFEF', borderRadius: 18, justifyContent: 'center', alignItems: 'center' }}>
<Image source={require('./icon/go-pulsa.png')} />
</View>
<Text style={{ fontSize: 11, fontWeight: 'bold', textAlign: 'center', marginTop: 6 }}>GO-PULSA</Text>
</View>
<View style={{ width: `${100 / 4}%`, alignItems: 'center' }}>
<View style={{ width: 58, height: 58, borderWidth: 1, borderColor: '#EFEFEF', borderRadius: 18, justifyContent: 'center', alignItems: 'center' }}>
<Image source={require('./icon/go-food.png')} />
</View>
<Text style={{ fontSize: 11, fontWeight: 'bold', textAlign: 'center', marginTop: 6 }}>GO-FOOD</Text>
</View>
<View style={{ width: `${100 / 4}%`, alignItems: 'center' }}>
<View style={{ width: 58, height: 58, borderWidth: 1, borderColor: '#EFEFEF', borderRadius: 18, justifyContent: 'center', alignItems: 'center' }}>
<Image source={require('./icon/go-more.png')} />
</View>
<Text style={{ fontSize: 11, fontWeight: 'bold', textAlign: 'center', marginTop: 6 }}>MORE</Text>
</View>
</View>
</View>
{/* border */}
<View style={{ height: 16, backgroundColor: '#F2F2F4', marginTop: 18 }}></View>
{/* section news */}
<View style={{ paddingTop: 16, paddingHorizontal: 16 }}>
<View style={{ position: 'relative' }}>
<Image source={require('./dummy/sepak-bola.jpg')} style={{ height: 170, width: '100%', borderRadius: 6 }} />
<View style={{ width: '100%', height: '100%', position: 'absolute', top: 0, left: 0, borderRadius: 6, backgroundColor: 'black', opacity: 0.2 }} />
<View style={{ height: 15, width: 55, position: 'absolute', top: 16, left: 16 }}>
<Image source={require('./logo/white.png')} style={{ height: undefined, width: undefined, resizeMode: 'contain', flex: 1 }} />
</View>
</View>
<View style={{ paddingTop: 16, paddingBottom: 16, borderBottomColor: '#E8E9ED', borderBottomWidth: 1 }}>
<Text style={{ fontSize: 16, fontWeight: 'bold', color: '#1C1C1C' }}>GO-NEWS</Text>
<Text style={{ fontSize: 14, fontWeight: 'normal', color: '#7A7A7A', marginBottom: 11 }}>Dimas Drajat selamatkan penalti, Timnas U-23 kalahkan Brunei</Text>
<TouchableOpacity activeOpacity={0.5} style={{ backgroundColor: '#61A756', paddingHorizontal: 12, paddingVertical: 11, alignSelf: 'flex-end', borderRadius: 4}}>
<Text style={{ fontSize: 13, fontWeight: 'bold', color: 'white', textAlign: 'center' }}>READ</Text>
</TouchableOpacity>
</View>
</View>
{/* section internal information */}
<View style={{ padding: 16, paddingBottom: 0 }}>
<View style={{ height: 15, width: 55, marginLeft: -3 }}>
<Image source={require('./logo/gojek.png')} style={{ height: undefined, width: undefined, resizeMode: 'contain', flex: 1 }} />
</View>
<Text style={{ fontSize: 17, fontWeight: 'bold', color: '#1C1C1C', marginTop: 15, marginBottom: 20 }}>Complete your profile</Text>
<View style={{ flexDirection: 'row' }}>
<View style={{ height: 60, width: 120 }}>
<Image source={require('./dummy/facebook-connect.png')} style={{ height: undefined, width: undefined, resizeMode: 'contain', flex: 1 }} />
</View>
<View style={{ marginLeft: 16, marginBottom: 16, flex: 1, flexWrap: 'wrap', justifyContent: 'center' }}>
<Text style={{ fontSize: 15, fontWeight: 'bold', color: '#4A4A4A' }}>Connect with Facebook</Text>
<Text style={{ fontSize: 15, fontWeight: 'normal', color: '#4A4A4A' }}>Login faster without{`\n`}verification code</Text>
</View>
</View>
<TouchableOpacity activeOpacity={0.5} style={{ backgroundColor: '#61A756', paddingHorizontal: 12, paddingVertical: 11, alignSelf: 'flex-end', borderRadius: 4}}>
<Text style={{ fontSize: 13, fontWeight: 'bold', color: 'white', textAlign: 'center' }}>CONNECT</Text>
</TouchableOpacity>
<View style={{borderBottomColor: '#E8E9ED', borderBottomWidth: 1, marginTop: 16}}/>
</View>
{/* section banner */}
<View style={{ paddingTop: 16, paddingHorizontal: 16 }}>
<View style={{ position: 'relative'}}>
<Image source={require('./dummy/food-banner.jpg')} style={{ height: 170, width: '100%', borderRadius: 6 }} />
<View style={{ width: '100%', height: '100%', position: 'absolute', top: 0, left: 0, borderRadius: 6, backgroundColor: 'black', opacity: 0.15 }} />
<View style={{ height: 15, width: 55, position: 'absolute', top: 16, left: 16 }}>
<Image source={require('./logo/white.png')} style={{ height: undefined, width: undefined, resizeMode: 'contain', flex: 1 }} />
</View>
<View style={{ position: 'absolute', bottom: 0, left: 0, width: '100%', flexDirection: 'row', alignItems: 'center', paddingHorizontal: 16, paddingBottom: 16 }}>
<View style={{ flex: 1, marginRight: 12 }}>
<Text style={{ fontSize: 18, fontWeight: 'bold', color: 'white', marginBottom: 8}}>Free GO-FOOD voucher</Text>
<Text style={{ fontSize: 12, fontWeight: '400', color: 'white'}}>Quick, before they run out!</Text>
</View>
<View>
<TouchableOpacity activeOpacity={0.75} style={{ backgroundColor: '#61A756', paddingHorizontal: 12, paddingVertical: 11, alignSelf: 'flex-end', borderRadius: 4}}>
<Text style={{ fontSize: 13, fontWeight: 'bold', color: 'white', textAlign: 'center' }}>GET VOUCHER</Text>
</TouchableOpacity>
</View>
</View>
</View>
<View style={{borderBottomColor: '#E8E9ED', borderBottomWidth: 1, marginTop: 16}}/>
</View>
{/* section nearby Go-Food */}
<View style={{ paddingTop: 16}}>
<View style={{ height: 15, width: 55, marginLeft: 16 }}>
<Image source={require('./logo/go-food.png')} style={{ height: undefined, width: undefined, resizeMode: 'contain', flex: 1 }} />
</View>
<View style={{ flexDirection: 'row', justifyContent: 'space-between', marginTop: 8, marginBottom: 16, marginHorizontal: 16 }}>
<Text style={{ fontSize: 17, fontWeight: 'bold', color: '#1C1C1C' }}>Nearby Restaurant</Text>
<Text style={{ fontSize: 17, fontWeight: 'bold', color: '#61A756'}}>See All</Text>
</View>
<ScrollView horizontal showsHorizontalScrollIndicator={false} style={{ flexDirection: 'row', paddingLeft: 16 }}>
<View style={{ marginRight: 16 }}>
<View style={{ height: 150, width: 150 }}>
<Image source={require('./dummy/go-food-kfc.jpg')} style={{ height: undefined, width: undefined, resizeMode: 'cover', flex: 1, borderRadius: 6 }} />
</View>
<Text style={{ fontSize: 16, fontWeight: 'bold', color: '#1C1C1C', marginTop: 12 }}>KFC</Text>
</View>
<View style={{ marginRight: 16 }}>
<View style={{ height: 150, width: 150 }}>
<Image source={require('./dummy/go-food-banka.jpg')} style={{ height: undefined, width: undefined, resizeMode: 'cover', flex: 1, borderRadius: 6 }} />
</View>
<Text style={{ fontSize: 16, fontWeight: 'bold', color: '#1C1C1C', marginTop: 12 }}>Martabak Banka</Text>
</View>
<View style={{ marginRight: 16 }}>
<View style={{ height: 150, width: 150 }}>
<Image source={require('./dummy/go-food-gm.jpg')} style={{ height: undefined, width: undefined, resizeMode: 'cover', flex: 1, borderRadius: 6 }} />
</View>
<Text style={{ fontSize: 16, fontWeight: 'bold', color: '#1C1C1C', marginTop: 12 }}>Bakmi GM</Text>
</View>
<View style={{ marginRight: 16 }}>
<View style={{ height: 150, width: 150 }}>
<Image source={require('./dummy/go-food-orins.jpg')} style={{ height: undefined, width: undefined, resizeMode: 'cover', flex: 1, borderRadius: 6 }} />
</View>
<Text style={{ fontSize: 16, fontWeight: 'bold', color: '#1C1C1C', marginTop: 12 }}>Martabak Orins</Text>
</View>
<View style={{ marginRight: 16 }}>
<View style={{ height: 150, width: 150 }}>
<Image source={require('./dummy/go-food-pak-boss.jpg')} style={{ height: undefined, width: undefined, resizeMode: 'cover', flex: 1, borderRadius: 6 }} />
</View>
<Text style={{ fontSize: 16, fontWeight: 'bold', color: '#1C1C1C', marginTop: 12 }}>Ayam Geprek Pak Boss</Text>
</View>
</ScrollView>
<View style={{borderBottomColor: '#E8E9ED', borderBottomWidth: 1, marginTop: 16, marginHorizontal: 16}}/>
</View>
</View>
</ScrollView>
{/* bottom tabs */}
<View style={{ height: 54, backgroundColor: 'white', flexDirection: 'row' }}>
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<Image style={{ height: 26, width: 26 }} source={require('./icon/home-active.png')} />
<Text style={{ fontSize: 10, color: '#545454', marginTop: 4, color: '#43AB4A' }}>Home</Text>
</View>
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<Image style={{ height: 26, width: 26 }} source={require('./icon/order.png')} />
<Text style={{ fontSize: 10, color: '#545454', marginTop: 4 }}>Orders</Text>
</View>
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<Image style={{ height: 26, width: 26 }} source={require('./icon/help.png')} />
<Text style={{ fontSize: 10, color: '#545454', marginTop: 4 }}>Help</Text>
</View>
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<Image style={{ height: 26, width: 26 }} source={require('./icon/inbox.png')} />
<Text style={{ fontSize: 10, color: '#545454', marginTop: 4 }}>Inbox</Text>
</View>
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<Image style={{ height: 26, width: 26 }} source={require('./icon/account.png')} />
<Text style={{ fontSize: 10, color: '#545454', marginTop: 4 }}>Account</Text>
</View>
</View>
</View>
);
};
const styles = StyleSheet.create({
});
export default App;