2021-12-30 22:40:57 +00:00
|
|
|
import {Component, html} from 'htm/preact';
|
|
|
|
|
|
|
|
import ExternalAnchor from './external-anchor.js';
|
|
|
|
|
|
|
|
export default class SharedFooter extends Component {
|
|
|
|
render() {
|
2022-01-02 20:36:00 +00:00
|
|
|
const githubUrl = 'https://github.com/Bauke/blink';
|
|
|
|
const versionText = `v${blinkVersion}/${blinkCommitHash}`;
|
|
|
|
const versionUrl = `${githubUrl}/tree/${blinkCommitHash}`;
|
|
|
|
|
2021-12-30 22:40:57 +00:00
|
|
|
return html`
|
|
|
|
<footer class="shared-footer">
|
2022-01-02 20:36:00 +00:00
|
|
|
<${ExternalAnchor} text="GitHub" url=${githubUrl} />
|
|
|
|
${' '}
|
|
|
|
<${ExternalAnchor} text=${versionText} url=${versionUrl} />
|
2021-12-30 22:40:57 +00:00
|
|
|
</footer>
|
|
|
|
`;
|
|
|
|
}
|
|
|
|
}
|