-
Notifications
You must be signed in to change notification settings - Fork 0
/
Home.jsx
82 lines (80 loc) · 1.76 KB
/
Home.jsx
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
import {
StyleSheet,
Text,
View,
Image,
ImageBackground,
TouchableOpacity,
} from "react-native";
import React from "react";
import Plan from "./Plan.jsx";
const Home = ({ navigation }) => {
return (
<View style={styles.container}>
<ImageBackground
source={require("./assets/background.jpg")}
imageStyle={{ opacity: 0.5 }}
style={styles.background}
resizeMode="cover"
>
<Image
source={require("./assets/student.png")}
style={styles.image}
resizeMode="contain"
/>
<Text style={styles.title}>Your Study Plan</Text>
<Text style={styles.subtitle}>What do you want to study today?</Text>
<TouchableOpacity
onPress={() => navigation.navigate("Plan")}
style={styles.image}
>
<Image
source={require("./assets/start.png")}
style={styles.image}
resizeMode="cover"
/>
</TouchableOpacity>
<Image
source={require("./assets/chick.png")}
style={styles.chickImage}
resizeMode="contain"
/>
</ImageBackground>
</View>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#a7b9b6",
},
background: {
flex: 1,
justifyContent: "center",
},
title: {
textAlign: "center",
fontSize: 40,
fontWeight: "bold",
marginBottom: 10,
color: "#3e2321",
},
subtitle: {
textAlign: "center",
fontSize: 20,
marginBottom: 10,
color: "rgb(107, 60, 48)",
fontWeight: "bold",
},
image: {
width: 180,
height: 100,
alignSelf: "center",
},
chickImage: {
width: 80,
height: 70,
alignSelf: "flex-start",
},
});
export default Home;