Added the following ENVIRONMENT VARIABLES > send.ftl - if not set it will use translate().
CUSTOM_INTRO_TITLE > introTitle CUSTOM_INTRO_DESCRIPTION: > introDescription CUSTOM_DOWNLOAD_DESCRIPTION: downloadDescription CUSTOM_TRY_SEND_DESCRIPTION: trySendDescription CUSTOM_SEND_YOUR_FILES_LINK: sendYourFilesLink CUSTOM_INTRO_TITLE: "Secure & Simple" CUSTOM_INTRO_DESCRIPTION: "Share files with end-to-end encryption and a link that expires." CUSTOM_DOWNLOAD_DESCRIPTION: "Shared with end-to-end encryption and a link that expires." CUSTOM_TRY_SEND_DESCRIPTION: "Secure, Simple file sharing" CUSTOM_SEND_YOUR_FILES_LINK: "Upload Files"
This commit is contained in:
parent
5124572dba
commit
2f491fac86
8 changed files with 83 additions and 15 deletions
|
@ -1,16 +1,21 @@
|
|||
const html = require('choo/html');
|
||||
|
||||
module.exports = function intro(state) {
|
||||
const introTitle =
|
||||
state.WEB_UI.CUSTOM_INTRO_TITLE || state.translate('introTitle');
|
||||
const introDescription =
|
||||
state.WEB_UI.CUSTOM_INTRO_DESCRIPTION ||
|
||||
state.translate('introDescription');
|
||||
return html`
|
||||
<send-intro
|
||||
class="flex flex-col items-center justify-center bg-white px-6 md:py-0 py-6 mb-0 h-full w-full dark:bg-grey-90"
|
||||
>
|
||||
<div class="mt-12 flex flex-col h-full">
|
||||
<h1 class="text-3xl font-bold md:pb-2">
|
||||
${state.translate('introTitle')}
|
||||
${introTitle}
|
||||
</h1>
|
||||
<p class="max-w-sm leading-loose mt-6 md:mt-2 md:pr-14">
|
||||
${state.translate('introDescription')}
|
||||
${introDescription}
|
||||
</p>
|
||||
</div>
|
||||
</send-intro>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue