Initial commit

This commit is contained in:
Vojtěch Káně
2020-12-03 23:07:44 +01:00
commit 28e22e3422
24 changed files with 1526 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
{{- template "base" . -}}
{{- define "aditional-css" -}}
<link rel="stylesheet" href="/static/home.css">
{{ end -}}
{{- define "aditional-js" -}}
<script src="/static/home.js"></script>
{{ end -}}
{{- define "main" }}
<main>
<section>
<h1>Statistiky</h1>
<p>
Celkem odehráno {{ .Stats.Sessions }} her {{ .Stats.Players }} hráči.
Celkem je k dispozici {{ .Stats.Games }} kvízů.
</p>
</section>
<section>
<h1>Připojit se ke hře</h1>
<form id="join" method="post">
<label>Kód hry: <input type="text" name="code" placeholder="Kód hry"></label>
<label>Jméno hráče: <input type="text" name="player" placeholder="Jméno"></label>
<input type="submit" value="Připojit do hry">
</form>
</section>
<section>
<h1>Začít hrát</h1>
<form id="play" method="post" action="/play">
<label>Kód kvízu: <input type="text" name="code" placeholder="Kód kvizu"></label>
<label>Jméno organizátora: <input type="text" name="organiser" placeholder="Jméno"></label>
<input type="submit" value="Začit hrát">
</form>
</section>
<section>
<h1>Vytvořit nový kvíz</h1>
<form id="new" method="get" action="/new">
<label>Jméno kvízu: <input type="text" name="quiz" placeholder="Jméno kvízu"></label>
<label>Jméno autora: <input type="text" name="author" placeholder="Jméno"></label>
<input type="submit" value="Vytvořit">
</form>
</section>
</main>
{{ end -}}