Files
quizify/templates/playerselect.html
Simon 63ebf2d727 modified: app.py
modified:   templates/playerselect.html
	new file:   templates/quiz_buzzer.html
2025-11-15 01:04:21 +01:00

87 lines
3.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html>
<head>
<title>{{ translations['quiz_title'] }} Player Selection</title>
<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;
}
.playerselect-container {
background: rgba(25, 20, 20, 0.92);
padding: 40px 50px;
border-radius: 22px;
box-shadow: 0 8px 32px 0 rgba(0,0,0,0.37);
min-width: 350px;
text-align: center;
}
.player-btn {
display: block;
width: 100%;
padding: 18px 0;
margin: 18px 0;
font-size: 1.2em;
font-weight: bold;
border-radius: 30px;
border: none;
background: #1DB954;
color: #fff;
cursor: pointer;
transition: background 0.2s, transform 0.2s;
text-align: center;
letter-spacing: 1px;
}
.player-btn:hover {
background: #1ed760;
transform: scale(1.04);
}
.player-btn.disabled, .player-btn[disabled] {
background: #535353;
color: #bbb;
cursor: not-allowed;
opacity: 0.7;
pointer-events: none;
border: 1px solid #888;
}
.player-desc {
font-size: 0.95em;
color: #bdbdbd;
margin-bottom: 10px;
}
</style>
</head>
<body>
<div class="playerselect-container">
<h2>{{ translations['quiz_title'] }} Player Selection</h2>
<form method="get" action="{{ url_for('quiz', playlist_id=playlist_id) }}">
<input type="hidden" name="mode" value="{{ game_mode }}">
<button class="player-btn" type="submit">{{ translations['singleplayer'] }}</button>
<div class="player-desc">{{ translations['singleplayer_desc'] if translations['singleplayer_desc'] else 'Play alone and test your knowledge.' }}</div>
</form>
<form method="get" action="{{ url_for('quiz', playlist_id=playlist_id) }}">
<input type="hidden" name="mode" value="{{ game_mode }}">
<input type="hidden" name="buzzer" value="1">
<button class="player-btn" type="submit">{{ translations['buzzer_mode'] if translations['buzzer_mode'] else '🔴 Buzzer Mode' }}</button>
<div class="player-desc">{{ translations['buzzer_mode_desc'] if translations['buzzer_mode_desc'] else 'Punkte nehmen mit der Zeit ab. Schnell sein zahlt sich aus!' }}</div>
</form>
<form method="get" action="{{ url_for('quiz', playlist_id=playlist_id) }}">
<input type="hidden" name="mode" value="{{ game_mode }}">
<input type="hidden" name="local_multiplayer" value="1">
<button class="player-btn" type="submit">{{ translations['local_multiplayer'] }}</button>
<div class="player-desc">Spiele mit bis zu 4 Personen an einem Gerät.</div>
</form>
<button class="player-btn disabled" disabled>{{ translations['online_multiplayer'] if translations['online_multiplayer'] else 'Online Multiplayer' }}</button>
<div class="player-desc">Coming soon!</div>
<div style="margin-top:30px;">
<a href="{{ url_for('gamemodes', playlist_id=playlist_id) }}" style="color:#1DB954;">&larr; {{ translations['quiz_mode'] }}</a>
</div>
</div>
</body>
</html>