Certainly! Below is a complete frontend mockup using HTML, CSS, and a bit of JavaScript (for interactivity) to visualize your futuristic multiplayer game UI. This design blends ancient ruins with sci-fi elements in a 2D immersive dashboard.
🛠 Technologies Used:
- HTML5
- CSS3 (Flexbox/Grid, Transitions, Animations)
- Minimal JavaScript (for button hover effects & demo toggles)
🖼️ Live Preview Features:
✅ Holographic layered UI
✅ Glowing runes & neon accents
✅ Cosmic animated background
✅ Life cycle bar, karma meter, legacy log
✅ Futuristic stylized buttons
✅ Responsive & immersive layout
✅ Full Code Implementation
📁 index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Eclipse: Legacy UI</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="cosmic-bg">
<div class="stars"></div>
<div class="planets"></div>
<div class="constellations"></div>
</div>
<div class="dashboard">
<!-- Left Side: Runes & Energy -->
<div class="left-panel">
<div class="glowing-runes">ᚱᚨᚾᛞᛟ</div>
<div class="life-cycle-bar-container">
<div class="label">Life Cycle</div>
<div class="bar-container">
<div class="life-progress" id="lifeProgress"></div>
</div>
</div>
</div>
<!-- Center Panel: Main Info -->
<div class="center-panel">
<h1 class="game-title">ECLIPSE: LEGACY</h1>
<div class="hud-stats">
<div class="stat">
<span class="label">Age:</span>
<span class="value" id="ageDisplay">247</span>
</div>
<div class="stat">
<span class="label">Karma:</span>
<div class="karma-meter">
<div class="karma-fill" id="karmaFill"></div>
</div>
</div>
</div>
<div class="legacy-log">
<div class="label">Legacy Law Log</div>
<ul id="logEntries">
<li>• First Step Taken on Ruin Soil</li>
<li>• Law of Balance Upheld</li>
</ul>
</div>
</div>
<!-- Right Panel: Buttons -->
<div class="right-panel">
<button class="action-btn" onclick="enterWorld()">
Enter World
</button>
<button class="action-btn" onclick="viewLegacy()">
View Legacy
</button>
<button class="action-btn alt" onclick="spectateMode()">
Spectator Mode
</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>
📁 styles.css
/* ========== RESET ========== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Orbitron", sans-serif;
background-color: #000;
color: #e0e0ff;
height: 100vh;
overflow: hidden;
position: relative;
}
/* ========== COSMIC BG ========== */
.cosmic-bg {
position: absolute;
width: 100%;
height: 100%;
z-index: -1;
overflow: hidden;
}
.stars {
position: absolute;
width: 100%;
height: 100%;
background: url('https://i.ibb.co/4PwVr9G/stars.png') repeat;
animation: twinkle 100s linear infinite;
}
.planets {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url('https://i.ibb.co/Z2WvZvF/planets.png') repeat-x;
animation: scrollPlanets 200s linear infinite;
}
.constellations {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url('https://i.ibb.co/HdVHm1j/constellation-lines.png') repeat;
opacity: 0.4;
animation: rotateConst 300s linear infinite;
}
@keyframes twinkle {
from { background-position: 0 0; }
to { background-position: -10000px 5000px; }
}
@keyframes scrollPlanets {
from { background-position: 0 0; }
to { background-position: -20000px 0; }
}
@keyframes rotateConst {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
/* ========== DASHBOARD LAYOUT ========== */
.dashboard {
display: flex;
height: 100vh;
padding: 20px;
gap: 20px;
align-items: center;
justify-content: space-between;
max-width: 1600px;
margin: 0 auto;
}
.left-panel, .right-panel {
display: flex;
flex-direction: column;
gap: 20px;
padding: 20px;
background: rgba(10, 10, 30, 0.6);
backdrop-filter: blur(8px);
border: 1px solid #0ff;
border-radius: 16px;
min-width: 200px;
}
.center-panel {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 20px;
background: radial-gradient(circle at center, rgba(20, 20, 60, 0.7), rgba(0, 0, 40, 0.9));
border-radius: 16px;
border: 1px solid #0af;
}
/* ========== RUNES & GRAPHICS ========== */
.glowing-runes {
font-size: 2rem;
letter-spacing: 4px;
color: #8affff;
text-shadow: 0 0 8px #00f0ff, 0 0 16px #0088ff;
animation: pulseRune 3s ease-in-out infinite alternate;
}
@keyframes pulseRune {
from { text-shadow: 0 0 6px #00f0ff; }
to { text-shadow: 0 0 16px #00ccff, 0 0 24px #00aaff; }
}
/* ========== LIFE CYCLE BAR ========== */
.life-cycle-bar-container {
width: 100%;
}
.label {
font-size: 0.8rem;
color: #ccc;
margin-bottom: 6px;
}
.bar-container {
height: 12px;
background: rgba(255, 255, 255, 0.05);
border-radius: 10px;
overflow: hidden;
}
.life-progress {
height: 100%;
width: 65%;
background: linear-gradient(90deg, #00f0ff, #00ccff);
border-radius: 10px;
transition: width 1s ease;
}
/* ========== KARMA METER ========== */
.karma-meter {
width: 100%;
height: 10px;
background: rgba(255, 255, 255, 0.05);
border-radius: 20px;
overflow: hidden;
margin-top: 4px;
}
.karma-fill {
height: 100%;
width: 70%;
background: linear-gradient(90deg, #ff3060, #ff8000);
border-radius: 20px;
transition: width 1s ease;
}
/* ========== STATS ========== */
.hud-stats {
display: flex;
flex-direction: column;
gap: 12px;
font-size: 1rem;
}
.stat .value {
color: #80fffa;
font-weight: bold;
}
/* ========== LEGACY LOG ========== */
.legacy-log {
flex-grow: 1;
overflow-y: auto;
max-height: 150px;
padding-right: 8px;
}
.legacy-log ul {
list-style-type: none;
font-size: 0.9rem;
color: #bbb;
}
.legacy-log li {
margin-bottom: 4px;
opacity: 0.7;
}
/* ========== BUTTONS ========== */
.action-btn {
padding: 12px 24px;
border: none;
border-radius: 30px;
background: rgba(0, 100, 255, 0.2);
color: #ffffff;
font-family: inherit;
font-size: 1rem;
cursor: pointer;
transition: all 0.3s ease;
backdrop-filter: blur(4px);
border: 1px solid #00ffff;
text-transform: uppercase;
letter-spacing: 1px;
}
.action-btn:hover {
background: rgba(0, 160, 255, 0.4);
box-shadow: 0 0 10px #00ffff;
}
.action-btn.alt {
background: rgba(255, 40, 100, 0.2);
border-color: #ff40a0;
}
.action-btn.alt:hover {
background: rgba(255, 80, 140, 0.4);
box-shadow: 0 0 10px #ff40a0;
}
.game-title {
font-size: 2rem;
margin-bottom: 24px;
color: #ffffff;
text-shadow: 0 0 10px #00ffff;
letter-spacing: 2px;
}
/* Responsive Design */
@media (max-width: 768px) {
.dashboard {
flex-direction: column;
gap: 20px;
}
.left-panel,
.center-panel,
.right-panel {
width: 100%;
}
}
📁 script.js
function enterWorld() {
alert("Entering the World of Eclipse...");
}
function viewLegacy() {
alert("Opening Legacy Archive...");
}
function spectateMode() {
alert("Switching to Spectator Mode...");
}
// For demo purposes only — simulate dynamic values
setInterval(() => {
const life = Math.floor(Math.random() * 100) + 1;
const karma = Math.floor(Math.random() * 100) + 1;
document.getElementById("lifeProgress").style.width = `${life}%`;
document.getElementById("karmaFill").style.width = `${karma}%`;
document.getElementById("ageDisplay").textContent = 247 + Math.floor(Math.random() * 10);
}, 3000);
⚠️ Note: Replace animated cosmic backgrounds with your own assets or use Placeholder.com images if links break.
🌌 Background Assets (Optional Replacement URLs)
If the star/planet/constellation images don't load:
- Replace
stars.png, planets.png, and constellation-lines.png with:
🎨 Customization Ideas
- Add SVG runes that animate on hover
- Connect to real player data via WebSocket/API
- Use WebGL particles for deeper immersion
- LocalStorage to save karma/life stats between sessions
Would you like this packaged into a downloadable ZIP or converted into React/Vue version?