2023-04-13 00:07:08 +02:00
|
|
|
{{ template "head.tmpl" . }}
|
|
|
|
<body class="h-screen bg-white dark:bg-gray-900">
|
|
|
|
{{ template "navbar.tmpl" . }}
|
|
|
|
<main class="grow">
|
2023-08-03 14:55:41 +02:00
|
|
|
<div class="px-2 md:px-0 place-items-center text-center">
|
2023-08-24 18:43:24 +02:00
|
|
|
{{ if and .Data .Data.flash }}
|
|
|
|
<h1 class="text-xl text-pink-600 dark:text-pink-500 py-2">
|
|
|
|
{{ .Data.flash }}
|
|
|
|
</h1>
|
|
|
|
{{- end }}
|
2023-08-03 14:55:41 +02:00
|
|
|
{{ if .Name -}}
|
|
|
|
<h1 class="mt-20 text-2xl text-pink-400 font-bold">
|
|
|
|
Welcome, <code>{{.Name}}</code>!<br>
|
|
|
|
</h1>
|
|
|
|
<div class="mt-8 md:flex md:items-center md:place-items-center md:justify-between">
|
|
|
|
<form method="POST" class="w-full md:w-5xl" action="/logout">
|
|
|
|
<input type="hidden" name="csrf" value="{{- .CSRF -}}">
|
|
|
|
<button
|
|
|
|
class="w-full py-3 text-sm font-medium tracking-wide text-white capitalize transition-colors duration-300 transform bg-blue-500 rounded-lg md:w-1/4 hover:bg-blue-400 focus:outline-none focus:ring focus:ring-blue-300 focus:ring-opacity-50"
|
|
|
|
type="submit">Logout</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{{- else }}
|
2023-04-13 00:07:08 +02:00
|
|
|
<h1 class="mt-20 text-2xl text-pink-400 font-bold">
|
|
|
|
Please log in.
|
|
|
|
</h1>
|
2023-08-03 14:55:41 +02:00
|
|
|
{{- end -}}
|
2023-04-13 00:07:08 +02:00
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
{{ template "footer.tmpl" . }}
|