Repository navigation
Expand file tree
/
Copy pathbase.html
More file actions
51 lines (49 loc) · 2.03 KB
/
Copy pathbase.html
File metadata and controls
51 lines (49 loc) · 2.03 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>staticSend - {{.Title}}</title>
<script src="https://unpkg.com/htmx.org@2.0.6"></script>
<script src="https://unpkg.com/hyperscript.org@0.9.14"></script>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
</head>
<body class="bg-gray-50 min-h-screen">
{{if .ShowHeader}}
<header class="bg-white shadow-sm border-b">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between items-center h-16">
<div class="flex items-center">
<h1 class="text-xl font-semibold text-gray-900">staticSend</h1>
</div>
{{if .User}}
<div class="flex items-center space-x-4">
<span class="text-sm text-gray-700">{{.User.Email}}</span>
<a href="/settings" class="text-sm text-gray-500 hover:text-gray-700">
Settings
</a>
<button hx-get="/auth/logout" hx-target="body" class="text-sm text-gray-500 hover:text-gray-700">
Logout
</button>
</div>
{{end}}
</div>
</div>
</header>
{{end}}
<main class="max-w-7xl mx-auto py-6 sm:px-6 lg:px-8">
{{template "content" .}}
</main>
{{if .Flash}}
<div id="flash-message" class="fixed top-4 right-4 z-50">
<div class="bg-green-100 border border-green-400 text-green-700 px-4 py-3 rounded relative shadow-lg">
<span class="block sm:inline">{{.Flash}}</span>
<button onclick="document.getElementById('flash-message').remove()" class="absolute top-0 right-0 px-2 py-1">
<i class="fas fa-times"></i>
</button>
</div>
</div>
{{end}}
</body>
</html>