Files
quizify/templates/playlists.html
SimolZimol 2b37032048 modified: app.py
modified:   locales/de-DE.json
	modified:   locales/en-EN.json
	new file:   templates/gamemodes.html
	modified:   templates/playlists.html
2025-06-04 16:14:41 +02:00

70 lines
1.7 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>{{ translations['quiz_title'] }}</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;
}
.playlist-container {
background: rgba(25, 20, 20, 0.85);
padding: 40px 50px;
border-radius: 20px;
margin-top: 60px;
box-shadow: 0 8px 32px 0 rgba(0,0,0,0.37);
min-width: 350px;
}
h2 {
margin-bottom: 30px;
font-size: 2em;
letter-spacing: 1px;
text-align: center;
}
ul {
list-style: none;
padding: 0;
margin: 0;
}
li {
margin: 15px 0;
}
a.playlist-link {
display: block;
padding: 15px 25px;
background-color: #1DB954;
color: #fff;
border-radius: 30px;
text-decoration: none;
font-size: 1.1em;
font-weight: bold;
transition: background 0.2s, transform 0.2s;
text-align: center;
}
a.playlist-link:hover {
background-color: #1ed760;
transform: scale(1.04);
}
</style>
</head>
<body>
<a href="{{ url_for('logout') }}" class="logout-btn" style="position:absolute;top:20px;right:30px;">
{{ translations['logout'] if translations['logout'] else 'Logout' }}
</a>
<div class="playlist-container">
<h2>{{ translations['choose_playlist'] }}</h2>
<ul>
{% for pl in playlists %}
<li><a class="playlist-link" href="/gamemodes/{{ pl.id }}">{{ pl.name }}</a></li>
{% endfor %}
</ul>
</div>
</body>
</html>