link to our sponsors websites from their logos

pull/1/head
ansuz 4 years ago
parent 4db95c5e67
commit 97dbaee294

@ -7,6 +7,15 @@ define([
], function (Config, h, Msg, Pages, Feedback) { ], function (Config, h, Msg, Pages, Feedback) {
var urlArgs = Config.requireConf.urlArgs; var urlArgs = Config.requireConf.urlArgs;
var logoLink = function (alt, src, url, cls) {
var img = h('img' + (cls || ''), {
src: src + '?' + urlArgs,
alt: alt,
});
if (!url) { return img; }
return h('a', { href: url, }, img);
};
return function () { return function () {
return h('div#cp-main', [ return h('div#cp-main', [
Pages.infopageTopbar(), Pages.infopageTopbar(),
@ -66,26 +75,17 @@ define([
}), }),
]), ]),
h('div.col-md-6.order-md-1.small-logos', [ h('div.col-md-6.order-md-1.small-logos', [
h('img.cp-img-invert', { logoLink('NGI Award 2019', '/customize/images/logo_ngi.png',
src: '/customize/images/logo_ngi.png?' + urlArgs, 'https://www.ngi.eu/', '.cp-img-invert'),
alt: 'NGI Award 2019' logoLink('NLnet Foundation logo', '/customize/images/logo_nlnet.svg',
}), 'https://nlnet.nl', '.cp-img-invert'),
h('img.cp-img-invert', {
src: '/customize/images/logo_nlnet.svg?' + urlArgs, logoLink('BPI France logo', '/customize/images/logo_bpifrance.svg',
alt: 'NLNet Foundation logo' 'https://bpifrance.com'),
}), logoLink('Mozilla Open Source Support logo', '/customize/images/logo_moss.jpg',
h('img', { 'https://www.mozilla.org/en-US/moss/'),
src: '/customize/images/logo_bpifrance.svg?' + urlArgs, logoLink('NGI Trust logo', '/customize/images/logo_ngi_trust.png',
alt: 'BPI France logo' 'https://www.ngi.eu/ngi-projects/ngi-trust/'),
}),
h('img', {
src: '/customize/images/logo_moss.jpg?' + urlArgs,
alt: 'Mozilla Open Source Support logo'
}),
h('img', {
src: '/customize/images/logo_ngi_trust.png?' + urlArgs,
alt: 'NGI Trust logo'
}),
]), ]),
]), ]),
h('div.row.cp-page-section', [ h('div.row.cp-page-section', [

Loading…
Cancel
Save