Matrix Docker Ansible eploy
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 

195 rader
5.1 KiB

  1. <style type="text/css">
  2. /* we deliberately inline style here to avoid flash-of-CSS problems, and to avoid
  3. * voodoo where we have to set display: none by default
  4. */
  5. h1::after {
  6. content: "!";
  7. }
  8. .mx_Parent {
  9. display: -webkit-box;
  10. display: -webkit-flex;
  11. display: -ms-flexbox;
  12. display: flex;
  13. -webkit-box-orient: vertical;
  14. -webkit-box-direction: normal;
  15. -webkit-flex-direction: column;
  16. -ms-flex-direction: column;
  17. flex-direction: column;
  18. -webkit-box-pack: center;
  19. -webkit-justify-content: center;
  20. -ms-flex-pack: center;
  21. justify-content: center;
  22. -webkit-box-align: center;
  23. -webkit-align-items: center;
  24. -ms-flex-align: center;
  25. align-items: center;
  26. text-align: center;
  27. padding: 25px 35px;
  28. color: #2e2f32;
  29. }
  30. .mx_Logo {
  31. height: 54px;
  32. margin-top: 2px;
  33. }
  34. .mx_ButtonGroup {
  35. margin-top: 10px;
  36. }
  37. .mx_ButtonRow {
  38. display: -webkit-box;
  39. display: -webkit-flex;
  40. display: -ms-flexbox;
  41. display: flex;
  42. -webkit-justify-content: space-around;
  43. -ms-flex-pack: distribute;
  44. justify-content: space-around;
  45. -webkit-box-align: center;
  46. -webkit-align-items: center;
  47. -ms-flex-align: center;
  48. align-items: center;
  49. justify-content: space-between;
  50. box-sizing: border-box;
  51. margin: 12px 0 0;
  52. }
  53. .mx_ButtonRow > * {
  54. margin: 0 10px;
  55. }
  56. .mx_ButtonRow > *:first-child {
  57. margin-left: 0;
  58. }
  59. .mx_ButtonRow > *:last-child {
  60. margin-right: 0;
  61. }
  62. .mx_ButtonParent {
  63. display: -webkit-box;
  64. display: -webkit-flex;
  65. display: -ms-flexbox;
  66. display: flex;
  67. padding: 10px 20px;
  68. -webkit-box-orient: horizontal;
  69. -webkit-box-direction: normal;
  70. -webkit-flex-direction: row;
  71. -ms-flex-direction: row;
  72. flex-direction: row;
  73. -webkit-box-pack: center;
  74. -webkit-justify-content: center;
  75. -ms-flex-pack: center;
  76. justify-content: center;
  77. -webkit-box-align: center;
  78. -webkit-align-items: center;
  79. -ms-flex-align: center;
  80. align-items: center;
  81. border-radius: 4px;
  82. width: 150px;
  83. background-repeat: no-repeat;
  84. background-position: 10px center;
  85. text-decoration: none;
  86. color: #2e2f32 !important;
  87. }
  88. .mx_ButtonHeadline {
  89. margin-bottom: 14px;
  90. }
  91. .mx_ButtonLabel {
  92. margin-left: 20px;
  93. }
  94. .mx_ButtonWrapperText {
  95. font-size: 13px;
  96. margin-bottom: 10px;
  97. }
  98. .mx_Header_title {
  99. font-size: 24px;
  100. font-weight: 600;
  101. margin: 20px 0 0;
  102. }
  103. .mx_Header_subtitle {
  104. font-size: 12px;
  105. font-weight: normal;
  106. margin: 8px 0 0;
  107. }
  108. .mx_ButtonSignIn {
  109. background-color: #368BD6;
  110. color: white !important;
  111. }
  112. .mx_ButtonCreateAccount {
  113. background-color: #03B381;
  114. color: white !important;
  115. }
  116. .mx_SecondaryButton {
  117. background-color: #FFFFFF;
  118. color: #2E2F32;
  119. }
  120. .mx_Button_iconSignIn {
  121. background-image: url('welcome/images/icon-sign-in.svg');
  122. }
  123. .mx_Button_iconCreateAccount {
  124. background-image: url('welcome/images/icon-create-account.svg');
  125. }
  126. .mx_Button_iconHelp {
  127. background-image: url('welcome/images/icon-help.svg');
  128. }
  129. .mx_Button_iconRoomDirectory {
  130. background-image: url('welcome/images/icon-room-directory.svg');
  131. }
  132. </style>
  133. <div class="mx_Parent">
  134. <a href="https://riot.im" target="_blank" rel="noopener">
  135. <img src="welcome/images/logo.svg" alt="" class="mx_Logo"/>
  136. </a>
  137. <h1 class="mx_Header_title">_t("Welcome to Riot.im")</h1>
  138. <h4 class="mx_Header_subtitle">_t("Decentralised, encrypted chat &amp; collaboration powered by [matrix]")</h4>
  139. <div class="mx_ButtonGroup">
  140. <div class="mx_ButtonRow">
  141. <a href="#/login" class="mx_ButtonParent mx_ButtonSignIn mx_Button_iconSignIn">
  142. <div class="mx_ButtonLabel">_t("Sign In")</div>
  143. </a>
  144. {% if matrix_riot_web_registration_enabled %}
  145. <a href="#/register" class="mx_ButtonParent mx_ButtonCreateAccount mx_Button_iconCreateAccount">
  146. <div class="mx_ButtonLabel">_t("Create Account")</div>
  147. </a>
  148. {% endif %}
  149. </div>
  150. {% if matrix_riot_web_disable_guests != true %}
  151. <!-- The comments below are meant to be used by Ansible as a quick way
  152. to strip out the marked content when desired.
  153. See https://github.com/vector-im/riot-web/issues/8622.
  154. TODO: Convert to config option if possible. -->
  155. <!-- BEGIN Ansible: Remove these lines when guest access is disabled -->
  156. <div class="mx_ButtonRow">
  157. <div>
  158. <div class="mx_ButtonWrapperText">_t("Need help?")</div>
  159. <a href="#/user/@riot-bot:matrix.org?action=chat" class="mx_ButtonParent mx_SecondaryButton mx_Button_iconHelp">
  160. <div class="mx_ButtonLabel">_t("Chat with Riot Bot")</div>
  161. </a>
  162. </div>
  163. <div>
  164. <div class="mx_ButtonWrapperText">_t("Explore rooms")</div>
  165. <a href="#/directory" class="mx_ButtonParent mx_SecondaryButton mx_Button_iconRoomDirectory">
  166. <div class="mx_ButtonLabel">_t("Room Directory")</div>
  167. </a>
  168. </div>
  169. </div>
  170. <!-- END Ansible: Remove these lines when guest access is disabled -->
  171. {% endif %}
  172. </div>
  173. </div>