diff --git a/client/src/App.svelte b/client/src/App.svelte index 34b9652..7a87329 100644 --- a/client/src/App.svelte +++ b/client/src/App.svelte @@ -11,30 +11,38 @@ const token = localStorage.getItem("token"); let menuOpen = false; + + // Menü aç/kapat (hamburger butonuyla) const toggleMenu = () => { menuOpen = !menuOpen; }; + + // 🔹 Sidebar'ı kapatma fonksiyonu + function closeSidebar() { + menuOpen = false; + } {#if token}
- + + + +
+
+ + {#if menuOpen} -
{ - menuOpen = false; - }} - >
+
{/if}
diff --git a/client/src/components/Sidebar.svelte b/client/src/components/Sidebar.svelte index 3292ab3..ad91f6b 100644 --- a/client/src/components/Sidebar.svelte +++ b/client/src/components/Sidebar.svelte @@ -1,22 +1,66 @@ diff --git a/client/src/components/Topbar.svelte b/client/src/components/Topbar.svelte index 913e44c..387a14e 100644 --- a/client/src/components/Topbar.svelte +++ b/client/src/components/Topbar.svelte @@ -1,15 +1,20 @@
- - @@ -18,3 +23,51 @@
+ + diff --git a/client/src/routes/Files.svelte b/client/src/routes/Files.svelte index 54c191b..14acd05 100644 --- a/client/src/routes/Files.svelte +++ b/client/src/routes/Files.svelte @@ -1,5 +1,5 @@ @@ -153,9 +219,15 @@ {:else} @@ -172,39 +251,69 @@ {#if showModal && selectedVideo} +