{{ error or 'No questions to show.' }}
Frontend ======== | The frontend for Edulearn uses the Jinja templating engine, with pages written in HTML/CSS. | Some components use JavaScript to enable interactivity. | Here's a breakdown of the frontend, page-by-page: Navbar/base ----------- | Using Jinja, we put the navbar into a 'base.html' template that is reused across all pages. | The navbar contains link buttons to the quiz, feedback list, and login pages. | The navbar is styled to cover the entirety of the top of the screen, and each of the links are styled a little differently: * The link to the start quiz form is styled with an orange background so it stands out * The link to the feedback list has a profile icon (in future, we plan to have individual users be able to view their own feedback) * The login link is styled plainly - black text on white (with orange text on hover) .. image:: images/navbar.png | See the html: .. code-block:: html
Your one-stop platform for learning and testing your knowledge.
Take a quick QuizEngaging challenges designed to test and reinforce your knowledge quickly.
Monitor your performance over time and see exactly where you can improve.
Question 1 out of {{ questions | length }}
{% for question in questions %} {% set qIndex = loop.index %}{{ error or 'No questions to show.' }}
Recent quizzes and their scores.
Total Questions: {{ quiz.total_questions }}
Questions Correct: {{ quiz.correct_count }}/{{ quiz.total_questions }}
% Score: {{ quiz.score_percent|int }}%
View FeedbackFinish a quiz to see feedback here.
{{ error }}
Topic: {{ summary.topic|title }} | Total Questions: {{ summary.total_questions }} | Questions Correct: {{ summary.correct_count }}/{{ summary.total_questions }} | Score: {{ summary.score_percent|int }}%
{% for row in questions %} {% set options = [row.option_1, row.option_2, row.option_3, row.option_4] %}Question: {{ row.question_text }}
Your answer: {{ options[row.user_answer_index] }}
Correct answer: {{ options[row.correct_answer_index] }}
Result: {{ 'Correct' if row.is_correct else 'Incorrect' }}
No feedback data to display.