Skip to content

Commit

Permalink
style: 💄 point gift guide to the right category
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskaransarkaria committed Nov 19, 2024
1 parent 34663a4 commit 390ab16
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/components/Hamburger/Hamburger.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
{#if toggleOpen}
<div class="menu">
<button on:click={() => toggleAndGo("/shop")}> shop </button>
<button on:click={() => toggleAndGo("/gift-guide")}> gift guide </button>
<button
on:click={() => toggleAndGo("/shop/category/CXWG77NR7TPXXQSZD3QVPLHS")}
>
gift guide
</button>
<button on:click={() => toggleAndGo("/repairs")}> repairs </button>
<button on:click={() => toggleAndGo("/classes")}> classes </button>
<button on:click={() => toggleAndGo("/about")}> about </button>
Expand Down
7 changes: 7 additions & 0 deletions src/lib/components/Header/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@
>
shop
</a>
<a
data-sveltekit-preload-data
class={selected.includes("gift") ? "selected" : ""}
href="/shop/category/CXWG77NR7TPXXQSZD3QVPLHS"
>
gift guide
</a>
<a
data-sveltekit-preload-data
class={selected.includes("repairs") ? "selected" : ""}
Expand Down

0 comments on commit 390ab16

Please sign in to comment.