diff --git a/templates/index.stpl b/templates/index.stpl index 6ec9f32..c77fa8f 100644 --- a/templates/index.stpl +++ b/templates/index.stpl @@ -3,35 +3,33 @@ zettoIT ARS - +
-

zettoIT ARS is a lightweight open source audience response system built with rust.

+

zettoIT ARS is a lightweight open source audience response system built with rust.

A quiz can be created by uploading a toml-encoded Quizfile. A basic example is listed below:

- - # number of seconds to wait before showing results
- wait_for = 15
-
- [[questions]]
- # type of the question (currently only single_choice)
- type = "single_choice"
- # name of the question
- name = "Who is there?"
- # array of possible answers
- answers = [ "A", "B", "C", "D"]
- # index (starting at 0) of the correct answer
- correct = 0
-
- [[questions]]
- type = "single_choice"
- name = "What is there?"
- answers = [ "A", "B", "C", "D"]
- correct = 0
-
+
+# number of seconds to wait before showing results
+wait_for = 15
 
-            
+[[questions]] +# type of the question (currently only single_choice) +type = "single_choice" +# name of the question +name = "Who is there?" +# array of possible answers +answers = [ "A", "B", "C", "D"] +# index (starting at 0) of the correct answer +correct = 0 + +[[questions]] +type = "single_choice" +name = "What is there?" +answers = [ "A", "B", "C", "D"] +correct = 0 +
@@ -39,6 +37,7 @@
+ zettoIT Logo diff --git a/templates/play.stpl b/templates/play.stpl index f350ef3..2ee0d1b 100644 --- a/templates/play.stpl +++ b/templates/play.stpl @@ -4,7 +4,7 @@ zettoIT ARS - + @@ -30,6 +30,7 @@ <% if !htmx { %> + zettoIT Logo diff --git a/templates/single_choice/result.stpl b/templates/single_choice/result.stpl index 55509bc..988741f 100644 --- a/templates/single_choice/result.stpl +++ b/templates/single_choice/result.stpl @@ -1,20 +1,18 @@ <% if is_correct { %> -
-
-

Correct

-

Your answer is correct. The correct answer is <%= correct_answer %>.

+
+

Correct

+

Your answer is correct. The correct answer is <%= correct_answer %>.

<% } else { %> -
-
-

Wrong

-

+

+

Wrong

+

Your answer is incorrect. The correct answer is <%= correct_answer %>. <% if let Some(player_answer) = player_answer { %> You answered <%= player_answer %>. <% } else { %> You didn't answer the question. <% } %> -

+

<% } %> diff --git a/templates/view.stpl b/templates/view.stpl index b654e81..5ce02db 100644 --- a/templates/view.stpl +++ b/templates/view.stpl @@ -4,16 +4,20 @@ zettoIT ARS - - + +
<% } %> -

zettoIT ARS

- <% if let ViewerState::Answering{ inner_body } = state { %> <%- inner_body %> @@ -31,8 +35,8 @@ <% } else if let ViewerState::NotStarted((player, qrcode, url)) = state { %>
-
<%- qrcode %>
-
<%= url %>
+
<%- qrcode %>
+
or visit <%= url %>
<% } else {%> @@ -42,6 +46,7 @@ <% } %> <% if !htmx { %> + zettoIT Logo diff --git a/testquiz.toml b/testquiz.toml index a336775..63f6cc5 100644 --- a/testquiz.toml +++ b/testquiz.toml @@ -1,4 +1,4 @@ -wait_for = 15 +wait_for = 3600 [[questions]] type = "single_choice"