mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 22:20:55 +03:00
Add customizable notice on main page and in downloads list
This commit is contained in:
@@ -1,6 +1,17 @@
|
||||
const html = require('choo/html');
|
||||
const raw = require('choo/html/raw');
|
||||
|
||||
module.exports = function intro(state) {
|
||||
const notice = state.WEB_UI.MAIN_NOTICE_HTML
|
||||
? html`
|
||||
<p
|
||||
class="w-full mt-8 p-2 border-default dark:border-grey-70 rounded-default text-orange-60 bg-yellow-40 text-center leading-normal"
|
||||
>
|
||||
${raw(state.WEB_UI.MAIN_NOTICE_HTML)}
|
||||
</p>
|
||||
`
|
||||
: '';
|
||||
|
||||
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"
|
||||
@@ -12,6 +23,7 @@ module.exports = function intro(state) {
|
||||
<p class="max-w-sm leading-loose mt-6 md:mt-2 md:pr-14">
|
||||
${state.translate('introDescription')}
|
||||
</p>
|
||||
${notice}
|
||||
</div>
|
||||
</send-intro>
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user