-
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.
- Loading branch information
Showing
6 changed files
with
307 additions
and
7 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
apps/wallet/src/screens/Authentication/Invitation/GetCodeStepCard.tsx
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,42 @@ | ||
import type { FC } from 'react'; | ||
import { StyleSheet, Text, View } from 'react-native'; | ||
import { InvitationCodeStepBackground } from '@walless/icons'; | ||
|
||
interface GetCodeStepCardProps { | ||
text: string; | ||
} | ||
|
||
const GetCodeStepCard: FC<GetCodeStepCardProps> = ({ text }) => { | ||
return ( | ||
<View style={styles.container}> | ||
<View style={styles.background}> | ||
<InvitationCodeStepBackground /> | ||
</View> | ||
|
||
<Text style={styles.text} numberOfLines={2}> | ||
{text} | ||
</Text> | ||
</View> | ||
); | ||
}; | ||
|
||
export default GetCodeStepCard; | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
width: 254, | ||
height: 72, | ||
paddingHorizontal: 16, | ||
alignItems: 'flex-end', | ||
justifyContent: 'center', | ||
}, | ||
background: { | ||
position: 'absolute', | ||
top: 0, | ||
left: 0, | ||
zIndex: -1, | ||
}, | ||
text: { | ||
color: '#ffffff', | ||
}, | ||
}); |
33 changes: 33 additions & 0 deletions
33
apps/wallet/src/screens/Authentication/Invitation/GetCodeStepNumber.tsx
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,33 @@ | ||
import type { FC } from 'react'; | ||
import { StyleSheet, Text, View } from 'react-native'; | ||
|
||
interface GetCodeStepNumberProps { | ||
number: number; | ||
} | ||
|
||
const GetCodeStepNumber: FC<GetCodeStepNumberProps> = ({ number }) => { | ||
return ( | ||
<View style={styles.container}> | ||
<Text style={styles.text}>{number}</Text> | ||
</View> | ||
); | ||
}; | ||
|
||
export default GetCodeStepNumber; | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
width: 28, | ||
height: 28, | ||
borderRadius: 14, | ||
borderColor: '#ffffff', | ||
borderWidth: 1, | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
}, | ||
text: { | ||
color: '#ffffff', | ||
fontSize: 12, | ||
fontWeight: '500', | ||
}, | ||
}); |
96 changes: 96 additions & 0 deletions
96
apps/wallet/src/screens/Authentication/Invitation/InvitationGuide.tsx
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,96 @@ | ||
import { StyleSheet, Text, View } from 'react-native'; | ||
import { Anchor } from '@walless/gui'; | ||
|
||
import GetCodeStepCard from './GetCodeStepCard'; | ||
import GetCodeStepNumber from './GetCodeStepNumber'; | ||
|
||
const InvitationGuide = () => { | ||
return ( | ||
<View style={styles.container}> | ||
<Text style={styles.title}>Get invitation code</Text> | ||
|
||
<Text style={styles.subtitle}> | ||
Walless is in phase 2. To get access code: | ||
</Text> | ||
|
||
<View style={styles.contentContainer}> | ||
<View style={styles.stepCardContainer}> | ||
<GetCodeStepCard text="Go to Walless Discord" /> | ||
<GetCodeStepCard text="Go to channel “referral-codes”" /> | ||
<GetCodeStepCard text="Use code from other users or ping admin for access code" /> | ||
</View> | ||
|
||
<View style={styles.stepNumberContainer}> | ||
<GetCodeStepNumber number={1} /> | ||
<View style={styles.connectedLine} /> | ||
<GetCodeStepNumber number={2} /> | ||
<View style={styles.connectedLine} /> | ||
<GetCodeStepNumber number={3} /> | ||
</View> | ||
</View> | ||
|
||
<Anchor style={styles.anchor} href="https://discord.gg/kCBUHFZVVY"> | ||
<Text style={styles.anchorText}>Go to Discord</Text> | ||
</Anchor> | ||
</View> | ||
); | ||
}; | ||
|
||
export default InvitationGuide; | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
paddingVertical: 28, | ||
paddingHorizontal: 28, | ||
gap: 20, | ||
backgroundColor: '#232F37', | ||
borderRadius: 16, | ||
alignSelf: 'center', | ||
}, | ||
title: { | ||
color: '#ffffff', | ||
fontSize: 24, | ||
fontWeight: '500', | ||
}, | ||
subtitle: { | ||
color: '#ffffff', | ||
}, | ||
contentContainer: { | ||
flexDirection: 'row', | ||
alignItems: 'center', | ||
gap: 8, | ||
}, | ||
stepCardContainer: { | ||
gap: 16, | ||
}, | ||
stepNumberContainer: { | ||
alignItems: 'center', | ||
}, | ||
connectedLine: { | ||
width: 2, | ||
height: 58, | ||
backgroundColor: '#ffffff66', | ||
}, | ||
anchor: { | ||
backgroundColor: '#198CCA', | ||
borderColor: '#19A3E1', | ||
shadowColor: '#16B7FF', | ||
shadowOffset: { | ||
width: 0, | ||
height: 4, | ||
}, | ||
shadowOpacity: 0.58, | ||
shadowRadius: 16.0, | ||
elevation: 24, | ||
borderRadius: 10, | ||
borderWidth: 1, | ||
paddingHorizontal: 16, | ||
paddingVertical: 8, | ||
}, | ||
anchorText: { | ||
color: '#ffffff', | ||
fontWeight: '500', | ||
}, | ||
}); |
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
Oops, something went wrong.