Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Added a button to link docs to appPage #314

Merged
merged 4 commits into from
Mar 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 14 additions & 12 deletions src/lib/components/header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@

export let username: string | undefined;

const navItems = [{ name: 'Docs', path: '/docs' }];
const navItems = [
{ name: 'Docs', path: '/docs' },
{ name: 'App', path: '/app' },
];
</script>

<header class="my-8 flex flex-wrap items-center justify-between">
Expand All @@ -45,17 +48,16 @@
</button>
</div>
<div class="hidden items-center gap-4 lg:flex lg:gap-8">
<ul>
{#each navItems as item}
<li>
<a
class="default-transition text-skin-text-highlight decoration-transparent hover:underline hover:decoration-inherit"
class:active={$page.url.pathname.includes(item.path)}
href={item.path}>{item.name}</a
>
</li>
{/each}
</ul>
{#each navItems as item}
<div>
<a
class="default-transition text-skin-text-highlight decoration-transparent hover:underline hover:decoration-inherit"
class:active={$page.url.pathname.includes(item.path)}
href={item.path}>{item.name}</a
>
</div>
{/each}

{#if username}
<ProfilePicture {username} />
{:else}
Expand Down