Add Thunderbird sponsorship banner to home, uploads and download page

This commit is contained in:
timvisee
2025-06-30 23:12:54 +02:00
parent 197b0bcf59
commit 0a6bf39353
7 changed files with 150 additions and 1 deletions

View File

@@ -578,6 +578,29 @@ module.exports.preview = function(state, emit) {
</p>
`
: '';
const sponsor = state.WEB_UI.SHOW_THUNDERBIRD_SPONSOR
? html`
<a
class="w-full mt-5 mb-2 p-2 border-default dark:border-grey-70 rounded-default text-orange-60 bg-yellow-40 text-center leading-normal"
href="https://www.thunderbird.net/"
>
<svg
width="30"
height="30"
class="m-2 mr-3"
style="display: inline-block; vertical-align: middle;"
>
<image
xlink:href="${assets.get('thunderbird-icon.svg')}"
src="${assets.get('thunderbird-icon.svg')}"
width="30"
height="30"
/>
</svg>
Sponsored by Thunderbird
</a>
`
: '';
return html`
<send-archive
@@ -594,7 +617,7 @@ module.exports.preview = function(state, emit) {
>
${state.translate('downloadButtonLabel')}
</button>
${notice}
${notice} ${sponsor}
</send-archive>
`;