mirror of
https://github.com/timvisee/send.git
synced 2025-10-05 02:19:26 +02:00
Add Thunderbird sponsorship banner to home, uploads and download page
This commit is contained in:
parent
197b0bcf59
commit
0a6bf39353
7 changed files with 150 additions and 1 deletions
|
@ -4,6 +4,7 @@ const { list } = require('../utils');
|
|||
const archiveTile = require('./archiveTile');
|
||||
const modal = require('./modal');
|
||||
const intro = require('./intro');
|
||||
const assets = require('../../common/assets');
|
||||
|
||||
module.exports = function(state, emit) {
|
||||
const archives = state.storage.files
|
||||
|
@ -30,6 +31,30 @@ module.exports = function(state, emit) {
|
|||
|
||||
archives.reverse();
|
||||
|
||||
if (archives.length > 0 && state.WEB_UI.SHOW_THUNDERBIRD_SPONSOR) {
|
||||
archives.push(html`
|
||||
<a
|
||||
class="w-full p-2 border-default dark:border-grey-70 rounded-default text-orange-60 bg-yellow-40 text-center leading-normal d-block"
|
||||
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>
|
||||
`);
|
||||
}
|
||||
|
||||
const right =
|
||||
archives.length === 0
|
||||
? intro(state)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue