some-automoderation/routes/templates/index.gohtml

34 lines
921 B
Plaintext

<!doctype html>
<html class="no-js" lang="">
<body>
{{ define "main-content" }}
<main
class="grid grid-cols-2 h-full"
>
{{ if not .AuthedData.IsZero }}
<section>
<h1>Hello</h1>
<p>This is index</p>
<p>Your session is {{ .AuthedData.SessionStringToken }}</p>
<p>Some string is {{ .AuthedData.SomeString }}</p>
<a
href="/room/{{ .AuthedData.Session.RoomId }}"
class="text-blue-700 underline"
>You've logged into a room {{ .AuthedData.Session.RoomId }}</a
>
</section>
{{ else }}
<section class="border grid place-content-center">
<div class="h-fit w-fit">
{{ template "loginSection" .LoginSectionData }}
</div>
</section>
{{ end }}
<section class="border">
<h2>Here be rules</h2>
</section>
</main>
{{ end }}
</body>
</html>