File size: 14,519 Bytes
b5913e6 3293bb1 b5913e6 3293bb1 b5913e6 3293bb1 b5913e6 5e523a1 b5913e6 3293bb1 b5913e6 3293bb1 b5913e6 3293bb1 b5913e6 3293bb1 b5913e6 3293bb1 b5913e6 3293bb1 b5913e6 3293bb1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AVA 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/feather-icons/dist/feather.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/animejs@3.2.1/lib/anime.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
.gradient-text {
background: linear-gradient(90deg, #6d28d9 0%, #a855f7 50%, #7c3aed 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.stats-card {
transition: all 0.3s ease;
}
.stats-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body class="bg-gray-50">
<div class="min-h-screen flex flex-col">
<!-- Header -->
<header class="bg-white shadow-sm border-b border-gray-200">
<div class="container mx-auto px-6 py-4 flex justify-between items-center">
<div class="flex items-center space-x-3">
<i data-feather="zap" class="text-purple-600 w-6 h-6"></i>
<span class="text-xl font-bold gradient-text">AVA Dashboard</span>
</div>
<nav class="flex space-x-6 items-center">
<a href="index.html" class="text-gray-600 hover:text-purple-600 font-medium transition-colors">Home</a>
<a href="index.html#features" class="text-gray-600 hover:text-purple-600 font-medium transition-colors">Features</a>
<a href="index.html#integrations" class="text-gray-600 hover:text-purple-600 font-medium transition-colors">Integrations</a>
<a href="backend.html" class="text-gray-600 hover:text-purple-600 font-medium transition-colors">API</a>
<div class="flex items-center space-x-3">
<span class="text-sm text-gray-600">Welcome back, User</span>
<div class="w-8 h-8 bg-purple-600 rounded-full flex items-center justify-center text-white text-sm font-medium">U</span>
</div>
</nav>
</div>
</header>
<!-- Main Dashboard -->
<main class="flex-grow">
<div class="container mx-auto px-6 py-8">
<!-- Stats Overview -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
<div class="stats-card bg-white p-6 rounded-lg shadow-sm border border-gray-100">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-gray-600 font-medium">Workflows Executed</p>
<h3 class="text-2xl font-bold text-gray-800 mt-1">1,247</h3>
<p class="text-xs text-green-600 mt-1">+12% this week</p>
</div>
<div class="bg-purple-100 p-3 rounded-lg">
<i data-feather="play" class="w-5 h-5 text-purple-600"></i>
</div>
</div>
</div>
<div class="stats-card bg-white p-6 rounded-lg shadow-sm border border-gray-100">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-gray-600 font-medium">Active Automations</p>
<h3 class="text-2xl font-bold text-gray-800 mt-1">23</h3>
<p class="text-xs text-blue-600 mt-1">running</p>
</div>
<div class="bg-blue-100 p-3 rounded-lg">
<i data-feather="refresh-cw" class="w-5 h-5 text-blue-600"></i>
</div>
</div>
</div>
<div class="stats-card bg-white p-6 rounded-lg shadow-sm border border-gray-100">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-gray-600 font-medium">Time Saved</p>
<h3 class="text-2xl font-bold text-gray-800 mt-1">342h</h3>
<p class="text-xs text-green-600 mt-1">total</p>
</div>
<div class="bg-green-100 p-3 rounded-lg">
<i data-feather="clock" class="w-5 h-5 text-green-600"></i>
</div>
</div>
</div>
<div class="stats-card bg-white p-6 rounded-lg shadow-sm border border-gray-100">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-gray-600 font-medium">Success Rate</p>
<h3 class="text-2xl font-bold text-gray-800 mt-1">98.7%</h3>
<p class="text-xs text-green-600 mt-1">average</p>
</div>
<div class="bg-yellow-100 p-3 rounded-lg">
<i data-feather="trending-up" class="w-5 h-5 text-yellow-600"></i>
</div>
</div>
</div>
</div>
<!-- Recent Activity & Quick Actions -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
<!-- Recent Activity -->
<div class="bg-white rounded-lg shadow-sm border border-gray-100 p-6">
<h3 class="text-lg font-semibold text-gray-800 mb-6">Recent Activity</h3>
<div class="space-y-4">
<div class="flex items-center justify-between p-4 bg-green-50 rounded-lg border border-green-200">
<div class="flex items-center space-x-3">
<div class="bg-green-500 p-2 rounded-lg">
<i data-feather="check-circle" class="w-4 h-4 text-white"></i>
</div>
<div class="flex-1">
<p class="font-medium text-gray-800">Excel Report Generated</p>
<p class="text-sm text-gray-600 mt-1">Q3 Sales Analysis</p>
<p class="text-xs text-gray-500 mt-1">Completed 2 min ago</p>
</div>
<button class="text-purple-600 hover:text-purple-700 text-sm font-medium">View</button>
</div>
</div>
<div class="flex items-center justify-between p-4 bg-blue-50 rounded-lg border border-blue-200">
<div class="flex items-center space-x-3">
<div class="bg-blue-500 p-2 rounded-lg">
<i data-feather="mail" class="w-4 h-4 text-white"></i>
</div>
<div class="flex-1">
<p class="font-medium text-gray-800">Email Campaign Sent</p>
<p class="text-sm text-gray-600 mt-1">Monthly Newsletter</p>
<p class="text-xs text-gray-500 mt-1">Completed 15 min ago</p>
</div>
<button class="text-purple-600 hover:text-purple-700 text-sm font-medium">Details</button>
</div>
</div>
<div class="flex items-center justify-between p-4 bg-purple-50 rounded-lg border border-purple-200">
<div class="flex items-center space-x-3">
<div class="bg-purple-500 p-2 rounded-lg">
<i data-feather="bar-chart-2" class="w-4 h-4 text-white"></i>
</div>
<div class="flex-1">
<p class="font-medium text-gray-800">Dashboard Updated</p>
<p class="text-sm text-gray-600 mt-1">Real-time Metrics</p>
<p class="text-xs text-gray-500 mt-1">Updated 1 hour ago</p>
</div>
<button class="text-purple-600 hover:text-purple-700 text-sm font-medium">Open</button>
</div>
</div>
</div>
</div>
<!-- Quick Actions -->
<div class="bg-white rounded-lg shadow-sm border border-gray-100 p-6">
<h3 class="text-lg font-semibold text-gray-800 mb-6">Quick Actions</h3>
<div class="grid grid-cols-2 gap-4">
<button onclick="createNewWorkflow()" class="bg-purple-600 hover:bg-purple-700 text-white p-4 rounded-lg font-medium transition-colors flex flex-col items-center space-y-2">
<i data-feather="plus" class="w-5 h-5"></i>
<span class="text-sm">New Workflow</span>
</button>
<button onclick="scheduleTask()" class="bg-blue-600 hover:bg-blue-700 text-white p-4 rounded-lg font-medium transition-colors flex flex-col items-center space-y-2">
<i data-feather="calendar" class="w-5 h-5"></i>
<span class="text-sm">Schedule Task</span>
</button>
<button onclick="viewAnalytics()" class="bg-green-600 hover:bg-green-700 text-white p-4 rounded-lg font-medium transition-colors flex flex-col items-center space-y-2">
<i data-feather="trending-up" class="w-5 h-5"></i>
<span class="text-sm">Analytics</span>
</button>
<button onclick="manageIntegrations()" class="bg-yellow-600 hover:bg-yellow-700 text-white p-4 rounded-lg font-medium transition-colors flex flex-col items-center space-y-2">
<i data-feather="settings" class="w-5 h-5"></i>
<span class="text-sm">Settings</span>
</button>
</div>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer class="bg-white border-t border-gray-200 py-6">
<div class="container mx-auto px-6 text-center">
<p class="text-gray-600 text-sm">© 2023 AVA AI. All rights reserved.</p>
</div>
</footer>
</div>
<script>
// Dashboard functions
function createNewWorkflow() {
showNotification('Opening Workflow Builder - Create your automation with drag & drop components!', 'info');
}
function scheduleTask() {
showNotification('Task Scheduler opened - Set up recurring automations and monitoring.', 'success');
}
function viewAnalytics() {
showNotification('Analytics Dashboard loading - View performance metrics and insights.', 'info');
}
function manageIntegrations() {
showNotification('Integration Manager opened - Connect AVA with your favorite tools.', 'info');
}
function showNotification(message, type) {
const notification = document.createElement('div');
const bgColor = type === 'success' ? 'bg-green-500' :
type === 'error' ? 'bg-red-500' :
'bg-blue-500';
notification.className = `fixed top-4 right-4 p-4 rounded-lg shadow-lg z-50 transform transition-all duration-300 ${bgColor} text-white flex items-center space-x-3`;
const icon = type === 'success' ? 'check-circle' :
type === 'error' ? 'alert-circle' :
'info';
notification.innerHTML = `
<i data-feather="${icon}" class="w-5 h-5"></i>
<span>${message}</span>
`;
document.body.appendChild(notification);
feather.replace();
// Animate in
anime({
targets: notification,
translateX: [100, 0],
opacity: [0, 1],
duration: 500,
easing: 'easeOutExpo'
});
setTimeout(() => {
// Animate out
anime({
targets: notification,
translateX: 100,
opacity: 0,
duration: 500,
easing: 'easeInExpo',
complete: function() {
notification.remove();
}
});
}, 4000);
}
// Initialize on load
document.addEventListener('DOMContentLoaded', function() {
feather.replace();
// Add hover animations
document.querySelectorAll('.stats-card, button').forEach(element => {
element.addEventListener('mouseenter', function() {
anime({
targets: element,
scale: [1, 1.02],
duration: 200,
easing: 'easeOutQuad'
});
});
element.addEventListener('mouseleave', function() {
anime({
targets: element,
scale: 1,
duration: 200,
easing: 'easeOutQuad'
});
});
});
});
</script>
</body>
</html> |