commit before refactoring bar
This commit is contained in:
parent
cf4d9909aa
commit
b975564cc9
@ -1,5 +1,4 @@
|
|||||||
<script>
|
<script>
|
||||||
import { writable } from "svelte/store";
|
|
||||||
import "../app.css";
|
import "../app.css";
|
||||||
|
|
||||||
const nav = [
|
const nav = [
|
||||||
@ -36,16 +35,18 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<nav>
|
<nav>
|
||||||
|
<div class="justify-items-center align-middle">
|
||||||
<ul>
|
<ul>
|
||||||
{#each nav as main,i}
|
{#each nav as main,i}
|
||||||
{#if i != 0}
|
{#if i != 0}
|
||||||
<li><button class={selected==i ? "nav-link active p-2 ml-1" : "p-2 ml-1 nav-link"} on:click={changeComponent} id={i} >{main.name}</button></li>
|
<li class="nav-item inline-block"><button class={selected==nav[i] ? "nav-link font-bold p-2 ml-1" : "p-2 ml-1 nav-link"} on:click={changeComponent} id={i} >{main.name}</button></li>
|
||||||
{/if}
|
{/if}
|
||||||
{/each}
|
{/each}
|
||||||
<hr />
|
<hr />
|
||||||
{#each selected.subPages as subPage}
|
{#each selected.subPages as subPage}
|
||||||
<li><a href={subPage}>{subPage}</a></li>
|
<li class="sub-nav-item inline-block"><a class="sub-nav-link"href={subPage}>{subPage}</a></li>
|
||||||
{/each}
|
{/each}
|
||||||
</ul>
|
</ul>
|
||||||
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<slot />
|
<slot />
|
Loading…
Reference in New Issue
Block a user