ui: status+Import+Summary on tab line; Summary brighter; Admin pinned to sidebar bottom
This commit is contained in:
parent
449a902b4d
commit
28189e17d1
|
|
@ -15,28 +15,16 @@
|
|||
|
||||
{{define "content"}}
|
||||
<div class="p-8" style="max-width:calc(100vw - 14rem)">
|
||||
<!-- Header -->
|
||||
<div class="flex items-start justify-between mb-6">
|
||||
<div>
|
||||
<div class="flex items-center gap-3 mb-1">
|
||||
<span id="projectStatus" class="px-2.5 py-0.5 rounded-full text-xs font-medium"></span>
|
||||
</div>
|
||||
<p id="projectDesc" class="text-[#94a3b8] text-sm"></p>
|
||||
</div>
|
||||
<div class="flex gap-2">
|
||||
<button onclick="openImportModal()" class="px-4 py-2 bg-white/[0.05] hover:bg-white/[0.08] text-white rounded-lg text-sm transition flex items-center gap-2">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"/></svg>
|
||||
Import
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<p id="projectDesc" class="text-[#94a3b8] text-sm mb-4"></p>
|
||||
|
||||
<!-- Tabs -->
|
||||
<!-- Tabs + actions on one line -->
|
||||
<div class="flex items-end gap-6 border-b border-white/[0.08] mb-6">
|
||||
<button class="tab active pb-3 text-base font-medium transition" onclick="switchTab('requests', this)">Requests</button>
|
||||
<button class="tab pb-3 text-base font-medium text-[#94a3b8] transition" onclick="switchTab('orgs', this)">Parties</button>
|
||||
<div class="ml-auto pb-2">
|
||||
<button id="detailToggle" onclick="toggleDetailMode()" class="px-3 py-1 bg-white/[0.05] hover:bg-white/[0.08] text-[#94a3b8] hover:text-white rounded text-xs font-medium transition">Summary</button>
|
||||
<div class="ml-auto flex items-center gap-2 pb-2">
|
||||
<span id="projectStatus" class="px-2 py-0.5 rounded text-xs font-medium"></span>
|
||||
<button onclick="openImportModal()" class="px-3 py-1 bg-white/[0.07] hover:bg-white/[0.12] text-white rounded text-xs font-medium transition">Import</button>
|
||||
<button id="detailToggle" onclick="toggleDetailMode()" class="px-3 py-1 bg-white/[0.07] hover:bg-white/[0.12] text-[#cbd5e1] hover:text-white rounded text-xs font-medium transition">Summary</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
<div class="flex">
|
||||
<!-- Sidebar -->
|
||||
<nav class="w-60 bg-[#0d1f3c] border-r border-white/[0.08] min-h-[calc(100vh-57px)] sticky top-[57px] shrink-0">
|
||||
<nav class="w-60 bg-[#0d1f3c] border-r border-white/[0.08] min-h-[calc(100vh-57px)] sticky top-[57px] shrink-0 flex flex-col justify-between">
|
||||
<div class="p-3 space-y-0.5">
|
||||
<a href="/app/tasks" class="sidebar-link {{if eq .ActiveNav "tasks"}}active{{end}} flex items-center gap-3 px-3 py-2.5 rounded-lg text-base font-medium text-[#94a3b8] transition">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"/></svg>
|
||||
|
|
@ -38,13 +38,13 @@
|
|||
<a href="/app/orgs" class="sidebar-link {{if eq .ActiveNav "orgs"}}active{{end}} flex items-center gap-3 px-3 py-2.5 rounded-lg text-base font-medium text-[#94a3b8] transition">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"/></svg>
|
||||
Organizations</a>
|
||||
<div id="adminLinks" class="hidden">
|
||||
<div class="border-t border-white/[0.08] my-3"></div>
|
||||
</div>
|
||||
<div id="adminLinks" class="hidden p-3">
|
||||
<div class="border-t border-white/[0.08] mb-3"></div>
|
||||
<a href="/admin" class="sidebar-link {{if eq .ActiveNav "admin"}}active{{end}} flex items-center gap-3 px-3 py-2.5 rounded-lg text-base font-medium text-[#94a3b8] transition">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"/><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/></svg>
|
||||
Admin</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<!-- Page content -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue