From 2bf82efb0b942abaabd39b90c758e03bf38ba611 Mon Sep 17 00:00:00 2001 From: Subham Pathak Date: Wed, 24 Jan 2024 10:34:12 +0530 Subject: [PATCH] Description of your changes --- screens/Login.js | 312 +++++++++++++++++++++++------------------------ 1 file changed, 155 insertions(+), 157 deletions(-) diff --git a/screens/Login.js b/screens/Login.js index d1904fc..bd29dc5 100644 --- a/screens/Login.js +++ b/screens/Login.js @@ -1,14 +1,21 @@ -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 ( @@ -16,12 +23,13 @@ function Login() { Don't have an account? - navigation.navigate("Signup")} > Sign up + navigation.navigate("Signup")}> + Sign up + {/* Username or Email Input Field */} - {/* Password Input Field */} - - + {/* Line */} - + - Or + Or - + {/* Box */} - navigation.navigate("#")} // for navigation - style={{height:80, width:80}} - shadow={3} - _light={{ - backgroundColor: "gray.50", - }} - _dark={{ - backgroundColor: "gray.700", - }} - > - - image - - - navigation.navigate("#")} // for navigation - style={styles.imageStyle} - shadow={3} - _light={{ - backgroundColor: "gray.50", - }} - _dark={{ - backgroundColor: "gray.700", - }} - > - - image - - - navigation.navigate("#")} // for navigation - style={styles.imageStyle} - shadow={3} - _light={{ - backgroundColor: "gray.50", - }} - _dark={{ - backgroundColor: "gray.700", - }} - > - - image - - - navigation.navigate("#")} // for navigation - style={styles.imageStyle} - shadow={3} - _light={{ - backgroundColor: "gray.50", - }} - _dark={{ - backgroundColor: "gray.700", - }} - > - - image - - + navigation.navigate("#")} // for navigation + style={{ height: 80, width: 80 }} + shadow={3} + _light={{ + backgroundColor: "gray.50", + }} + _dark={{ + backgroundColor: "gray.700", + }} + > + + image + + + navigation.navigate("#")} // for navigation + style={styles.imageStyle} + shadow={3} + _light={{ + backgroundColor: "gray.50", + }} + _dark={{ + backgroundColor: "gray.700", + }} + > + + image + + + navigation.navigate("#")} // for navigation + style={styles.imageStyle} + shadow={3} + _light={{ + backgroundColor: "red", + }} + _dark={{ + backgroundColor: "gray.700", + }} + > + + image + + + navigation.navigate("#")} // for navigation + style={styles.imageStyle} + shadow={3} + _light={{ + backgroundColor: "gray.50", + }} + _dark={{ + backgroundColor: "gray.700", + }} + > + + image + + @@ -195,74 +196,71 @@ function Login() { export default () => { return ( - - - + - ) -} - + ); +}; 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", }, });