mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-27 08:49:36 +02:00
30 lines
496 B
Svelte
30 lines
496 B
Svelte
|
<style>
|
||
|
.navbar {
|
||
|
display: flex;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
flex-direction: row;
|
||
|
}
|
||
|
|
||
|
</style>
|
||
|
|
||
|
<script lang="ts">
|
||
|
function navHome() {
|
||
|
window.location.href = '/';
|
||
|
|
||
|
}
|
||
|
function navLog() {
|
||
|
window.location.href = '/log';
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
|
||
|
<div class="navbar">
|
||
|
|
||
|
<p>AdventureLog 🗺️</p>
|
||
|
<button on:click={navHome}>Home</button>
|
||
|
<button on:click={navLog}>Log</button>
|
||
|
<hr>
|
||
|
<br>
|
||
|
</div>
|