From 7c25158c85520fdf4a90e554bc52996870dcdef9 Mon Sep 17 00:00:00 2001 From: KeviNmp4 Date: Thu, 9 May 2024 18:05:15 +0200 Subject: [PATCH] Edited: Styles on login page, styles on sign up page --- frontend/app/login.js | 12 ++++++++++-- frontend/app/signup.js | 36 ++++++++++++++++++++++++------------ frontend/components/style.js | 1 + 3 files changed, 35 insertions(+), 14 deletions(-) diff --git a/frontend/app/login.js b/frontend/app/login.js index 056dc93..4602ead 100644 --- a/frontend/app/login.js +++ b/frontend/app/login.js @@ -69,7 +69,9 @@ function LoginPage() { /> - Don't have an account? + + Don't have an account? + @@ -106,7 +108,7 @@ const styles = StyleSheet.create({ header: { width: "100%", alignItems: "center", - paddingTop: "10%", + paddingTop: "20%", }, input: { height: "auto", @@ -131,6 +133,12 @@ const styles = StyleSheet.create({ top: 0, height: "100%", }, + signup: { + textDecorationLine: "underline", + fontSize: 14, + marginTop: 10, + fontStyle: "italic", + }, }); export default LoginPage; diff --git a/frontend/app/signup.js b/frontend/app/signup.js index 0ad1bbf..75ee540 100644 --- a/frontend/app/signup.js +++ b/frontend/app/signup.js @@ -3,6 +3,8 @@ import { useState } from "react"; import Button from "../components/Button"; import { colors } from "../components/style"; import { Link, router } from "expo-router"; +import { LinearGradient } from "expo-linear-gradient"; +import { Animated } from "react-native"; import { useAuth } from "./context/AuthContext"; @@ -35,6 +37,10 @@ function SignupPage() { return ( + - + Already have an account? Log In! @@ -96,16 +102,20 @@ function SignupPage() { ); } +const AnimatedLinearGradient = Animated.createAnimatedComponent(LinearGradient); + const styles = StyleSheet.create({ container: { width: "100%", height: "100%", backgroundColor: colors.dark, + justifyContent: "center", + alignItems: "center", + maxHeight: "100%", }, form: { flex: 1, alignItems: "center", - paddingTop: "10%", width: "100%", gap: 15, }, @@ -113,36 +123,38 @@ const styles = StyleSheet.create({ color: "#FFF", fontSize: 30, textAlign: "center", - paddingTop: "20%", - }, - a: { - color: "#FFF", - fontSize: 12, - fontStyle: "italic", - textDecorationLine: "underline", + paddingTop: "3%", + paddingBottom: "3%", }, logo: { width: "80%", resizeMode: "contain", + marginTop: "15%", }, header: { width: "100%", alignItems: "center", - paddingTop: "20%", }, input: { height: "auto", width: "60%", borderColor: "gray", borderWidth: 1, - borderRadius: 5, - padding: 10, + borderRadius: 10, + padding: 13, color: "#fff", }, btnContainer: { flexDirection: "row", gap: 5, }, + login: { + color: "#FFF", + fontStyle: "italic", + textDecorationLine: "underline", + fontSize: 14, + marginTop: 10, + }, }); export default SignupPage; diff --git a/frontend/components/style.js b/frontend/components/style.js index f35e0a0..9c56c5b 100644 --- a/frontend/components/style.js +++ b/frontend/components/style.js @@ -7,4 +7,5 @@ export const colors = { black: "#020405ff", dark: "#010409", darkSecondary: "#0D1117", + white: "#FFFFFF", };