Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-090 frontend
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
2021-090
2021-090 frontend
Commits
3de28d19
Commit
3de28d19
authored
Oct 11, 2021
by
Pramodh Rajapakse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auction welcome page updated
parent
c1aeb0f0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
2 deletions
+41
-2
components/button.component.js
components/button.component.js
+1
-0
components/icon_button.component.js
components/icon_button.component.js
+34
-0
screen/Home.Auction.Screen.js
screen/Home.Auction.Screen.js
+6
-2
No files found.
components/button.component.js
View file @
3de28d19
...
...
@@ -22,6 +22,7 @@ const styles = StyleSheet.create({
shadowOpacity
:
1
,
shadowRadius
:
1
,
elevation
:
2
,
marginVertical
:
10
},
label
:
{
fontFamily
:
'
Poppins-Black
'
,
...
...
components/icon_button.component.js
0 → 100644
View file @
3de28d19
import
React
from
'
react
'
;
import
{
StyleSheet
,
TouchableOpacity
,
Text
}
from
'
react-native
'
;
import
themeColors
from
'
../assets/colors
'
;
export
const
AppIconButton
=
(
props
)
=>
{
return
(
<
TouchableOpacity
onPress
=
{
props
.
onPress
}
style
=
{
styles
.
button
}
>
<
Text
style
=
{
styles
.
label
}
>
{
props
.
label
}
<
/Text
>
<
/TouchableOpacity
>
)
}
const
styles
=
StyleSheet
.
create
({
button
:{
alignItems
:
"
center
"
,
padding
:
10
,
fontSize
:
16
,
width
:
100
,
height
:
55
,
backgroundColor
:
themeColors
.
PRIMARY_COLOR
,
borderRadius
:
20
,
shadowColor
:
'
rgba(0,0,0, .4)
'
,
shadowOffset
:
{
height
:
2
,
width
:
1
},
shadowOpacity
:
1
,
shadowRadius
:
1
,
elevation
:
2
,
marginHorizontal
:
5
},
label
:
{
fontSize
:
22
,
color
:
themeColors
.
WHITE
}
});
screen/Home.Auction.Screen.js
View file @
3de28d19
...
...
@@ -6,7 +6,7 @@ import React from 'react';
import
{
View
,
StyleSheet
,
Image
}
from
'
react-native
'
;
import
{
AppButton
}
from
"
../components/button.component
"
;
import
{
AppTextInput
}
from
'
../components/text_input.component
'
;
import
{
App
Container
}
from
'
../container/container
'
;
import
{
App
IconButton
}
from
'
../components/icon_button.component
'
;
import
themeColors
from
'
../assets/colors
'
;
const
HomeAuctionScreen
=
({
navigation
})
=>
{
return
(
...
...
@@ -14,7 +14,9 @@ const HomeAuctionScreen = ({navigation}) => {
<
View
style
=
{
styles
.
header
}
>
<
/View
>
<
View
style
=
{
styles
.
contentContainer
}
>
<
AppIconButton
label
=
'
Buy
'
onPress
=
{()
=>
navigation
.
navigate
(
"
SignUp
"
)}
/
>
<
AppIconButton
label
=
'
Sell
'
/>
<
AppIconButton
label
=
'
My Bids
'
/>
<
/View
>
<
/View
>
);
...
...
@@ -34,5 +36,7 @@ const styles = StyleSheet.create({
},
contentContainer
:
{
flex
:
1
,
flexDirection
:
'
row
'
,
margin
:
20
}
})
\ 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