-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHomePage.js
More file actions
70 lines (68 loc) · 1.86 KB
/
Copy pathHomePage.js
File metadata and controls
70 lines (68 loc) · 1.86 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
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View, Image, TouchableOpacity } from 'react-native';
export default function App() {
return (
<View style={styles.container}>
<TouchableOpacity style={styles.button1}>
<Text style={{ color: 'red', fontSize: 20 }}>Emergency</Text>
</TouchableOpacity>
<View style={styles.contentContainer}>
<Image
source={require('./assets/mbewell_logo-2.png')}
style={styles.logoImage}
/>
<View style={styles.buttonContainer}>
<TouchableOpacity style={styles.button}>
<Text style={{ color: 'white', fontSize: 20 }}>Welcome</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.button}>
<Text style={{ color: 'white', fontSize: 20 }}>Resources</Text>
</TouchableOpacity>
</View>
</View>
<StatusBar style="auto" />
</View>
);
}
const styles = StyleSheet.create({
button1: {
position: 'absolute',
top: 60,
right: 15,
alignItems: 'center',
justifyContent: 'center',
paddingVertical: 15,
paddingHorizontal: 30,
borderRadius: 4,
elevation: 3,
backgroundColor: 'white',
},
container: {
flex: 1,
backgroundColor: '#FFDE59',
alignItems: 'center',
justifyContent: 'center',
},
contentContainer: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
},
logoImage: {
width: 300,
height: 350,
},
buttonContainer: {
marginTop: 50, // Adjust this value to increase or decrease the space
},
button: {
alignItems: 'center',
justifyContent: 'center',
paddingVertical: 15,
paddingHorizontal: 70,
borderRadius: 4,
elevation: 3,
backgroundColor: '#071D3B',
marginBottom: 10,
},
});