fix: Fix navbar size
This commit is contained in:
1 parent
89bd20b8d0
commit
699e9e68d1
2 files changed
+3
-18
No files matched your search
@@ -1,8 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Link from '$lib/components/Link.svelte'
|
import Link from '$lib/components/Link.svelte'
|
||||||
import Logo from '$lib/components/Logo.svelte'
|
import Logo from '$lib/components/Logo.svelte'
|
||||||
|
|
||||||
export let routes: string[] = []
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<nav
|
<nav
|
||||||
@@ -10,23 +8,10 @@
|
|||||||
max-w-5xl mx-auto px-6"
|
max-w-5xl mx-auto px-6"
|
||||||
>
|
>
|
||||||
<div class="flex flex-row gap-2 items-center mr-auto">
|
<div class="flex flex-row gap-2 items-center mr-auto">
|
||||||
<a href="/">
|
<a href="/" class="flex flex-row items-center gap-2">
|
||||||
<Logo width={40} />
|
<Logo width={40} />
|
||||||
|
<span class="font-bold">Xylemmy</span>
|
||||||
</a>
|
</a>
|
||||||
{#if routes.length != 0}
|
|
||||||
{#each routes as route}
|
|
||||||
<svg
|
|
||||||
fill="none"
|
|
||||||
height="32"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
width="32"
|
|
||||||
class="stroke-1 opacity-20 stroke-black dark:stroke-white"
|
|
||||||
>
|
|
||||||
<path d="M16.88 3.549L7.12 20.451" />
|
|
||||||
</svg>
|
|
||||||
<span>{route}</span>
|
|
||||||
{/each}
|
|
||||||
{/if}
|
|
||||||
</div>
|
</div>
|
||||||
<Link href="/communities">Communities</Link>
|
<Link href="/communities">Communities</Link>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Navbar routes={$page.url.pathname.split('/').slice(1)} />
|
<Navbar />
|
||||||
<div class="mx-auto max-w-5xl p-4">
|
<div class="mx-auto max-w-5xl p-4">
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
Reference in new issue
Block a user