new file: templates/quiz_base.html new file: templates/quiz_multiplayer.html new file: templates/quiz_single.html
67 lines
2.4 KiB
HTML
67 lines
2.4 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>{{ translations['quiz_title'] }}</title>
|
|
<script src="https://sdk.scdn.co/spotify-player.js"></script>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<style>
|
|
body {
|
|
background: linear-gradient(135deg, #191414 0%, #1DB954 100%);
|
|
color: #fff;
|
|
font-family: Arial, sans-serif;
|
|
min-height: 100vh;
|
|
margin: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.quiz-container {
|
|
background: rgba(25, 20, 20, 0.92);
|
|
padding: 40px 30px 30px 30px;
|
|
border-radius: 22px;
|
|
box-shadow: 0 8px 32px 0 rgba(0,0,0,0.37);
|
|
max-width: 500px;
|
|
width: 100%;
|
|
color: #fff;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
.btn {
|
|
padding: 10px 15px;
|
|
margin: 5px;
|
|
background-color: #1DB954;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 20px;
|
|
cursor: pointer;
|
|
}
|
|
.btn:hover { background-color: #1ed760; }
|
|
.btn-secondary { background-color: #535353; }
|
|
.btn-secondary:hover { background-color: #7b7b7b; }
|
|
.btn-success { background-color: #4CAF50; }
|
|
.btn-danger { background-color: #f44336; }
|
|
.game-modes { margin: 20px 0; display: flex; justify-content: center; }
|
|
.result-container { margin: 20px 0; padding: 15px; border-radius: 5px; text-align: center; display: none; }
|
|
.correct { background-color: #e8f5e9; border: 1px solid #4CAF50; }
|
|
.incorrect { background-color: #ffebee; border: 1px solid #f44336; }
|
|
input[type="text"], input[type="number"] {
|
|
padding: 10px; width: 300px; border: 1px solid #ddd; border-radius: 20px; font-size: 16px;
|
|
}
|
|
.hint-container { margin: 15px 0; font-style: italic; color: #666; }
|
|
.game-options { text-align: center; margin-bottom: 20px; }
|
|
.game-options label { margin-right: 20px; }
|
|
.search-results { margin-top: 15px; max-height: 200px; overflow-y: auto; border: 1px solid #ddd; border-radius: 5px; display: none; }
|
|
.search-item { padding: 8px 10px; border-bottom: 1px solid #eee; cursor: pointer; }
|
|
.search-item:hover { background-color: #f5f5f5; }
|
|
</style>
|
|
{% block extra_head %}{% endblock %}
|
|
</head>
|
|
<body>
|
|
<div class="quiz-container">
|
|
{% block quiz_content %}{% endblock %}
|
|
</div>
|
|
{% block extra_body %}{% endblock %}
|
|
</body>
|
|
</html> |