From e71eac2614e079df7e37f44e0e7d98bebea4ea92 Mon Sep 17 00:00:00 2001
From: Loule | Louis <35641311+Loule95450@users.noreply.github.com>
Date: Wed, 28 Feb 2024 19:11:45 +0100
Subject: [PATCH] Change login design
---
src/screens/login/LoginScreen.styles.ts | 31 ++++++++-----
src/screens/login/LoginScreen.tsx | 62 +++++++++++++------------
2 files changed, 52 insertions(+), 41 deletions(-)
diff --git a/src/screens/login/LoginScreen.styles.ts b/src/screens/login/LoginScreen.styles.ts
index 42c08164..12c65f42 100644
--- a/src/screens/login/LoginScreen.styles.ts
+++ b/src/screens/login/LoginScreen.styles.ts
@@ -28,6 +28,14 @@ export const styles = StyleSheet.create({
backgroundColor: Colors.primary,
borderTopLeftRadius: 30,
borderTopRightRadius: 30,
+ width: '100%',
+ },
+ viewRegister: {
+ flex: 3,
+ alignItems: 'center',
+ backgroundColor: 'white',
+ borderTopLeftRadius: 30,
+ borderTopRightRadius: 30,
marginTop: 20,
},
innerView: {
@@ -38,7 +46,7 @@ export const styles = StyleSheet.create({
},
passwordInput: {
...baseTextInput,
- marginTop: 10,
+ marginTop: 20,
color: 'black',
},
buttonView: {
@@ -48,21 +56,22 @@ export const styles = StyleSheet.create({
flexDirection: 'row',
justifyContent: 'space-between',
},
- leftText: {
- textAlign: 'left',
- width: '50%',
- },
- rightText: {
- textAlign: 'right',
- width: '50%',
- },
button: {
- backgroundColor: 'white',
padding: 10,
borderRadius: 10,
- marginTop: 50,
alignItems: 'center',
width: '80%',
+ textAlign: 'center',
+ backgroundColor: 'white',
+ marginTop: 50,
+ },
+ registerButton: {
+ width: '100%',
+ textAlign: 'center',
+ paddingTop: 20,
+ paddingBottom: 20,
+ fontSize: 18,
+ fontWeight: 'bold',
},
buttonText: {
fontSize: 18,
diff --git a/src/screens/login/LoginScreen.tsx b/src/screens/login/LoginScreen.tsx
index b2811553..7b8807e0 100644
--- a/src/screens/login/LoginScreen.tsx
+++ b/src/screens/login/LoginScreen.tsx
@@ -60,39 +60,41 @@ const LoginScreen = () => {
/>
Welcome back to Kayu
-
-
-
- setEmail(text)}
- />
- setPassword(text)}
- />
-
-
-
- Forgot Password?
- RedirectToRegister()}>
- Don't have an account?
-
+
+ RedirectToRegister()}>
+ S'inscrire
+
+
+
+
+ setEmail(text)}
+ />
+ setPassword(text)}
+ />
+
+
+
+ Mot de passe oubliƩ?
+
+
+ Login()}>
+ Se connecter
+
+
-
- Login()}>
- Se connecter
-
-
>
);