Matrix Docker Ansible eploy
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

206 linhas
5.3 KiB

  1. #jinja2: lstrip_blocks: True
  2. <style type="text/css">
  3. /* we deliberately inline style here to avoid flash-of-CSS problems, and to avoid
  4. * voodoo where we have to set display: none by default
  5. */
  6. h1::after {
  7. content: "!";
  8. }
  9. .mx_Parent {
  10. display: -webkit-box;
  11. display: -webkit-flex;
  12. display: -ms-flexbox;
  13. display: flex;
  14. -webkit-box-orient: vertical;
  15. -webkit-box-direction: normal;
  16. -webkit-flex-direction: column;
  17. -ms-flex-direction: column;
  18. flex-direction: column;
  19. -webkit-box-pack: center;
  20. -webkit-justify-content: center;
  21. -ms-flex-pack: center;
  22. justify-content: center;
  23. -webkit-box-align: center;
  24. -webkit-align-items: center;
  25. -ms-flex-align: center;
  26. align-items: center;
  27. text-align: center;
  28. padding: 25px 35px;
  29. color: #2e2f32;
  30. }
  31. .mx_Logo {
  32. height: 54px;
  33. margin-top: 2px;
  34. }
  35. .mx_ButtonGroup {
  36. margin-top: 10px;
  37. }
  38. .mx_ButtonRow {
  39. display: -webkit-box;
  40. display: -webkit-flex;
  41. display: -ms-flexbox;
  42. display: flex;
  43. -webkit-justify-content: space-around;
  44. -ms-flex-pack: distribute;
  45. justify-content: space-around;
  46. -webkit-box-align: center;
  47. -webkit-align-items: center;
  48. -ms-flex-align: center;
  49. align-items: center;
  50. justify-content: space-between;
  51. box-sizing: border-box;
  52. margin: 12px 0 0;
  53. }
  54. .mx_ButtonRow > * {
  55. margin: 0 10px;
  56. }
  57. .mx_ButtonRow > *:first-child {
  58. margin-left: 0;
  59. }
  60. .mx_ButtonRow > *:last-child {
  61. margin-right: 0;
  62. }
  63. .mx_ButtonParent {
  64. display: -webkit-box;
  65. display: -webkit-flex;
  66. display: -ms-flexbox;
  67. display: flex;
  68. padding: 10px 20px;
  69. -webkit-box-orient: horizontal;
  70. -webkit-box-direction: normal;
  71. -webkit-flex-direction: row;
  72. -ms-flex-direction: row;
  73. flex-direction: row;
  74. -webkit-box-pack: center;
  75. -webkit-justify-content: center;
  76. -ms-flex-pack: center;
  77. justify-content: center;
  78. -webkit-box-align: center;
  79. -webkit-align-items: center;
  80. -ms-flex-align: center;
  81. align-items: center;
  82. border-radius: 4px;
  83. width: 150px;
  84. background-repeat: no-repeat;
  85. background-position: 10px center;
  86. text-decoration: none;
  87. color: #2e2f32 !important;
  88. }
  89. .mx_ButtonLabel {
  90. margin-left: 20px;
  91. }
  92. .mx_Header_title {
  93. font-size: 24px;
  94. font-weight: 600;
  95. margin: 20px 0 0;
  96. }
  97. .mx_Header_subtitle {
  98. font-size: 12px;
  99. font-weight: normal;
  100. margin: 8px 0 0;
  101. }
  102. .mx_ButtonSignIn {
  103. background-color: #368BD6;
  104. color: white !important;
  105. }
  106. .mx_ButtonCreateAccount {
  107. background-color: #0DBD8B;
  108. color: white !important;
  109. }
  110. .mx_SecondaryButton {
  111. background-color: #FFFFFF;
  112. color: #2E2F32;
  113. }
  114. .mx_Button_iconSignIn {
  115. background-image: url('welcome/images/icon-sign-in.svg');
  116. }
  117. .mx_Button_iconCreateAccount {
  118. background-image: url('welcome/images/icon-create-account.svg');
  119. }
  120. .mx_Button_iconHelp {
  121. background-image: url('welcome/images/icon-help.svg');
  122. }
  123. .mx_Button_iconRoomDirectory {
  124. background-image: url('welcome/images/icon-room-directory.svg');
  125. }
  126. /*
  127. .mx_WelcomePage_loggedIn is applied by EmbeddedPage from the Welcome component
  128. If it is set on the page, we should show the buttons. Otherwise, we have to assume
  129. we don't have an account and should hide them. No account == no guest account either.
  130. */
  131. .mx_WelcomePage:not(.mx_WelcomePage_loggedIn) .mx_WelcomePage_guestFunctions {
  132. display: none;
  133. }
  134. .mx_ButtonRow.mx_WelcomePage_guestFunctions {
  135. margin-top: 20px;
  136. }
  137. .mx_ButtonRow.mx_WelcomePage_guestFunctions > div {
  138. margin: 0 auto;
  139. }
  140. @media only screen and (max-width: 480px) {
  141. .mx_ButtonRow {
  142. flex-direction: column;
  143. }
  144. .mx_ButtonRow > * {
  145. margin: 0 0 10px 0;
  146. }
  147. }
  148. </style>
  149. <div class="mx_Parent">
  150. <a href="{{ matrix_client_element_welcome_logo_link }}" target="_blank" rel="noopener">
  151. <img src="{{ matrix_client_element_welcome_logo }}" alt="" class="mx_Logo"/>
  152. </a>
  153. <h1 class="mx_Header_title">{{ matrix_client_element_welcome_headline }}</h1>
  154. <h4 class="mx_Header_subtitle">{{ matrix_client_element_welcome_text }}</h4>
  155. <div class="mx_ButtonGroup">
  156. <div class="mx_ButtonRow">
  157. <a href="#/login" class="mx_ButtonParent mx_ButtonSignIn mx_Button_iconSignIn">
  158. <div class="mx_ButtonLabel">_t("action|sign_in")</div>
  159. </a>
  160. {% if matrix_client_element_registration_enabled %}
  161. <a href="#/register" class="mx_ButtonParent mx_ButtonCreateAccount mx_Button_iconCreateAccount">
  162. <div class="mx_ButtonLabel">_t("action|create_account")</div>
  163. </a>
  164. {% endif %}
  165. </div>
  166. {% if matrix_client_element_disable_guests != true %}
  167. <!-- The comments below are meant to be used by Ansible as a quick way
  168. to strip out the marked content when desired.
  169. See https://github.com/element-hq/riot-web/issues/8622.
  170. TODO: Convert to config option if possible. -->
  171. <!-- BEGIN Ansible: Remove these lines when guest access is disabled -->
  172. <div class="mx_ButtonRow mx_WelcomePage_guestFunctions">
  173. <div>
  174. <a href="#/directory" class="mx_ButtonParent mx_SecondaryButton mx_Button_iconRoomDirectory">
  175. <div class="mx_ButtonLabel">_t("action|explore_rooms")</div>
  176. </a>
  177. </div>
  178. </div>
  179. <!-- END Ansible: Remove these lines when guest access is disabled -->
  180. {% endif %}
  181. </div>
  182. </div>