feat: add version + repo link

This commit is contained in:
Tomáš Mládek 2024-02-24 22:48:40 +01:00
parent 76e81c1f60
commit d55deee33a
2 changed files with 12 additions and 1 deletions

View file

@ -1,4 +1,5 @@
<script>
import { version } from '../../package.json';
</script>
<nav>
@ -43,6 +44,7 @@
</a>
</div>
</nav>
<footer><a href="https://git.thm.place/thm/test-card">testcard v{version}</a></footer>
<style>
h1 {
@ -73,4 +75,13 @@
font-size: 3rem;
}
}
footer {
text-align: center;
opacity: 0.6;
margin-top: 1rem;
& a {
text-decoration: none;
}
}
</style>

View file

@ -11,7 +11,7 @@ export default defineConfig({
},
server: {
fs: {
allow: [path.join(__dirname, 'assets/generated')]
allow: [path.join(__dirname, 'assets/generated'), path.join(__dirname, 'package.json')]
}
}
});