Customization welcomepull/397/head
| @@ -32,6 +32,25 @@ matrix_riot_web_welcome_user_id: "@riot-bot:matrix.org" | |||||
| # Branding of riot web | # Branding of riot web | ||||
| matrix_riot_web_brand: "Riot" | matrix_riot_web_brand: "Riot" | ||||
| # URL to Logo on welcome page | |||||
| matrix_riot_web_welcome_logo: "welcome/images/logo.svg" | |||||
| # URL of link on welcome image | |||||
| matrix_riot_web_welcome_logo_link: "https://riot.im" | |||||
| matrix_riot_web_welcome_headline: "_t('Welcome to Riot.im')" | |||||
| matrix_riot_web_welcome_text: "_t('Decentralised, encrypted chat & collaboration powered by [matrix]')" | |||||
| # Links, shown in footer of welcome page: | |||||
| # [{"text": "Link text", "url": "https://link.target"}, {"text": "Other link"}] | |||||
| matrix_riot_web_branding_authFooterLinks: ~ | |||||
| # URL to image, shown during Login | |||||
| matrix_riot_web_branding_authHeaderLogoUrl: "{{ matrix_riot_web_welcome_logo }}" | |||||
| # URL to Wallpaper, shown in background of welcome page | |||||
| matrix_riot_web_branding_welcomeBackgroundUrl: ~ | |||||
| # By default, there's no Riot homepage (when logged in). If you wish to have one, | # By default, there's no Riot homepage (when logged in). If you wish to have one, | ||||
| # point this to a `home.html` template file on your local filesystem. | # point this to a `home.html` template file on your local filesystem. | ||||
| matrix_riot_web_embedded_pages_home_path: ~ | matrix_riot_web_embedded_pages_home_path: ~ | ||||
| @@ -29,5 +29,10 @@ | |||||
| {% endif %} | {% endif %} | ||||
| "embeddedPages": { | "embeddedPages": { | ||||
| "homeUrl": {{ matrix_riot_web_embedded_pages_home_url|string|to_json }} | "homeUrl": {{ matrix_riot_web_embedded_pages_home_url|string|to_json }} | ||||
| }, | |||||
| "branding": { | |||||
| "authFooterLinks": {{ matrix_riot_web_branding_authFooterLinks|to_json }}, | |||||
| "authHeaderLogoUrl": {{ matrix_riot_web_branding_authHeaderLogoUrl|to_json }}, | |||||
| "welcomeBackgroundUrl": {{ matrix_riot_web_branding_welcomeBackgroundUrl|to_json }} | |||||
| } | } | ||||
| } | } | ||||
| @@ -153,11 +153,11 @@ h1::after { | |||||
| </style> | </style> | ||||
| <div class="mx_Parent"> | <div class="mx_Parent"> | ||||
| <a href="https://riot.im" target="_blank" rel="noopener"> | |||||
| <img src="welcome/images/logo.svg" alt="" class="mx_Logo"/> | |||||
| <a href="{{ matrix_riot_web_welcome_logo_link }}" target="_blank" rel="noopener"> | |||||
| <img src="{{ matrix_riot_web_welcome_logo }}" alt="" class="mx_Logo"/> | |||||
| </a> | </a> | ||||
| <h1 class="mx_Header_title">_t("Welcome to Riot.im")</h1> | |||||
| <h4 class="mx_Header_subtitle">_t("Decentralised, encrypted chat & collaboration powered by [matrix]")</h4> | |||||
| <h1 class="mx_Header_title">{{ matrix_riot_web_welcome_headline }}</h1> | |||||
| <h4 class="mx_Header_subtitle">{{ matrix_riot_web_welcome_text }}</h4> | |||||
| <div class="mx_ButtonGroup"> | <div class="mx_ButtonGroup"> | ||||
| <div class="mx_ButtonRow"> | <div class="mx_ButtonRow"> | ||||
| <a href="#/login" class="mx_ButtonParent mx_ButtonSignIn mx_Button_iconSignIn"> | <a href="#/login" class="mx_ButtonParent mx_ButtonSignIn mx_Button_iconSignIn"> | ||||