Matrix Docker Ansible eploy
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

215 wiersze
5.7 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. /* Element Web (with its default use_system_theme behavior) renders its dark background
  149. when the system prefers a dark color scheme, so the welcome text follows the same signal.
  150. #ebeef2 is the light text color Element uses with the dark theme. */
  151. @media (prefers-color-scheme: dark) {
  152. .mx_Parent {
  153. color: #ebeef2;
  154. }
  155. }
  156. </style>
  157. <div class="mx_Parent">
  158. <a href="{{ matrix_client_element_welcome_logo_link }}" target="_blank" rel="noopener">
  159. <img src="{{ matrix_client_element_welcome_logo }}" alt="" class="mx_Logo"/>
  160. </a>
  161. <h1 class="mx_Header_title">{{ matrix_client_element_welcome_headline }}</h1>
  162. <h4 class="mx_Header_subtitle">{{ matrix_client_element_welcome_text }}</h4>
  163. <div class="mx_ButtonGroup">
  164. <div class="mx_ButtonRow">
  165. <a href="#/login" class="mx_ButtonParent mx_ButtonSignIn mx_Button_iconSignIn">
  166. <div class="mx_ButtonLabel">_t("action|sign_in")</div>
  167. </a>
  168. {% if matrix_client_element_registration_enabled %}
  169. <a href="#/register" class="mx_ButtonParent mx_ButtonCreateAccount mx_Button_iconCreateAccount">
  170. <div class="mx_ButtonLabel">_t("action|create_account")</div>
  171. </a>
  172. {% endif %}
  173. </div>
  174. {% if matrix_client_element_disable_guests != true %}
  175. <!-- The comments below are meant to be used by Ansible as a quick way
  176. to strip out the marked content when desired.
  177. See https://github.com/element-hq/riot-web/issues/8622.
  178. TODO: Convert to config option if possible. -->
  179. <!-- BEGIN Ansible: Remove these lines when guest access is disabled -->
  180. <div class="mx_ButtonRow mx_WelcomePage_guestFunctions">
  181. <div>
  182. <a href="#/directory" class="mx_ButtonParent mx_SecondaryButton mx_Button_iconRoomDirectory">
  183. <div class="mx_ButtonLabel">_t("action|explore_rooms")</div>
  184. </a>
  185. </div>
  186. </div>
  187. <!-- END Ansible: Remove these lines when guest access is disabled -->
  188. {% endif %}
  189. </div>
  190. </div>