2017-06-08 12:42:03 +02:00
|
|
|
<style type="text/css">
|
2022-12-09 13:28:29 +01:00
|
|
|
/* we deliberately inline style here to avoid flash-of-CSS problems, and to avoid
|
2017-06-08 12:42:03 +02:00
|
|
|
* voodoo where we have to set display: none by default
|
|
|
|
*/
|
|
|
|
|
2022-12-09 13:28:29 +01:00
|
|
|
h1::after {
|
|
|
|
content: "!";
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Parent {
|
|
|
|
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;
|
|
|
|
padding: 25px 35px;
|
|
|
|
color: #2e2f32;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Logo {
|
|
|
|
height: 54px;
|
|
|
|
margin-top: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ButtonGroup {
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ButtonRow > * {
|
|
|
|
margin: 0 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ButtonRow > *:first-child {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ButtonRow > *:last-child {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ButtonParent {
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ButtonLabel {
|
|
|
|
margin-left: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Header_title {
|
|
|
|
font-size: 24px;
|
|
|
|
font-weight: 600;
|
|
|
|
margin: 20px 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Header_subtitle {
|
|
|
|
font-size: 12px;
|
|
|
|
font-weight: normal;
|
|
|
|
margin: 8px 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ButtonSignIn {
|
|
|
|
background-color: #368bd6;
|
|
|
|
color: white !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ButtonCreateAccount {
|
|
|
|
background-color: #0dbd8b;
|
|
|
|
color: white !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SecondaryButton {
|
|
|
|
background-color: #ffffff;
|
|
|
|
color: #2e2f32;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Button_iconSignIn {
|
|
|
|
background-image: url("welcome/images/icon-sign-in.svg");
|
|
|
|
}
|
|
|
|
.mx_Button_iconCreateAccount {
|
|
|
|
background-image: url("welcome/images/icon-create-account.svg");
|
|
|
|
}
|
|
|
|
.mx_Button_iconHelp {
|
|
|
|
background-image: url("welcome/images/icon-help.svg");
|
|
|
|
}
|
|
|
|
.mx_Button_iconRoomDirectory {
|
|
|
|
background-image: url("welcome/images/icon-room-directory.svg");
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2019-06-05 00:04:49 +02: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.
|
|
|
|
*/
|
2022-12-09 13:28:29 +01:00
|
|
|
.mx_WelcomePage:not(.mx_WelcomePage_loggedIn) .mx_WelcomePage_guestFunctions {
|
|
|
|
display: none;
|
2020-05-27 14:28:50 +02:00
|
|
|
}
|
|
|
|
|
2022-12-09 13:28:29 +01:00
|
|
|
.mx_ButtonRow.mx_WelcomePage_guestFunctions {
|
|
|
|
margin-top: 20px;
|
|
|
|
}
|
|
|
|
.mx_ButtonRow.mx_WelcomePage_guestFunctions > div {
|
|
|
|
margin: 0 auto;
|
2020-05-27 14:28:50 +02:00
|
|
|
}
|
2020-01-30 11:29:14 +01:00
|
|
|
|
2022-12-09 13:28:29 +01:00
|
|
|
@media only screen and (max-width: 480px) {
|
|
|
|
.mx_ButtonRow {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ButtonRow > * {
|
|
|
|
margin: 0 0 10px 0;
|
|
|
|
}
|
|
|
|
}
|
2017-06-08 12:42:03 +02:00
|
|
|
</style>
|
|
|
|
|
2019-02-01 19:07:51 +01:00
|
|
|
<div class="mx_Parent">
|
2020-09-30 13:07:51 +02:00
|
|
|
<a href="https://element.io" target="_blank" rel="noopener">
|
2022-12-09 13:28:29 +01:00
|
|
|
<img src="welcome/images/logo.svg" alt="" class="mx_Logo" />
|
2019-02-01 19:07:51 +01:00
|
|
|
</a>
|
2020-07-13 15:24:32 +02:00
|
|
|
<h1 class="mx_Header_title">_t("Welcome to Element")</h1>
|
2022-03-25 06:43:46 +01:00
|
|
|
<!-- XXX: Our translations system isn't smart enough to recognize variables in the HTML, so we manually do it -->
|
|
|
|
<h4 class="mx_Header_subtitle">_t("Decentralised, encrypted chat & collaboration powered by $matrixLogo")</h4>
|
2019-02-08 12:17:36 +01:00
|
|
|
<div class="mx_ButtonGroup">
|
|
|
|
<div class="mx_ButtonRow">
|
|
|
|
<a href="#/login" class="mx_ButtonParent mx_ButtonSignIn mx_Button_iconSignIn">
|
|
|
|
<div class="mx_ButtonLabel">_t("Sign In")</div>
|
2019-02-01 19:58:30 +01:00
|
|
|
</a>
|
2019-02-08 12:17:36 +01:00
|
|
|
<a href="#/register" class="mx_ButtonParent mx_ButtonCreateAccount mx_Button_iconCreateAccount">
|
|
|
|
<div class="mx_ButtonLabel">_t("Create Account")</div>
|
2019-02-08 11:29:14 +01:00
|
|
|
</a>
|
2017-05-30 04:58:45 +02:00
|
|
|
</div>
|
2019-02-14 17:22:50 +01:00
|
|
|
<!-- The comments below are meant to be used by Ansible as a quick way
|
|
|
|
to strip out the marked content when desired.
|
2020-09-30 13:07:51 +02:00
|
|
|
See https://github.com/vector-im/element-web/issues/8622.
|
2019-06-05 00:04:49 +02:00
|
|
|
TODO: Strip out these comments and rely on the guest flag -->
|
2019-02-14 16:40:58 +01:00
|
|
|
<!-- BEGIN Ansible: Remove these lines when guest access is disabled -->
|
2019-06-05 00:04:49 +02:00
|
|
|
<div class="mx_ButtonRow mx_WelcomePage_guestFunctions">
|
2019-02-08 12:17:36 +01:00
|
|
|
<div>
|
|
|
|
<a href="#/directory" class="mx_ButtonParent mx_SecondaryButton mx_Button_iconRoomDirectory">
|
2020-05-28 19:49:36 +02:00
|
|
|
<div class="mx_ButtonLabel">_t("Explore rooms")</div>
|
2019-02-08 12:17:36 +01:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-02-14 16:40:58 +01:00
|
|
|
<!-- END Ansible: Remove these lines when guest access is disabled -->
|
2017-05-30 04:58:45 +02:00
|
|
|
</div>
|
2019-02-01 20:11:33 +01:00
|
|
|
</div>
|