use zettoit style
This commit is contained in:
parent
c6d33eee7e
commit
f5485b773b
5 changed files with 43 additions and 40 deletions
|
|
@ -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>
|
||||
<% } %>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue