Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
21_22-J 38
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
21_22-J 38
21_22-J 38
Commits
28caee26
Commit
28caee26
authored
Dec 15, 2021
by
W.D.R.P. Sandeepa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
login page design
parent
516018a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
122 additions
and
0 deletions
+122
-0
frontend/src/auth/Login.js
frontend/src/auth/Login.js
+122
-0
No files found.
frontend/src/auth/Login.js
0 → 100644
View file @
28caee26
import
{
useNavigation
}
from
"
@react-navigation/native
"
;
import
React
from
"
react
"
;
import
{
SafeAreaView
,
ScrollView
,
View
,
StyleSheet
,
ImageBackground
,
Text
,
TextInput
,
TouchableOpacity
,
Image
}
from
"
react-native
"
;
const
Login
=
()
=>
{
const
navigation
=
useNavigation
();
return
(
<
SafeAreaView
>
<
ScrollView
>
<
View
style
=
{
styles
.
continer
}
>
<
ImageBackground
style
=
{
styles
.
backgroundImage
}
source
=
{
require
(
'
../../assets/login/login_background.png
'
)}
resizeMode
=
"
cover
"
>
<
View
>
<
Image
style
=
{
styles
.
logo
}
source
=
{
require
(
'
../../assets/login/logo.png
'
)}
resizeMode
=
"
contain
"
><
/Image
>
<
/View
>
<
View
elevation
=
{
5
}
style
=
{
styles
.
main_container
}
>
<
Text
style
=
{
styles
.
main_title
}
>
Sign
In
<
/Text
>
<
View
style
=
{
styles
.
form_input
}
>
<
TextInput
style
=
{
styles
.
text_input
}
placeholder
=
"
Enter Email
"
><
/TextInput
>
<
/View
>
<
View
style
=
{
styles
.
form_input
}
>
<
TextInput
keyboardType
=
"
visible-password
"
style
=
{
styles
.
text_input
}
placeholder
=
"
Enter Password
"
><
/TextInput
>
<
/View
>
<
View
style
=
{
styles
.
form_input
}
>
<
TouchableOpacity
onPress
=
{()
=>
{
navigation
.
navigate
(
"
Home
"
)}}
style
=
{
styles
.
btn
}
>
<
Text
style
=
{
styles
.
btn_text
}
>
Sign
In
<
/Text
>
<
/TouchableOpacity
>
<
/View
>
<
View
style
=
{
styles
.
text_if
}
>
<
TouchableOpacity
onPress
=
{()
=>
{
navigation
.
navigate
(
"
Register
"
)}}
>
<
Text
style
=
{
styles
.
btn_text
}
>
If
you
don
'
t have account? Sign Up
</Text>
</TouchableOpacity>
</View>
</View>
</ImageBackground>
</View>
</ScrollView>
</SafeAreaView>
)
}
const styles = StyleSheet.create({
continer:{
flex:1
},
backgroundImage:{
width:
'
100
%
'
,
height: 900
},
logo:{
marginTop: 100,
marginLeft: 50,
width:
'
80
%
'
,
height:
'
40
%
'
},
main_container:{
marginTop: -170,
marginLeft: 30,
width: 350,
height: 450,
backgroundColor: "#ffffff",
borderColor:
'
#
000000
'
,
borderRadius: 50,
shadowColor: "#000000",
shadowOpacity: 0.8,
shadowRadius: 2,
shadowOffset: {
height: 1,
width: 1
},
},
main_title:{
textAlign:
'
center
'
,
fontSize: 40,
color:
'
#
000000
'
},
form_input:{
marginTop: 20,
padding: 20,
},text_input:{
padding: 15,
fontSize: 16,
borderWidth: 1,
borderRadius: 50,
backgroundColor:
'
#
EDEDED
'
,
color:
'
#
000000
'
},btn:{
padding: 15,
borderRadius: 50,
backgroundColor:
'
#
1
DCE92
'
,
width: 150,
textAlign:
'
center
'
,
alignItems:
'
center
'
,
marginLeft: 80
},
btn_text:{
fontSize: 20,
fontWeight:
'
bold
'
,
color:
'
#
000000
'
},
text_if:{
fontSize: 20,
fontWeight:
'
bold
'
,
color:
'
#
000000
'
,
textAlign:
'
center
'
,
alignItems:
'
center
'
,
marginTop: 10
}
})
export default Login;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment