Skip to content

Commit 1ffc344

Browse files
committed
Sign In Screen UI Completion
1 parent 6d6f8fc commit 1ffc344

File tree

2 files changed

+50
-15
lines changed

2 files changed

+50
-15
lines changed

src/components/BackButton.js

+16-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
import React from "react";
2-
import { Text, View, Image} from "react-native";
2+
import { StyleSheet, Text, View, Image } from "react-native";
33

44
export default function BackButton() {
55
return (
6-
<View style={{flexDirection: "row", alignItems: "center"}}>
6+
<View style={styles.back}>
77
<Text>{"\n\n\n"}</Text>
88
<Image source={require("./../assets/caret-left.png")} />
9-
<Text style={{fontWeight: "bold", fontSize: 25}}>Back</Text>
9+
<Text style={styles.backText}>Back</Text>
1010
</View>
1111
);
12-
}
12+
}
13+
14+
const styles = StyleSheet.create({
15+
back: {
16+
flexDirection: "row",
17+
alignItems: "center",
18+
},
19+
20+
backText: {
21+
fontWeight: "bold",
22+
fontSize: 25,
23+
},
24+
});

src/screens/SignInScreen.js

+34-11
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,17 @@ export default function SignInScreen() {
1313
<View style={styles.body}>
1414
<Text style={styles.title}>Sign in</Text>
1515
<Text style={styles.paragraph}>
16-
{}
16+
{"\n"}
17+
{"Thank you for choosing to help\n"}
18+
{"make our volunteer concerts a\n"}
19+
{"success! To begin, please sign\n"}
20+
{"in using your Google account.\n"}
1721
</Text>
22+
23+
<Pressable style={[styles.OAuth, styles.GoogleOAuth]}>
24+
<Image style={styles.OAuthLogo} source={require("./../assets/google-logo.png")}/>
25+
<Text style={[styles.OAuthText]}> Sign in with Google</Text>
26+
</Pressable>
1827
</View>
1928
</SafeAreaView>
2029
);
@@ -26,27 +35,41 @@ const styles = StyleSheet.create({
2635
padding: "1%"
2736
},
2837

29-
back: {
30-
flexDirection: "row",
38+
body: {
3139
alignItems: "center",
40+
justifyContent: "center",
3241
},
3342

34-
backText: {
43+
title: {
3544
fontWeight: "bold",
36-
fontSize: 25,
45+
fontSize: 45,
3746
},
3847

39-
body: {
48+
paragraph: {
49+
fontSize: 18,
50+
},
51+
52+
OAuth: {
53+
flexDirection: "row",
4054
alignItems: "center",
4155
justifyContent: "center",
56+
width: 300,
57+
height: 50,
58+
borderRadius: 10,
4259
},
4360

44-
title: {
45-
fontWeight: "bold",
46-
fontSize: 45,
61+
OAuthLogo: {
62+
width: 40,
63+
height: 40,
4764
},
4865

49-
paragraph: {
50-
fontSize: 30,
66+
OAuthText: {
67+
color: "#fff",
68+
fontSize: 25,
69+
},
70+
71+
GoogleOAuth: {
72+
backgroundColor: "#000",
73+
color: "#fff",
5174
},
5275
});

0 commit comments

Comments
 (0)