blob: 2d35b37651be6a95ffd9c764b5d1a7226f91bbb1 (
plain)
1
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
46
47
48
49
50
51
52
53
54
55
56
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Personal Dashboard</title>
<link rel="stylesheet" href="/static/css/output.css">
</head>
<body class="min-h-screen">
<div class="content-max-width py-8">
<!-- Header -->
<header class="mb-8 flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4">
<h1 class="text-4xl font-bold text-gray-900">Personal Dashboard</h1>
<div class="flex items-center gap-4">
<span class="text-sm text-gray-600">
Last updated: <span id="last-updated">{{.LastUpdated.Format "3:04 PM"}}</span>
</span>
<button onclick="refreshData()"
class="bg-primary-600 hover:bg-primary-700 text-white px-4 py-2 rounded-lg transition-colors font-medium no-print">
<span id="refresh-text">Refresh</span>
</button>
</div>
</header>
<!-- Tab Navigation -->
<div class="border-b border-gray-200 mb-8 no-print">
<nav class="-mb-px flex space-x-8">
<button
class="tab-button tab-button-active"
hx-get="/tabs/tasks"
hx-target="#tab-content"
hx-push-url="false"
onclick="setActiveTab(this)">
📋 Tasks & Planning
</button>
<button
class="tab-button"
hx-get="/tabs/notes"
hx-target="#tab-content"
hx-push-url="false"
onclick="setActiveTab(this)">
📝 Notes
</button>
</nav>
</div>
<!-- Tab Content -->
<div id="tab-content">
{{template "tasks-tab" .}}
</div>
</div>
<script src="/static/js/htmx.min.js"></script>
<script src="/static/js/app.js"></script>
</body>
</html>
|