35 lines
968 B
Plaintext
35 lines
968 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">
|
|
<h2>hoho, the session is missing. let's do the auth section</h2>
|
|
<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>
|