-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHomepage.js
106 lines (84 loc) · 2.67 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
94
95
96
97
98
99
100
101
102
103
104
105
106
import React, { Component } from 'react';
import { View, Text, StyleSheet, ImageBackground, TouchableOpacity, Image, ScrollView } from 'react-native';
import { Input } from 'native-base';
import { Actions } from 'react-native-router-flux';
export default class Register extends Component {
constructor(props) {
super(props);
this.state = {
};
}
render() {
return (
<ScrollView>
<View style={styles.container}>
<Image
style={styles.image1sty}
source={require("./Pic/homepageimage.png")}
/>
<ImageBackground style={styles.imagesty}
source={require("./Pic/Background.png")}>
</ImageBackground>
<View style={styles.view1sty}>
<TouchableOpacity
style={styles.inputview}
onPress={() => Actions.Login()}
>
<Text style={styles.textsty}>الدخول</Text>
</TouchableOpacity>
<TouchableOpacity
style={styles.inputview}
onPress={() => Actions.Register()}
>
<Text style={styles.textsty}>تسجيل جديد </Text>
</TouchableOpacity>
<TouchableOpacity
style={styles.inputview}
onPress={() => Actions.Aboutus()}
>
<Text style={styles.textsty}>عن المدرسة</Text>
</TouchableOpacity>
</View>
</View>
</ScrollView>
);
}
}
let styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
backgroundColor: '#AED0EE'
},
image1sty: {
marginTop: '10%',
},
textsty: {
color: '#FFFFFF',
fontSize: 30
},
imagesty: {
width: 100,
height: 230,
marginTop: '10%',
},
inputview: {
height: 70,
width: '100%',
borderWidth: .6,
borderRadius: 8,
borderColor: '#707070',
backgroundColor: '#59A9C2',
justifyContent: 'center',
alignItems: 'center',
marginTop: '10%',
alignSelf: 'center',
},
view1sty: {
width: '60%',
justifyContent: 'center',
alignItems: 'center',
marginTop: '10%',
marginBottom: '10%'
},
});