styles.ts 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. import { Colors } from '../../../../theme';
  2. import { StyleSheet } from 'react-native';
  3. import { getFontSize } from '../../../../utils';
  4. import { widthPercentageToDP } from '../../ProfileScreen/navigation-opts';
  5. export const ProfileStyles = StyleSheet.create({
  6. badge: {
  7. width: 36,
  8. height: 14,
  9. borderRadius: 7,
  10. display: 'flex',
  11. justifyContent: 'center',
  12. alignItems: 'center'
  13. },
  14. badgesWrapper: {
  15. display: 'flex',
  16. flexDirection: 'row',
  17. gap: 3,
  18. marginLeft: 10
  19. },
  20. profileRoot: {
  21. alignItems: 'center',
  22. flexDirection: 'row',
  23. gap: 10,
  24. marginBottom: 5
  25. },
  26. profileAvatar: {
  27. borderRadius: 24,
  28. width: 48,
  29. height: 48
  30. },
  31. profileFirstLastName: {
  32. flex: 1,
  33. fontFamily: 'redhat-700',
  34. color: Colors.DARK_BLUE,
  35. fontSize: getFontSize(12)
  36. },
  37. profileDataRoot: {
  38. gap: 5,
  39. width: '75%'
  40. },
  41. profileDataContainer: {
  42. display: 'flex',
  43. justifyContent: 'space-between',
  44. flexDirection: 'row'
  45. },
  46. profileDataWrapper: {
  47. display: 'flex',
  48. flexDirection: 'row',
  49. gap: 10,
  50. alignItems: 'center'
  51. },
  52. profileAge: {
  53. color: Colors.DARK_BLUE,
  54. fontWeight: '600',
  55. fontSize: getFontSize(12)
  56. },
  57. countryFlag: {
  58. width: 20,
  59. height: 20,
  60. borderRadius: 20 / 2,
  61. borderWidth: 0.5,
  62. borderColor: 'gray'
  63. }
  64. });
  65. export const ScoreStyles = StyleSheet.create({
  66. scoreWrapper: {
  67. display: 'flex',
  68. alignItems: 'center',
  69. justifyContent: 'center',
  70. flexDirection: 'column',
  71. flexBasis: '18%',
  72. marginBottom: 10,
  73. width: 40
  74. },
  75. scoreHeaderText: {
  76. fontFamily: 'redhat-700',
  77. color: Colors.DARK_BLUE,
  78. fontSize: getFontSize(12),
  79. textAlign: 'center'
  80. },
  81. scoreNameText: {
  82. color: Colors.DARK_BLUE,
  83. fontWeight: '600',
  84. fontSize: getFontSize(11),
  85. textAlign: 'center'
  86. },
  87. rankText: {
  88. fontSize: 18,
  89. color: Colors.DARK_BLUE,
  90. fontWeight: '700',
  91. position: 'absolute',
  92. left: -20,
  93. top: 10
  94. },
  95. nmWrapper: {
  96. paddingTop: 17,
  97. paddingBottom: 17,
  98. display: 'flex',
  99. justifyContent: 'center',
  100. alignItems: 'center',
  101. marginLeft: widthPercentageToDP(6)
  102. },
  103. rankingWrapper: {
  104. display: 'flex',
  105. flexDirection: 'row',
  106. justifyContent: 'center',
  107. alignItems: 'center',
  108. marginBottom: 15,
  109. flex: 1
  110. },
  111. rankingScoresWrapper: {
  112. display: 'flex',
  113. flexDirection: 'row',
  114. justifyContent: 'center',
  115. alignItems: 'center',
  116. flexWrap: 'wrap',
  117. columnGap: 5,
  118. flex: 1
  119. },
  120. activeScoreRanking: {
  121. fontSize: 20,
  122. color: Colors.DARK_BLUE,
  123. fontWeight: '700'
  124. },
  125. activeScoreName: {
  126. fontSize: 14,
  127. color: Colors.DARK_BLUE,
  128. fontWeight: '500'
  129. }
  130. });
  131. export const TBTStyles = StyleSheet.create({
  132. badgeRoot: {
  133. display: 'flex',
  134. marginTop: 10
  135. },
  136. badgeWrapper: {
  137. display: 'flex',
  138. alignItems: 'center'
  139. }
  140. });
  141. export const HorizontalSelectStyles = StyleSheet.create({
  142. wrapper: {
  143. display: 'flex',
  144. justifyContent: 'center',
  145. alignItems: 'center',
  146. paddingLeft: 10,
  147. paddingRight: 10,
  148. borderRadius: 17,
  149. height: 33
  150. },
  151. text: {
  152. fontSize: getFontSize(12),
  153. fontWeight: '600'
  154. },
  155. notActiveText: {
  156. color: Colors.DARK_BLUE
  157. },
  158. activeText: {
  159. color: Colors.WHITE
  160. },
  161. notSelected: {
  162. backgroundColor: Colors.WHITE,
  163. borderColor: 'rgba(15, 63, 79, 0.3)',
  164. borderWidth: 1
  165. },
  166. selected: {
  167. backgroundColor: Colors.ORANGE
  168. }
  169. });
  170. export const ModalStyles = StyleSheet.create({
  171. dropdown: {
  172. width: '47%',
  173. height: 40,
  174. backgroundColor: '#F4F4F4',
  175. borderRadius: 4,
  176. paddingHorizontal: 8
  177. },
  178. placeholderStyle: {
  179. fontSize: 16,
  180. color: Colors.DARK_BLUE
  181. },
  182. selectedTextStyle: {
  183. fontSize: 16,
  184. color: Colors.DARK_BLUE
  185. },
  186. ageAndRankingWrapper: {
  187. width: '100%',
  188. display: 'flex',
  189. flexDirection: 'row',
  190. alignItems: 'center',
  191. justifyContent: 'space-between',
  192. marginTop: 20
  193. },
  194. buttonsWrapper: {
  195. width: '100%',
  196. display: 'flex',
  197. justifyContent: 'space-between',
  198. flexDirection: 'row',
  199. marginTop: 15
  200. }
  201. });