From 92bb3a67564f4a02cd80b4acea9f1eabf493ee68 Mon Sep 17 00:00:00 2001 From: DianaXWiki Date: Thu, 7 May 2026 15:09:42 +0200 Subject: [PATCH] Add promotion message to form footer --- customize.dist/messages.js | 1 + www/form/app-form.less | 15 +++++++++++++++ www/form/inner.js | 4 +++- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/customize.dist/messages.js b/customize.dist/messages.js index 06268dfd3..f1b859487 100755 --- a/customize.dist/messages.js +++ b/customize.dist/messages.js @@ -134,6 +134,7 @@ define(req, function(AppConfig, Default, Language) { } }; + Messages.form_footerInfo = "This form is created with CryptPad.
The data is end-to-end encrypted and no one can access it except for the person sending it to you.
Learn more about CryptPad Forms"; // XXX return Messages; }); diff --git a/www/form/app-form.less b/www/form/app-form.less index 37cd22686..f7172d55f 100644 --- a/www/form/app-form.less +++ b/www/form/app-form.less @@ -213,7 +213,22 @@ display: flex; align-items: center; justify-content: center; + flex-direction: column; padding: 20px 20px 150px 20px; + .cp-form-view-footer-text { + text-align: center; + svg.cp-form-footer-icon { + margin: 0 0 0.2rem 0.2rem; + color: @cryptpad_color_brand; + } + a { + color: @cryptpad_color_brand; + text-decoration: none; + &:hover { + text-decoration: underline; + } + } + } div.cp-form-view-logo { padding: 10px; font-size: 40px; diff --git a/www/form/inner.js b/www/form/inner.js index 97680a8e9..138e36346 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -3330,7 +3330,9 @@ define([ $(logo).click(function () { APP.framework._.sfCommon.gotoURL('/'); }); - var footer = h('div.cp-form-view-footer', [logo]); + var content = UI.setHTML(h('div.cp-form-block.cp-form-view-footer-text'), Messages.form_footerInfo); + content.appendChild(Icons.get('form', { 'class': 'cp-form-footer-icon', 'aria-hidden': true })); + var footer = h('div.cp-form-view-footer', [content, logo]); return footer; };