I dont remember
This commit is contained in:
pare
7a1b040f1a
commit
0a81be7765
S'han modificat 1 arxius amb 17 adicions i 15 eliminacions
|
@ -3,21 +3,23 @@
|
|||
import { Navbar, NavBrand, NavLi, NavUl, NavHamburger, DarkMode } from 'flowbite-svelte';
|
||||
export let navobjs: NavbarObject[] = [new NavbarObject('#', 'No nav elements provided')];
|
||||
export let pageTitle: string = "Default Title";
|
||||
export let togleDarkModeButton: boolean = true;
|
||||
export let toggleDarkModeButton: boolean = true;
|
||||
</script>
|
||||
<Navbar let:hidden let:toggle color="form">
|
||||
<Navbar let:hidden let:toggle color="form" navDivClass="mx-auto flex flex-wrap justify-around items-center">
|
||||
<NavBrand href="/">
|
||||
<span class="self-center whitespace-nowrap text-xl font-semibold dark:text-white">
|
||||
{ pageTitle.toUpperCase() }
|
||||
</span>
|
||||
</NavBrand>
|
||||
<NavHamburger on:click={toggle} />
|
||||
<div class="flex">
|
||||
<NavUl {hidden}>
|
||||
{#each navobjs as navElem}
|
||||
<NavLi href="{ navElem.link }">{ navElem.text }</NavLi>
|
||||
{/each}
|
||||
</NavUl>
|
||||
{#if togleDarkModeButton}
|
||||
{#if toggleDarkModeButton}
|
||||
<DarkMode class='p-0' />
|
||||
{/if}
|
||||
</div>
|
||||
</Navbar>
|
||||
|
|
Loading…
Referencia en una nova incidència