blob: 04751b147bb133aed5c6bf495a8282ee8084f934 (
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
|
package view
import (
"stevenlr.com/locker/model"
)
templ Main(contents templ.Component, currentUser *model.User) {
<!DOCTYPE html>
<html>
<head>
<title>Cool locker app</title>
<link rel="stylesheet" href="/static/style.css" />
<script type="module" src="/static/ui-components.js"></script>
<script src="/static/htmx.min.js"></script>
<script src="/static/response-targets.js"></script>
</head>
<body
hx-boost="true"
hx-ext="response-targets"
class="
w-full sm:max-w-screen-sm md:max-w-screen-md
mx-auto py-6
bg-slate-900
text-slate-400
"
>
@LoginForm(currentUser)
@contents
</body>
</html>
}
|