Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beasy-mobile
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
G
beasy-mobile
Commits
39cfcfba
Commit
39cfcfba
authored
Apr 25, 2024
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add background image to the screen
parent
56dfe234
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
39 deletions
+47
-39
beasy_background.png
assets/beasy_background.png
+0
-0
UserLoginScreen.tsx
src/screens/UserLoginScreen.tsx
+47
-39
No files found.
assets/beasy_background.png
0 → 100644
View file @
39cfcfba
21.8 KB
src/screens/UserLoginScreen.tsx
View file @
39cfcfba
...
...
@@ -2,51 +2,59 @@ import Button from "@components/Button";
import
Input
from
"@components/Input"
;
import
Box
from
"@components/bases/Box"
;
import
Text
from
"@components/bases/Text"
;
import
{
containers
}
from
"@styles/Commons"
;
import
{
KeyboardAvoidingView
,
Platform
,
View
}
from
"react-native"
;
import
{
containers
,
images
}
from
"@styles/Commons"
;
import
{
ImageBackground
,
KeyboardAvoidingView
,
Platform
,
View
}
from
"react-native"
;
const
UserLoginScreen
=
()
=>
{
return
(
<
Box
style=
{
[
containers
.
containerFull
]
}
p=
{
"xl"
}
paddingTop=
{
"x140"
}
flexDirection=
{
"column"
}
justifyContent=
{
"space-between"
}
>
<
KeyboardAvoidingView
behavior=
{
Platform
.
OS
===
"ios"
?
"height"
:
"height"
}
style=
{
{
flex
:
1
}
}
<
View
style=
{
{
height
:
"100%"
,
width
:
"100%"
}
}
>
<
ImageBackground
source=
{
require
(
"../../assets/beasy_background.png"
)
}
resizeMode=
"cover"
style=
{
images
.
cover
}
>
<
View
>
<
Box
mb=
{
"x100"
}
>
<
Text
fontSize=
{
40
}
fontWeight=
{
"bold"
}
>
Connexion
</
Text
>
<
Text
color=
{
"gray"
}
>
Bienvenue, vous nous avez manqué !
</
Text
>
</
Box
>
<
Box
style=
{
[
containers
.
containerFull
]
}
p=
{
"xl"
}
paddingTop=
{
"x240"
}
flexDirection=
{
"column"
}
justifyContent=
{
"space-between"
}
>
<
KeyboardAvoidingView
behavior=
{
Platform
.
OS
===
"ios"
?
"height"
:
"height"
}
style=
{
{
flex
:
1
}
}
>
<
View
>
<
Box
mb=
{
"x100"
}
>
<
Text
fontSize=
{
40
}
fontWeight=
{
"bold"
}
>
Connexion
</
Text
>
<
Text
color=
{
"gray"
}
>
Bienvenue, vous nous avez manqué !
</
Text
>
</
Box
>
<
Box
gap=
{
"m"
}
>
<
Input
label=
"Email"
/>
<
Input
label=
"Mot de passe"
secureTextEntry=
{
true
}
/>
<
Box
gap=
{
"m"
}
>
<
Input
label=
"Email"
/>
<
Input
label=
"Mot de passe"
secureTextEntry=
{
true
}
/>
</
Box
>
</
View
>
</
KeyboardAvoidingView
>
<
Box
mt=
{
"xl"
}
>
<
Button
variant=
{
"full"
}
textVariants=
{
"primary"
}
label=
"Se connecter"
onPress=
{
()
=>
{}
}
/>
<
Button
variant=
{
"lightGray"
}
textVariants=
{
"black"
}
label=
"Creer un compte"
onPress=
{
()
=>
{}
}
/>
</
Box
>
</
View
>
</
KeyboardAvoidingView
>
<
Box
mt=
{
"xl"
}
>
<
Button
variant=
{
"full"
}
textVariants=
{
"primary"
}
label=
"Se connecter"
onPress=
{
()
=>
{}
}
/>
<
Button
variant=
{
"lightGray"
}
textVariants=
{
"black"
}
label=
"Creer un compte"
onPress=
{
()
=>
{}
}
/>
</
Box
>
</
Box
>
</
Box
>
</
ImageBackground
>
</
View
>
);
};
...
...
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