mirror of
https://github.com/sartography/uva-covid19-testing-kiosk.git
synced 2025-02-16 17:46:22 +00:00
Changes size of green box to match optimum focal length of tablet
This commit is contained in:
parent
80ab418726
commit
3e1984c246
@ -17,10 +17,10 @@ export const Scanner = (props: ScannerProps): ReactElement => {
|
|||||||
</View>
|
</View>
|
||||||
<View style={styles.centerMiddle}>
|
<View style={styles.centerMiddle}>
|
||||||
<View style={styles.captureBox}/>
|
<View style={styles.captureBox}/>
|
||||||
|
<Subheading style={styles.shadow}>
|
||||||
|
Place ID card with the barcode facing the camera. Keep the barcode in the green box.
|
||||||
|
</Subheading>
|
||||||
</View>
|
</View>
|
||||||
<Text style={styles.subtitle}>
|
|
||||||
Hold your ID card up, with the barcode facing the camera. Keep the card in the green box.
|
|
||||||
</Text>
|
|
||||||
<View style={styles.centerMiddle}>
|
<View style={styles.centerMiddle}>
|
||||||
<Button
|
<Button
|
||||||
mode="text"
|
mode="text"
|
||||||
|
@ -38,8 +38,8 @@ export const styles = StyleSheet.create({
|
|||||||
borderStyle: 'solid',
|
borderStyle: 'solid',
|
||||||
borderColor: 'green',
|
borderColor: 'green',
|
||||||
borderWidth: 10,
|
borderWidth: 10,
|
||||||
height: 213,
|
height: '30%',
|
||||||
width: 338,
|
width: '90%',
|
||||||
borderRadius: 20,
|
borderRadius: 20,
|
||||||
},
|
},
|
||||||
centerMiddle: {
|
centerMiddle: {
|
||||||
@ -73,6 +73,16 @@ export const styles = StyleSheet.create({
|
|||||||
padding: 20,
|
padding: 20,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
},
|
},
|
||||||
|
shadow: {
|
||||||
|
color: colors.onBackground,
|
||||||
|
fontSize: 20,
|
||||||
|
marginHorizontal: '15%',
|
||||||
|
marginVertical: 40,
|
||||||
|
textAlign: 'center',
|
||||||
|
textShadowOffset: {width: 0, height: 0},
|
||||||
|
textShadowRadius: 4,
|
||||||
|
textShadowColor: '#000000',
|
||||||
|
},
|
||||||
heading: {
|
heading: {
|
||||||
..._common.heading,
|
..._common.heading,
|
||||||
color: colors.onBackground,
|
color: colors.onBackground,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user