From 498009554339ad58a70c6f6d37fbd0e7412c7616 Mon Sep 17 00:00:00 2001 From: sbilketay Date: Sat, 8 Nov 2025 12:49:10 +0300 Subject: [PATCH] =?UTF-8?q?=C3=87=C4=B1k=C4=B1=C5=9F=20Yap=20Butonu=20navb?= =?UTF-8?q?ar'a=20ta=C5=9F=C4=B1nd=C4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/components/Navbar.svelte | 45 ++++++++++++++++++++++++++- src/routes/dashboard/+page.svelte | 5 +-- src/routes/fuel-slips/+page.svelte | 6 +--- src/routes/goods-manager/+page.svelte | 6 +--- 4 files changed, 47 insertions(+), 15 deletions(-) diff --git a/src/lib/components/Navbar.svelte b/src/lib/components/Navbar.svelte index 6d443c4..8ee5e4f 100644 --- a/src/lib/components/Navbar.svelte +++ b/src/lib/components/Navbar.svelte @@ -1,5 +1,11 @@ @@ -59,6 +72,7 @@ display: flex; align-items: center; gap: 30px; + margin-right: 30px; } .nav-link { @@ -80,6 +94,25 @@ color: #ffffff; } + .logout-btn { + background: none; + border: none; + color: #ffffff; + font-size: 18px; + cursor: pointer; + padding: 8px; + border-radius: 6px; + transition: all 0.3s ease; + display: flex; + align-items: center; + justify-content: center; + } + + .logout-btn:hover { + background-color: #34495e; + transform: scale(1.1); + } + @media (max-width: 768px) { .navbar-content { padding: 0 var(--page-horizontal-padding); @@ -106,6 +139,11 @@ padding: 6px 12px; font-size: 14px; } + + .logout-btn { + font-size: 16px; + padding: 6px; + } } @media (max-width: 480px) { @@ -127,5 +165,10 @@ padding: 4px 8px; font-size: 12px; } + + .logout-btn { + font-size: 14px; + padding: 4px; + } } diff --git a/src/routes/dashboard/+page.svelte b/src/routes/dashboard/+page.svelte index d6d5eb0..901c70a 100644 --- a/src/routes/dashboard/+page.svelte +++ b/src/routes/dashboard/+page.svelte @@ -759,10 +759,7 @@ - - + diff --git a/src/routes/fuel-slips/+page.svelte b/src/routes/fuel-slips/+page.svelte index 23573d7..b6d34ce 100644 --- a/src/routes/fuel-slips/+page.svelte +++ b/src/routes/fuel-slips/+page.svelte @@ -259,11 +259,7 @@ return type === 'benzin' ? 'Benzin' : 'Motorin'; } - function handleLogout() { - localStorage.removeItem('user'); - goto('/'); - } - + function goBack() { goto('/dashboard'); } diff --git a/src/routes/goods-manager/+page.svelte b/src/routes/goods-manager/+page.svelte index c337b05..f9a3e2c 100644 --- a/src/routes/goods-manager/+page.svelte +++ b/src/routes/goods-manager/+page.svelte @@ -168,11 +168,7 @@ return 'priority-low'; } - function handleLogout() { - localStorage.removeItem('user'); - goto('/'); - } - + function goBack() { goto('/dashboard'); }