Cleaned up the dashboard
This commit is contained in:
parent
2df544c626
commit
d456c833bf
@ -7,32 +7,42 @@
|
|||||||
<title>Ruby's Dashboard</title>
|
<title>Ruby's Dashboard</title>
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
background-color: #121212;
|
font-family: Arial, sans-serif;
|
||||||
|
background-color: #0f0f0f;
|
||||||
color: #e0e0e0;
|
color: #e0e0e0;
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
.container {
|
||||||
|
max-width: 1200px;
|
||||||
|
margin: auto;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
}
|
}
|
||||||
h1, h2 {
|
.section {
|
||||||
color: #ffffff;
|
background: #1a1a1a;
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 20px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5);
|
||||||
}
|
}
|
||||||
p, li {
|
h1, h2 {
|
||||||
color: #cccccc;
|
color: #ffd700;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
margin: 5px 0;
|
||||||
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
ul {
|
ul {
|
||||||
list-style-type: square;
|
list-style-type: none;
|
||||||
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
.section {
|
li {
|
||||||
margin-bottom: 30px;
|
background: #262626;
|
||||||
}
|
margin: 4px 0;
|
||||||
.divider {
|
padding: 8px;
|
||||||
border-top: 1px solid #333;
|
border-radius: 8px;
|
||||||
margin: 20px 0;
|
font-size: 14px;
|
||||||
}
|
|
||||||
.entry {
|
|
||||||
margin-bottom: 15px;
|
|
||||||
padding-bottom: 10px;
|
|
||||||
border-bottom: 1px solid #333;
|
|
||||||
}
|
}
|
||||||
.nav {
|
.nav {
|
||||||
background-color: #1e1e1e;
|
background-color: #1e1e1e;
|
||||||
@ -44,26 +54,35 @@
|
|||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
.preview-box {
|
||||||
|
background: #262626;
|
||||||
|
padding: 15px;
|
||||||
|
border-radius: 8px;
|
||||||
|
margin-top: 10px;
|
||||||
|
font-size: 14px;
|
||||||
|
max-height: 120px;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="nav">
|
<div class="nav">
|
||||||
<a href="/">🏠 Home</a>
|
<a href="/">🏠 Home</a>
|
||||||
<a href="/journal">📓 Journal</a>
|
<a href="/journal">📓 Journal</a>
|
||||||
<a href="/concepts">🧠 Concepts</a>
|
<a href="/concepts">🧠 Concepts</a>
|
||||||
<a href="/brainmap">🕸️ Brain Map</a>
|
<a href="/brainmap">🕸️ Brain Map</a>
|
||||||
<a href="/growth">📈 Growth</a>
|
<a href="/growth">📈 Growth</a>
|
||||||
<a href="/dreams">💬 Dreams</a>
|
<a href="/dreams">💬 Dreams</a>
|
||||||
</div>
|
|
||||||
|
|
||||||
<h1>Ruby is Running 🧠</h1>
|
|
||||||
|
|
||||||
<div class="section">
|
|
||||||
<h2>⏳ Next Cycle</h2>
|
|
||||||
<p><strong>Next:</strong> {{ next_action_label }}</p>
|
|
||||||
<p id="countdown">{{ next_cycle }} seconds</p>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<h1 style="text-align: center;">Ruby is Running 🧠</h1>
|
||||||
|
|
||||||
|
<div class="section">
|
||||||
|
<h2>⏳ Next Cycle</h2>
|
||||||
|
<p><strong>Next:</strong> {{ next_action_label }}</p>
|
||||||
|
<p id="countdown">{{ next_cycle }} seconds</p>
|
||||||
|
</div>
|
||||||
<script>
|
<script>
|
||||||
function updateCountdown() {
|
function updateCountdown() {
|
||||||
var countdown = document.getElementById("countdown");
|
var countdown = document.getElementById("countdown");
|
||||||
@ -77,15 +96,18 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="section">
|
<div class="section">
|
||||||
|
<h2>🧠 Brain Stats</h2>
|
||||||
<p><strong>Vocabulary Size:</strong> {{ vocab_size }}</p>
|
<p><strong>Vocabulary Size:</strong> {{ vocab_size }}</p>
|
||||||
<p><strong>Memory Entries:</strong> {{ memory_size }}</p>
|
<p><strong>Memory Entries:</strong> {{ memory_size }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="divider"></div>
|
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<h2>📖 Book Progress</h2>
|
<h2>📖 Current Book Progress</h2>
|
||||||
<p>Currently Reading: <strong>{{ current_book }}</strong></p>
|
<p><strong>Currently Reading:</strong> {{ current_book }}</p>
|
||||||
<p>Line: {{ current_line }}</p>
|
<p><strong>Line:</strong> {{ current_line }}</p>
|
||||||
|
<div class="preview-box">
|
||||||
|
{{ current_passage }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section">
|
<div class="section">
|
||||||
@ -97,15 +119,14 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="divider"></div>
|
|
||||||
|
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<h2>📉 Recent Loss</h2>
|
<h2>📉 Recent Loss</h2>
|
||||||
<canvas id="lossChart" width="400" height="200"></canvas>
|
<canvas id="lossChart" width="400" height="200"></canvas>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const ctxLoss = document.getElementById('lossChart').getContext('2d');
|
const ctxLoss = document.getElementById('lossChart').getContext('2d');
|
||||||
|
|
||||||
const lossData = {
|
const lossData = {
|
||||||
labels: [
|
labels: [
|
||||||
{% for entry in loss_data[-50:] %}
|
{% for entry in loss_data[-50:] %}
|
||||||
@ -124,14 +145,14 @@
|
|||||||
tension: 0.2
|
tension: 0.2
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
|
|
||||||
const lossChart = new Chart(ctxLoss, {
|
const lossChart = new Chart(ctxLoss, {
|
||||||
type: 'line',
|
type: 'line',
|
||||||
data: lossData,
|
data: lossData,
|
||||||
options: {
|
options: {
|
||||||
scales: {
|
scales: {
|
||||||
x: {
|
x: {
|
||||||
display: false // hide x-axis ticks
|
display: false
|
||||||
},
|
},
|
||||||
y: {
|
y: {
|
||||||
title: {
|
title: {
|
||||||
@ -149,6 +170,6 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user