🖇 Adds navigation for routes

This commit is contained in:
Rune Harlyk
2023-07-12 15:32:30 +02:00
parent 0f857ecefd
commit 0111ffd8a2
2 changed files with 17 additions and 12 deletions
+4 -3
View File
@@ -1,4 +1,5 @@
<script lang="ts">
import { Link } from 'svelte-routing';
import { Icon, XMark, ChartBar, DevicePhoneMobile, Cog6Tooth } from 'svelte-hero-icons';
import { sidebarOpen } from '../lib/store';
@@ -23,8 +24,8 @@
<Icon src={XMark} size="32" />
</button>
<div class="h-full w-full flex flex-col justify-evenly items-center">
<button on:click={closeMenu}><Icon src={DevicePhoneMobile} size="32" /></button>
<button on:click={closeMenu}><Icon src={ChartBar} size="32" /></button>
<button on:click={closeMenu}><Icon src={Cog6Tooth} size="32" /></button>
<Link to="/"><Icon src={DevicePhoneMobile} size="32" /></Link>
<Link to="/health"><Icon src={ChartBar} size="32" /></Link>
<Link to="/config"><Icon src={Cog6Tooth} size="32" /></Link>
</div>
</div>