-
Notifications
You must be signed in to change notification settings - Fork 0
/
LandingPage.js
62 lines (57 loc) · 1.62 KB
/
LandingPage.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
import { StatusBar } from 'expo-status-bar';
import * as React from 'react';
import { StyleSheet, Text, View, Image, TouchableHighlight } from 'react-native';
import { useFonts } from 'expo-font';
// import Main from './discoverComponents/Main/index.js';
export default function LandingPage({ navigation }) {
const [loaded] = useFonts({
'Poppins-Light': require('./assets/fonts/Poppins/Poppins-Light.ttf'),
'Poppins-Medium': require('./assets/fonts/Poppins/Poppins-Medium.ttf'),
'Poppins-SemiBold': require('./assets/fonts/Poppins/Poppins-SemiBold.ttf'),
});
if (!loaded) {
return null;
}
return (
<View style={styles.container}>
<Image
source={require('./assets/tripflip_logo.png')}
style={{ width: 58, height: 96 }}
/>
<TouchableHighlight onPress={()=>navigation.navigate("Main")} underlayColor="white">
<View style={styles.button}>
<Text style={styles.buttonText}>Create an Account</Text>
</View>
</TouchableHighlight>
<Text stule={styles.text}>Already have an account? Sign in</Text>
<StatusBar style="auto" />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
text: {
fontFamily: 'Poppins-Light',
frontSize: 12,
},
button: {
marginTop: 30,
marginBottom: 10,
width: 260,
alignItems: 'center',
backgroundColor: '#4A48B8',
borderRadius: 15,
},
buttonText: {
textAlign: 'center',
padding: 20,
color: 'white',
fontFamily: 'Poppins-Medium',
frontSize: 16,
}
});