Below you’ll find a SINGLE self-contained file (HTML + CSS + JS) that showcases a clean, purple-accented “DYEN NETWORK” dashboard.
Highlights
• Minimalistic cards for quick stats (VPS, Gameservers, etc.)
• Light / Dark-mode toggle with localStorage persistence 🌙 ☀️
• Responsive navigation that collapses into a hamburger menu on phones
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>DYEN NETWORK – Dashboard</title>
<style>
/* ---------- THEME VARIABLES ---------- */
:root {
--primary: #7b3fe4; /* main purple */
--primary-dark: #5328a8;
--bg: #f7f8fc;
--bg-card: #ffffff;
--text: #333;
--text-light: #666;
}
/* DARK MODE OVERRIDES */
[data-theme="dark"] {
--bg: #121212;
--bg-card: #1d1d1d;
--text: #e6e6e6;
--text-light:#a3a3a3;
}
/* ---------- RESET & GLOBAL ---------- */
* { margin:0; padding:0; box-sizing:border-box; }
body {
font-family: "Segoe UI", Roboto, sans-serif;
background:var(--bg);
color:var(--text);
min-height:100vh;
display:flex;
flex-direction:column;
}
a { color:inherit; text-decoration:none; }
/* ---------- HEADER / NAV ---------- */
header{
background:var(--primary);
color:#fff;
display:flex;
align-items:center;
justify-content:space-between;
padding:1rem clamp(1rem,3vw,2rem);
}
.logo{ font-weight:700; font-size:1.2rem; letter-spacing:.5px; }
nav.nav{
display:flex; gap:1.2rem;
}
nav.nav a{ opacity:.9; font-size:.9rem; }
nav.nav a:hover{ opacity:1; }
/* Hamburger (mobile) */
.menu-btn{
font-size:1.6rem;
cursor:pointer;
display:none;
}
.mobile-nav{
display:none;
flex-direction:column;
gap:.75rem;
background:var(--primary-dark);
padding:.9rem 1.2rem;
}
.mobile-nav a{ color:#fff; }
/* ---------- DARK-MODE TOGGLE ---------- */
.toggle-wrapper{ display:flex; align-items:center; gap:.45rem; }
.toggle{
position:relative; width:46px; height:24px;
}
.toggle input{ opacity:0; width:0; height:0; }
.slider{
position:absolute; inset:0;
background:#c2c2c2;
border-radius:34px; cursor:pointer; transition:.4s;
}
.slider:before{
content:"";
position:absolute; height:18px; width:18px;
left:3px; bottom:3px;
background:#fff; border-radius:50%; transition:.4s;
}
input:checked + .slider{ background:var(--primary); }
input:checked + .slider:before{ transform:translateX(22px); }
/* ---------- MAIN / CARDS ---------- */
main{ flex:1; padding:1.6rem clamp(1rem,4vw,2rem); }
.cards{
display:grid;
gap:1.6rem;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
}
.card{
background:var(--bg-card);
padding:1.6rem;
border-radius:12px;
box-shadow:0 2px 6px rgba(0,0,0,.06);
transition:transform .2s, box-shadow .2s;
}
.card:hover{
transform:translateY(-4px);
box-shadow:0 4px 12px rgba(0,0,0,.09);
}
.card h3{ font-size:1.1rem; margin-bottom:.5rem; }
.stat{
font-size:2.1rem;
font-weight:600;
color:var(--primary-dark);
}
/* ---------- FOOTER ---------- */
footer{
text-align:center;
padding:1rem 0;
font-size:.8rem;
color:var(--text-light);
}
/* ---------- PHONE BREAKPOINT ---------- */
@media(max-width:600px){
nav.nav{ display:none; }
.menu-btn{ display:block; }
}
</style>
</head>
<body>
<header>
<div class="logo">DYEN NETWORK</div>
<!-- Desktop nav -->
<nav class="nav">
<a href="#">Dashboard</a>
<a href="#">VPS</a>
<a href="#">Gameservers</a>
<a href="#">Billing</a>
</nav>
<!-- Hamburger -->
<div class="menu-btn" id="menuBtn">☰</div>
<!-- Theme switch -->
<div class="toggle-wrapper">
<span style="font-size:.85rem;">🌙</span>
<label class="toggle">
<input type="checkbox" id="themeToggle" />
<span class="slider"></span>
</label>
</div>
</header>
<!-- Mobile nav (hidden by default) -->
<nav class="mobile-nav" id="mobileNav">
<a href="#">Dashboard</a>
<a href="#">VPS</a>
<a href="#">Gameservers</a>
<a href="#">Billing</a>
</nav>
<main>
<section class="cards">
<div class="card">
<h3>Active VPS</h3>
<p class="stat" id="vpsCount">0</p>
</div>
<div class="card">
<h3>Gameservers</h3>
<p class="stat" id="gsCount">0</p>
</div>
<div class="card">
<h3>Invoices Due</h3>
<p class="stat" id="invCount">0</p>
</div>
<div class="card">
<h3>Support Tickets</h3>
<p class="stat" id="ticketCount">0</p>
</div>
</section>
</main>
<footer>© 2023 DYEN NETWORK</footer>
<!-- ---------- JS ---------- -->
<script>
const themeToggle = document.getElementById("themeToggle");
const menuBtn = document.getElementById("menuBtn");
const mobileNav = document.getElementById("mobileNav");
/* --- Persisted theme on load --- */
if (localStorage.getItem("dyen-theme") === "dark") {
document.documentElement.setAttribute("data-theme", "dark");
themeToggle.checked = true;
}
/* --- Theme toggle handler --- */
themeToggle.addEventListener("change", () => {
if (themeToggle.checked) {
document.documentElement.setAttribute("data-theme", "dark");
localStorage.setItem("dyen-theme", "dark");
} else {
document.documentElement.removeAttribute("data-theme");
localStorage.setItem("dyen-theme", "light");
}
});
/* --- Mobile nav show/hide --- */
menuBtn.addEventListener("click", () => mobileNav.classList.toggle("show"));
/* --- Fake dynamic counters for demo --- */
const counters = [
{ id: "vpsCount", value: 4 },
{ id: "gsCount", value: 2 },
{ id: "invCount", value: 1 },
{ id: "ticketCount", value: 0 },
];
counters.forEach(({ id, value }) => {
let n = 0, el = document.getElementById(id);
const speed = 40;
(function increment(){
if(n <= value){
el.textContent = n;
n++; setTimeout(increment, speed);
}
})();
});
</script>
</body>
</html>
Drop this file onto any web server (or just open it locally) to preview the dashboard. Have fun tweaking the numbers, links, or purple shades to match DYEN NETWORK’s final brand guidelines!