import React from 'react';
import {View, StyleSheet,Text,Image,TextInput} from "react-native";
import { SafeAreaView } from "react-navigation";
import { ScrollView, TouchableOpacity } from "react-native-gesture-handler";
import Icon from "react-native-vector-icons/FontAwesome5";
export default class Login extends React.Component{
render() {
return (
<SafeAreaView style={style.body}>
<ScrollView>
<View style={style.header}>
<Text style={style.title}>Sign In</Text>
</View>
<View style={style.logo_area}>
<Image source={require('../../../assets/images/home.png')} />
</View>
<View style={style.board}>
<View style={style.item}>
<TextInput
placeholder={"Username"}
style={style.input} />
</View>
<View style={style.item}>
<TextInput
placeholder={"Password"}
style={style.input} />
<TouchableOpacity style={{position:'absolute',right:15,top:-33}}>
<Icon name={"eye-slash"} size={20} />
</TouchableOpacity>
</View>
<View style={[style.item,{flexDirection:'row',justifyContent: 'flex-end'}]}>
<Text style={{ color: "#525464",fontSize: 15 }}>Forgot your password?</Text>
</View>
<View style={style.item}>
<TouchableOpacity style={style.button}>
<Text style={style.button_text}>Login</Text>
</TouchableOpacity>
</View>
<View style={[style.item,{justifyContent: 'center',alignItems:'center'}]}>
<Text style={{ color: "#525464",fontSize: 15 }}>Or</Text>
</View>
<View style={style.social}>
<TouchableOpacity style={style.social_item}>
<Icon name={"facebook-f"} color={"#3b5999"} size={20}/>
</TouchableOpacity>
<TouchableOpacity style={style.social_item}>
<Icon name={"twitter"} color={"#55acee"} size={20}/>
</TouchableOpacity>
<TouchableOpacity style={style.social_item}>
<Icon name={"linkedin-in"} color={"#0077B5"} size={20}/>
</TouchableOpacity>
</View>
<View style={[style.item,{justifyContent: 'center',alignItems:'center'}]}>
<TouchableOpacity>
<Text style={{fontSize:17,fontWeight:'400'}}>Dont have an account? <Text style={{color:'#FFB19D'}}>Sign Up</Text></Text>
</TouchableOpacity>
</View>
</View>
</ScrollView>
</SafeAreaView>
)
}
}
const style = StyleSheet.create({
body:{backgroundColor:'white',flex:1},
header:{padding:25,justifyContent:'center',alignItems:'center'},
title:{fontWeight:'500',fontSize:20,color:'#525464'},
logo_area:{alignItems: 'center',marginTop:40},
board:{marginTop:10,paddingHorizontal:30,paddingTop:20},
item:{marginBottom:20},
social_item:{padding:10,borderWidth: 1,borderColor:'#E2E2E0',width:100,height: 60,justifyContent:'center',alignItems:'center'},
social:{flexDirection:'row',justifyContent:'space-around',marginBottom: 20},
button_text:{color:'white',textAlign:'center',fontSize:17,fontWeight: '700'},
button:{backgroundColor:'#20C3AF',padding:15,borderRadius:5,justifyContent: 'center',alignItems:'center'},
input:{borderWidth:1,borderColor:'#B0B0C3',backgroundColor: '#F7F7F7',paddingVertical: 10,paddingHorizontal:30,height:50}
})