123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326 |
- import { Colors } from '../../../../theme';
- import { StyleSheet } from 'react-native';
- import { getFontSize } from '../../../../utils';
- import { widthPercentageToDP } from '../../ProfileScreen/navigation-opts';
- export const ProfileStyles = StyleSheet.create({
- badge: {
- width: 36,
- height: 14,
- borderRadius: 7,
- display: 'flex',
- justifyContent: 'center',
- alignItems: 'center'
- },
- badgesWrapper: {
- display: 'flex',
- flexDirection: 'row',
- gap: 3,
- marginLeft: 10
- },
- profileRoot: {
- alignItems: 'center',
- flexDirection: 'row',
- gap: 10,
- marginBottom: 5
- },
- profileAvatar: {
- borderRadius: 24,
- width: 48,
- height: 48
- },
- profileFirstLastName: {
- flex: 1,
- fontFamily: 'redhat-700',
- color: Colors.DARK_BLUE,
- fontSize: getFontSize(12)
- },
- profileDataRoot: {
- gap: 5,
- width: '75%'
- },
- profileDataContainer: {
- display: 'flex',
- justifyContent: 'space-between',
- flexDirection: 'row'
- },
- profileDataWrapper: {
- display: 'flex',
- flexDirection: 'row',
- gap: 10,
- alignItems: 'center'
- },
- profileAge: {
- color: Colors.DARK_BLUE,
- fontWeight: '600',
- fontSize: getFontSize(12)
- },
- countryFlag: {
- width: 20,
- height: 20,
- borderRadius: 20 / 2,
- borderWidth: 0.5,
- borderColor: 'gray'
- }
- });
- export const ScoreStyles = StyleSheet.create({
- scoreWrapper: {
- display: 'flex',
- alignItems: 'center',
- justifyContent: 'center',
- flexDirection: 'column',
- flexBasis: '18%',
- marginBottom: 10,
- width: 40
- },
- scoreHeaderText: {
- fontFamily: 'redhat-700',
- color: Colors.DARK_BLUE,
- fontSize: getFontSize(12),
- textAlign: 'center'
- },
- scoreNameText: {
- color: Colors.DARK_BLUE,
- fontWeight: '600',
- fontSize: getFontSize(11),
- textAlign: 'center'
- },
- rankText: {
- fontSize: 18,
- color: Colors.DARK_BLUE,
- fontWeight: '700',
- position: 'absolute',
- left: -20,
- top: 10
- },
- nmWrapper: {
- paddingTop: 17,
- paddingBottom: 17,
- display: 'flex',
- justifyContent: 'center',
- alignItems: 'center',
- marginLeft: widthPercentageToDP(6)
- },
- rankingWrapper: {
- display: 'flex',
- flexDirection: 'row',
- justifyContent: 'center',
- alignItems: 'center',
- marginBottom: 15,
- flex: 1
- },
- rankingScoresWrapper: {
- display: 'flex',
- flexDirection: 'row',
- justifyContent: 'center',
- alignItems: 'center',
- flexWrap: 'wrap',
- columnGap: 5,
- flex: 1
- },
- activeScoreRanking: {
- fontSize: 20,
- color: Colors.DARK_BLUE,
- fontWeight: '700'
- },
- activeScoreName: {
- fontSize: 14,
- color: Colors.DARK_BLUE,
- fontWeight: '500'
- }
- });
- export const TBTStyles = StyleSheet.create({
- badgeRoot: {
- display: 'flex',
- marginTop: 10
- },
- badgeWrapper: {
- display: 'flex',
- alignItems: 'center'
- }
- });
- export const HorizontalSelectStyles = StyleSheet.create({
- wrapper: {
- display: 'flex',
- justifyContent: 'center',
- alignItems: 'center',
- paddingLeft: 10,
- paddingRight: 10,
- borderRadius: 17,
- height: 33
- },
- text: {
- fontSize: getFontSize(12),
- fontWeight: '600'
- },
- notActiveText: {
- color: Colors.DARK_BLUE
- },
- activeText: {
- color: Colors.WHITE
- },
- notSelected: {
- backgroundColor: Colors.WHITE,
- borderColor: 'rgba(15, 63, 79, 0.3)',
- borderWidth: 1
- },
- selected: {
- backgroundColor: Colors.ORANGE
- }
- });
- export const ModalStyles = StyleSheet.create({
- dropdown: {
- width: '47%',
- height: 40,
- backgroundColor: '#F4F4F4',
- borderRadius: 4,
- paddingHorizontal: 8
- },
- placeholderStyle: {
- fontSize: 16,
- color: Colors.DARK_BLUE
- },
- selectedTextStyle: {
- fontSize: 16,
- color: Colors.DARK_BLUE
- },
- ageAndRankingWrapper: {
- width: '100%',
- display: 'flex',
- flexDirection: 'row',
- alignItems: 'center',
- justifyContent: 'space-between',
- marginTop: 20
- },
- buttonsWrapper: {
- width: '100%',
- display: 'flex',
- justifyContent: 'space-between',
- flexDirection: 'row',
- marginTop: 15
- }
- });
- export const ItemStyles = StyleSheet.create({
- wrapper: {
- display: 'flex',
- alignItems: 'center',
- flexDirection: 'row',
- flex: 1,
- gap: 8
- },
- contentWrapper: {
- flex: 1,
- display: 'flex',
- flexDirection: 'row',
- justifyContent: 'space-between',
- alignItems: 'center',
- },
- bigFlag: {
- width: 36,
- height: 36,
- borderRadius: 18,
- borderWidth: 1,
- borderColor: Colors.DARK_LIGHT
- },
- withFlagWrapper: {
- display: 'flex',
- flexDirection: 'row'
- },
- smallFlag: {
- width: 20,
- height: 20,
- borderRadius: 10,
- borderWidth: 1,
- borderColor: Colors.DARK_LIGHT
- },
- flagSquare: {
- width: 20,
- height: 20,
- resizeMode: 'contain'
- },
- headerContainer: {
- flexDirection: 'row',
- alignItems: 'center',
- gap: 4,
- justifyContent: 'center',
- paddingBottom: 16,
- paddingTop: 8
- },
- nameAndCnt: {
- color: Colors.DARK_BLUE,
- fontWeight: '700'
- },
- headerWrapper: {
- fontSize: getFontSize(14),
- paddingBottom: 16,
- paddingTop: 8,
- textAlign: 'center'
- },
- headerSeriesWrapper: {
- display: 'flex',
- justifyContent: 'center',
- alignItems: 'center',
- flexDirection: 'row',
- gap: 10,
- marginTop: 10,
- marginBottom: 16
- },
- comment: {
- color: Colors.DARK_BLUE,
- textAlign: 'center',
- marginBottom: 8
- }
- });
- export const TriumphsStyles = StyleSheet.create({
- itemContainer: {
- flexDirection: 'row',
- alignItems: 'center',
- gap: 8
- },
- avatar: {
- width: 48,
- height: 48,
- borderRadius: 24,
- borderWidth: 1,
- borderColor: Colors.DARK_LIGHT
- },
- flag: {
- width: 20,
- height: 20,
- borderRadius: 10,
- borderWidth: 1,
- borderColor: Colors.DARK_LIGHT,
- position: 'absolute',
- top: 0,
- right: 0
- },
- text: {
- fontSize: 14,
- fontWeight: '600',
- color: Colors.ORANGE
- },
- reached: {
- color: Colors.DARK_BLUE,
- fontWeight: '400'
- },
- icon: {
- width: 24,
- height: 24
- },
- tresholdContainer: {
- alignItems: 'center',
- justifyContent: 'center',
- gap: 3
- },
- treshold: {
- fontSize: 14,
- fontWeight: '600',
- color: Colors.DARK_BLUE
- }
- });
|