new tab added

This commit is contained in:
esef committed 2026-07-12 18:28:16 +03:00
1 parent fca0e2f96a
commit 6d5fb5c76d
2 files changed
+173 -2

No files matched your search

+54 -2
View File
@@ -5,6 +5,7 @@
<link rel="stylesheet" href="style/gallery.css"> <link rel="stylesheet" href="style/gallery.css">
<link rel="stylesheet" href="style/ahmet.css"> <link rel="stylesheet" href="style/ahmet.css">
<link rel="stylesheet" href="style/comments.css"> <link rel="stylesheet" href="style/comments.css">
<link rel="stylesheet" href="style/yuukabot.css">
<link rel="icon" href="/favicon.ico" type="image/x-icon"> <link rel="icon" href="/favicon.ico" type="image/x-icon">
<title>Esef</title> <title>Esef</title>
</head> </head>
@@ -17,6 +18,7 @@
<button id="about-btn">About This Website</button> <button id="about-btn">About This Website</button>
<button id="gallery-btn">Gallery</button> <button id="gallery-btn">Gallery</button>
<button id="ahmet-btn">Ahmet Museum</button> <button id="ahmet-btn">Ahmet Museum</button>
<button id="yuukabot-btn">Yuuka Bot</button>
</div> </div>
<section id="about" class="tab-content"> <section id="about" class="tab-content">
@@ -107,9 +109,59 @@
</div> </div>
</section> </section>
<section id="yuukabot" class="tab-content">
<header class="dash-header">
<h1>Yuuka Bot</h1>
<p>Live dashboard — stats, music, gacha, and more.</p>
</header>
<div class="dash-grid">
<!-- Card 1: Now Playing -->
<div class="dash-card">
<div class="card-icon">🎵</div>
<div class="card-body">
<h3>Now Playing</h3>
<p class="card-value" id="dash-nowplaying">—</p>
<span class="card-label">across all servers</span>
</div>
</div>
<script src="js/gallery.js" defer></script> <script src="js/tabs.js" defer></script> <!-- Card 2: Gacha pulls -->
<div class="dash-card">
<div class="card-icon">🎫</div>
<div class="card-body">
<h3>Total Pulls</h3>
<p class="card-value" id="dash-pulls">—</p>
<span class="card-label">recruitments since launch</span>
</div>
</div>
<!-- Card 3: Radio listeners -->
<div class="dash-card">
<div class="card-icon">📻</div>
<div class="card-body">
<h3>Radio Listeners</h3>
<p class="card-value" id="dash-radio">—</p>
<span class="card-label">servers tuned in right now</span>
</div>
</div>
<!-- Card 4: Uptime -->
<div class="dash-card">
<div class="card-icon">⏱️</div>
<div class="card-body">
<h3>Uptime</h3>
<p class="card-value" id="dash-uptime">—</p>
<span class="card-label" id="dash-uptime-label">since last restart</span>
</div>
</div>
</div>
<p class="dash-footer">Live data from <code>esef-514bf</code> · updates every 60s</p>
</section>
<script src="js/gallery.js" defer></script>
<script src="js/tabs.js" defer></script>
<!-- Firebase SDK (loaded before comments.js) --> <!-- Firebase SDK (loaded before comments.js) -->
<script src="https://www.gstatic.com/firebasejs/10.12.0/firebase-app-compat.js"></script> <script src="https://www.gstatic.com/firebasejs/10.12.0/firebase-app-compat.js"></script>
@@ -122,4 +174,4 @@
<img class="lightbox-content" id="lightbox-img"> <img class="lightbox-content" id="lightbox-img">
</div> </div>
</body> </body>
</html> </html>
+119
View File
@@ -0,0 +1,119 @@
/* ═══════════════════════════════════════════════════════════
YUUKA BOT DASHBOARD
═══════════════════════════════════════════════════════════ */
/* ── Yuuka Bot nav button override ────────────────────────── */
#yuukabot-btn {
background-color: #5b6fde;
color: #fff;
border: none;
padding: 12px 24px;
border-radius: 8px;
cursor: pointer;
transition: box-shadow 0.3s ease, transform 0.2s;
}
#yuukabot-btn:hover {
box-shadow: 0 0 18px rgba(91, 111, 222, 0.8);
transform: scale(1.03);
}
/* ── Dashboard header ─────────────────────────────────────── */
.dash-header {
padding: 120px 20px 30px;
text-align: center;
}
.dash-header h1 {
font-size: 3rem;
color: #fff;
margin: 0 0 8px;
text-shadow: 0 0 30px rgba(91, 111, 222, 0.6);
}
.dash-header p {
font-size: 1.1rem;
color: rgba(255, 255, 255, 0.6);
margin: 0;
}
/* ── Card grid ────────────────────────────────────────────── */
.dash-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 24px;
max-width: 1100px;
margin: 0 auto;
padding: 20px 40px 60px;
}
/* ── Individual card ──────────────────────────────────────── */
.dash-card {
background: rgba(20, 20, 35, 0.75);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(91, 111, 222, 0.25);
border-radius: 14px;
padding: 28px 24px;
display: flex;
align-items: flex-start;
gap: 18px;
transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}
.dash-card:hover {
border-color: rgba(91, 111, 222, 0.6);
box-shadow: 0 8px 32px rgba(91, 111, 222, 0.15);
transform: translateY(-2px);
}
.card-icon {
font-size: 2.2rem;
flex-shrink: 0;
width: 52px;
height: 52px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(91, 111, 222, 0.15);
border-radius: 12px;
}
.card-body h3 {
margin: 0 0 8px;
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 1px;
color: rgba(255, 255, 255, 0.5);
font-family: Arial, Helvetica, sans-serif;
}
.card-value {
font-size: 2rem;
font-weight: bold;
color: #fff;
margin: 0 0 4px;
line-height: 1.2;
}
.card-label {
font-size: 0.78rem;
color: rgba(255, 255, 255, 0.35);
font-family: Arial, Helvetica, sans-serif;
}
/* ── Footer ───────────────────────────────────────────────── */
.dash-footer {
text-align: center;
color: rgba(255, 255, 255, 0.25);
font-size: 0.75rem;
padding-bottom: 40px;
font-family: Arial, Helvetica, sans-serif;
}
.dash-footer code {
background: rgba(255, 255, 255, 0.08);
padding: 2px 6px;
border-radius: 3px;
font-size: 0.75rem;
}