You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

styles.js 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. import { ColorPalette, createStyleSheet } from '../../../base/styles';
  2. const BUTTON_SIZE = 56;
  3. const CALLER_AVATAR_BORDER_WIDTH = 3;
  4. export const CALLER_AVATAR_SIZE = 128;
  5. const CALLER_AVATAR_CIRCLE_SIZE
  6. = CALLER_AVATAR_SIZE + (2 * CALLER_AVATAR_BORDER_WIDTH);
  7. const LINE_SPACING = 8;
  8. const PAGE_PADDING = 48;
  9. const _icon = {
  10. alignSelf: 'center',
  11. color: ColorPalette.white,
  12. fontSize: 32
  13. };
  14. const _responseButton = {
  15. alignSelf: 'center',
  16. borderRadius: BUTTON_SIZE / 2,
  17. borderWidth: 0,
  18. flex: 0,
  19. flexDirection: 'row',
  20. height: BUTTON_SIZE,
  21. justifyContent: 'center',
  22. width: BUTTON_SIZE
  23. };
  24. const _text = {
  25. color: ColorPalette.white,
  26. fontSize: 16
  27. };
  28. export default createStyleSheet({
  29. answerButtonStyles: {
  30. iconStyle: {
  31. ..._icon,
  32. transform: [
  33. { rotateZ: '130deg' }
  34. ]
  35. },
  36. style: {
  37. ..._responseButton,
  38. backgroundColor: ColorPalette.green
  39. },
  40. underlayColor: ColorPalette.buttonUnderlay
  41. },
  42. avatar: {
  43. marginLeft: CALLER_AVATAR_BORDER_WIDTH,
  44. marginTop: CALLER_AVATAR_BORDER_WIDTH,
  45. position: 'absolute'
  46. },
  47. avatarBorder: {
  48. borderRadius: CALLER_AVATAR_CIRCLE_SIZE / 2,
  49. height: CALLER_AVATAR_CIRCLE_SIZE,
  50. position: 'absolute',
  51. width: CALLER_AVATAR_CIRCLE_SIZE
  52. },
  53. avatarContainer: {
  54. height: CALLER_AVATAR_CIRCLE_SIZE,
  55. marginTop: LINE_SPACING * 4,
  56. width: CALLER_AVATAR_CIRCLE_SIZE
  57. },
  58. backgroundAvatar: {
  59. bottom: 0,
  60. left: 0,
  61. position: 'absolute',
  62. right: 0,
  63. top: 0
  64. },
  65. backgroundAvatarImage: {
  66. flex: 1
  67. },
  68. buttonsContainer: {
  69. alignItems: 'flex-end',
  70. flex: 1,
  71. flexDirection: 'row'
  72. },
  73. buttonText: {
  74. ..._text,
  75. alignSelf: 'center',
  76. marginTop: 1.5 * LINE_SPACING
  77. },
  78. buttonWrapper: {
  79. flex: 1
  80. },
  81. callerName: {
  82. ..._text,
  83. fontSize: 36,
  84. marginBottom: LINE_SPACING,
  85. marginLeft: PAGE_PADDING,
  86. marginRight: PAGE_PADDING,
  87. marginTop: LINE_SPACING,
  88. textAlign: 'center'
  89. },
  90. declineButtonStyles: {
  91. iconStyle: _icon,
  92. style: {
  93. ..._responseButton,
  94. backgroundColor: ColorPalette.red
  95. },
  96. underlayColor: ColorPalette.buttonUnderlay
  97. },
  98. pageContainer: {
  99. alignItems: 'center',
  100. flex: 1,
  101. paddingBottom: PAGE_PADDING,
  102. paddingTop: PAGE_PADDING
  103. },
  104. productLabel: {
  105. ..._text
  106. },
  107. title: {
  108. ..._text
  109. }
  110. });