aboutsummaryrefslogtreecommitdiff
path: root/poll/public
diff options
context:
space:
mode:
authorMarvin Borner2020-10-03 13:33:29 +0200
committerMarvin Borner2020-10-03 13:33:29 +0200
commit88a2c395ad96c65d75ea64c57d68b62d93bc12c3 (patch)
treeb476ebb9875789e857f5f8d96027aef292be93b7 /poll/public
parenta6cd52452e504c23921bb0be32e883b9efd97da7 (diff)
Added navbar
Diffstat (limited to 'poll/public')
-rw-r--r--poll/public/index.html9
-rw-r--r--poll/public/style.css6
2 files changed, 12 insertions, 3 deletions
diff --git a/poll/public/index.html b/poll/public/index.html
index 8530b76..dd66c96 100644
--- a/poll/public/index.html
+++ b/poll/public/index.html
@@ -14,7 +14,12 @@
<title>Schüler-Ranking</title>
</head>
<body>
- <div>
+ <div class="pure-menu pure-menu-horizontal">
+ <a href="/" class="pure-menu-item pure-menu-link">Home</a>
+ <a href="/auth/api/logout" class="pure-menu-item pure-menu-link">Logout</a>
+ </div>
+
+ <main>
<form class="pure-form pure-form-stacked" action="api/answer" method="post">
<fieldset>
<!-- TODO: Add progress -->
@@ -28,7 +33,7 @@
<button type="submit" class="pure-button pure-button-primary">Antworten</button>
</fieldset>
</form>
- </div>
+ </main>
<script src="script.js" charset="utf-8"></script>
</body>
diff --git a/poll/public/style.css b/poll/public/style.css
index 2c9c695..8ef7b57 100644
--- a/poll/public/style.css
+++ b/poll/public/style.css
@@ -9,6 +9,10 @@ body {
}
div {
+ background: white;
+}
+
+main {
position: absolute;
max-height: 80%;
overflow-y: scroll;
@@ -29,7 +33,7 @@ select {
}
@media only screen and (max-width: 600px) {
- div {
+ main {
width: calc(100% - 50px);
}
}