diff --git a/src/lib/components/functional/Navbar.svelte b/src/lib/components/functional/Navbar.svelte
index aec150d..c3ff262 100644
--- a/src/lib/components/functional/Navbar.svelte
+++ b/src/lib/components/functional/Navbar.svelte
@@ -138,13 +138,14 @@
{#if linkRects[selectedIndex]}
+ {#if browser && window.innerWidth < 768}
+
+ {/if}
{/if}
+ import { browser } from "$app/environment";
import { beforeNavigate, goto } from "$app/navigation";
import { page } from "$app/stores";
import { PUB_HOSTNAME, PUB_PLAUSIBLE_URL } from "$env/static/public";
@@ -7,6 +8,7 @@
import ConversionPanel from "$lib/components/functional/ConversionPanel.svelte";
import Navbar from "$lib/components/functional/Navbar.svelte";
import Footer from "$lib/components/visual/Footer.svelte";
+ import Logo from "$lib/components/visual/svg/Logo.svelte";
import { files } from "$lib/store/index.svelte";
import {
InfoIcon,
@@ -23,6 +25,7 @@
let shouldGoBack = writable(false);
let navbar = $state
();
+ let isMobile = $state(false);
let hover = $state(false);
const items = $derived<
@@ -79,6 +82,20 @@
navbar?.addEventListener("mouseenter", mouseEnter);
navbar?.addEventListener("mouseleave", mouseLeave);
+
+ if (browser) {
+ isMobile = window.innerWidth < 768;
+
+ const handleResize = () => {
+ isMobile = window.innerWidth < 768;
+ };
+
+ window.addEventListener("resize", handleResize);
+
+ return () => {
+ window.removeEventListener("resize", handleResize);
+ };
+ }
});
let goingLeft = $state(false);
@@ -112,46 +129,67 @@
-
-
-
- {#if items
- .find((i) => i.url === "/convert")
- ?.activeMatch($page.url.pathname)}
+
+
+ {#if isMobile}
+
-
+ {/if}
+
+
+ {#if !isMobile}
+
+
+
+ {#if items
+ .find((i) => i.url === "/convert")
+ ?.activeMatch($page.url.pathname)}
+
+
+
+ {/if}
+
+
+ {/if}
{#key data.pathname}
@@ -190,7 +228,9 @@
{@render children()}
-
+
+
+ {#if isMobile}
+
+
+ {#if items
+ .find((i) => i.url === "/convert")
+ ?.activeMatch($page.url.pathname)}
+
+
+
+ {/if}
+
+
+
+ {/if}
{#if data.pathname === "/"}