Pages Medium
Concept E - Futuristic Dashboard Intro
Original futuristic dashboard intro with telemetry modules and animated counters.
Open in Lab
MCP
concept dashboard ui-motion
Targets: JS HTML
Code
:root {
--bg: #07111d;
--panel: rgba(18, 31, 49, 0.72);
--line: #2a4462;
--text: #edf5ff;
--muted: #bcd0e8;
--accent: #79e5ff;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
color: var(--text);
font-family: "Lucida Console", "Monaco", monospace;
background: radial-gradient(circle at 12% 10%, rgba(121, 229, 255, 0.18), transparent 42%),
radial-gradient(circle at 84% 86%, rgba(91, 123, 255, 0.2), transparent 46%), var(--bg);
}
.topbar {
position: fixed;
inset: 0 0 auto 0;
z-index: 20;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.8rem 1rem;
background: rgba(7, 17, 29, 0.66);
backdrop-filter: blur(8px);
}
.topbar a {
color: var(--accent);
text-decoration: none;
font-weight: 700;
}
.toggle {
border: 1px solid rgba(255, 255, 255, 0.25);
border-radius: 999px;
background: rgba(255, 255, 255, 0.08);
color: var(--text);
padding: 0.35rem 0.7rem;
cursor: pointer;
font-family: inherit;
}
main {
width: min(1120px, 94%);
margin: 0 auto;
padding-top: 3.6rem;
}
.hero {
display: grid;
gap: 0.7rem;
}
.kicker {
margin: 0;
color: var(--accent);
text-transform: uppercase;
letter-spacing: 0.1em;
font-size: 0.8rem;
}
h1 {
margin: 0;
font-size: clamp(2.2rem, 8vw, 5.6rem);
line-height: 0.92;
}
.subtitle {
margin: 0;
color: var(--muted);
max-width: 60ch;
}
.grid {
margin-top: 1rem;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0.8rem;
}
.panel {
border: 1px solid var(--line);
border-radius: 14px;
padding: 0.85rem;
background: var(--panel);
backdrop-filter: blur(8px);
}
.metric h2,
.timeline h2 {
margin: 0;
font-size: 1.05rem;
}
.value {
margin: 0.6rem 0 0;
font-size: clamp(1.5rem, 3.8vw, 2.6rem);
color: var(--accent);
}
.hint {
margin: 0.2rem 0 0;
color: var(--muted);
font-size: 0.82rem;
}
.timeline {
grid-column: span 3;
}
.line {
margin-top: 0.8rem;
height: 110px;
border-radius: 10px;
border: 1px solid rgba(121, 229, 255, 0.35);
background: linear-gradient(180deg, rgba(121, 229, 255, 0.13), transparent),
repeating-linear-gradient(90deg, rgba(121, 229, 255, 0.16) 0 2px, transparent 2px 20px);
position: relative;
overflow: hidden;
}
.line::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(90deg, transparent, rgba(121, 229, 255, 0.36), transparent);
animation: scan 2.2s linear infinite;
}
body.no-motion .line::after {
animation: none;
}
@keyframes scan {
from {
transform: translateX(-100%);
}
to {
transform: translateX(100%);
}
}
@media (max-width: 920px) {
.grid {
grid-template-columns: 1fr;
}
.timeline {
grid-column: span 1;
}
}if (!window.MotionPreference) {
const __mql = window.matchMedia("(prefers-reduced-motion: reduce)");
const __listeners = new Set();
const MotionPreference = {
prefersReducedMotion() {
return __mql.matches;
},
setOverride(value) {
const reduced = Boolean(value);
document.documentElement.classList.toggle("reduced-motion", reduced);
window.dispatchEvent(new CustomEvent("motion-preference", { detail: { reduced } }));
for (const listener of __listeners) {
try {
listener({ reduced, override: reduced, systemReduced: __mql.matches });
} catch {}
}
},
onChange(listener) {
__listeners.add(listener);
try {
listener({
reduced: __mql.matches,
override: null,
systemReduced: __mql.matches,
});
} catch {}
return () => __listeners.delete(listener);
},
getState() {
return { reduced: __mql.matches, override: null, systemReduced: __mql.matches };
},
};
window.MotionPreference = MotionPreference;
}
const toggle = document.getElementById("motionToggle");
let noMotion = window.MotionPreference.prefersReducedMotion();
function formatValue(rawTarget, value) {
const hasDecimal = String(rawTarget).includes(".");
if (hasDecimal) return value.toFixed(2);
return Math.round(value).toString();
}
function animateCounters() {
document.querySelectorAll(".value").forEach((node) => {
const target = Number(node.dataset.target);
if (Number.isNaN(target)) return;
const start = performance.now();
const duration = noMotion ? 0 : 900;
const step = (now) => {
const p = duration === 0 ? 1 : Math.min(1, (now - start) / duration);
const eased = 1 - Math.pow(1 - p, 3);
node.textContent = formatValue(target, target * eased);
if (p < 1) requestAnimationFrame(step);
};
requestAnimationFrame(step);
});
}
function applyMode() {
document.body.classList.toggle("no-motion", noMotion);
toggle.textContent = noMotion ? "Enable motion" : "Disable motion";
animateCounters();
}
toggle.addEventListener("click", () => {
noMotion = !noMotion;
applyMode();
});
applyMode();<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Concept E - Futuristic Dashboard Intro</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header class="topbar">
<a href="../">Back to demos</a>
<button id="motionToggle" class="toggle"></button>
</header>
<main>
<section class="hero">
<p class="kicker">Concept E</p>
<h1>Atlas Control</h1>
<p class="subtitle">Intro dashboard concept for mission-critical interfaces with layered telemetry modules.</p>
</section>
<section class="grid">
<article class="panel metric">
<h2>System Uptime</h2>
<p class="value" data-target="99.97">0</p>
<p class="hint">rolling 30-day</p>
</article>
<article class="panel metric">
<h2>Throughput</h2>
<p class="value" data-target="18340">0</p>
<p class="hint">events / min</p>
</article>
<article class="panel metric">
<h2>Active Nodes</h2>
<p class="value" data-target="128">0</p>
<p class="hint">region cluster</p>
</article>
<article class="panel timeline">
<h2>Signal Timeline</h2>
<div class="line" id="line"></div>
</article>
</section>
</main>
<script src="script.js"></script>
</body>
</html>Concept E - Futuristic Dashboard Intro
Original futuristic dashboard intro with telemetry modules and animated counters.
Source
- Repository:
libs-gen - Original demo id:
25-concept-future-dashboard
Notes
Original futuristic dashboard intro with telemetry modules and animated counters.