Add layout.eta and main.eta

This commit is contained in:
AndrewTrieu
2023-03-09 11:39:46 +02:00
parent be427eda10
commit 5767d0cfdb
3 changed files with 31 additions and 2 deletions

View File

@@ -1,3 +1,17 @@
<% layout("./layouts/layout.eta") %>
<h1>Hello world!</h1>
<h1>MCQ Application</h1>
<P>This is a web application that is used for repeated practice of learned content. The application provides a list of topics and allows creating multiple-choice questions into those topics that are then answered by self and others. The application also shows basic statistics: the total number of available questions and the total number of question answers. In addition, the application also provides an API for retrieving and answering random questions.</p>
<p>Are you already registered? <a href="/login">Login</a></p>
<p>Not registered yet? <a href="/register">Register</a></p>
<h2>Statistics</h2>
<p>Total number of:</p>
<ul>
<li>Topics: <%= it.topics %></li>
<li>Questions: <%= it.questions %></li>
<li>Answers: <%= it.answers %></li>
</ul>