Files
grepo-remote/templates/index.html

99 lines
3.3 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Grepolis Remote Dashboard - Select Player</title>
<link rel="stylesheet" href="/static/css/styles.css">
<style>
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #1a1a24;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.landing-container {
background: #2a2a36;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0,0,0,0.3);
text-align: center;
max-width: 500px;
width: 100%;
}
.player-card {
background: #3a3a46;
margin: 10px 0;
padding: 15px;
border-radius: 6px;
cursor: pointer;
text-decoration: none;
color: white;
display: block;
transition: background 0.2s, transform 0.1s;
font-size: 1.1rem;
border: 1px solid #4a4a56;
}
.player-card:hover {
background: #5a5a66;
transform: translateY(-2px);
border-color: #c8a44a;
}
.player-card span {
color: #888;
font-size: 0.8rem;
margin-left: 10px;
}
h1 {
color: #c8a44a;
margin-bottom: 5px;
}
p {
color: #aaa;
margin-bottom: 20px;
}
</style>
</head>
<body>
<div class="landing-container">
<h1>⚔️ Grepolis Remote</h1>
<p>Select an active account to manage</p>
{% if not players %}
<p style="color: #ffaa55;">No players found! Install the Tampermonkey script and log into the game first.</p>
{% endif %}
{% for p in players %}
<a href="/player/{{ p.player_id }}" class="player-card">
<div style="display: flex; justify-content: space-between; align-items: center;">
<div>
<strong>{{ p.player }}</strong> <span style="color: #6fcfcf;">[{{ p.world_id }}]</span> <span>(ID: {{ p.player_id }})</span>
</div>
<div style="display: flex; gap: 8px;">
{% if p.captcha_active %}
<span style="display: flex; align-items: center; gap: 6px; background: rgba(255, 100, 100, 0.2); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; color: #ff6464; font-weight: bold; border: 1px solid rgba(255, 100, 100, 0.5); box-shadow: 0 0 8px rgba(255, 100, 100, 0.4);">
⚠️ Captcha
</span>
{% endif %}
{% if p.is_online %}
<span style="display: flex; align-items: center; gap: 6px; background: rgba(50, 150, 50, 0.2); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; color: #7bcc7b; font-weight: bold; border: 1px solid rgba(123, 204, 123, 0.3);">
<span style="display: inline-block; width: 8px; height: 8px; background: #7bcc7b; border-radius: 50%; box-shadow: 0 0 6px #7bcc7b;"></span>
Online
</span>
{% else %}
<span style="display: flex; align-items: center; gap: 6px; background: rgba(150, 50, 50, 0.2); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; color: #cc7b7b; font-weight: bold; border: 1px solid rgba(204, 123, 123, 0.3);">
<span style="display: inline-block; width: 8px; height: 8px; background: #cc7b7b; border-radius: 50%;"></span>
Offline
</span>
{% endif %}
</div>
</div>
</a>
{% endfor %}
</div>
</body>
</html>