diff options
Diffstat (limited to 'web/templates/index.html')
| -rw-r--r-- | web/templates/index.html | 42 |
1 files changed, 12 insertions, 30 deletions
diff --git a/web/templates/index.html b/web/templates/index.html index 2cd4c59..18aa56b 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -8,43 +8,25 @@ <link rel="stylesheet" href="/static/css/output.css"> </head> <body class="min-h-screen" hx-headers='{"X-CSRF-Token": "{{.CSRFToken}}"}'> - <div class="content-max-width py-4 sm:py-8"> - <!-- Header - Hidden on mobile --> - <header class="hidden sm:flex mb-8 flex-row justify-between 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> - <form method="POST" action="/logout" class="no-print"> - <input type="hidden" name="csrf_token" value="{{.CSRFToken}}"> - <button type="submit" - class="text-gray-600 hover:text-gray-900 px-3 py-2 rounded-lg transition-colors font-medium"> - Logout - </button> - </form> - </div> - </header> - - <!-- Mobile Header - Compact --> - <header class="flex sm:hidden mb-4 justify-between items-center"> + <div class="content-max-width py-3 sm:py-6"> + <!-- Minimal Header --> + <header class="flex mb-4 sm:mb-6 justify-between items-center no-print"> <button onclick="refreshData()" - class="text-primary-600 p-2 no-print"> - <span id="refresh-text-mobile">↻</span> + class="text-gray-400 hover:text-primary-600 transition-colors p-1" + title="Refresh"> + <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"> + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"></path> + </svg> </button> - <span class="text-xs text-gray-500" id="last-updated-mobile">{{.LastUpdated.Format "3:04 PM"}}</span> - <form method="POST" action="/logout" class="no-print"> + <span class="text-xs text-gray-400" id="last-updated">{{.LastUpdated.Format "3:04 PM"}}</span> + <form method="POST" action="/logout"> <input type="hidden" name="csrf_token" value="{{.CSRFToken}}"> - <button type="submit" class="text-gray-500 text-sm p-2">Logout</button> + <button type="submit" class="text-gray-400 hover:text-gray-600 transition-colors text-xs">Logout</button> </form> </header> <!-- Tab Navigation --> - <div class="mb-8 no-print"> + <div class="mb-4 sm:mb-6 no-print"> <nav class="flex space-x-1 bg-white/30 backdrop-blur-md rounded-xl p-1"> <button class="tab-button {{if eq .ActiveTab "tasks"}}tab-button-active{{end}}" |
