Send/app/ui/intro.js
Dylan Derr 2f491fac86 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"
2025-02-08 12:37:18 -06:00

23 lines
716 B
JavaScript

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">
${introTitle}
</h1>
<p class="max-w-sm leading-loose mt-6 md:mt-2 md:pr-14">
${introDescription}
</p>
</div>
</send-intro>
`;
};