-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathWelcomeScreen.js
More file actions
67 lines (65 loc) · 1.89 KB
/
WelcomeScreen.js
File metadata and controls
67 lines (65 loc) · 1.89 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
import { View, Text, StyleSheet,Image,TouchableOpacity } from 'react-native'
import React from 'react'
export default function WelcomeScreen(props) {
return (
<View style={styles.container}>
<Image source={require('./assets/images/carrot-workout-icon.png')} style={styles.imageIcon}></Image>
<Text style={styles.mainText}>Welcome to FitTrack, where your fitness goals become reality</Text>
<Text style={styles.subText}>Get ready to challenge yourself and achieve your fitness goals with our comprehensive workout routines and progress tracking.</Text>
<View style={{alignItems:'center',width:'100%',gap:10}}>
<TouchableOpacity style={styles.button} onPress={()=>props.navigation.navigate('SignUpScreen')}>
<Text style={styles.buttonText}>Get Started</Text>
</TouchableOpacity>
<Text style={styles.promptText}>Already have an account? <Text style={styles.clickText} onPress={()=>props.navigation.navigate('LoginScreen')}>Login</Text></Text>
</View>
</View>
)
}
const styles = StyleSheet.create({
container:{
flex:1,
justifyContent:'center',
alignItems:'center',
backgroundColor: "#101010",
gap:25
},
imageLogo:{
width:40,
height:10,
},
imageIcon:{
width:200,
height:200,
},
mainText:{
fontSize:25,
fontWeight:500,
textAlign:'center',
color:'white',
lineHeight:35,
},
subText:{
textAlign:'center',
color:'#787878',
lineHeight:20
},
buttonText:{
color:'white',
fontSize:16,
fontWeight:600
},
button:{
backgroundColor:'#52afaa',
borderRadius:13,
width:'80%',
height:40,
alignItems:'center',
justifyContent:'center',
},
promptText:{
color:'white',
},
clickText:{
color:'#52afaa',
}
})