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>
|
||||||
<ul>
|
<div class="justify-items-center align-middle">
|
||||||
{#each nav as main,i}
|
<ul>
|
||||||
{#if i != 0}
|
{#each nav as main,i}
|
||||||
<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>
|
{#if i != 0}
|
||||||
{/if}
|
<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>
|
||||||
{/each}
|
{/if}
|
||||||
<hr />
|
{/each}
|
||||||
{#each selected.subPages as subPage}
|
<hr />
|
||||||
<li><a href={subPage}>{subPage}</a></li>
|
{#each selected.subPages as subPage}
|
||||||
{/each}
|
<li class="sub-nav-item inline-block"><a class="sub-nav-link"href={subPage}>{subPage}</a></li>
|
||||||
</ul>
|
{/each}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<slot />
|
<slot />
|
Loading…
Reference in New Issue
Block a user