-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from FME849/request-screen
layout request and signature request screens
- Loading branch information
Showing
7 changed files
with
198 additions
and
14 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
import { AlertCircle, Anchor, Button, Image, Stack, Text } from '@walless/gui'; | ||
|
||
import { HeaderRequest } from '../../../components/HeaderRequest'; | ||
import LightText from '../../../components/LightText'; | ||
import { logoSize, logoUri } from '../shared'; | ||
|
||
export const RequestLayout = () => { | ||
return ( | ||
<Stack flex={1} backgroundColor="#19232C"> | ||
<HeaderRequest /> | ||
|
||
<Stack flex={1} padding={20} alignItems="stretch"> | ||
<Stack alignItems="center"> | ||
<Text fontSize={20} fontWeight="400"> | ||
Layout request | ||
</Text> | ||
<Image | ||
src={logoUri} | ||
width={logoSize} | ||
height={logoSize} | ||
borderColor="#566674" | ||
borderWidth={2} | ||
borderRadius={15} | ||
marginVertical={10} | ||
/> | ||
<Text fontSize={18} fontWeight="400"> | ||
Under Realm | ||
</Text> | ||
<LightText fontSize={14}>underrealm.stormgate.io</LightText> | ||
</Stack> | ||
|
||
<Stack paddingTop={30} alignItems="center"> | ||
<Text textAlign="center" fontSize={14} fontWeight="300"> | ||
Under Realm would like to add its custom layout appearance to your | ||
Walless account. | ||
</Text> | ||
|
||
<Anchor | ||
href="_" | ||
marginTop={15} | ||
color="#0694D3" | ||
textDecorationLine="none" | ||
> | ||
Learn more | ||
</Anchor> | ||
</Stack> | ||
|
||
<Stack flex={1} justifyContent="flex-end"> | ||
<Stack | ||
horizontal | ||
alignItems="center" | ||
backgroundColor="#202D38" | ||
borderRadius={15} | ||
marginBottom={20} | ||
padding={15} | ||
borderColor="rgba(86, 102, 116, .2)" | ||
borderWidth={1} | ||
> | ||
<Stack width={18}> | ||
<AlertCircle size={18} color="#566674" /> | ||
</Stack> | ||
<LightText fontSize={12} marginLeft={15}> | ||
This action does not make any fund transfer. This site cannot | ||
transfer fund without your permission. | ||
</LightText> | ||
</Stack> | ||
|
||
<Stack paddingHorizontal={10}> | ||
<LightText fontSize={14} textAlign="center"> | ||
Only connect to websites you trust! | ||
</LightText> | ||
<Button marginVertical={10} onPress={() => console.log('hmmmm')}> | ||
<Text>Accept</Text> | ||
</Button> | ||
<Stack | ||
horizontal | ||
justifyContent="space-between" | ||
alignItems="center" | ||
> | ||
<Button backgroundColor="transparent" padding={0}> | ||
<LightText>Never Ask Again</LightText> | ||
</Button> | ||
<Button backgroundColor="transparent" padding={0}> | ||
<Text fontWeight="300">Ask me later</Text> | ||
</Button> | ||
</Stack> | ||
</Stack> | ||
</Stack> | ||
</Stack> | ||
</Stack> | ||
); | ||
}; | ||
|
||
export default RequestLayout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import { AlertCircle, Button, Image, Stack, Text } from '@walless/gui'; | ||
|
||
import { HeaderRequest } from '../../../components/HeaderRequest'; | ||
import LightText from '../../../components/LightText'; | ||
import { logoSize, logoUri } from '../shared'; | ||
|
||
export const RequestSignature = () => { | ||
return ( | ||
<Stack flex={1} backgroundColor="#19232C"> | ||
<HeaderRequest /> | ||
|
||
<Stack flex={1} padding={20} alignItems="stretch"> | ||
<Stack alignItems="center"> | ||
<Text fontSize={20} fontWeight="400"> | ||
Your signature has been requested | ||
</Text> | ||
<Image | ||
src={logoUri} | ||
width={logoSize} | ||
height={logoSize} | ||
borderColor="#566674" | ||
borderWidth={2} | ||
borderRadius={15} | ||
marginVertical={10} | ||
/> | ||
<Text fontSize={18} fontWeight="400"> | ||
Under Realm | ||
</Text> | ||
<LightText fontSize={14}>underrealm.stormgate.io</LightText> | ||
</Stack> | ||
|
||
<Stack | ||
backgroundColor="#202D38" | ||
borderRadius={15} | ||
marginVertical={15} | ||
borderColor="rgba(86, 102, 116, .2)" | ||
borderWidth={1} | ||
> | ||
<Stack | ||
horizontal | ||
justifyContent="space-between" | ||
alignItems="center" | ||
paddingHorizontal={15} | ||
paddingTop={15} | ||
paddingBottom={5} | ||
> | ||
<Text fontSize={14}>Message:</Text> | ||
<AlertCircle size={18} color="#566674" /> | ||
</Stack> | ||
<LightText paddingHorizontal={15} paddingBottom={15} fontSize={14}> | ||
[Custom message] Sign this message to prove that you have accessed | ||
to this wallet account and we’ll log you in. This won’t cost you | ||
anything! [Seal code: r3092850297] | ||
</LightText> | ||
</Stack> | ||
|
||
<Stack flex={1} justifyContent="flex-end" paddingHorizontal={10}> | ||
<LightText fontSize={14} textAlign="center"> | ||
Only connect to websites you trust! | ||
</LightText> | ||
<Button marginVertical={10} onPress={() => console.log('hmmmm')}> | ||
<Text>Connect</Text> | ||
</Button> | ||
<Button backgroundColor="transparent" paddingVertical={0}> | ||
<Text>Deny</Text> | ||
</Button> | ||
</Stack> | ||
</Stack> | ||
</Stack> | ||
); | ||
}; | ||
|
||
export default RequestSignature; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export const logoSize = 60; | ||
export const logoUri = { uri: '/img/app_logo.png' }; |