Matrix Docker Ansible eploy
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

196 Zeilen
5.2 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_ButtonHeadline {
  90. margin-bottom: 14px;
  91. }
  92. .mx_ButtonLabel {
  93. margin-left: 20px;
  94. }
  95. .mx_ButtonWrapperText {
  96. font-size: 13px;
  97. margin-bottom: 10px;
  98. }
  99. .mx_Header_title {
  100. font-size: 24px;
  101. font-weight: 600;
  102. margin: 20px 0 0;
  103. }
  104. .mx_Header_subtitle {
  105. font-size: 12px;
  106. font-weight: normal;
  107. margin: 8px 0 0;
  108. }
  109. .mx_ButtonSignIn {
  110. background-color: #368BD6;
  111. color: white !important;
  112. }
  113. .mx_ButtonCreateAccount {
  114. background-color: #03B381;
  115. color: white !important;
  116. }
  117. .mx_SecondaryButton {
  118. background-color: #FFFFFF;
  119. color: #2E2F32;
  120. }
  121. .mx_Button_iconSignIn {
  122. background-image: url('welcome/images/icon-sign-in.svg');
  123. }
  124. .mx_Button_iconCreateAccount {
  125. background-image: url('welcome/images/icon-create-account.svg');
  126. }
  127. .mx_Button_iconHelp {
  128. background-image: url('welcome/images/icon-help.svg');
  129. }
  130. .mx_Button_iconRoomDirectory {
  131. background-image: url('welcome/images/icon-room-directory.svg');
  132. }
  133. </style>
  134. <div class="mx_Parent">
  135. <a href="{{ matrix_client_element_welcome_logo_link }}" target="_blank" rel="noopener">
  136. <img src="{{ matrix_client_element_welcome_logo }}" alt="" class="mx_Logo"/>
  137. </a>
  138. <h1 class="mx_Header_title">{{ matrix_client_element_welcome_headline }}</h1>
  139. <h4 class="mx_Header_subtitle">{{ matrix_client_element_welcome_text }}</h4>
  140. <div class="mx_ButtonGroup">
  141. <div class="mx_ButtonRow">
  142. <a href="#/login" class="mx_ButtonParent mx_ButtonSignIn mx_Button_iconSignIn">
  143. <div class="mx_ButtonLabel">_t("Sign In")</div>
  144. </a>
  145. {% if matrix_client_element_registration_enabled %}
  146. <a href="#/register" class="mx_ButtonParent mx_ButtonCreateAccount mx_Button_iconCreateAccount">
  147. <div class="mx_ButtonLabel">_t("Create Account")</div>
  148. </a>
  149. {% endif %}
  150. </div>
  151. {% if matrix_client_element_disable_guests != true %}
  152. <!-- The comments below are meant to be used by Ansible as a quick way
  153. to strip out the marked content when desired.
  154. See https://github.com/vector-im/riot-web/issues/8622.
  155. TODO: Convert to config option if possible. -->
  156. <!-- BEGIN Ansible: Remove these lines when guest access is disabled -->
  157. <div class="mx_ButtonRow">
  158. <div>
  159. <div class="mx_ButtonWrapperText">_t("Need help?")</div>
  160. <a href="#/user/@riot-bot:matrix.org?action=chat" class="mx_ButtonParent mx_SecondaryButton mx_Button_iconHelp">
  161. <div class="mx_ButtonLabel">_t("Chat with Riot Bot")</div>
  162. </a>
  163. </div>
  164. <div>
  165. <div class="mx_ButtonWrapperText">_t("Explore rooms")</div>
  166. <a href="#/directory" class="mx_ButtonParent mx_SecondaryButton mx_Button_iconRoomDirectory">
  167. <div class="mx_ButtonLabel">_t("Room Directory")</div>
  168. </a>
  169. </div>
  170. </div>
  171. <!-- END Ansible: Remove these lines when guest access is disabled -->
  172. {% endif %}
  173. </div>
  174. </div>