2017-06-08 18:42:03 +08:00
|
|
|
<style type="text/css">
|
|
|
|
/* we deliberately inline style here to avoid flash-of-CSS problems, and to avoid
|
|
|
|
* voodoo where we have to set display: none by default
|
|
|
|
*/
|
|
|
|
|
2019-02-02 02:07:51 +08:00
|
|
|
h1::after {
|
|
|
|
content: "!";
|
|
|
|
}
|
2022-12-09 20:28:29 +08:00
|
|
|
|
2019-02-02 02:07:51 +08:00
|
|
|
.mx_Parent {
|
2019-02-08 18:22:07 +08:00
|
|
|
display: -webkit-box;
|
|
|
|
display: -webkit-flex;
|
|
|
|
display: -ms-flexbox;
|
|
|
|
display: flex;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-webkit-box-direction: normal;
|
|
|
|
-webkit-flex-direction: column;
|
|
|
|
-ms-flex-direction: column;
|
|
|
|
flex-direction: column;
|
|
|
|
-webkit-box-pack: center;
|
|
|
|
-webkit-justify-content: center;
|
|
|
|
-ms-flex-pack: center;
|
|
|
|
justify-content: center;
|
|
|
|
-webkit-box-align: center;
|
|
|
|
-webkit-align-items: center;
|
|
|
|
-ms-flex-align: center;
|
|
|
|
align-items: center;
|
|
|
|
text-align: center;
|
2019-02-08 18:29:14 +08:00
|
|
|
padding: 25px 35px;
|
2019-02-08 19:17:36 +08:00
|
|
|
color: #2e2f32;
|
|
|
|
}
|
2022-12-09 20:28:29 +08:00
|
|
|
|
2019-02-08 19:17:36 +08:00
|
|
|
.mx_Logo {
|
|
|
|
height: 54px;
|
|
|
|
margin-top: 2px;
|
|
|
|
}
|
2022-12-09 20:28:29 +08:00
|
|
|
|
2019-02-08 19:17:36 +08:00
|
|
|
.mx_ButtonGroup {
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
2022-12-09 20:28:29 +08:00
|
|
|
|
2019-02-08 19:17:36 +08:00
|
|
|
.mx_ButtonRow {
|
|
|
|
display: -webkit-box;
|
|
|
|
display: -webkit-flex;
|
|
|
|
display: -ms-flexbox;
|
|
|
|
display: flex;
|
|
|
|
-webkit-justify-content: space-around;
|
|
|
|
-ms-flex-pack: distribute;
|
|
|
|
-webkit-box-align: center;
|
|
|
|
-webkit-align-items: center;
|
|
|
|
-ms-flex-align: center;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin: 12px 0 0;
|
|
|
|
}
|
2022-12-09 20:28:29 +08:00
|
|
|
|
2019-02-08 19:17:36 +08:00
|
|
|
.mx_ButtonRow > * {
|
|
|
|
margin: 0 10px;
|
|
|
|
}
|
2022-12-09 20:28:29 +08:00
|
|
|
|
2019-02-08 19:17:36 +08:00
|
|
|
.mx_ButtonRow > *:first-child {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2022-12-09 20:28:29 +08:00
|
|
|
|
2019-02-08 19:17:36 +08:00
|
|
|
.mx_ButtonRow > *:last-child {
|
|
|
|
margin-right: 0;
|
2019-02-02 02:07:51 +08:00
|
|
|
}
|
2022-12-09 20:28:29 +08:00
|
|
|
|
2019-02-02 02:07:51 +08:00
|
|
|
.mx_ButtonParent {
|
2019-02-08 18:22:07 +08:00
|
|
|
display: -webkit-box;
|
|
|
|
display: -webkit-flex;
|
|
|
|
display: -ms-flexbox;
|
|
|
|
display: flex;
|
|
|
|
padding: 10px 20px;
|
|
|
|
-webkit-box-orient: horizontal;
|
|
|
|
-webkit-box-direction: normal;
|
|
|
|
-webkit-flex-direction: row;
|
|
|
|
-ms-flex-direction: row;
|
|
|
|
flex-direction: row;
|
|
|
|
-webkit-box-pack: center;
|
|
|
|
-webkit-justify-content: center;
|
|
|
|
-ms-flex-pack: center;
|
|
|
|
justify-content: center;
|
|
|
|
-webkit-box-align: center;
|
|
|
|
-webkit-align-items: center;
|
|
|
|
-ms-flex-align: center;
|
|
|
|
align-items: center;
|
|
|
|
border-radius: 4px;
|
|
|
|
width: 150px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: 10px center;
|
|
|
|
text-decoration: none;
|
|
|
|
color: #2e2f32 !important;
|
2019-02-02 02:07:51 +08:00
|
|
|
}
|
2022-12-09 20:28:29 +08:00
|
|
|
|
2019-02-08 18:31:48 +08:00
|
|
|
.mx_ButtonLabel {
|
2019-02-08 18:22:07 +08:00
|
|
|
margin-left: 20px;
|
2019-02-02 02:07:51 +08:00
|
|
|
}
|
2022-12-09 20:28:29 +08:00
|
|
|
|
2019-02-08 19:17:36 +08:00
|
|
|
.mx_Header_title {
|
|
|
|
font-size: 24px;
|
2019-02-08 18:22:07 +08:00
|
|
|
font-weight: 600;
|
2019-02-08 19:17:36 +08:00
|
|
|
margin: 20px 0 0;
|
2019-02-02 02:07:51 +08:00
|
|
|
}
|
2022-12-09 20:28:29 +08:00
|
|
|
|
2019-02-08 19:17:36 +08:00
|
|
|
.mx_Header_subtitle {
|
|
|
|
font-size: 12px;
|
|
|
|
font-weight: normal;
|
|
|
|
margin: 8px 0 0;
|
2019-02-02 02:07:51 +08:00
|
|
|
}
|
2022-12-09 20:28:29 +08:00
|
|
|
|
2019-02-02 02:07:51 +08:00
|
|
|
.mx_ButtonSignIn {
|
2019-02-08 18:22:07 +08:00
|
|
|
background-color: #368bd6;
|
|
|
|
color: white !important;
|
2019-02-02 02:07:51 +08:00
|
|
|
}
|
2022-12-09 20:28:29 +08:00
|
|
|
|
2019-02-02 02:07:51 +08:00
|
|
|
.mx_ButtonCreateAccount {
|
2020-07-15 02:37:05 +08:00
|
|
|
background-color: #0dbd8b;
|
2019-02-08 18:22:07 +08:00
|
|
|
color: white !important;
|
2017-06-08 18:42:03 +08:00
|
|
|
}
|
2022-12-09 20:28:29 +08:00
|
|
|
|
2019-02-08 18:31:48 +08:00
|
|
|
.mx_SecondaryButton {
|
2019-02-08 18:22:07 +08:00
|
|
|
background-color: #ffffff;
|
|
|
|
color: #2e2f32;
|
2017-06-08 19:06:45 +08:00
|
|
|
}
|
2022-12-09 20:28:29 +08:00
|
|
|
|
2019-02-02 02:58:30 +08:00
|
|
|
.mx_Button_iconSignIn {
|
2019-02-08 01:00:01 +08:00
|
|
|
background-image: url("welcome/images/icon-sign-in.svg");
|
2019-02-02 02:58:30 +08:00
|
|
|
}
|
|
|
|
.mx_Button_iconCreateAccount {
|
2019-02-08 01:00:01 +08:00
|
|
|
background-image: url("welcome/images/icon-create-account.svg");
|
2019-02-02 02:58:30 +08:00
|
|
|
}
|
|
|
|
.mx_Button_iconHelp {
|
2019-02-08 01:00:01 +08:00
|
|
|
background-image: url("welcome/images/icon-help.svg");
|
2019-02-02 02:58:30 +08:00
|
|
|
}
|
|
|
|
.mx_Button_iconRoomDirectory {
|
2019-02-08 01:00:01 +08:00
|
|
|
background-image: url("welcome/images/icon-room-directory.svg");
|
2019-02-02 02:58:30 +08:00
|
|
|
}
|
2022-12-09 20:28:29 +08:00
|
|
|
|
2019-06-05 06:04:49 +08:00
|
|
|
/*
|
|
|
|
.mx_WelcomePage_loggedIn is applied by EmbeddedPage from the Welcome component
|
|
|
|
If it is set on the page, we should show the buttons. Otherwise, we have to assume
|
|
|
|
we don't have an account and should hide them. No account == no guest account either.
|
|
|
|
*/
|
|
|
|
.mx_WelcomePage:not(.mx_WelcomePage_loggedIn) .mx_WelcomePage_guestFunctions {
|
|
|
|
display: none;
|
2020-05-27 20:28:50 +08:00
|
|
|
}
|
|
|
|
|
2020-05-30 19:52:21 +08:00
|
|
|
.mx_ButtonRow.mx_WelcomePage_guestFunctions {
|
|
|
|
margin-top: 20px;
|
2022-12-09 20:28:29 +08:00
|
|
|
}
|
2020-05-27 20:28:50 +08:00
|
|
|
.mx_ButtonRow.mx_WelcomePage_guestFunctions > div {
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
2020-01-30 18:29:14 +08:00
|
|
|
|
2020-05-27 20:28:50 +08:00
|
|
|
@media only screen and (max-width: 480px) {
|
|
|
|
.mx_ButtonRow {
|
|
|
|
flex-direction: column;
|
2022-12-09 20:28:29 +08:00
|
|
|
}
|
|
|
|
|
2020-05-29 01:49:36 +08:00
|
|
|
.mx_ButtonRow > * {
|
|
|
|
margin: 0 0 10px 0;
|
2022-12-09 20:28:29 +08:00
|
|
|
}
|
|
|
|
}
|
2017-06-08 18:42:03 +08:00
|
|
|
</style>
|
|
|
|
|
2019-02-02 02:07:51 +08:00
|
|
|
<div class="mx_Parent">
|
2020-09-30 19:07:51 +08:00
|
|
|
<a href="https://element.io" target="_blank" rel="noopener">
|
2023-05-12 16:44:47 +08:00
|
|
|
<img src="$logoUrl" alt="" class="mx_Logo" />
|
2019-02-02 02:07:51 +08:00
|
|
|
</a>
|
2023-09-06 00:17:25 +08:00
|
|
|
<h1 class="mx_Header_title">_t("welcome_to_element")</h1>
|
2022-03-25 13:43:46 +08:00
|
|
|
<!-- XXX: Our translations system isn't smart enough to recognize variables in the HTML, so we manually do it -->
|
2023-09-06 00:17:25 +08:00
|
|
|
<h4 class="mx_Header_subtitle">_t("powered_by_matrix_with_logo")</h4>
|
2019-02-08 19:17:36 +08:00
|
|
|
<div class="mx_ButtonGroup">
|
|
|
|
<div class="mx_ButtonRow">
|
|
|
|
<a href="#/login" class="mx_ButtonParent mx_ButtonSignIn mx_Button_iconSignIn">
|
2023-09-06 00:17:25 +08:00
|
|
|
<div class="mx_ButtonLabel">_t("action|sign_in")</div>
|
2019-02-02 02:58:30 +08:00
|
|
|
</a>
|
2019-02-08 19:17:36 +08:00
|
|
|
<a href="#/register" class="mx_ButtonParent mx_ButtonCreateAccount mx_Button_iconCreateAccount">
|
2023-09-06 00:17:25 +08:00
|
|
|
<div class="mx_ButtonLabel">_t("action|create_account")</div>
|
2019-02-08 18:29:14 +08:00
|
|
|
</a>
|
2017-05-30 10:58:45 +08:00
|
|
|
</div>
|
2019-06-05 06:04:49 +08:00
|
|
|
<div class="mx_ButtonRow mx_WelcomePage_guestFunctions">
|
2019-02-08 19:17:36 +08:00
|
|
|
<div>
|
|
|
|
<a href="#/directory" class="mx_ButtonParent mx_SecondaryButton mx_Button_iconRoomDirectory">
|
2023-09-06 00:17:25 +08:00
|
|
|
<div class="mx_ButtonLabel">_t("action|explore_rooms")</div>
|
2019-02-08 19:17:36 +08:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-05-30 10:58:45 +08:00
|
|
|
</div>
|
2019-02-02 03:11:33 +08:00
|
|
|
</div>
|