2018-10-25 04:07:10 +02:00
|
|
|
const html = require('choo/html');
|
2018-11-12 20:13:31 +01:00
|
|
|
const Component = require('choo/component');
|
2018-10-25 04:07:10 +02:00
|
|
|
|
2018-11-12 20:13:31 +01:00
|
|
|
class Footer extends Component {
|
|
|
|
constructor(name, state) {
|
|
|
|
super(name);
|
|
|
|
this.state = state;
|
|
|
|
}
|
|
|
|
|
|
|
|
update() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
createElement() {
|
|
|
|
const translate = this.state.translate;
|
|
|
|
return html`
|
|
|
|
<footer
|
2019-09-09 19:34:55 +02:00
|
|
|
class="flex flex-col md:flex-row items-start w-full flex-none self-start p-6 md:p-8 font-medium text-xs text-grey-60 dark:text-grey-40 md:items-center justify-between"
|
2018-11-12 20:13:31 +01:00
|
|
|
>
|
2020-10-15 17:55:52 +02:00
|
|
|
<div></div>
|
2018-11-12 20:13:31 +01:00
|
|
|
<ul
|
2019-06-14 20:30:43 +02:00
|
|
|
class="flex flex-col md:flex-row items-start md:items-center md:justify-end"
|
2018-11-12 20:13:31 +01:00
|
|
|
>
|
|
|
|
<li class="m-2">
|
2019-02-13 22:09:57 +01:00
|
|
|
<a href="/legal"> ${translate('footerLinkPrivacy')} </a>
|
2018-11-12 20:13:31 +01:00
|
|
|
</li>
|
|
|
|
<li class="m-2">
|
2020-10-15 17:57:50 +02:00
|
|
|
<a href="https://gitlab.com/timvisee/send">Source</a>
|
2018-11-12 20:13:31 +01:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</footer>
|
|
|
|
`;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = Footer;
|