update alpha version
This commit is contained in:
@@ -75,7 +75,7 @@ func AdminDashboardHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
"ValidatedCount": validatedCount,
|
"ValidatedCount": validatedCount,
|
||||||
"HousesLeftPercent": housesLeftPercent,
|
"HousesLeftPercent": housesLeftPercent,
|
||||||
"ShowAdminNav": true,
|
"ShowAdminNav": true,
|
||||||
"UserName": username,
|
"UserName": username,
|
||||||
"Role": role,
|
"Role": role,
|
||||||
"ActiveSection": "dashboard",
|
"ActiveSection": "dashboard",
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -28,31 +28,35 @@
|
|||||||
<button @click="sidebarOpen = !sidebarOpen" class="p-2 hover:bg-gray-200 rounded">
|
<button @click="sidebarOpen = !sidebarOpen" class="p-2 hover:bg-gray-200 rounded">
|
||||||
<i class="fas fa-bars text-gray-600"></i>
|
<i class="fas fa-bars text-gray-600"></i>
|
||||||
</button>
|
</button>
|
||||||
<span class="text-white font-semibold">Hi, {{.UserName}}</span>
|
<span class="text-sm font-medium text-gray-600">{{.UserName}}</span>
|
||||||
|
<div class="w-9 h-9 bg-blue-500 rounded-full flex items-center justify-center text-white font-semibold">
|
||||||
<a href="/logout" class="p-2 hover:bg-gray-200 rounded">
|
{{slice .UserName 0 1}}
|
||||||
<i class="fas fa-external-link-alt text-gray-500"></i>
|
</div>
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Desktop Title Bar -->
|
<!-- Desktop Title Bar -->
|
||||||
<div class="hidden lg:flex bg-gray-100 px-4 py-3 items-center justify-between border-b border-gray-200">
|
<div class="hidden lg:flex bg-gray-100 px-4 py-3 items-center justify-between border-b border-gray-200">
|
||||||
|
<!-- Left Side: Logo + Title -->
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<div class="w-5 h-5 bg-orange-500 rounded text-white text-xs flex items-center justify-center font-bold">
|
<div class="w-6 h-6 bg-orange-500 rounded-full text-white text-xs flex items-center justify-center font-bold">
|
||||||
L
|
L
|
||||||
</div>
|
</div>
|
||||||
<span class="text-sm font-medium">Poll System</span>
|
<span class="text-sm font-medium">Poll System</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center gap-2">
|
|
||||||
<span class="text-white font-semibold">Hi, {{.UserName}}</span>
|
|
||||||
|
|
||||||
<a href="/logout" class="p-2 hover:bg-gray-100 rounded inline-block">
|
<!-- Right Side: User Info -->
|
||||||
<i class="fas fa-external-link-alt text-gray-500"></i>
|
<div class="flex items-center gap-3">
|
||||||
</a>
|
<span class="text-sm font-medium text-gray-600">Welcome, {{.UserName}}</span>
|
||||||
|
<div class="w-9 h-9 bg-blue-500 rounded-full flex items-center justify-center text-white font-semibold">
|
||||||
|
{{slice .UserName 0 1}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="flex h-full">
|
<div class="flex h-full">
|
||||||
<!-- Mobile Sidebar Overlay -->
|
<!-- Mobile Sidebar Overlay -->
|
||||||
<div x-show="sidebarOpen"
|
<div x-show="sidebarOpen"
|
||||||
@@ -158,6 +162,13 @@
|
|||||||
<i class="fas fa-user-circle text-gray-400 mr-2"></i>
|
<i class="fas fa-user-circle text-gray-400 mr-2"></i>
|
||||||
<span>Profile</span>
|
<span>Profile</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
<a href="/logout"
|
||||||
|
@click="sidebarOpen = false"
|
||||||
|
class="flex items-center text-sm text-gray-600 hover:bg-gray-100 rounded px-2 py-1 {{if eq .ActiveSection "profile"}}bg-gray-100{{end}}">
|
||||||
|
<i class="fas fa-sign-out-alt text-gray-400 mr-2"></i>
|
||||||
|
<span>Logout</span>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
BIN
app/tmp/main
BIN
app/tmp/main
Binary file not shown.
Reference in New Issue
Block a user