styles.tsx 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. import { Dimensions, StyleSheet } from 'react-native';
  2. import { Colors } from 'src/theme';
  3. import { getFontSize } from 'src/utils';
  4. const screenWidth = Dimensions.get('window').width;
  5. const IMAGE_HEIGHT = screenWidth * 0.75;
  6. export const styles = StyleSheet.create({
  7. container: {
  8. flex: 1,
  9. justifyContent: 'center',
  10. alignItems: 'center'
  11. },
  12. viewShot: {
  13. backgroundColor: 'transparent',
  14. height: IMAGE_HEIGHT,
  15. width: screenWidth,
  16. alignItems: 'center'
  17. },
  18. imageContainer: {
  19. width: screenWidth,
  20. alignItems: 'center',
  21. backgroundColor: Colors.WHITE,
  22. borderWidth: 2,
  23. borderColor: Colors.FILL_LIGHT,
  24. borderRadius: 16,
  25. height: IMAGE_HEIGHT
  26. },
  27. imageWrapper: {
  28. height: IMAGE_HEIGHT * 0.44,
  29. width: screenWidth - 4,
  30. overflow: 'hidden',
  31. backgroundColor: '#EBF2F5',
  32. borderTopLeftRadius: 14,
  33. borderTopRightRadius: 14,
  34. alignItems: 'flex-start'
  35. },
  36. usersMap: {
  37. width: '100%',
  38. height: '120%'
  39. },
  40. pageWrapper: {
  41. flexDirection: 'row',
  42. gap: 12,
  43. marginTop: -34
  44. },
  45. avatarWrapper: {
  46. gap: 8
  47. },
  48. avatar: {
  49. borderRadius: 64 / 2,
  50. width: 64,
  51. height: 64,
  52. borderWidth: 2,
  53. borderColor: Colors.WHITE
  54. },
  55. userInfoSection: {
  56. gap: 5,
  57. flex: 1
  58. },
  59. userNameSpacer: {
  60. height: 34
  61. },
  62. nameRow: {
  63. flexDirection: 'row',
  64. justifyContent: 'space-between',
  65. alignItems: 'center'
  66. },
  67. headerText: {
  68. flex: 1,
  69. fontFamily: 'redhat-700',
  70. color: Colors.DARK_BLUE,
  71. fontSize: screenWidth > 330 ? getFontSize(18) : getFontSize(16)
  72. },
  73. userInfo: {
  74. flexDirection: 'row',
  75. gap: 10,
  76. alignItems: 'center',
  77. justifyContent: 'space-between'
  78. },
  79. flagsContainer: {
  80. flexDirection: 'row'
  81. },
  82. countryFlag: {
  83. width: 20,
  84. height: 20,
  85. borderRadius: 10,
  86. borderWidth: 0.5,
  87. borderColor: Colors.BORDER_LIGHT
  88. },
  89. additionalFlag: {
  90. marginLeft: -7,
  91. width: 20,
  92. height: 20,
  93. borderRadius: 10,
  94. borderWidth: 0.5,
  95. borderColor: Colors.BORDER_LIGHT
  96. },
  97. scoreContainer: {
  98. flexDirection: 'row',
  99. alignItems: 'center',
  100. marginTop: 12,
  101. justifyContent: 'space-around',
  102. width: '100%'
  103. },
  104. rankingItem: {
  105. width: '31%',
  106. flexDirection: 'column',
  107. alignItems: 'center',
  108. justifyContent: 'center',
  109. backgroundColor: Colors.FILL_LIGHT,
  110. borderRadius: 10,
  111. padding: 4,
  112. gap: 4,
  113. height: IMAGE_HEIGHT / 5.5
  114. },
  115. rankingItemRow: {
  116. flexDirection: 'row',
  117. gap: 4,
  118. alignItems: 'center'
  119. },
  120. rankingScore: {
  121. fontFamily: 'montserrat-700',
  122. color: Colors.DARK_BLUE,
  123. fontSize: getFontSize(16)
  124. },
  125. flagImage: {
  126. borderRadius: 0,
  127. height: 15,
  128. width: 20,
  129. borderWidth: 0.5,
  130. borderColor: Colors.BORDER_LIGHT
  131. },
  132. titleText: {
  133. color: Colors.DARK_BLUE,
  134. fontWeight: '600',
  135. fontSize: getFontSize(16)
  136. },
  137. nomadManiaContainer: {
  138. flex: 1,
  139. justifyContent: 'center',
  140. alignItems: 'center'
  141. },
  142. nomadManiaText: {
  143. color: Colors.ORANGE,
  144. fontWeight: '700',
  145. fontSize: 16,
  146. textAlign: 'center'
  147. },
  148. shareButton: {
  149. paddingVertical: 12,
  150. borderRadius: 4,
  151. alignItems: 'center',
  152. justifyContent: 'center',
  153. paddingHorizontal: 16,
  154. gap: 4,
  155. borderWidth: 1,
  156. backgroundColor: Colors.ORANGE,
  157. borderColor: Colors.ORANGE,
  158. marginVertical: 8
  159. },
  160. shareButtonText: {
  161. fontSize: getFontSize(14),
  162. fontWeight: 'bold',
  163. fontFamily: 'redhat-700',
  164. color: Colors.WHITE
  165. }
  166. });