136 lines
4.1 KiB
HTML
136 lines
4.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Hálózatok Quiz</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: rgba(255, 255, 255, 0.2);
|
|
padding: 20px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
|
|
flex: 1 1 calc(33.333% - 20px);
|
|
max-width: calc(33.333% - 20px);
|
|
transform: scale(1);
|
|
transition: transform 0.3s ease-in-out;
|
|
}
|
|
|
|
h1 {
|
|
text-align: center;
|
|
font-size: 2.2em;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.question {
|
|
margin-bottom: 20px;
|
|
font-size: 1.3em;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.answer-options {
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.answer-options label {
|
|
display: block;
|
|
position: relative;
|
|
background: linear-gradient(to right, #5a0fb8, #1f65d6);
|
|
padding: 10px 15px;
|
|
margin-bottom: 10px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.answer-options label:hover {
|
|
background: linear-gradient(to right, #1f65d6, #5a0fb8);
|
|
color: white;
|
|
transform: translateX(5px);
|
|
}
|
|
|
|
.answer-options input {
|
|
display: none;
|
|
}
|
|
|
|
.answer-options input:checked + label {
|
|
background: linear-gradient(to right, #5a0fb8, #2ecc71);
|
|
color: white;
|
|
border: 2px solid #27ae60;
|
|
}
|
|
|
|
.submit-button, .quit-button {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 12px;
|
|
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;
|
|
margin-top: 15px;
|
|
text-align: center;
|
|
}
|
|
|
|
.submit-button {
|
|
background: linear-gradient(to right, #80e27e, #66c466);
|
|
}
|
|
|
|
.quit-button {
|
|
background: linear-gradient(to right, #ff8a80, #ff5252);
|
|
}
|
|
|
|
.submit-button:hover, .quit-button:hover {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.submit-button:active, .quit-button:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.submit-button:hover, .quit-button:hover {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.submit-button:active, .quit-button:active {
|
|
transform: scale(0.98);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>Question {{ question_index + 1 }} / 20</h1>
|
|
<p class="question">{{ question['question'] }}</p>
|
|
<form method="POST" action="{{ url_for('szamitogepek_mukodese.submit_answer') }}">
|
|
<div class="answer-options">
|
|
<input type="radio" id="true-option" name="answer" value="I">
|
|
<label for="true-option">True</label>
|
|
|
|
<input type="radio" id="false-option" name="answer" value="H">
|
|
<label for="false-option">False</label>
|
|
</div>
|
|
<input type="hidden" name="question_index" value="{{ question_index }}">
|
|
<input type="submit" value="Next" class="submit-button">
|
|
</form>
|
|
<form method="GET" action="{{ url_for('szamitogepek_mukodese.result') }}">
|
|
<button type="submit" class="submit-button quit-button">Quit</button>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html>
|