styles.ts 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  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. });
  202. export const ItemStyles = StyleSheet.create({
  203. wrapper: {
  204. display: 'flex',
  205. alignItems: 'center',
  206. flexDirection: 'row',
  207. flex: 1,
  208. gap: 8
  209. },
  210. contentWrapper: {
  211. flex: 1,
  212. display: 'flex',
  213. flexDirection: 'row',
  214. justifyContent: 'space-between',
  215. alignItems: 'center',
  216. },
  217. bigFlag: {
  218. width: 36,
  219. height: 36,
  220. borderRadius: 18,
  221. borderWidth: 1,
  222. borderColor: Colors.DARK_LIGHT
  223. },
  224. withFlagWrapper: {
  225. display: 'flex',
  226. flexDirection: 'row'
  227. },
  228. smallFlag: {
  229. width: 20,
  230. height: 20,
  231. borderRadius: 10,
  232. borderWidth: 1,
  233. borderColor: Colors.DARK_LIGHT
  234. },
  235. flagSquare: {
  236. width: 20,
  237. height: 20,
  238. resizeMode: 'contain'
  239. },
  240. headerContainer: {
  241. flexDirection: 'row',
  242. alignItems: 'center',
  243. gap: 4,
  244. justifyContent: 'center',
  245. paddingBottom: 16,
  246. paddingTop: 8
  247. },
  248. nameAndCnt: {
  249. color: Colors.DARK_BLUE,
  250. fontWeight: '700'
  251. },
  252. headerWrapper: {
  253. fontSize: getFontSize(14),
  254. paddingBottom: 16,
  255. paddingTop: 8,
  256. textAlign: 'center'
  257. },
  258. headerSeriesWrapper: {
  259. display: 'flex',
  260. justifyContent: 'center',
  261. alignItems: 'center',
  262. flexDirection: 'row',
  263. gap: 10,
  264. marginTop: 10,
  265. marginBottom: 16
  266. },
  267. comment: {
  268. color: Colors.DARK_BLUE,
  269. textAlign: 'center',
  270. marginBottom: 8
  271. }
  272. });
  273. export const TriumphsStyles = StyleSheet.create({
  274. itemContainer: {
  275. flexDirection: 'row',
  276. alignItems: 'center',
  277. gap: 8
  278. },
  279. avatar: {
  280. width: 48,
  281. height: 48,
  282. borderRadius: 24,
  283. borderWidth: 1,
  284. borderColor: Colors.DARK_LIGHT
  285. },
  286. flag: {
  287. width: 20,
  288. height: 20,
  289. borderRadius: 10,
  290. borderWidth: 1,
  291. borderColor: Colors.DARK_LIGHT,
  292. position: 'absolute',
  293. top: 0,
  294. right: 0
  295. },
  296. text: {
  297. fontSize: 14,
  298. fontWeight: '600',
  299. color: Colors.ORANGE
  300. },
  301. reached: {
  302. color: Colors.DARK_BLUE,
  303. fontWeight: '400'
  304. },
  305. icon: {
  306. width: 24,
  307. height: 24
  308. },
  309. tresholdContainer: {
  310. alignItems: 'center',
  311. justifyContent: 'center',
  312. gap: 3
  313. },
  314. treshold: {
  315. fontSize: 14,
  316. fontWeight: '600',
  317. color: Colors.DARK_BLUE
  318. }
  319. });