init
This commit is contained in:
commit
90205a1243
29 changed files with 3216 additions and 0 deletions
12
src/routes/nav/NavItem.svelte
Normal file
12
src/routes/nav/NavItem.svelte
Normal file
|
@ -0,0 +1,12 @@
|
|||
<script lang="ts">
|
||||
export let href: string;
|
||||
export let plain: boolean = false;
|
||||
</script>
|
||||
|
||||
{#if plain}
|
||||
<a {href} class="hover:text-sky-500 dark:hover:text-sky-400"><slot /></a>
|
||||
{:else}
|
||||
<li>
|
||||
<a {href} class="hover:text-sky-500 dark:hover:text-sky-400"><slot /></a>
|
||||
</li>
|
||||
{/if}
|
Loading…
Add table
Add a link
Reference in a new issue