-
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 #591 from cocrafts/staging
[wallet] feat: release point system, new explorer, minor UI changes
- Loading branch information
Showing
230 changed files
with
5,882 additions
and
837 deletions.
There are no files selected for viewing
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
86 changes: 86 additions & 0 deletions
86
apps/landing/components/layouts/Home/Navigation/LauchingOption.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,86 @@ | ||
import type { FC, ReactNode } from 'react'; | ||
import { useState } from 'react'; | ||
import { StyleSheet, TouchableOpacity } from 'react-native'; | ||
import { Anchor, Text } from '@walless/gui'; | ||
|
||
interface LauchingOptionProps { | ||
icon: ReactNode; | ||
title: string; | ||
activeIcon: ReactNode; | ||
onPress?: () => void; | ||
url?: string; | ||
isDisabled?: boolean; | ||
} | ||
|
||
const LaunchingOption: FC<LauchingOptionProps> = ({ | ||
icon, | ||
activeIcon, | ||
title, | ||
onPress, | ||
url, | ||
isDisabled = false, | ||
}) => { | ||
const [isHovered, setIsHovered] = useState(false); | ||
|
||
const handleHoverIn = () => { | ||
setIsHovered(true); | ||
}; | ||
|
||
const handleHoverOut = () => { | ||
setIsHovered(false); | ||
}; | ||
|
||
return ( | ||
<Anchor | ||
onHoverIn={handleHoverIn} | ||
onHoverOut={handleHoverOut} | ||
href={url as string} | ||
hoverOpacity={1} | ||
disabled={isDisabled} | ||
> | ||
<TouchableOpacity | ||
style={[ | ||
styles.container, | ||
isHovered && !isDisabled && styles.hoveredContainerStyle, | ||
]} | ||
onPress={onPress} | ||
disabled={isDisabled} | ||
> | ||
{isHovered && !isDisabled ? activeIcon : icon} | ||
<Text | ||
style={[ | ||
styles.title, | ||
isHovered && !isDisabled && styles.hoveredTextStyle, | ||
]} | ||
> | ||
{title} | ||
</Text> | ||
</TouchableOpacity> | ||
</Anchor> | ||
); | ||
}; | ||
|
||
export default LaunchingOption; | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flexDirection: 'row', | ||
alignItems: 'center', | ||
padding: 8, | ||
borderRadius: 8, | ||
gap: 8, | ||
width: 186, | ||
paddingVertical: 8, | ||
paddingHorizontal: 8, | ||
borderWidth: 1, | ||
borderColor: 'transparent', | ||
}, | ||
title: { | ||
color: '#ffffff', | ||
}, | ||
hoveredContainerStyle: { | ||
backgroundColor: '#202D38', | ||
borderColor: '#000000', | ||
}, | ||
hoveredTextStyle: { fontWeight: '500' }, | ||
}); |
56 changes: 56 additions & 0 deletions
56
apps/landing/components/layouts/Home/Navigation/LaunchingModal.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,56 @@ | ||
import { View } from 'react-native'; | ||
import { StyleSheet } from 'react-native'; | ||
import { Button } from '@walless/gui'; | ||
import { Phone, PlainWalless, Puzzle, Walless } from '@walless/icons'; | ||
|
||
import LaunchingOption from './LauchingOption'; | ||
|
||
const LaunchingModal = () => { | ||
return ( | ||
<View> | ||
<Button title="Access Walless" style={styles.button} /> | ||
<View style={styles.container}> | ||
<LaunchingOption | ||
icon={<PlainWalless color="#A4B3C1" />} | ||
title="Launch web app" | ||
activeIcon={<Walless />} | ||
url="https://app.walless.io/auth/invitation" | ||
/> | ||
<View style={styles.line} /> | ||
<LaunchingOption | ||
icon={<Puzzle color="#A4B3C1" />} | ||
title="Add extension" | ||
activeIcon={<Puzzle color="#19A3E1" />} | ||
url="https://chromewebstore.google.com/detail/walless/jfmajkmgjpjognffefopllhaijknhnmm" | ||
/> | ||
<LaunchingOption | ||
icon={<Phone color="#A4B3C1" />} | ||
title="Mobile (coming soon)" | ||
isDisabled={true} | ||
activeIcon={<Phone color="#19A3E1" />} | ||
/> | ||
</View> | ||
</View> | ||
); | ||
}; | ||
|
||
export default LaunchingModal; | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
backgroundColor: '#19232C', | ||
borderRadius: 16, | ||
paddingVertical: 12, | ||
paddingHorizontal: 16, | ||
gap: 8, | ||
}, | ||
button: { | ||
marginHorizontal: 8, | ||
alignSelf: 'flex-start', | ||
}, | ||
line: { | ||
backgroundColor: '#ffffff', | ||
height: 1, | ||
opacity: 0.1, | ||
}, | ||
}); |
2 changes: 1 addition & 1 deletion
2
apps/landing/components/layouts/Home/Navigation/NavigationItem.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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
3 changes: 2 additions & 1 deletion
3
apps/wallet/src/components/DrawerNavigation/views/DrawerItem.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
Oops, something went wrong.