dashboard stats

This commit is contained in:
usmannasir 2025-05-24 21:39:35 +05:00
parent c6644a1a5d
commit 35ee5ae7c4
1 changed files with 10 additions and 4 deletions

View File

@ -17,7 +17,7 @@
<!-- Info Cards Row -->
<div style="display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 30px;">
<!-- Total Sites Card -->
<a href="{% url 'loadWebsitesHome' %}" style="flex: 1; min-width: 200px; max-width: 300px; text-decoration: none;">
<a href="{% url 'listWebsites' %}" style="flex: 1; min-width: 200px; max-width: 300px; text-decoration: none;">
<div style="background: linear-gradient(135deg, #007bff 0%, #00c6ff 100%); color: #fff; padding: 20px; border-radius: 15px; box-shadow: 0 4px 15px rgba(0,123,255,0.3); height: 100%; cursor: pointer;">
<div style="display: flex; align-items: center;">
<div style="font-size: 2.5rem; margin-right: 15px; opacity: 0.9;"><i class="fa fa-globe"></i></div>
@ -29,7 +29,7 @@
</div>
</a>
<!-- WordPress Sites Card -->
<a href="{% url 'loadWebsitesHome' %}?wp=1" style="flex: 1; min-width: 200px; max-width: 300px; text-decoration: none;">
<a href="{% url 'ListWPSites' %}?wp=1" style="flex: 1; min-width: 200px; max-width: 300px; text-decoration: none;">
<div style="background: linear-gradient(135deg, #6f42c1 0%, #b993ff 100%); color: #fff; padding: 20px; border-radius: 15px; box-shadow: 0 4px 15px rgba(111,66,193,0.3); height: 100%; cursor: pointer;">
<div style="display: flex; align-items: center;">
<div style="font-size: 2.5rem; margin-right: 15px; opacity: 0.9;"><i class="fa fa-wordpress"></i></div>
@ -41,7 +41,7 @@
</div>
</a>
<!-- Total Databases Card -->
<a href="{% url 'loadDatabaseHome' %}" style="flex: 1; min-width: 200px; max-width: 300px; text-decoration: none;">
<a href="{% url 'listDBs' %}" style="flex: 1; min-width: 200px; max-width: 300px; text-decoration: none;">
<div style="background: linear-gradient(135deg, #17a2b8 0%, #6fe7dd 100%); color: #fff; padding: 20px; border-radius: 15px; box-shadow: 0 4px 15px rgba(23,162,184,0.3); height: 100%; cursor: pointer;">
<div style="display: flex; align-items: center;">
<div style="font-size: 2.5rem; margin-right: 15px; opacity: 0.9;"><i class="fa fa-database"></i></div>
@ -53,7 +53,7 @@
</div>
</a>
<!-- Total Emails Card -->
<a href="{% url 'loadEmailHome' %}" style="flex: 1; min-width: 200px; max-width: 300px; text-decoration: none;">
<a href="{% url 'listEmails' %}" style="flex: 1; min-width: 200px; max-width: 300px; text-decoration: none;">
<div style="background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%); color: #fff; padding: 20px; border-radius: 15px; box-shadow: 0 4px 15px rgba(255,152,0,0.3); height: 100%; cursor: pointer;">
<div style="display: flex; align-items: center;">
<div style="font-size: 2.5rem; margin-right: 15px; opacity: 0.9;"><i class="fa fa-envelope"></i></div>
@ -156,6 +156,12 @@
}
});
});
// Ensure traffic chart is visible and resized on load
setTimeout(function() {
if (window.trafficChart && typeof window.trafficChart.resize === 'function') {
window.trafficChart.resize();
}
}, 700);
});
</script>