-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWelcomeScreen.js
130 lines (126 loc) · 2.94 KB
/
WelcomeScreen.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
import React from 'react';
import {
View,
Text,
StyleSheet,
TouchableOpacity,
ImageBackground,
Image,
} from 'react-native';
import LinearGradient from 'react-native-linear-gradient';
const WelcomeScreen = ({ navigation }) => {
return (
<ImageBackground
source={{
uri: 'https://img.freepik.com/free-vector/abstract-background-vertical-with-colorful-shape_361591-4290.jpg?w=360',
}}
style={styles.background}
>
<LinearGradient
colors={['rgba(0,0,0,0.7)', 'rgba(0,0,0,0.9)']}
style={styles.overlay}
>
<View style={styles.branding}>
<Image
source={{
uri: 'https://i.postimg.cc/QCkSBkvW/favpng-agritech-logo-product-agriculture-business.png',
}}
style={styles.logo}
/>
<Text style={styles.brandTitle}>AgriTech</Text>
<Text style={styles.brandTagline}>
Enabling AI-powered precision farming
</Text>
</View>
<TouchableOpacity
style={styles.button}
onPress={() => navigation.navigate('Auth')}
>
<LinearGradient
colors={['#4CAF50', '#2E7D32']}
style={styles.buttonGradient}
>
<Text style={styles.buttonText}>Get Started</Text>
</LinearGradient>
</TouchableOpacity>
</LinearGradient>
<View style={styles.footer}>
<Text style={styles.footerText}>© 2024 AgriTech. All Rights Reserved.</Text>
<Text style={styles.footerDeveloper}>Developed by Prranith</Text>
</View>
</ImageBackground>
);
};
const styles = StyleSheet.create({
background: {
flex: 1,
resizeMode: 'cover',
},
overlay: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
paddingHorizontal: 20,
},
branding: {
alignItems: 'center',
marginBottom: 50,
},
logo: {
width: 100,
height: 100,
resizeMode: 'contain',
marginBottom: 20,
},
brandTitle: {
fontSize: 40,
fontWeight: 'bold',
color: '#fff',
marginBottom: 10,
textShadowColor: '#000',
textShadowOffset: { width: 2, height: 2 },
textShadowRadius: 8,
},
brandTagline: {
fontSize: 16,
color: '#87CEEB',
fontStyle: 'italic',
textAlign: 'center',
marginBottom: 30,
},
button: {
width: '80%',
borderRadius: 25,
overflow: 'hidden',
},
buttonGradient: {
paddingVertical: 15,
alignItems: 'center',
justifyContent: 'center',
},
buttonText: {
color: '#fff',
fontSize: 20,
fontWeight: 'bold',
textTransform: 'uppercase',
},
footer: {
position: 'absolute',
bottom: 60,
alignItems: 'center',
marginLeft:50
},
footerText: {
color: 'darkgrey',
fontSize: 14,
fontWeight:"bold",
marginBottom: 5,
},
footerDeveloper: {
color: 'grey',
fontSize: 14,
fontWeight: 'thin',
fontStyle: 'italic',
},
});
export default WelcomeScreen;