Alpha V2.0
This commit is contained in:
parent
e91ca9b8c9
commit
7caaa8758d
@ -1,193 +1,12 @@
|
||||
:root {
|
||||
--bg-black: #000000;
|
||||
--border-color: #2d3545;
|
||||
--text-primary: #ffffff;
|
||||
--text-muted: #8c92a3;
|
||||
--accent-blue: #3b82f6;
|
||||
--danger-red: #ef4444;
|
||||
--success-green: #22c55e;
|
||||
--nord-0: #2e3440;
|
||||
--nord-1: #3b4252;
|
||||
--nord-2: #434c5e;
|
||||
--nord-3: #4c566a;
|
||||
--nord-4: #d8dee9;
|
||||
--nord-5: #e5e9f0;
|
||||
--nord-6: #eceff4;
|
||||
--nord-7: #8fbcbb;
|
||||
--nord-8: #88c0d0;
|
||||
--nord-9: #81a1c1;
|
||||
--nord-10: #5e81ac;
|
||||
/* Global Custom Styles */
|
||||
|
||||
/* Blinking effect for status badges */
|
||||
.blink-effect {
|
||||
animation: blink 1s infinite;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--bg-black);
|
||||
color: var(--text-primary);
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
font-size: 13px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
@keyframes blink {
|
||||
0% { opacity: 1; }
|
||||
50% { opacity: 0.5; }
|
||||
100% { opacity: 1; }
|
||||
}
|
||||
|
||||
.text-muted { color: var(--text-muted); }
|
||||
.text-accent { color: var(--nord-8); }
|
||||
.text-success { color: var(--success-green); }
|
||||
.text-danger { color: var(--danger-red); }
|
||||
|
||||
/* Global Layout */
|
||||
#main-wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* Resources Bar */
|
||||
#top-bar {
|
||||
background: rgba(10, 15, 30, 0.95);
|
||||
border-bottom: 2px solid var(--nord-1);
|
||||
padding: 10px 40px;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.resource-container {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 15px;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.resource-box {
|
||||
background: rgba(46, 52, 64, 0.5);
|
||||
border: 1px solid rgba(136, 192, 208, 0.2);
|
||||
padding: 8px 15px;
|
||||
min-width: 140px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 4px 6px rgba(0,0,0,0.2);
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.resource-box:hover {
|
||||
background: rgba(136, 192, 208, 0.1);
|
||||
border-color: var(--nord-8);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.resource-icon {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.resource-icon i {
|
||||
font-size: 20px;
|
||||
color: var(--nord-8);
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.resource-icon img {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.resource-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.resource-name {
|
||||
font-size: 9px;
|
||||
color: var(--nord-8);
|
||||
text-transform: uppercase;
|
||||
font-weight: bold;
|
||||
letter-spacing: 0.5px;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.resource-val-prod {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.resource-value {
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.resource-prod {
|
||||
font-size: 10px;
|
||||
color: #a3be8c;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
/* Grid System */
|
||||
.galaxy-map {
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
background: var(--nord-1);
|
||||
border: 2px solid var(--nord-3);
|
||||
}
|
||||
|
||||
.slot {
|
||||
background: #0a0a0a;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.slot:hover {
|
||||
background: #1a1a1a;
|
||||
box-shadow: inset 0 0 10px rgba(136, 192, 208, 0.2);
|
||||
}
|
||||
|
||||
/* Forms */
|
||||
input[type="number"], input[type="text"] {
|
||||
background: #000;
|
||||
border: 1px solid var(--nord-3);
|
||||
color: #fff;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
button {
|
||||
background: var(--nord-3);
|
||||
color: #fff;
|
||||
border: none;
|
||||
padding: 8px 15px;
|
||||
cursor: pointer;
|
||||
font-weight: bold;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background: var(--nord-10);
|
||||
}
|
||||
|
||||
/* Admin Console Fixes */
|
||||
.stat-card {
|
||||
background: var(--nord-0);
|
||||
border: 1px solid var(--nord-3);
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
th {
|
||||
background: var(--nord-1);
|
||||
color: var(--nord-8);
|
||||
text-align: left;
|
||||
padding: 12px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 10px;
|
||||
border-bottom: 1px solid var(--nord-1);
|
||||
}
|
||||
@ -620,7 +620,7 @@ function getStatusColor($status, $statuses_map) {
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="object-icon">
|
||||
<div class="object-icon <?php echo ($statuses_map[$obj['status']]['is_blinking'] ?? 0) ? 'blink-effect' : ''; ?>">
|
||||
<?php
|
||||
$icon = $type_info['icon'] ?? 'fa-earth-europe';
|
||||
$color = getStatusColor($obj['status'], $statuses_map);
|
||||
@ -648,7 +648,7 @@ function getStatusColor($status, $statuses_map) {
|
||||
$dotColor = 'rgba(255,255,255,0.05)';
|
||||
if (isset($sector_data[$s][$p])) { $dotColor = getStatusColor($sector_data[$s][$p]['status'], $statuses_map); }
|
||||
?>
|
||||
<div class="mini-dot" style="background-color: <?php echo $dotColor; ?>;"></div>
|
||||
<div class="mini-dot <?php echo (isset($sector_data[$s][$p]) && ($statuses_map[$sector_data[$s][$p]['status']]['is_blinking'] ?? 0)) ? 'blink-effect' : ''; ?>" style="background-color: <?php echo $dotColor; ?>;"></div>
|
||||
<?php endfor; ?>
|
||||
</div>
|
||||
<div style="font-size: 10px; color: #88c0d0;">SECTEUR</div>
|
||||
@ -663,7 +663,7 @@ function getStatusColor($status, $statuses_map) {
|
||||
|
||||
<div class="legend">
|
||||
<?php foreach($statuses_db as $s): ?>
|
||||
<div class="legend-item"><span class="dot" style="background: <?php echo $s['color']; ?>;"></span> <?php echo $s['name']; ?></div>
|
||||
<div class="legend-item"><span class="dot <?php echo $s['is_blinking'] ? 'blink-effect' : ''; ?>" style="background: <?php echo str_replace(';blink', '', str_replace(' ;blink', '', $s['color'])); ?>;"></span> <?php echo $s['name']; ?></div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</main>
|
||||
@ -731,7 +731,7 @@ function getStatusColor($status, $statuses_map) {
|
||||
document.getElementById('m-planet-type').innerText = typeInfo.name || data.type;
|
||||
document.getElementById('m-planet-img').src = typeInfo.image_url || '';
|
||||
document.getElementById('m-planet-status').innerText = statusInfo.name || data.status;
|
||||
document.getElementById('m-planet-status').style.background = statusInfo.color || 'rgba(255,255,255,0.1)';
|
||||
const statusEl = document.getElementById('m-planet-status'); statusEl.style.background = (statusInfo.color || 'rgba(255,255,255,0.1)').replace(' ;blink', '').replace(' ;blink', '').replace(';blink', ''); statusEl.classList.toggle('blink-effect', !!statusInfo.is_blinking);
|
||||
document.getElementById('m-planet-faction').innerText = 'Faction dominante: ' + factionInfo.name;
|
||||
document.getElementById('m-planet-faction').style.color = factionInfo.color || '#fff';
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user