forked from keep-starknet-strange/joyboy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: small design fixes (keep-starknet-strange#134)
* Header component * Bottom bar icons * Feed & Profile * Move svgs to icons file
- Loading branch information
Showing
15 changed files
with
226 additions
and
202 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
import {Image, View} from 'react-native'; | ||
import {SafeAreaView} from 'react-native-safe-area-context'; | ||
|
||
import {JoyboyIcon} from '../../assets/icons'; | ||
import {IconButton} from '../iconbutton'; | ||
import styles from './styles'; | ||
|
||
export const Header: React.FC = () => { | ||
return ( | ||
<SafeAreaView edges={['top', 'left', 'right']} style={styles.container}> | ||
<View style={styles.content}> | ||
<View style={styles.logoContainer}> | ||
<Image style={styles.logo} source={require('../../../assets/joyboy-logo.png')} /> | ||
<JoyboyIcon color="#14142C" width={96} height={16} /> | ||
</View> | ||
|
||
<View style={styles.buttons}> | ||
<IconButton icon="bell" size={20} /> | ||
</View> | ||
</View> | ||
</SafeAreaView> | ||
); | ||
}; |
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,30 @@ | ||
import {StyleSheet} from 'react-native'; | ||
|
||
export default StyleSheet.create({ | ||
container: { | ||
backgroundColor: 'white', | ||
}, | ||
content: { | ||
width: '100%', | ||
flexDirection: 'row', | ||
justifyContent: 'space-between', | ||
alignItems: 'center', | ||
paddingVertical: 6, | ||
paddingHorizontal: 16, | ||
}, | ||
|
||
logoContainer: { | ||
flexDirection: 'row', | ||
alignItems: 'center', | ||
}, | ||
logo: { | ||
width: 40, | ||
height: 40, | ||
marginRight: 8, | ||
}, | ||
|
||
buttons: { | ||
flexDirection: 'row', | ||
alignItems: 'center', | ||
}, | ||
}); |
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
Oops, something went wrong.