Spaces:
Running

CWEMonthlyReport / index.html
TraceMDM's picture
Change to "Key Takeaways"
84c4cc8 verified
Raw History Blame Contribute Delete
12.9 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>August Marketing Analytics Dashboard</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#6366f1',
secondary: '#8b5cf6',
}
}
}
}
</script>
<style>
.chart-container {
background-color: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
border-radius: 1rem;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.stat-card {
transition: all 0.3s ease;
}
.stat-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body class="bg-gray-50 min-h-screen">
<div class="container mx-auto px-4 py-8">
<!-- Header -->
<div class="flex flex-col items-center text-center mb-8">
<img src="https://huggingface.co/spaces/TraceMDM/august-analytics-unleashed/resolve/main/images/CWE-Final-wbg.png" alt="Logo" class="w-[150px] h-[150px] mx-auto mb-4">
<h1 class="text-3xl font-bold text-gray-800">Monthly Marketing Report</h1>
<p class="text-gray-600">Performance overview for monthly campaigns</p>
<div class="mt-4 flex items-center space-x-2">
<span class="px-3 py-1 rounded-full bg-primary bg-opacity-10 text-primary text-sm font-medium">September</span>
</div>
</div>
<!-- Stats Overview -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
<!-- Clicks -->
<div class="stat-card bg-white p-6 rounded-xl shadow-sm border border-gray-100">
<div class="flex justify-between items-start">
<div>
<p class="text-sm font-medium text-gray-500">Clicks</p>
<h3 class="text-2xl font-bold text-gray-800 mt-1">621</h3>
</div>
<div class="p-3 rounded-lg bg-primary bg-opacity-10 text-primary">
<i data-feather="mouse-pointer"></i>
</div>
</div>
<div class="mt-4">
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-primary h-2 rounded-full" style="width: 76%"></div>
</div>
</div>
</div>
<!-- Impressions -->
<div class="stat-card bg-white p-6 rounded-xl shadow-sm border border-gray-100">
<div class="flex justify-between items-start">
<div>
<p class="text-sm font-medium text-gray-500">Impressions</p>
<h3 class="text-2xl font-bold text-gray-800 mt-1">13.4k</h3>
</div>
<div class="p-3 rounded-lg bg-secondary bg-opacity-10 text-secondary">
<i data-feather="eye"></i>
</div>
</div>
<div class="mt-4">
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-secondary h-2 rounded-full" style="width: 84%"></div>
</div>
</div>
</div>
<!-- Cost -->
<div class="stat-card bg-white p-6 rounded-xl shadow-sm border border-gray-100">
<div class="flex justify-between items-start">
<div>
<p class="text-sm font-medium text-gray-500">Total Cost</p>
<h3 class="text-2xl font-bold text-gray-800 mt-1">$1.95k</h3>
</div>
<div class="p-3 rounded-lg bg-yellow-500 bg-opacity-10 text-yellow-500">
<i data-feather="dollar-sign"></i>
</div>
</div>
<div class="mt-4">
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-yellow-500 h-2 rounded-full" style="width: 68%"></div>
</div>
</div>
</div>
<!-- Conversions -->
<div class="stat-card bg-white p-6 rounded-xl shadow-sm border border-gray-100">
<div class="flex justify-between items-start">
<div>
<p class="text-sm font-medium text-gray-500">Conversions</p>
<h3 class="text-2xl font-bold text-gray-800 mt-1">54</h3>
</div>
<div class="p-3 rounded-lg bg-green-500 bg-opacity-10 text-green-500">
<i data-feather="trending-up"></i>
</div>
</div>
<div class="mt-4">
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-green-500 h-2 rounded-full" style="width: 65%"></div>
</div>
</div>
</div>
</div>
<!-- Main Charts -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8">
<!-- Performance Metrics Chart -->
<div class="chart-container p-6">
<div class="flex justify-between items-center mb-6">
<h2 class="text-xl font-semibold text-gray-800">Performance Metrics</h2>
<div class="flex space-x-2">
<button class="px-3 py-1 text-sm rounded-md bg-primary text-white">Monthly</button>
</div>
</div>
<canvas id="performanceChart"></canvas>
</div>
<!-- Cost Breakdown -->
<div class="chart-container p-6">
<div class="flex justify-between items-center mb-6">
<h2 class="text-xl font-semibold text-gray-800">Cost Breakdown</h2>
<div class="text-sm text-gray-500">
<span>Avg. CPC: $3.08</span>
</div>
</div>
<canvas id="costChart"></canvas>
</div>
</div>
<!-- Data Table -->
<div class="chart-container p-6 mb-8">
<div class="flex justify-between items-center mb-6">
<h2 class="text-xl font-semibold text-gray-800">Raw Data</h2>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Month</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Clicks</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Impressions</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Avg. CPC</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Cost</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Cost/Conv.</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Conversions</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Conv. Rate</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">September</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">621</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">13.4k</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$3.14</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$1.95k</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$36.11</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">54</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">8.70%</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Key Takeaways Block -->
<div class="chart-container p-6 mb-8">
<div class="flex justify-between items-center mb-6">
<h2 class="text-xl font-semibold text-gray-800">Key Takeaways</h2>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="bg-purple-50 p-6 rounded-lg shadow-sm border-2 border-purple-500">
<h3 class="text-lg font-medium text-purple-700 mb-2">Increased Impressions</h3>
<p class="text-gray-600">13.4k impressions shows excellent reach growth</p>
<p class="text-gray-600">9.5% increase from previous month</p>
</div>
<div class="bg-green-50 p-6 rounded-lg shadow-sm border-2 border-green-500">
<h3 class="text-lg font-medium text-green-700 mb-2">Cost Effectiveness</h3>
<p class="text-gray-600">$3.14 CPC remains below market benchmarks</p>
<p class="text-gray-600">$36.11 cost per conversion is still efficient</p>
</div>
<div class="bg-blue-50 p-6 rounded-lg shadow-sm border-2 border-blue-500">
<h3 class="text-lg font-medium text-blue-700 mb-2">Strong Engagement</h3>
<p class="text-gray-600">621 clicks with 8.70% conversion rate</p>
<p class="text-gray-600">4.63% CTR indicates continued strong ad performance</p>
</div>
</div>
</div>
</div>
<script>
feather.replace();
// Performance Chart
const performanceCtx = document.getElementById('performanceChart').getContext('2d');
const performanceChart = new Chart(performanceCtx, {
type: 'bar',
data: {
labels: ['Clicks', 'Impressions', 'Conversions'],
datasets: [
{
label: 'Count',
data: [621, 13400, 54],
backgroundColor: [
'rgba(99, 102, 241, 0.7)',
'rgba(139, 92, 246, 0.7)',
'rgba(16, 185, 129, 0.7)'
],
borderColor: [
'rgba(99, 102, 241, 1)',
'rgba(139, 92, 246, 1)',
'rgba(16, 185, 129, 1)'
],
borderWidth: 1
}
]
},
options: {
responsive: true,
plugins: {
legend: {
display: false
}
},
scales: {
y: {
beginAtZero: true
}
}
}
});
// Cost Chart
const costCtx = document.getElementById('costChart').getContext('2d');
const costChart = new Chart(costCtx, {
type: 'line',
data: {
labels: ['Week 1', 'Week 2', 'Week 3', 'Week 4'],
datasets: [{
label: 'Cost',
data: [450, 500, 530, 470],
fill: true,
backgroundColor: 'rgba(234, 179, 8, 0.1)',
borderColor: 'rgba(234, 179, 8, 1)',
tension: 0.3,
borderWidth: 2
}]
},
options: {
responsive: true,
plugins: {
legend: {
display: false
}
},
scales: {
y: {
beginAtZero: true
}
}
}
});
</script>
</body>
</html>