Ruby/dashboard/templates/index.html
Dani b876dede9e Added Dark mode,
Added a journal
Added concepts
2025-04-25 22:54:44 -04:00

81 lines
1.9 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Ruby's Dashboard</title>
<style>
body {
background-color: #121212;
color: #e0e0e0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
padding: 20px;
}
h1, h2 {
color: #ffffff;
}
p, li {
color: #cccccc;
}
ul {
list-style-type: square;
}
.section {
margin-bottom: 30px;
}
.divider {
border-top: 1px solid #333;
margin: 20px 0;
}
</style>
</head>
<body>
<h1>Ruby is Running 🧠</h1>
<div class="section">
<h2>⏳ Next Cycle Countdown</h2>
<p id="countdown">{{ next_cycle }} seconds</p>
</div>
<script>
function updateCountdown() {
var countdown = document.getElementById("countdown");
var seconds = parseInt(countdown.innerText.split(" ")[0]);
if (seconds > 0) {
seconds -= 1;
countdown.innerText = seconds + " seconds";
}
}
setInterval(updateCountdown, 1000);
</script>
<div class="section">
<p><strong>Vocabulary Size:</strong> {{ vocab_size }}</p>
<p><strong>Memory Entries:</strong> {{ memory_size }}</p>
</div>
<div class="divider"></div>
<div class="section">
<h2>🏆 Highest Scoring Dreams</h2>
<ul>
{% for dream in top_dreams %}
<li><strong>{{ dream.score }}</strong> | {{ dream.sentence }}</li>
{% endfor %}
</ul>
</div>
<div class="divider"></div>
<div class="section">
<h2>📉 Recent Loss</h2>
<ul>
{% for loss in loss_data %}
<li>{{ loss }}</li>
{% endfor %}
</ul>
</div>
</body>
</html>