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 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. import { BoxModel, ColorPalette, createStyleSheet } from '../../base/styles';
  2. /**
  3. * The default color of text on the WelcomePage.
  4. */
  5. const TEXT_COLOR = ColorPalette.white;
  6. /**
  7. * The styles of WelcomePage.
  8. */
  9. export const styles = createStyleSheet({
  10. /**
  11. * Join button style.
  12. */
  13. button: {
  14. backgroundColor: ColorPalette.white,
  15. borderColor: ColorPalette.white,
  16. borderRadius: 8,
  17. borderWidth: 1,
  18. height: 45,
  19. justifyContent: 'center',
  20. marginBottom: BoxModel.margin,
  21. marginTop: BoxModel.margin
  22. },
  23. /**
  24. * Join button text style.
  25. */
  26. buttonText: {
  27. alignSelf: 'center',
  28. color: '#00ccff',
  29. fontSize: 18
  30. },
  31. /**
  32. * The style of the top-level container of WelcomePage.
  33. */
  34. container: {
  35. alignSelf: 'stretch',
  36. backgroundColor: ColorPalette.blue,
  37. flex: 1
  38. },
  39. /**
  40. * The style of the legal-related content such as (hyper)links to Privacy
  41. * Policy and Terms of Service displayed on the WelcomePage.
  42. */
  43. legaleseContainer: {
  44. flex: 0,
  45. flexDirection: 'row',
  46. justifyContent: 'center'
  47. },
  48. /**
  49. * The style of a piece of legal-related content such as a (hyper)link to
  50. * Privacy Policy or Terms of Service displayed on the WelcomePage.
  51. */
  52. legaleseItem: {
  53. color: TEXT_COLOR,
  54. margin: BoxModel.margin
  55. },
  56. /**
  57. * The style of the View displayed over the local video. The latter is
  58. * thought of as the background (content) of WelcomePage. The former is
  59. * thought of as the foreground (content) of WelcomePage.
  60. */
  61. localVideoOverlay: {
  62. // Since (1) the top-level container of WelcomePage is not transparent
  63. // and, more importantly, (2) this View is displayed over the local
  64. // video, this View would better not have a background color.
  65. // Otherwise, Views within this View will inherit its background color
  66. // and Text, for example, will display non-transparent rectangles over
  67. // the local video.
  68. backgroundColor: 'transparent',
  69. bottom: 0,
  70. flex: 1,
  71. flexDirection: 'column',
  72. left: 0,
  73. position: 'absolute',
  74. right: 0,
  75. top: 0
  76. },
  77. /**
  78. * Container for room name input box and 'join' button.
  79. */
  80. roomContainer: {
  81. flex: 1,
  82. flexDirection: 'column',
  83. justifyContent: 'center',
  84. margin: 3 * BoxModel.margin
  85. },
  86. /**
  87. * Room input style.
  88. */
  89. textInput: {
  90. backgroundColor: 'transparent',
  91. borderColor: ColorPalette.white,
  92. borderRadius: 8,
  93. borderStyle: 'solid',
  94. borderWidth: 1,
  95. color: TEXT_COLOR,
  96. fontSize: 23,
  97. height: 50,
  98. padding: 4,
  99. textAlign: 'center'
  100. },
  101. /**
  102. * Application title style.
  103. */
  104. title: {
  105. color: TEXT_COLOR,
  106. fontSize: 25,
  107. marginBottom: 2 * BoxModel.margin,
  108. textAlign: 'center'
  109. }
  110. });