diff --git a/resources/views/components/sidebar.blade.php b/resources/views/components/sidebar.blade.php index 8fa7363..e8d4cf2 100644 --- a/resources/views/components/sidebar.blade.php +++ b/resources/views/components/sidebar.blade.php @@ -1,15 +1,15 @@ @php - $workspace = current_workspace(); + $workspace = current_workspace(); $workspaces = auth()->check() ? auth()->user()->workspaces()->orderBy('name')->get() : collect(); - $wsUlid = $workspace?->ulid; + $wsUlid = $workspace?->ulid; $wsNav = $workspace ? [ - ['label' => 'Dashboard', 'route' => 'w.dashboard', 'params' => [$wsUlid], 'match' => 'w.dashboard', 'icon' => 'dashboard', 'exact' => true], - ['label' => 'Links', 'route' => 'w.links.index', 'params' => [$wsUlid], 'match' => 'w.links.*', 'icon' => 'links'], - ['label' => 'QR Codes', 'route' => 'w.qr.index', 'params' => [$wsUlid], 'match' => 'w.qr.*', 'icon' => 'qr'], - ['label' => 'Link-in-Bio','route' => 'w.bio.index', 'params' => [$wsUlid], 'match' => 'w.bio.*', 'icon' => 'bio'], - ['label' => 'Analytics', 'route' => 'w.analytics.index','params' => [$wsUlid], 'match' => 'w.analytics.*', 'icon' => 'analytics'], - ['label' => 'Domains', 'route' => 'w.domains.index', 'params' => [$wsUlid], 'match' => 'w.domains.*', 'icon' => 'domains'], + ['label' => 'Dashboard', 'route' => 'w.dashboard', 'params' => [$wsUlid], 'match' => 'w.dashboard', 'icon' => 'dashboard', 'exact' => true], + ['label' => 'Links', 'route' => 'w.links.index', 'params' => [$wsUlid], 'match' => 'w.links.*', 'icon' => 'links'], + ['label' => 'QR Codes', 'route' => 'w.qr.index', 'params' => [$wsUlid], 'match' => 'w.qr.*', 'icon' => 'qr'], + ['label' => 'Link-in-Bio','route' => 'w.bio.index', 'params' => [$wsUlid], 'match' => 'w.bio.*', 'icon' => 'bio'], + ['label' => 'Analytics', 'route' => 'w.analytics.index', 'params' => [$wsUlid], 'match' => 'w.analytics.*', 'icon' => 'analytics'], + ['label' => 'Domains', 'route' => 'w.domains.index', 'params' => [$wsUlid], 'match' => 'w.domains.*', 'icon' => 'domains'], ] : [ ['label' => 'Dashboard', 'route' => 'dashboard', 'params' => [], 'match' => 'dashboard', 'icon' => 'dashboard', 'exact' => true], ]; @@ -33,44 +33,34 @@ diff --git a/resources/views/layouts/nimuli-app.blade.php b/resources/views/layouts/nimuli-app.blade.php index eec2bd3..7d0cb0d 100644 --- a/resources/views/layouts/nimuli-app.blade.php +++ b/resources/views/layouts/nimuli-app.blade.php @@ -100,10 +100,11 @@ /* Sidebar shell */ .nim-sidebar { width: var(--nim-sb-w); - background: var(--nim-surface); - border-right: 1px solid var(--nim-border); + background: var(--color-s1); + border-right: 1px solid var(--color-b1); overflow-x: hidden; font-family: 'Geist', 'Inter', ui-sans-serif, system-ui, sans-serif; + transition: width .28s cubic-bezier(.4,0,.2,1), translate .28s cubic-bezier(.4,0,.2,1); } /* Content margin */ @@ -114,20 +115,20 @@ } /* Nav items */ - .nav-item { color: var(--nim-text-muted); } - .nav-item:hover { background: var(--nim-surface-3) !important; color: var(--nim-text) !important; } + .nav-item { color: var(--color-t2); text-decoration: none; } + .nav-item:hover:not(.nim-nav-active) { background: var(--color-s3); color: var(--color-t1); } .nav-item.nim-nav-active { - background: var(--nim-accent-bg); - color: var(--nim-accent-2); - box-shadow: inset 0 0 0 1px rgba(139,92,246,.18); + background: rgba(124,58,237,.12); + color: var(--color-accent); + box-shadow: inset 0 0 0 1px rgba(124,58,237,.2); } - .nav-item.nim-nav-active svg { color: var(--nim-accent-2); } + .nav-item.nim-nav-active svg { color: var(--color-accent); } .nav-item.nim-nav-active::before { content: ''; position: absolute; left: -10px; top: 50%; transform: translateY(-50%); width: 3px; height: 18px; - background: var(--nim-accent); border-radius: 0 3px 3px 0; - box-shadow: 0 0 12px var(--nim-accent-glow); + background: var(--color-accent); border-radius: 0 3px 3px 0; + box-shadow: 0 0 12px rgba(124,58,237,.5); } /* Nav scrollbar */ @@ -136,8 +137,7 @@ .nim-sb-nav::-webkit-scrollbar-thumb { background: var(--nim-border-strong); border-radius: 3px; } .nim-sb-nav::-webkit-scrollbar-track { background: transparent; } - /* Logout hover */ - .user-logout-btn button:hover { color: #ef4444 !important; background: rgba(239,68,68,.08); border-radius: .5rem; } + /* Logout hover (Tailwind handles this via hover:text-red-400 hover:bg-red-400/10) */ /* Collapse state — desktop only */ @media (min-width: 768px) { @@ -162,10 +162,10 @@ html[data-sidebar-collapsed] .nav-item:hover::after { content: attr(data-label); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); - background: var(--nim-surface-3); color: var(--nim-text); + background: var(--color-s3); color: var(--color-t1); padding: 6px 10px; border-radius: 6px; font-size: 12.5px; white-space: nowrap; pointer-events: none; - border: 1px solid var(--nim-border-strong); + border: 1px solid var(--color-b2); box-shadow: 0 8px 24px -6px rgba(0,0,0,.5); z-index: 100; } }