🖇 Adds navigation for routes
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user