<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Student Success Heatmap Dashboard</title>
<style>
body { font-family: Arial, sans-serif; margin: 20px; background: #f4f4f4; }
.dashboard { max-width: 1200px; margin: 0 auto; }
h1, h2 { color: #333; }
.heatmap { background: white; border-radius: 8px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; text-align: center; border: 1px solid #ddd; }
th { background: #4a90e2; color: white; font-weight: bold; }
.metric-header { background: #7ed321 !important; }
/* Heatmap colors: Green (low risk) -> Red (high risk) */
.risk-low { background: #d5f4e6 !important; color: #27ae60; font-weight: bold; }
.risk-med { background: #fff3cd !important; color: #f39c12; font-weight: bold; }
.risk-high { background: #f8d7da !important; color: #e74c3c; font-weight: bold; }
.risk-crit { background: #dc3545 !important; color: white; font-weight: bold; animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.7; } 100% { opacity: 1; } }
.alert { border-left: 5px solid #e74c3c; background: #ffeaa7; }
.section { background: white; border-radius: 8px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); margin-bottom: 20px; }
.interventions { display: flex; flex-wrap: wrap; gap: 10px; }
.intervention-btn { padding: 10px 15px; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; transition: transform 0.2s; }
.intervention-btn:hover { transform: scale(1.05); }
.intervention-email { background: #3498db; color: white; }
.intervention-call { background: #e67e22; color: white; }
.intervention-meet { background: #27ae60; color: white; }
.intervention-refer { background: #9b59b6; color: white; }
.caseload-list { list-style: none; padding: 0; }
.caseload-item { padding: 10px; margin: 5px 0; background: #ecf0f1; border-radius: 5px; display: flex; justify-content: space-between; align-items: center; }
.priority-high { border-left: 5px solid #e74c3c; }
.evaluation-kpi { display: inline-block; margin: 10px; padding: 15px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 8px; text-align: center; min-width: 150px; }
button.assign { background: #27ae60; color: white; border: none; padding: 5px 10px; border-radius: 3px; cursor: pointer; }
select { padding: 5px; margin-left: 10px; }
</style>
</head>
<body>
<div class="dashboard">
<h1>🗺️ Student Success Heatmap Dashboard</h1>
<p>Interactive visualization for early alerts, interventions, caseload targeting, and evaluation. Colors: <span class="risk-low">🟢 Low Risk</span> | <span class="risk-med">🟡 Medium</span> | <span class="risk-high">🟠 High</span> | <span class="risk-crit">🔴 Critical</span></p>
<!-- Early Alerts Heatmap -->
<div class="section heatmap">
<h2>📊 Early Alerts Heatmap</h2>
<p>Hover/click cells for details. Pulsing cells = Active Alerts.</p>
<table>
<thead>
<tr>
<th>Student ID</th>
<th class="metric-header">Attendance %</th>
<th class="metric-header">GPA</th>
<th class="metric-header">Engagement Score</th>
<th class="metric-header">Behavior Incidents</th>
<th>Overall Risk</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr class="alert">
<td><strong>STU001 - Alice Johnson</strong></td>
<td class="risk-low">98%</td>
<td class="risk-low">3.8</td>
<td class="risk-med">75</td>
<td class="risk-low">0</td>
<td class="risk-med">Medium</td>
<td><button class="intervention-btn intervention-email" onclick="alert('Email sent to Alice!')">📧</button></td>
</tr>
<tr>
<td>STU002 - Bob Smith</td>
<td class="risk-high">72%</td>
<td class="risk-med">2.9</td>
<td class="risk-high">55</td>
<td class="risk-med">2</td>
<td class="risk-high">High</td>
<td><button class="intervention-btn intervention-call" onclick="alert('Call scheduled for Bob!')">📞</button></td>
</tr>
<tr class="alert">
<td><strong>STU003 - Carol Davis</strong></td>
<td class="risk-crit">45%</td>
<td class="risk-high">1.8</td>
<td class="risk-crit">28</td>
<td class="risk-high">5</td>
<td class="risk-crit">Critical 🔥</td>
<td><button class="intervention-btn intervention-meet" onclick="alert('Meeting booked for Carol!')">🤝</button></td>
</tr>
<tr>
<td>STU004 - David Wilson</td>
<td class="risk-med">85%</td>
<td class="risk-low">3.5</td>
<td class="risk-med">68</td>
<td class="risk-low">1</td>
<td class="risk-med">Medium</td>
<td><button class="intervention-btn intervention-refer" onclick="alert('Referred to counseling!')">🔗</button></td>
</tr>
<tr>
<td>STU005 - Eve Brown</td>
<td class="risk-low">92%</td>
<td class="risk-low">3.9</td>
<td class="risk-low">88</td>
<td class="risk-low">0</td>
<td class="risk-low">Low</td>
<td>✅</td>
</tr>
<!-- Add more rows as needed -->
</tbody>
</table>
</div>
<!-- Interventions Menu -->
<div class="section">
<h2>🛠️ Interventions Menu</h2>
<div class="interventions">
<button class="intervention-btn intervention-email" onclick="alert('Bulk email intervention applied to selected students!')">📧 Send Progress Email</button>
<button class="intervention-btn intervention-call" onclick="alert('Bulk call scheduling initiated!')">📞 Schedule Check-in Call</button>
<button class="intervention-btn intervention-meet" onclick="alert('Group advising session booked!')">🤝 Book Advising Meeting</button>
<button class="intervention-btn intervention-refer" onclick="alert('Refer to support services!')">🔗 Refer to Counseling/Tutoring</button>
<button onclick="alert('Custom intervention logged!')">✏️ Log Custom Note</button>
</div>
<p><em>Select students from heatmap, then choose intervention.</em></p>
</div>
<!-- Caseload Targeting -->
<div class="section">
<h2>🎯 Caseload Targeting</h2>
<p>Auto-prioritized by risk score. Assign to advisors:</p>
<select id="advisor-select">
<option>Advisor A (Smith)</option>
<option>Advisor B (Lee)</option>
<option>Advisor C (Garcia)</option>
</select>
<ul class="caseload-list">
<li class="caseload-item priority-high">
<span>🔴 STU003 - Carol Davis (Critical)</span>
<button class="assign" onclick="alert('Assigned to selected advisor!')">Assign</button>
</li>
<li class="caseload-item priority-high">
<span>🟠 STU002 - Bob Smith (High)</span>
<button class="assign" onclick="alert('Assigned to selected advisor!')">Assign</button>
</li>
<li class="caseload-item">
<span>🟡 STU001 - Alice Johnson (Medium)</span>
<button class="assign" onclick="alert('Assigned to selected advisor!')">Assign</button>
</li>
</ul>
</div>
<!-- Evaluation -->
<div class="section">
<h2>📈 Evaluation & KPIs</h2>
<div>
<div class="evaluation-kpi">
<h3>95%</h3>
<p>Alert Response Rate</p>
</div>
<div class="evaluation-kpi">
<h3>82%</h3>
<p>Success Rate Post-Intervention</p>
</div>
<div class="evaluation-kpi">
<h3>147</h3>
<p>Total Alerts This Month</p>
</div>
<div class="evaluation-kpi">
<h3>-12%</h3>
<p>Risk Trend (↓ Good)</p>
</div>
</div>
<p><em>Updated in real-time. Export to CSV: <button onclick="alert('Data exported!')">📥 Export</button></em></p>
</div>
</div>
<script>
// Simple interactivity: Add click handlers to table rows for selection
document.querySelectorAll('.heatmap tbody tr').forEach(row => {
row.addEventListener('click', function() {
this.classList.toggle('alert');
alert('Student selected/deselected for interventions.');
});
});
</script>
</body>
</html>
How to Use:
- Copy-paste the code above into a file (e.g.,
student-heatmap.html) and open in any web browser.
- Early Alerts: Heatmap highlights at-risk students with colors and pulsing for critical cases.
- Interventions Menu: Click buttons for actions (demo alerts; integrate with real backend for production).
- Caseload Targeting: Prioritized list with assignment dropdown.
- Evaluation: Key performance indicators with trends.
This is fully interactive, responsive, and customizable. For real data integration (e.g., via API), replace static data with dynamic fetches. Let me know if you need Python/Matplotlib version or expansions! 🕵️♂️