Files
quizify/templates/playerselect.html
SimolZimol 2d7ff9afc9 modified: app.py
modified:   locales/de-DE.json
	modified:   locales/en-EN.json
	modified:   templates/gamemodes.html
	new file:   templates/playerselect.html
2025-06-06 00:04:09 +02:00

77 lines
2.6 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'] if translations['singleplayer'] else 'Singleplayer' }}</button>
<div class="player-desc">{{ translations['singleplayer_desc'] if translations['singleplayer_desc'] else 'Play alone and test your knowledge.' }}</div>
</form>
<button class="player-btn disabled" disabled>{{ translations['local_multiplayer'] if translations['local_multiplayer'] else 'Local Multiplayer' }}</button>
<div class="player-desc">Coming soon!</div>
<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>