-
Notifications
You must be signed in to change notification settings - Fork 0
/
HomePage.js
93 lines (81 loc) · 2.59 KB
/
HomePage.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
import 'react-native-gesture-handler';
import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { Image, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
export default function HomePage() {
return (
<NavigationContainer>
<View style={styles.container}>
<View style={styles.RectangleLogo}>
<Text
style={{ fontSize: 30, lineHeight: 50, letterSpacing: 15, paddingTop: 0, color: '#ffffff', textAlign: "center" }}>
MEMO-RY
</Text>
</View>
<View style={styles.blackLine}></View>
<View >
<View>
<TouchableOpacity style={styles.button}>
<Text style={styles.instructions} activeOpacity={0.5}>To-Do List</Text>
</TouchableOpacity>
</View>
</View>
<View >
<View >
<TouchableOpacity style={styles.button}>
<Text style={styles.instructions} activeOpacity={0.5}>Memories</Text>
</TouchableOpacity>
</View>
</View>
<View >
<View >
<TouchableOpacity style={styles.button}>
<Text style={styles.instructions} activeOpacity={0.5}>Emergency Call</Text>
</TouchableOpacity>
</View>
</View>
</View>
</NavigationContainer>
);
}
const styles = StyleSheet.create({
// General layout
container: {
flex: 1,
flexDirection: 'column',
backgroundColor: '#E3EAEB',
alignItems: 'center',
justifyContent: 'space-evenly',
alignItems: 'stretch',
},
// Style for text (color, size, margins -- left justifies)
instructions: {
color: '#ffffff',
fontSize: 30,
marginHorizontal: 15,
marginLeft: 20,
justifyContent: 'flex-start',
letterSpacing: 10,
},
// Style for button (organizes items in center of row, background color, dimensions)
button: {
flexDirection: 'row',
alignItems: 'center',
backgroundColor: '#329ba8',
height: 80,
width: 400,
borderRadius: 5,
},
RectangleLogo: {
marginTop: 40,
width: 400,
height: 50,
backgroundColor: '#329ba8',
},
blackLine: {
//marginTop: 40,
width: 400,
height: 5,
backgroundColor: 'black',
}
});