Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am learning how to do pull request in git so i dont make any major changes in your code #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
312 changes: 155 additions & 157 deletions screens/Login.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,35 @@
import { StatusBar } from 'expo-status-bar';
import React from 'react';
import { StyleSheet, Text, View, TouchableOpacity } from 'react-native';
import { Input, NativeBaseProvider, Button, Icon, Box, Image, AspectRatio } from 'native-base';
import { FontAwesome5 } from '@expo/vector-icons';
import { useNavigation } from '@react-navigation/native';
import { alignContent, flex, flexDirection, width } from 'styled-system';

import { StatusBar } from "expo-status-bar";
import React from "react";
import { StyleSheet, Text, View, TouchableOpacity } from "react-native";
import {
Input,
NativeBaseProvider,
Button,
Icon,
Box,
Image,
AspectRatio,
} from "native-base";
import { FontAwesome5 } from "@expo/vector-icons";
import { useNavigation } from "@react-navigation/native";
import { alignContent, flex, flexDirection, width } from "styled-system";

function Login() {
const navigation = useNavigation();
const navigation = useNavigation();
return (
<View style={styles.container}>
<View style={styles.Middle}>
<Text style={styles.LoginText}>Login</Text>
</View>
<View style={styles.text2}>
<Text>Don't have an account? </Text>
<TouchableOpacity onPress={() => navigation.navigate("Signup")} ><Text style={styles.signupText}> Sign up</Text></TouchableOpacity>
<TouchableOpacity onPress={() => navigation.navigate("Signup")}>
<Text style={styles.signupText}> Sign up</Text>
</TouchableOpacity>
</View>

{/* Username or Email Input Field */}
<View style={styles.buttonStyle}>

<View style={styles.emailInput}>
<Input
InputLeftElement={
@@ -45,14 +53,12 @@ function Login() {
_dark={{
placeholderTextColor: "blueGray.50",
}}

/>
</View>
</View>

{/* Password Input Field */}
<View style={styles.buttonStyleX}>

<View style={styles.emailInput}>
<Input
InputLeftElement={
@@ -83,109 +89,104 @@ function Login() {

{/* Button */}
<View style={styles.buttonStyle}>
<Button style={styles.buttonDesign}>
LOGIN
</Button>
<Button style={styles.buttonDesign}>LOGIN</Button>
</View>

{/* Line */}
<View style={styles.lineStyle}>
<View style={{flex: 1, height: 1, backgroundColor: 'black'}} />
<View style={{ flex: 1, height: 1, backgroundColor: "black" }} />
<View>
<Text style={{width: 50, textAlign: 'center'}}>Or</Text>
<Text style={{ width: 50, textAlign: "center" }}>Or</Text>
</View>
<View style={{flex: 1, height: 1, backgroundColor: 'black'}} />
<View style={{ flex: 1, height: 1, backgroundColor: "black" }} />
</View>

{/* Box */}
<View style={styles.boxStyle}>
<Box
onPress={() => navigation.navigate("#")} // for navigation
style={{height:80, width:80}}
shadow={3}
_light={{
backgroundColor: "gray.50",
}}
_dark={{
backgroundColor: "gray.700",
}}
>
<AspectRatio ratio={1 / 1}>
<Image
roundedTop="lg"
source={{
uri: "https://www.transparentpng.com/thumb/google-logo/colorful-google-logo-transparent-clipart-download-u3DWLj.png",
}}
alt="image"
/>
</AspectRatio>
</Box>
<Box
onPress={() => navigation.navigate("#")} // for navigation
style={styles.imageStyle}
shadow={3}
_light={{
backgroundColor: "gray.50",
}}
_dark={{
backgroundColor: "gray.700",
}}
>
<AspectRatio ratio={1 / 1}>
<Image

roundedTop="lg"
source={{
uri: "https://www.transparentpng.com/thumb/facebook-logo-png/photo-facebook-logo-png-hd-25.png",
}}
alt="image"
/>
</AspectRatio>
</Box>
<Box
onPress={() => navigation.navigate("#")} // for navigation
style={styles.imageStyle}
shadow={3}
_light={{
backgroundColor: "gray.50",
}}
_dark={{
backgroundColor: "gray.700",
}}
>
<AspectRatio ratio={1 / 1}>
<Image

roundedTop="lg"
source={{
uri: "https://www.transparentpng.com/thumb/twitter/bird-twitter-socialmedia-icons-png-5.png",
}}
alt="image"
/>
</AspectRatio>
</Box>
<Box
onPress={() => navigation.navigate("#")} // for navigation
style={styles.imageStyle}
shadow={3}
_light={{
backgroundColor: "gray.50",
}}
_dark={{
backgroundColor: "gray.700",
}}
>
<AspectRatio ratio={1 / 1}>
<Image

roundedTop="lg"
source={{
uri: "https://www.transparentpng.com/thumb/apple-logo/RRgURB-apple-logo-clipart-hd.png",
}}
alt="image"
/>
</AspectRatio>
</Box>
<Box
onPress={() => navigation.navigate("#")} // for navigation
style={{ height: 80, width: 80 }}
shadow={3}
_light={{
backgroundColor: "gray.50",
}}
_dark={{
backgroundColor: "gray.700",
}}
>
<AspectRatio ratio={1 / 1}>
<Image
roundedTop="lg"
source={{
uri: "https://www.transparentpng.com/thumb/google-logo/colorful-google-logo-transparent-clipart-download-u3DWLj.png",
}}
alt="image"
/>
</AspectRatio>
</Box>
<Box
onPress={() => navigation.navigate("#")} // for navigation
style={styles.imageStyle}
shadow={3}
_light={{
backgroundColor: "gray.50",
}}
_dark={{
backgroundColor: "gray.700",
}}
>
<AspectRatio ratio={1 / 1}>
<Image
roundedTop="lg"
source={{
uri: "https://www.transparentpng.com/thumb/facebook-logo-png/photo-facebook-logo-png-hd-25.png",
}}
alt="image"
/>
</AspectRatio>
</Box>
<Box
onPress={() => navigation.navigate("#")} // for navigation
style={styles.imageStyle}
shadow={3}
_light={{
backgroundColor: "red",
}}
_dark={{
backgroundColor: "gray.700",
}}
>
<AspectRatio ratio={1 / 1}>
<Image
roundedTop="lg"
source={{
uri: "https://www.transparentpng.com/thumb/twitter/bird-twitter-socialmedia-icons-png-5.png",
}}
alt="image"
/>
</AspectRatio>
</Box>
<Box
onPress={() => navigation.navigate("#")} // for navigation
style={styles.imageStyle}
shadow={3}
_light={{
backgroundColor: "gray.50",
}}
_dark={{
backgroundColor: "gray.700",
}}
>
<AspectRatio ratio={1 / 1}>
<Image
roundedTop="lg"
source={{
uri: "https://www.transparentpng.com/thumb/apple-logo/RRgURB-apple-logo-clipart-hd.png",
}}
alt="image"
/>
</AspectRatio>
</Box>
</View>
<StatusBar style="auto" />
</View>
@@ -195,74 +196,71 @@ function Login() {
export default () => {
return (
<NativeBaseProvider>

<Login />

<Login />
</NativeBaseProvider>
)
}

);
};

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
backgroundColor: "#fff",
},
LoginText: {
marginTop:100,
fontSize:30,
fontWeight:'bold',
marginTop: 100,
fontSize: 30,
fontWeight: "bold",
},
Middle:{
alignItems:'center',
justifyContent:'center',
Middle: {
alignItems: "center",
justifyContent: "center",
},
text2:{
flexDirection:'row',
justifyContent:'center',
paddingTop:5
text2: {
flexDirection: "row",
justifyContent: "center",
paddingTop: 5,
},
signupText:{
fontWeight:'bold'
signupText: {
fontWeight: "bold",
},
emailField:{
marginTop:30,
marginLeft:15
emailField: {
marginTop: 30,
marginLeft: 15,
},
emailInput:{
marginTop:10,
marginRight:5
emailInput: {
marginTop: 10,
marginRight: 5,
},
buttonStyle:{
marginTop:30,
marginLeft:15,
marginRight:15
buttonStyle: {
marginTop: 30,
marginLeft: 15,
marginRight: 15,
},
buttonStyleX:{
marginTop:12,
marginLeft:15,
marginRight:15
buttonStyleX: {
marginTop: 12,
marginLeft: 15,
marginRight: 15,
},
buttonDesign:{
backgroundColor:'#026efd'
buttonDesign: {
backgroundColor: "#026efd",
},
lineStyle:{
flexDirection:'row',
marginTop:30,
marginLeft:15,
marginRight:15,
alignItems:'center'
lineStyle: {
flexDirection: "row",
marginTop: 30,
marginLeft: 15,
marginRight: 15,
alignItems: "center",
},
imageStyle:{
width:80,
height:80,
marginLeft:20,
imageStyle: {
width: 80,
height: 80,
marginLeft: 20,
},
boxStyle:{
flexDirection:'row',
marginTop:30,
marginLeft:15,
marginRight:15,
justifyContent:'space-around'
boxStyle: {
flexDirection: "row",
marginTop: 30,
marginLeft: 15,
marginRight: 15,
justifyContent: "space-around",
},
});