Last active
March 30, 2023 06:29
-
-
Save shinokada/a423737e8a2b2c6d574e95e63b13b054 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script lang='ts'> | |
import "../app.postcss" | |
import { Navbar, NavBrand, NavLi, NavUl, NavHamburger } from 'flowbite-svelte' | |
</script> | |
<Navbar let:hidden let:toggle> | |
<NavBrand href="/"> | |
<img | |
src="https://flowbite-svelte.com/images/flowbite-svelte-icon-logo.svg" | |
class="mr-3 h-6 sm:h-9" | |
alt="Flowbite-Svelte Logo" | |
/> | |
<span class="self-center whitespace-nowrap text-xl font-semibold dark:text-white"> | |
Flowbite-Svelte | |
</span> | |
</NavBrand> | |
<NavHamburger on:click={toggle} /> | |
<NavUl {hidden}> | |
<NavLi href="/" active={true}>Home</NavLi> | |
</NavUl> | |
</Navbar> | |
<main class='p-8 h-auto'> | |
<slot /> | |
</main> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment