-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCodeScreen.js
210 lines (207 loc) · 4.82 KB
/
CodeScreen.js
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
import React, { Component } from 'react';
import { StyleSheet, View, Text, ScrollView } from 'react-native';
import FeatherIcon from 'react-native-vector-icons/Feather';
import MaterialCommunityIconsIcon from 'react-native-vector-icons/MaterialCommunityIcons';
import MaterialButtonPrimary from '../components/MaterialButtonPrimary';
function CodeScreen({ navigation }) {
return (
<ScrollView contentContainerStyle={styles.container}>
<Text style={styles.parkingTicket}>Parking Ticket</Text>
<View style={styles.rect}>
<Text style={styles.loremIpsum}>
906 Peg Shop St. Franklyn, NY 11209
</Text>
<Text style={styles.loremIpsum2}>
Car: Toyota Corolla 2018 - License Plate: DA 93600
</Text>
<View style={styles.rect2Row}>
<View style={styles.rect2}>
<Text style={styles.arriveAfter}>Arrive After</Text>
<Text style={styles.loremIpsum3}>9:00 PM</Text>
<Text style={styles.tueJuly1}>Tue, July 1</Text>
</View>
<FeatherIcon name='arrow-right' style={styles.icon}></FeatherIcon>
<View style={styles.rect3}>
<Text style={styles.exitBefore}>Exit Before</Text>
<Text style={styles.loremIpsum4}>6:00 PM</Text>
<Text style={styles.wedJuly2}>Wed, July 2</Text>
</View>
</View>
</View>
<View style={styles.rect4}>
<Text style={styles.loremIpsum5}>
Show this QR code to enter the Parking area
</Text>
<MaterialCommunityIconsIcon
name='qrcode'
style={styles.icon2}
></MaterialCommunityIconsIcon>
</View>
<MaterialButtonPrimary
caption='DONE'
style={styles.materialButtonPrimary5}
onPress={() => {
navigation.navigate('FindParkingScreen');
}}
></MaterialButtonPrimary>
</ScrollView>
);
}
const styles = StyleSheet.create({
container: {
// flex: 1,
padding: 20,
backgroundColor: '#fff',
},
parkingTicket: {
fontFamily: 'roboto-500',
color: 'rgba(11,64,148,1)',
fontSize: 26,
// marginTop: 69,
// marginLeft: 21,
},
rect: {
width: '100%',
height: 212,
borderWidth: 1,
borderColor: 'rgba(39,170,225,1)',
shadowColor: 'rgba(39,170,225,1)',
shadowOffset: {
width: 5,
height: 5,
},
backgroundColor: '#fff',
elevation: 10,
shadowOpacity: 0.16,
shadowRadius: 20,
marginTop: 18,
// marginLeft: 15,
},
loremIpsum: {
fontFamily: 'roboto-500',
color: 'rgba(39,170,225,1)',
fontSize: 17,
marginTop: 19,
marginLeft: 18,
},
loremIpsum2: {
fontFamily: 'roboto-500',
color: '#121212',
fontSize: 13,
marginTop: 16,
marginLeft: 18,
},
rect2: {
width: 89,
height: 78,
},
arriveAfter: {
fontFamily: 'roboto-regular',
color: '#121212',
fontSize: 13,
marginTop: 7,
marginLeft: 15,
},
loremIpsum3: {
fontFamily: 'roboto-700',
color: 'rgba(11,64,148,1)',
fontSize: 17,
marginTop: 6,
marginLeft: 14,
},
tueJuly1: {
fontFamily: 'roboto-500',
color: 'rgba(11,64,148,1)',
fontSize: 11,
marginTop: 5,
marginLeft: 21,
},
icon: {
color: 'rgba(128,128,128,1)',
fontSize: 30,
height: 30,
width: 30,
marginLeft: 15,
marginTop: 22,
},
rect3: {
width: 83,
height: 78,
marginLeft: 11,
},
exitBefore: {
fontFamily: 'roboto-regular',
color: '#121212',
fontSize: 13,
marginTop: 6,
marginLeft: 14,
},
loremIpsum4: {
fontFamily: 'roboto-700',
color: 'rgba(11,64,148,1)',
fontSize: 17,
marginTop: 6,
marginLeft: 13,
},
wedJuly2: {
fontFamily: 'roboto-500',
color: 'rgba(11,64,148,1)',
fontSize: 11,
marginTop: 7,
marginLeft: 17,
},
rect2Row: {
height: 78,
flexDirection: 'row',
marginTop: 34,
marginLeft: 58,
marginRight: 60,
},
rect4: {
width: '100%',
// height: 252,
shadowColor: 'rgba(0,0,0,1)',
shadowOffset: {
height: 7,
width: 7,
},
elevation: 30,
backgroundColor: '#fff',
shadowOpacity: 0.16,
shadowRadius: 70,
marginTop: 23,
justifyContent: 'center',
alignItems: 'center',
padding: 20,
},
loremIpsum5: {
fontFamily: 'roboto-regular',
color: '#121212',
fontSize: 16,
alignSelf: 'center',
},
icon2: {
color: 'rgba(0,0,0,1)',
fontSize: 250,
opacity: 0.68,
// height: 218,
// width: 200,
alignSelf: 'center',
},
materialButtonPrimary5: {
height: 38,
width: 108,
shadowColor: 'rgba(0,0,0,1)',
shadowOffset: {
width: 10,
height: 10,
},
elevation: 60,
shadowOpacity: 0.18,
shadowRadius: 20,
marginVertical: 30,
// marginLeft: 134,
alignSelf: 'center',
},
});
export default CodeScreen;