2018-02-13 19:32:59 +00:00
|
|
|
const html = require('choo/html');
|
|
|
|
const assets = require('../../../common/assets');
|
|
|
|
|
|
|
|
module.exports = function(state) {
|
2018-03-12 17:15:11 +00:00
|
|
|
const footer = html`<footer class="footer">
|
2018-02-13 19:32:59 +00:00
|
|
|
<div class="legalSection">
|
|
|
|
<a
|
|
|
|
href="https://www.mozilla.org"
|
2018-06-15 14:12:34 +00:00
|
|
|
class="legalSection__link">
|
2018-02-13 19:32:59 +00:00
|
|
|
<img
|
|
|
|
class="legalSection__mozLogo"
|
|
|
|
src="${assets.get('mozilla-logo.svg')}"
|
|
|
|
alt="mozilla"/>
|
|
|
|
</a>
|
|
|
|
<a
|
|
|
|
href="https://www.mozilla.org/about/legal"
|
|
|
|
class="legalSection__link">
|
|
|
|
${state.translate('footerLinkLegal')}
|
|
|
|
</a>
|
|
|
|
<a
|
|
|
|
href="https://testpilot.firefox.com/about"
|
|
|
|
class="legalSection__link">
|
|
|
|
${state.translate('footerLinkAbout')}
|
|
|
|
</a>
|
|
|
|
<a
|
|
|
|
href="/legal"
|
|
|
|
class="legalSection__link">${state.translate('footerLinkPrivacy')}</a>
|
|
|
|
<a
|
|
|
|
href="/legal"
|
|
|
|
class="legalSection__link">${state.translate('footerLinkTerms')}</a>
|
|
|
|
<a
|
|
|
|
href="https://www.mozilla.org/privacy/websites/#cookies"
|
|
|
|
class="legalSection__link">
|
|
|
|
${state.translate('footerLinkCookies')}
|
|
|
|
</a>
|
|
|
|
<a
|
|
|
|
href="https://www.mozilla.org/about/legal/report-infringement/"
|
|
|
|
class="legalSection__link">
|
|
|
|
${state.translate('reportIPInfringement')}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="socialSection">
|
|
|
|
<a
|
|
|
|
href="https://github.com/mozilla/send"
|
2018-06-15 14:12:34 +00:00
|
|
|
class="socialSection__link">
|
2018-02-13 19:32:59 +00:00
|
|
|
<img
|
|
|
|
class="socialSection__icon"
|
|
|
|
src="${assets.get('github-icon.svg')}"
|
|
|
|
alt="github"/>
|
|
|
|
</a>
|
|
|
|
<a
|
|
|
|
href="https://twitter.com/FxTestPilot"
|
2018-06-15 14:12:34 +00:00
|
|
|
class="socialSection__link">
|
2018-02-13 19:32:59 +00:00
|
|
|
<img
|
|
|
|
class="socialSection__icon"
|
|
|
|
src="${assets.get('twitter-icon.svg')}"
|
|
|
|
alt="twitter"/>
|
|
|
|
</a>
|
|
|
|
</div>
|
2018-02-20 07:10:03 +00:00
|
|
|
</footer>`;
|
2018-03-12 17:15:11 +00:00
|
|
|
// HACK
|
|
|
|
// We only want to render this once because we
|
|
|
|
// toggle the targets of the links with utils/openLinksInNewTab
|
|
|
|
footer.isSameNode = function(target) {
|
|
|
|
return target && target.nodeName && target.nodeName === 'FOOTER';
|
|
|
|
};
|
|
|
|
return footer;
|
2018-02-13 19:32:59 +00:00
|
|
|
};
|