diff --git a/assets/icon.png b/assets/icon.png index a0b1526..175ca41 100644 Binary files a/assets/icon.png and b/assets/icon.png differ diff --git a/assets/splash.png b/assets/splash.png index 0e89705..0a847c3 100644 Binary files a/assets/splash.png and b/assets/splash.png differ diff --git a/components/Login.js b/components/Login.js index 625aeee..6d283b4 100644 --- a/components/Login.js +++ b/components/Login.js @@ -1,63 +1,83 @@ import { StatusBar } from 'expo-status-bar'; import React, { useState } from 'react'; -import { Text, View, TextInput, Button, StyleSheet } from 'react-native'; +import { Text, View, StyleSheet, Image } from 'react-native'; +import { TextInput, Button } from 'react-native-paper'; import API from './../API.js'; import { useNavigation } from '@react-navigation/native'; +import GlobalState from '../contexts/GlobalState.js'; -let LoginForm = ()=>{ +let LoginForm = () => { let [email, setEmail] = useState(''); let [password, setPassword] = useState(''); const navigation = useNavigation(); return ( - Log in + + Login setEmail(text)} defaultValue={email} - placeholder=" email" + placeholder="email" autoCapitalize='none' autoComplete='email' autoCorrect={false} + mode="outlined" /> setPassword(text)} defaultValue={password} - placeholder=" password" + placeholder="password" textContentType="password" secureTextEntry={true} autoCapitalize='none' autoComplete='email' autoCorrect={false} + mode="outlined" /> ); } export default LoginForm; -const styles = StyleSheet.create ({ - mainView:{ +const styles = StyleSheet.create({ + mainView: { + backgroundColor: 'white', flex: 1, - flexDirection:'column', - alignItems: 'center', + flexDirection: "column", + justifyContent: "flex-start", + padding: 15, + width: "100%", + alignContent: 'center' + }, + header: { + fontFamily: 'Helvetica-Bold', + fontSize: 42, + textAlign: "left", + paddingBottom: 15, + color: '#777', + alignContent: 'center' + }, + logo:{ + width: 250, + height: 250, justifyContent: 'center', + alignItems: 'center', }, - input: { - height: 40, - width: 300, - borderColor: 'gray', - borderWidth: 1, - margin: 10 - }, + input:{ + backgroundColor: 'white' + } }); \ No newline at end of file