-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Onboarding hifis with colors and fonts
- Loading branch information
Showing
11 changed files
with
415 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
import { KeyboardAvoidingView, View } from "native-base"; | ||
import { Alert, StyleSheet } from "react-native"; | ||
import { SafeAreaView } from "react-native-safe-area-context"; | ||
import { View } from "native-base"; | ||
import { useAuth } from "../../contexts/AuthContext"; | ||
import { useState } from "react"; | ||
import ScreenWideInput from "../../components/reusable/ScreenWideInput"; | ||
import ScreenWideButton from "../../components/reusable/HalfScreenWideButton"; | ||
import SquareButton from "../../components/reusable/SquareButton"; | ||
import CompaniesFooter from "../../components/reusable/CompaniesFooter"; | ||
import HalfScreenWideButton from "../../components/reusable/HalfScreenWideButton"; | ||
import SmallRoundedButton from "../../components/reusable/SmallRoundedButton"; | ||
import Footer from "../../components/reusable/Footer"; | ||
import { | ||
widthPercentageToDP as w, | ||
heightPercentageToDP as h, | ||
|
@@ -45,110 +43,62 @@ export default function LoginScreen({ route, navigation }) { | |
}; | ||
|
||
return ( | ||
<SafeAreaView> | ||
<KeyboardAvoidingView alignItems="center"> | ||
<View bg={"creamyCanvas"} alignItems="center" h={h("100%")} w={w("100%")}> | ||
<View height={h("8%")}></View> | ||
<View | ||
width={w("80%")} | ||
flexDirection="row" | ||
justifyContent="space-between" | ||
justifyItems={"center"} | ||
> | ||
<LegacyWordmark /> | ||
<SmallRoundedButton title="Sign Up" onClick={switchToSignUp} /> | ||
</View> | ||
<View paddingTop={h("7%")}> | ||
<LetsGo /> | ||
</View> | ||
<View alignItems={"center"} paddingTop={h("6.5%")}> | ||
<ScreenWideInput | ||
placeholderText="[email protected]" | ||
title="Email" | ||
iconName="envelope-o" | ||
onChangeText={(value) => setEmail(value)} | ||
value={email} | ||
/> | ||
<View paddingTop={h("3%")} paddingBottom={h("4%")}> | ||
<ScreenWideInput | ||
placeholderText="Must be at least 8 characters long" | ||
title="Password" | ||
iconName="lock" | ||
password={true} | ||
onChangeText={(value) => setPassword(value)} | ||
value={password} | ||
/> | ||
</View> | ||
<View | ||
width={w("80%")} | ||
flexDirection="row" | ||
justifyContent="space-between" | ||
justifyItems={"center"} | ||
alignItems={"center"} | ||
flexDirection={"row"} | ||
justifyContent={"space-between"} | ||
> | ||
<LegacyWordmark /> | ||
<SquareButton title="SIGN UP" onClick={switchToSignUp} /> | ||
</View> | ||
<View paddingTop={h("7%")}> | ||
<LetsGo /> | ||
</View> | ||
<View alignItems={"center"} paddingTop={h("6.5%")}> | ||
<ScreenWideInput | ||
placeholderText="[email protected]" | ||
title="Email" | ||
iconName="envelope-o" | ||
onChangeText={(value) => setEmail(value)} | ||
value={email} | ||
<HalfScreenWideButton | ||
text="Login with SSO" | ||
textColor="#8F8F8F" | ||
backgroundColor="#FFFFFF" | ||
borderColor="#8F8F8F" | ||
/> | ||
<HalfScreenWideButton | ||
text="Login to Legacy" | ||
textColor="#FFFFFF" | ||
backgroundColor="#8F8F8F" | ||
borderColor="#8F8F8F" | ||
onClick={signIn} | ||
/> | ||
<View paddingTop={h("3%")} paddingBottom={h("4%")}> | ||
<ScreenWideInput | ||
placeholderText="Must be at least 8 characters long" | ||
title="Password" | ||
iconName="lock" | ||
password={true} | ||
onChangeText={(value) => setPassword(value)} | ||
value={password} | ||
/> | ||
</View> | ||
<View | ||
width={w("80%")} | ||
alignItems={"center"} | ||
flexDirection={"row"} | ||
justifyContent={"space-between"} | ||
> | ||
<ScreenWideButton | ||
text="Login with SSO" | ||
textColor="#8F8F8F" | ||
backgroundColor="#FFFFFF" | ||
borderColor="#8F8F8F" | ||
/> | ||
<ScreenWideButton | ||
text="Login to Legacy" | ||
textColor="#FFFFFF" | ||
backgroundColor="#8F8F8F" | ||
borderColor="#8F8F8F" | ||
onClick={signIn} | ||
/> | ||
</View> | ||
<View paddingTop={h("4%")}> | ||
<CompaniesFooter /> | ||
</View> | ||
</View> | ||
</KeyboardAvoidingView> | ||
</SafeAreaView> | ||
<View paddingTop={h("4%")}> | ||
<Footer /> | ||
</View> | ||
</View> | ||
</View> | ||
); | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
justifyContent: "center", | ||
alignItems: "center", | ||
}, | ||
inputContainer: { | ||
width: "80%", | ||
}, | ||
input: { | ||
backgroundColor: "white", | ||
paddingHorizontal: 15, | ||
paddingVertical: 10, | ||
borderRadius: 10, | ||
marginTop: 5, | ||
}, | ||
buttonContainer: { | ||
width: "60%", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
marginTop: 40, | ||
}, | ||
button: { | ||
backgroundColor: "#0782F9", | ||
width: "100%", | ||
padding: 15, | ||
borderRadius: 10, | ||
alignItems: "center", | ||
}, | ||
buttonOutline: { | ||
backgroundColor: "white", | ||
marginTop: 5, | ||
borderColor: "#0782F9", | ||
borderWidth: 2, | ||
}, | ||
buttonText: { | ||
color: "white", | ||
fontWeight: "700", | ||
fontSize: 16, | ||
}, | ||
buttonOutlineText: { | ||
color: "#0782F9", | ||
fontWeight: "700", | ||
fontSize: 16, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.