use zettoit style

This commit is contained in:
Paul Zinselmeyer 2023-11-05 19:54:47 +01:00
parent c6d33eee7e
commit f5485b773b
Signed by: pfzetto
GPG key ID: 4EEF46A5B276E648
5 changed files with 43 additions and 40 deletions

View file

@ -1,20 +1,18 @@
<% if is_correct { %>
<article>
<center><img src="/static/check.svg" width="50%"/></center>
<center><h1>Correct</h1></center>
<center><p>Your answer is correct. The correct answer is <b><%= correct_answer %></b>.</p></center>
<article class="centered">
<h1>Correct</h1>
<p>Your answer is correct. The correct answer is <b><%= correct_answer %></b>.</p>
</article>
<% } else { %>
<article>
<center><img src="/static/xmark.svg" width="50%"/></center>
<center><h1>Wrong</h1></center>
<center><p>
<article class="centered">
<h1>Wrong</h1>
<p>
Your answer is incorrect. The correct answer is <b><%= correct_answer %></b>.
<% if let Some(player_answer) = player_answer { %>
You answered <b><%= player_answer %></b>.
<% } else { %>
You didn't answer the question.
<% } %>
</p></center>
</p>
</article>
<% } %>