I dont remember

This commit is contained in:
Pau Figueras 2023-03-13 20:38:31 +01:00
pare 7a1b040f1a
commit 0a81be7765

Veure arxiu

@ -3,21 +3,23 @@
import { Navbar, NavBrand, NavLi, NavUl, NavHamburger, DarkMode } from 'flowbite-svelte'; import { Navbar, NavBrand, NavLi, NavUl, NavHamburger, DarkMode } from 'flowbite-svelte';
export let navobjs: NavbarObject[] = [new NavbarObject('#', 'No nav elements provided')]; export let navobjs: NavbarObject[] = [new NavbarObject('#', 'No nav elements provided')];
export let pageTitle: string = "Default Title"; export let pageTitle: string = "Default Title";
export let togleDarkModeButton: boolean = true; export let toggleDarkModeButton: boolean = true;
</script> </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="/"> <NavBrand href="/">
<span class="self-center whitespace-nowrap text-xl font-semibold dark:text-white"> <span class="self-center whitespace-nowrap text-xl font-semibold dark:text-white">
{ pageTitle.toUpperCase() } { pageTitle.toUpperCase() }
</span> </span>
</NavBrand> </NavBrand>
<NavHamburger on:click={toggle} /> <NavHamburger on:click={toggle} />
<div class="flex">
<NavUl {hidden}> <NavUl {hidden}>
{#each navobjs as navElem} {#each navobjs as navElem}
<NavLi href="{ navElem.link }">{ navElem.text }</NavLi> <NavLi href="{ navElem.link }">{ navElem.text }</NavLi>
{/each} {/each}
</NavUl> </NavUl>
{#if togleDarkModeButton} {#if toggleDarkModeButton}
<DarkMode class='p-0' /> <DarkMode class='p-0' />
{/if} {/if}
</div>
</Navbar> </Navbar>