-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathApp.js
More file actions
126 lines (118 loc) · 4.42 KB
/
App.js
File metadata and controls
126 lines (118 loc) · 4.42 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
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
import React from "react";
import { StyleSheet, Text, View, Image, TouchableOpacity, ScrollView } from "react-native";
import InputTextField from "./components/InputTextField";
export default class App extends React.Component {
render() {
return (
<ScrollView style={styles.container}>
<View>
<View style={{ marginTop: 60, alignItems: "center", justifyContent: "center" }}>
<Image source={require("./assets/logo.png")} />
<Text style={[styles.text, { marginTop: 10, fontSize: 22, fontWeight: "500" }]}>Vermo</Text>
</View>
<View style={{ marginTop: 48, flexDirection: "row", justifyContent: "center" }}>
<TouchableOpacity>
<View style={styles.socialButton}>
<Image source={require("./assets/facebook.png")} style={styles.socialLogo} />
<Text style={styles.text}>Facebook</Text>
</View>
</TouchableOpacity>
<TouchableOpacity style={styles.socialButton}>
<Image source={require("./assets/google.png")} style={styles.socialLogo} />
<Text style={styles.text}>Google</Text>
</TouchableOpacity>
</View>
<Text style={[styles.text, { color: "#ABB4BD", fontSize: 15, textAlign: "center", marginVertical: 20 }]}>or</Text>
<InputTextField style={styles.inputTitle} title="Email" />
<InputTextField
style={{
marginTop: 32,
marginBottom: 8
}}
title="Password"
isSecure={true}
/>
<Text style={[styles.text, styles.link, { textAlign: "right" }]}>Forgot Password?</Text>
<TouchableOpacity style={styles.submitContainer}>
<Text
style={[
styles.text,
{
color: "#FFF",
fontWeight: "600",
fontSize: 16
}
]}
>
Login
</Text>
</TouchableOpacity>
<Text
style={[
styles.text,
{
fontSize: 14,
color: "#ABB4BD",
textAlign: "center",
marginTop: 24
}
]}
>
Don't have an account? <Text style={[styles.text, styles.link]}>Register Now</Text>
</Text>
</View>
</ScrollView>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
paddingHorizontal: 30
},
text: {
fontFamily: "Avenir Next",
color: "#1D2029"
},
socialButton: {
flexDirection: "row",
marginHorizontal: 12,
paddingVertical: 12,
paddingHorizontal: 30,
borderWidth: StyleSheet.hairlineWidth,
borderColor: "rgba(171, 180, 189, 0.65)",
borderRadius: 4,
backgroundColor: "#fff",
shadowColor: "rgba(171, 180, 189, 0.35)",
shadowOffset: { width: 0, height: 10 },
shadowOpacity: 1,
shadowRadius: 20,
elevation: 5
},
socialLogo: {
width: 16,
height: 16,
marginRight: 8
},
link: {
color: "#FF1654",
fontSize: 14,
fontWeight: "500"
},
submitContainer: {
backgroundColor: "#FF1654",
fontSize: 16,
borderRadius: 4,
paddingVertical: 12,
marginTop: 32,
alignItems: "center",
justifyContent: "center",
color: "#FFF",
shadowColor: "rgba(255, 22, 84, 0.24)",
shadowOffset: { width: 0, height: 9 },
shadowOpacity: 1,
shadowRadius: 20,
elevation: 5
}
});