Skip to content

Commit

Permalink
Add analyze link in header
Browse files Browse the repository at this point in the history
  • Loading branch information
peufo committed Dec 7, 2024
1 parent 8844c26 commit eee2a64
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/lib/algo/CardAlgo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import {
mdiBookOpenPageVariantOutline,
mdiPencilOutline,
mdiPoll,
mdiChartBoxOutline,
mdiSourceBranch,
} from '@mdi/js'
import { Icon, tip } from 'fuma'
Expand Down Expand Up @@ -82,8 +82,8 @@
</a>
{/if}
<a href="/analyze?algoId={algo.id}" class="btn btn-ghost btn-sm">
<Icon path={mdiPoll} />
<span>Analize</span>
<Icon path={mdiChartBoxOutline} />
<span>Analyze</span>
</a>

{#if $page.data.user?.id === algo.authorId}
Expand Down
10 changes: 9 additions & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<script lang="ts">
import { mdiAccountHeartOutline, mdiPlus } from '@mdi/js'
import {
mdiAccountHeartOutline,
mdiPlus,
mdiChartBoxOutline,
} from '@mdi/js'
import { ToggleMode, Icon } from 'fuma/ui'
import { mode } from 'mode-watcher'
import { Toaster } from 'svelte-sonner'
Expand All @@ -19,6 +23,10 @@

<div class="grow"></div>

<a href="/analyze" class="btn">
<Icon path={mdiChartBoxOutline} />
<span>Analyze</span>
</a>
{#if data.user}
<a href="/new" class="btn btn-primary btn-outline group">
<Icon
Expand Down

0 comments on commit eee2a64

Please sign in to comment.