Skip to content

Commit 8ceacc4

Browse files
authored
Fix 404 from footer link navigation (#38)
* Fix 404 link from footer navigation
1 parent dcf6784 commit 8ceacc4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/lib/components/layouts/Footer.svelte

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { base } from '$app/paths'
2+
import { goto } from '$app/navigation'
33
import FooterLogo from '$lib/assets/images/footer-logo.svelte'
44
import { communityList } from '$utils/constants'
55
import Icon from '@iconify/svelte'
@@ -31,16 +31,16 @@
3131
</div>
3232
<div class="font-sebino flex w-full flex-1 auto-rows-auto grid-cols-3 flex-col gap-3 lg:grid">
3333
<div>
34-
<a href="{base}/apps" class="footer-menu pb-2">Apps</a>
34+
<button on:click={() => goto('/apps')} class="footer-menu pb-2"> Apps </button>
3535
<table class="text-xl text-arkGray4">
3636
<tr>
3737
<td>
38-
<a href="{base}/apps/memo" class="hover:text-black"> Memo </a>
38+
<button on:click={() => goto('/apps/memo')} class="hover:text-black"> Memo </button>
3939
</td>
4040
</tr>
4141
<tr>
4242
<td>
43-
<a href="{base}/apps/rate" class="hover:text-black"> Rate </a>
43+
<button on:click={() => goto('/apps/rate')} class="hover:text-black"> Rate </button>
4444
</td>
4545
<!-- <td class="pr-10"> Navigator </td> -->
4646
</tr>
@@ -53,12 +53,12 @@
5353
</tr>
5454
</table>
5555
</div>
56-
<div class="flex flex-col gap-1 text-arkGray3">
57-
<a href="{base}/contribute" class="footer-menu">Contribute</a>
58-
<a href="{base}/framework" class="footer-menu">Framework</a>
56+
<div class="flex flex-col items-start gap-1 text-arkGray3">
57+
<button on:click={() => goto('/contribute')} class="footer-menu"> Contribute </button>
58+
<button on:click={() => goto('/framework')} class="footer-menu"> Framework </button>
5959
</div>
6060
<div>
61-
<a href="{base}/blog" class="footer-menu">Blog</a>
61+
<button on:click={() => goto('/blog')} class="footer-menu"> Blog </button>
6262
</div>
6363
</div>
6464
</div>

0 commit comments

Comments
 (0)