feat: version and issue url

This commit is contained in:
2023-09-22 14:15:01 +02:00
parent 4cd9ce536d
commit f03b4d586b
7 changed files with 75 additions and 0 deletions

43
src/routes/Footer.svelte Normal file
View File

@@ -0,0 +1,43 @@
<script>
import {version} from "$app/environment"
</script>
<footer>
<ul>
<li>
<a href={HOMEPAGE_URL} rel="noreferrer" target="_blank"><span class="icon">commit</span> v{version}</a>
</li>
<li>
<a href={BUGS_URL} rel="noreferrer" target="_blank"
><span class="icon">bug_report</span> File an issue</a
>
</li>
</ul>
</footer>
<style>
footer {
position: absolute;
bottom: 0;
left: 0;
}
ul {
display: flex;
gap: 16px;
list-style: none;
}
a {
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
text-decoration: none;
}
.icon {
font-size: 16px;
}
</style>