181 lines
5.0 KiB
HTML
181 lines
5.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Portálfejlesztés .Net ben Quiz Results</title>
|
|
<link rel="shortcut icon" href="{{ url_for('static', filename='images/home/logo.jpg') }}" type="image/x-icon">
|
|
<style>
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background: linear-gradient(to right, #5a0fb8, #1f65d6);
|
|
color: #fff;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 100vh;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.container {
|
|
background-color: #ffffff;
|
|
width: 90%;
|
|
max-width: 1200px;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
padding: 20px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
height: fit-content;
|
|
}
|
|
|
|
h1 {
|
|
text-align: center;
|
|
color: #00ff08;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
h2 {
|
|
margin-top: 20px;
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
p {
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
ul {
|
|
list-style: none;
|
|
padding-left: 0;
|
|
}
|
|
|
|
li {
|
|
background: linear-gradient(to right, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.7));
|
|
padding: 20px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
|
|
margin-bottom: 10px;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
li strong {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.correct-answer {
|
|
color: #4CAF50;
|
|
}
|
|
|
|
.user-answer {
|
|
color: #FF5722;
|
|
}
|
|
|
|
.mistake-item {
|
|
background-color: #ff6c82;
|
|
border: 1px solid #ff1e35;
|
|
}
|
|
|
|
.no-mistakes {
|
|
text-align: center;
|
|
font-size: 1.2em;
|
|
color: #4CAF50;
|
|
}
|
|
|
|
a {
|
|
display: block;
|
|
text-align: center;
|
|
margin-top: 20px;
|
|
padding: 10px 20px;
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
text-decoration: none;
|
|
border-radius: 5px;
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
a:hover {
|
|
background-color: #45a049;
|
|
}
|
|
|
|
.button-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-top: 20px;
|
|
gap: 10px;
|
|
}
|
|
|
|
.action-button {
|
|
padding: 12px 20px;
|
|
background-color: #3498db;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 1.2em;
|
|
cursor: pointer;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
transition: background-color 0.3s ease, transform 0.2s ease;
|
|
width: 48%;
|
|
}
|
|
|
|
.action-button:hover {
|
|
background-color: #2980b9;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.action-button:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.restart-button {
|
|
background: linear-gradient(to right, #80e27e, #66c466);
|
|
}
|
|
|
|
.exit-button {
|
|
background: linear-gradient(to right, #ff8a80, #ff5252);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>Quiz Results</h1>
|
|
|
|
<p><strong>Score:</strong> {{ score }} out of {{ total }}</p>
|
|
|
|
<h2>Mistakes</h2>
|
|
{% if mistakes %}
|
|
<ul>
|
|
{% for mistake in mistakes %}
|
|
<li class="mistake-item">
|
|
<strong>Question:</strong> {{ mistake.question }}<br>
|
|
<strong class="user-answer">Your Answer:</strong> {{ mistake.user_answer }}<br>
|
|
<strong class="correct-answer">Correct Answer:</strong> {{ mistake.correct_answer }}<br>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<p class="no-mistakes">No mistakes!</p>
|
|
{% endif %}
|
|
|
|
<h2>All Answers</h2>
|
|
<ul>
|
|
{% for question, answer in questions_with_answers %}
|
|
<li>
|
|
<strong>{{ question['question'] }}</strong><br>
|
|
<strong class="user-answer">Your Answer:</strong> {{ answer }}<br>
|
|
<strong class="correct-answer">Correct Answer:</strong> {{ question['correct_answers'] }}<br>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
<div class="button-container">
|
|
<a href="{{ url_for('uni') }}" class="exit-button action-button">Exit to Home</a>
|
|
<a href="{{ url_for('portalfejlesztes_net_ben.restart') }}" class="restart-button action-button">Restart Quiz</a>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|