dashboard.html
45 lines1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{{template "main.html" .}}
{{define "title"}}Dashboard — Congo Dev{{end}}
{{define "content"}}
<!-- System Stats -->
<section id="system-bar" hx-get="/stats" hx-trigger="load, every 10s" hx-swap="innerHTML" class="mb-4">
<div class="grid grid-cols-2 sm:grid-cols-4 gap-3">
<div class="bg-white rounded-xl border border-slate-200/60 p-3 animate-pulse">
<div class="flex items-center justify-between mb-2"><div class="h-2.5 w-8 bg-slate-200 rounded"></div><div class="h-3 w-10 bg-slate-200 rounded"></div></div>
<div class="w-full h-1.5 bg-slate-100 rounded-full"></div>
<div class="h-2 w-20 bg-slate-100 rounded mt-1.5"></div>
</div>
<div class="bg-white rounded-xl border border-slate-200/60 p-3 animate-pulse">
<div class="flex items-center justify-between mb-2"><div class="h-2.5 w-8 bg-slate-200 rounded"></div><div class="h-3 w-10 bg-slate-200 rounded"></div></div>
<div class="w-full h-1.5 bg-slate-100 rounded-full"></div>
<div class="h-2 w-20 bg-slate-100 rounded mt-1.5"></div>
</div>
<div class="bg-white rounded-xl border border-slate-200/60 p-3 animate-pulse">
<div class="flex items-center justify-between mb-2"><div class="h-2.5 w-8 bg-slate-200 rounded"></div><div class="h-3 w-10 bg-slate-200 rounded"></div></div>
<div class="w-full h-1.5 bg-slate-100 rounded-full"></div>
<div class="h-2 w-20 bg-slate-100 rounded mt-1.5"></div>
</div>
<div class="bg-white rounded-xl border border-slate-200/60 p-3 animate-pulse">
<div class="flex items-center justify-between mb-2"><div class="h-2.5 w-8 bg-slate-200 rounded"></div><div class="h-3 w-10 bg-slate-200 rounded"></div></div>
<div class="w-full h-1.5 bg-slate-100 rounded-full"></div>
<div class="h-2 w-20 bg-slate-100 rounded mt-1.5"></div>
</div>
</div>
</section>
<!-- Two-Column Layout -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-4">
<!-- Left Column -->
<div class="lg:col-span-2 space-y-4">
{{template "projects-panel.html" .}}
{{template "services-panel.html" .}}
</div>
<!-- Right Column -->
<div class="space-y-4">
{{template "tasks-panel.html" .}}
</div>
</div>
{{end}}