157 lines
6.0 KiB
HTML
157 lines
6.0 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">
|
||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||
<style>
|
||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||
body {
|
||
font-family: 'Inter', 'Segoe UI', sans-serif;
|
||
background-color: #0d1117;
|
||
min-height: 100vh;
|
||
color: #e6edf3;
|
||
}
|
||
/* --- Top nav --- */
|
||
.topbar {
|
||
background: #161b22;
|
||
border-bottom: 1px solid #30363d;
|
||
padding: 14px 32px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
.topbar-logo { font-size: 1.1rem; font-weight: 700; color: #c8a44a; }
|
||
.topbar-nav { display: flex; gap: 16px; align-items: center; }
|
||
.topbar-nav a {
|
||
color: #8b949e; font-size: 0.875rem; text-decoration: none;
|
||
padding: 6px 12px; border-radius: 6px; transition: background 0.2s, color 0.2s;
|
||
}
|
||
.topbar-nav a:hover { background: #21262d; color: #e6edf3; }
|
||
.topbar-nav .user-badge { color: #c8a44a; font-size: 0.875rem; font-weight: 600; }
|
||
.btn-logout {
|
||
background: rgba(248,81,73,0.1); color: #f85149;
|
||
border: 1px solid rgba(248,81,73,0.3); padding: 6px 14px; border-radius: 6px;
|
||
font-size: 0.875rem; font-family: inherit; text-decoration: none;
|
||
transition: background 0.2s;
|
||
}
|
||
.btn-logout:hover { background: rgba(248,81,73,0.2) !important; }
|
||
|
||
/* --- Main content --- */
|
||
.main-content {
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: flex-start;
|
||
padding: 60px 20px;
|
||
min-height: calc(100vh - 57px);
|
||
}
|
||
.landing-container {
|
||
background: #161b22;
|
||
border: 1px solid #30363d;
|
||
padding: 2rem;
|
||
border-radius: 10px;
|
||
box-shadow: 0 8px 32px rgba(0,0,0,0.4);
|
||
text-align: center;
|
||
max-width: 520px;
|
||
width: 100%;
|
||
}
|
||
.landing-container h1 { color: #c8a44a; margin-bottom: 5px; font-size: 1.5rem; }
|
||
.landing-container > p { color: #8b949e; margin-bottom: 20px; font-size: 0.9rem; }
|
||
|
||
.player-card {
|
||
background: #21262d;
|
||
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: 1rem;
|
||
border: 1px solid #30363d;
|
||
}
|
||
.player-card:hover { background: #30363d; transform: translateY(-2px); border-color: #c8a44a; }
|
||
.player-card span { color: #8b949e; font-size: 0.8rem; margin-left: 8px; }
|
||
|
||
.no-clan-box {
|
||
background: rgba(200,164,74,0.1);
|
||
border: 1px solid rgba(200,164,74,0.3);
|
||
border-radius: 8px;
|
||
padding: 20px;
|
||
margin-top: 10px;
|
||
}
|
||
.no-clan-box p { color: #c8a44a; margin-bottom: 12px; }
|
||
.btn-create {
|
||
display: inline-block;
|
||
background: #c8a44a; color: #0d1117;
|
||
padding: 9px 20px; border-radius: 6px;
|
||
font-weight: 700; font-size: 0.875rem; text-decoration: none;
|
||
transition: background 0.2s;
|
||
}
|
||
.btn-create:hover { background: #e0b85a; }
|
||
</style>
|
||
</head>
|
||
<body>
|
||
|
||
<div class="topbar">
|
||
<span class="topbar-logo">⚔️ Grepolis Remote</span>
|
||
<div class="topbar-nav">
|
||
{% if current_user.is_authenticated %}
|
||
<span class="user-badge">{{ current_user.username }}</span>
|
||
<a href="/auth/options">Ρυθμίσεις</a>
|
||
<a href="/auth/logout" class="btn-logout">Αποσύνδεση</a>
|
||
{% endif %}
|
||
</div>
|
||
</div>
|
||
|
||
<div class="main-content">
|
||
<div class="landing-container">
|
||
<h1>⚔️ Grepolis Remote</h1>
|
||
<p>Select an active account to manage</p>
|
||
|
||
{% if no_clan %}
|
||
<div class="no-clan-box">
|
||
<p>Δεν έχετε δημιουργήσει clan ακόμη. Πηγαίνετε στις Ρυθμίσεις για να ξεκινήσετε.</p>
|
||
<a href="/auth/options" class="btn-create">🏰 Δημιουργία Clan →</a>
|
||
</div>
|
||
{% elif not players %}
|
||
<p style="color:#ffaa55;">Κανένας παίκτης δεν έχει συνδεθεί ακόμη. Βεβαιωθείτε ότι το Loader script τρέχει με το σωστό Clan Key.</p>
|
||
{% endif %}
|
||
|
||
{% for p in players %}
|
||
<a href="/player/{{ p.player_id }}/{{ p.world_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);">
|
||
⚠️ 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>
|
||
</div>
|
||
|
||
</body>
|
||
</html>
|