Skip to content

Commit 4476a57

Browse files
committed
idk maybe this fixed some stuff but prolly not tbh
1 parent ed8ed0b commit 4476a57

2 files changed

Lines changed: 45 additions & 25 deletions

File tree

src/lib/components/Navigation.svelte

Lines changed: 44 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
11
<script lang="ts">
22
import { page } from "$app/state";
3-
let links = [
4-
["Notifications", "/notifications"],
5-
["Tab Cloaker", "/tab-cloaker"],
6-
[
7-
"Master Doc",
8-
"https://docs.google.com/document/d/11yw7n2F84XOkAwpM8tF-ZYHESuus1Gg7dmJ-WJum1fk",
9-
],
10-
["ROM Library", "/roms"],
11-
["Discord", "https://discord.gg/GDEFRBTT3Z"],
12-
];
13-
14-
// Use dirty URLs if hosted on amazonaws
15-
if (typeof window !== "undefined" && window.origin.includes("amazonaws")) {
16-
links = [
3+
const links = (typeof window !== "undefined" && window.origin.includes("amazonaws"))
4+
? [
5+
["Notifications", "/notifications"],
176
["Tab Cloaker", "/tab-cloaker.html"],
187
[
198
"Master Doc",
209
"https://docs.google.com/document/d/11yw7n2F84XOkAwpM8tF-ZYHESuus1Gg7dmJ-WJum1fk",
2110
],
2211
["ROM Library", "/roms.html"],
2312
["Discord", "https://discord.gg/GDEFRBTT3Z"],
13+
]
14+
: [
15+
["Notifications", "/notifications"],
16+
["Tab Cloaker", "/tab-cloaker"],
17+
[
18+
"Master Doc",
19+
"https://docs.google.com/document/d/11yw7n2F84XOkAwpM8tF-ZYHESuus1Gg7dmJ-WJum1fk",
20+
],
21+
["ROM Library", "/roms"],
22+
["Discord", "https://discord.gg/GDEFRBTT3Z"],
2423
];
25-
}
2624
2725
const currentPath = page.url.pathname;
2826
let menuOpen = $state(false);
@@ -48,8 +46,22 @@
4846
</li>
4947
{/each}
5048
</ul>
51-
<button class="mobile-menu-button" onclick={() => menuOpen = !menuOpen} aria-label="Open menu">
52-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
49+
<button
50+
class="mobile-menu-button"
51+
onclick={() => (menuOpen = !menuOpen)}
52+
aria-label="Open menu"
53+
>
54+
<svg
55+
xmlns="http://www.w3.org/2000/svg"
56+
width="24"
57+
height="24"
58+
viewBox="0 0 24 24"
59+
fill="none"
60+
stroke="currentColor"
61+
stroke-width="2"
62+
stroke-linecap="round"
63+
stroke-linejoin="round"
64+
>
5365
<line x1="3" y1="12" x2="21" y2="12"></line>
5466
<line x1="3" y1="6" x2="21" y2="6"></line>
5567
<line x1="3" y1="18" x2="21" y2="18"></line>
@@ -61,9 +73,13 @@
6173
{#if menuOpen}
6274
<!-- svelte-ignore a11y_click_events_have_key_events -->
6375
<!-- svelte-ignore a11y_no_static_element_interactions -->
64-
<div class="mobile-menu-overlay" onclick={() => menuOpen = false}>
76+
<div class="mobile-menu-overlay" onclick={() => (menuOpen = false)}>
6577
<div class="mobile-menu" onclick={(e) => e.stopPropagation()}>
66-
<button class="close-button" onclick={() => menuOpen = false} aria-label="Close menu">&times;</button>
78+
<button
79+
class="close-button"
80+
onclick={() => (menuOpen = false)}
81+
aria-label="Close menu">&times;</button
82+
>
6783
<ul>
6884
{#each links as [name, url]}
6985
<li class:active={currentPath === url}>
@@ -73,7 +89,7 @@
7389
rel={url.startsWith("http")
7490
? "noopener noreferrer"
7591
: undefined}
76-
onclick={() => menuOpen = false}
92+
onclick={() => (menuOpen = false)}
7793
>
7894
{name}
7995
</a>
@@ -225,7 +241,7 @@
225241
transition: background 0.2s;
226242
}
227243
.mobile-menu-button:hover {
228-
background: rgba(0,0,0,0.1);
244+
background: rgba(0, 0, 0, 0.1);
229245
}
230246
231247
.mobile-menu-overlay {
@@ -234,7 +250,7 @@
234250
left: 0;
235251
width: 100vw;
236252
height: 100vh;
237-
background: rgba(0,0,0,0.5);
253+
background: rgba(0, 0, 0, 0.5);
238254
z-index: 1001;
239255
display: flex;
240256
justify-content: flex-end;
@@ -254,8 +270,12 @@
254270
}
255271
256272
@keyframes slideIn {
257-
from { transform: translateX(100%); }
258-
to { transform: translateX(0); }
273+
from {
274+
transform: translateX(100%);
275+
}
276+
to {
277+
transform: translateX(0);
278+
}
259279
}
260280
261281
.mobile-menu .close-button {

static/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-10-17T06:13:18.105Z
1+
2025-10-17T06:17:09.059Z

0 commit comments

Comments
 (0)