malipo / admin-dashboard.html
Meech888's picture
create a log in page for the admin pages - Follow Up Deployment
761991f verified
Raw History Blame Contribute Delete
30 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Dashboard | MALiPo</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
.admin-gradient {
background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}
.stat-card {
transition: all 0.3s ease;
}
.stat-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.sidebar {
height: calc(100vh - 4rem);
position: fixed;
top: 4rem;
left: 0;
width: 250px;
background-color: #f8fafc;
border-right: 1px solid #e2e8f0;
}
.main-content {
margin-left: 250px;
padding-top: 4rem;
}
.active-link {
background-color: #dbeafe;
border-left: 4px solid #3b82f6;
color: #1d4ed8;
font-weight: 600;
}
.table-row:hover {
background-color: #f1f5f9;
}
</style>
</head>
<body class="font-sans antialiased text-gray-900">
<!-- Navigation -->
<nav class="bg-white shadow-sm fixed w-full z-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-16">
<div class="flex items-center">
<div class="flex-shrink-0 flex items-center">
<i data-feather="zap" class="h-8 w-8 text-indigo-600"></i>
<span class="ml-2 text-xl font-bold text-gray-900">MALiPo Admin</span>
</div>
</div>
<div class="hidden md:ml-6 md:flex md:items-center md:space-x-8">
<a href="admin-dashboard.html" class="text-indigo-600 px-3 py-2 text-sm font-medium">Dashboard</a>
<a href="admin-users.html" class="text-gray-500 hover:text-indigo-600 px-3 py-2 text-sm font-medium">Users</a>
<a href="admin-transactions.html" class="text-gray-500 hover:text-indigo-600 px-3 py-2 text-sm font-medium">Transactions</a>
<a href="admin-wallets.html" class="text-gray-500 hover:text-indigo-600 px-3 py-2 text-sm font-medium">Wallets</a>
<a href="admin-reports.html" class="text-gray-500 hover:text-indigo-600 px-3 py-2 text-sm font-medium">Reports</a>
</div>
<div class="flex items-center">
<div class="relative ml-3">
<div>
<button type="button" class="flex items-center text-sm rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" id="user-menu-button">
<span class="sr-only">Open user menu</span>
<div class="h-8 w-8 rounded-full bg-indigo-100 flex items-center justify-center">
<i data-feather="user" class="h-5 w-5 text-indigo-600"></i>
</div>
<span class="ml-2 text-sm font-medium text-gray-700">Admin User</span>
</button>
</div>
</div>
</div>
</div>
</div>
</nav>
<!-- Sidebar -->
<div class="sidebar hidden md:block">
<div class="p-4">
<h3 class="text-xs font-semibold text-gray-500 uppercase tracking-wider mb-2">Main</h3>
<ul class="space-y-1">
<li>
<a href="admin-dashboard.html" class="active-link flex items-center px-3 py-2 text-sm rounded-md">
<i data-feather="home" class="h-4 w-4 mr-3"></i>
Dashboard
</a>
</li>
<li>
<a href="admin-users.html" class="flex items-center px-3 py-2 text-sm text-gray-700 rounded-md hover:bg-gray-100">
<i data-feather="users" class="h-4 w-4 mr-3"></i>
Users
</a>
</li>
<li>
<a href="admin-transactions.html" class="flex items-center px-3 py-2 text-sm text-gray-700 rounded-md hover:bg-gray-100">
<i data-feather="repeat" class="h-4 w-4 mr-3"></i>
Transactions
</a>
</li>
<li>
<a href="admin-wallets.html" class="flex items-center px-3 py-2 text-sm text-gray-700 rounded-md hover:bg-gray-100">
<i data-feather="credit-card" class="h-4 w-4 mr-3"></i>
Wallets
</a>
</li>
</ul>
<h3 class="text-xs font-semibold text-gray-500 uppercase tracking-wider mt-6 mb-2">Analytics</h3>
<ul class="space-y-1">
<li>
<a href="admin-reports.html" class="flex items-center px-3 py-2 text-sm text-gray-700 rounded-md hover:bg-gray-100">
<i data-feather="bar-chart-2" class="h-4 w-4 mr-3"></i>
Reports
</a>
</li>
<li>
<a href="#" class="flex items-center px-3 py-2 text-sm text-gray-700 rounded-md hover:bg-gray-100">
<i data-feather="trending-up" class="h-4 w-4 mr-3"></i>
Performance
</a>
</li>
<li>
<a href="#" class="flex items-center px-3 py-2 text-sm text-gray-700 rounded-md hover:bg-gray-100">
<i data-feather="activity" class="h-4 w-4 mr-3"></i>
Activity Logs
</a>
</li>
</ul>
<h3 class="text-xs font-semibold text-gray-500 uppercase tracking-wider mt-6 mb-2">System</h3>
<ul class="space-y-1">
<li>
<a href="#" class="flex items-center px-3 py-2 text-sm text-gray-700 rounded-md hover:bg-gray-100">
<i data-feather="settings" class="h-4 w-4 mr-3"></i>
Settings
</a>
</li>
<li>
<a href="#" class="flex items-center px-3 py-2 text-sm text-gray-700 rounded-md hover:bg-gray-100">
<i data-feather="shield" class="h-4 w-4 mr-3"></i>
Security
</a>
</li>
<li>
<a href="index.html" class="flex items-center px-3 py-2 text-sm text-gray-700 rounded-md hover:bg-gray-100">
<i data-feather="log-out" class="h-4 w-4 mr-3"></i>
Logout
</a>
</li>
</ul>
</div>
</div>
<!-- Main Content -->
<div class="main-content">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<!-- Welcome Section -->
<div class="bg-white rounded-lg shadow-md p-6 mb-8">
<div class="flex flex-col md:flex-row md:items-center md:justify-between">
<div>
<h1 class="text-2xl font-bold text-gray-900">Admin Dashboard</h1>
<p class="mt-2 text-gray-600">Overview of system activity and performance metrics</p>
</div>
<div class="mt-4 md:mt-0">
<div class="px-4 py-2 rounded-full text-sm font-medium bg-blue-100 text-blue-800">
<i data-feather="calendar" class="h-4 w-4 inline mr-1"></i>
Last updated: Today, 14:30
</div>
</div>
</div>
</div>
<!-- Stats Overview -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
<!-- Total Users -->
<div class="stat-card bg-white p-6 rounded-lg shadow-md">
<div class="flex items-center">
<div class="flex-shrink-0">
<div class="h-10 w-10 rounded-full bg-indigo-100 flex items-center justify-center">
<i data-feather="users" class="h-5 w-5 text-indigo-600"></i>
</div>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-600">Total Users</p>
<p class="text-2xl font-semibold text-gray-900">1,247</p>
</div>
</div>
</div>
<!-- Active Users -->
<div class="stat-card bg-white p-6 rounded-lg shadow-md">
<div class="flex items-center">
<div class="flex-shrink-0">
<div class="h-10 w-10 rounded-full bg-green-100 flex items-center justify-center">
<i data-feather="user-check" class="h-5 w-5 text-green-600"></i>
</div>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-600">Active Users</p>
<p class="text-2xl font-semibold text-gray-900">892</p>
</div>
</div>
</div>
<!-- Total Transactions -->
<div class="stat-card bg-white p-6 rounded-lg shadow-md">
<div class="flex items-center">
<div class="flex-shrink-0">
<div class="h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center">
<i data-feather="repeat" class="h-5 w-5 text-blue-600"></i>
</div>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-600">Transactions</p>
<p class="text-2xl font-semibold text-gray-900">3,421</p>
</div>
</div>
</div>
<!-- System Revenue -->
<div class="stat-card bg-white p-6 rounded-lg shadow-md">
<div class="flex items-center">
<div class="flex-shrink-0">
<div class="h-10 w-10 rounded-full bg-purple-100 flex items-center justify-center">
<i data-feather="dollar-sign" class="h-5 w-5 text-purple-600"></i>
</div>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-600">Revenue</p>
<p class="text-2xl font-semibold text-gray-900">$12,450</p>
</div>
</div>
</div>
</div>
<!-- Charts Section -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8">
<!-- Transaction Volume Chart -->
<div class="bg-white rounded-lg shadow-md p-6">
<h2 class="text-xl font-semibold text-gray-900 mb-6">Transaction Volume</h2>
<canvas id="transactionChart" height="300"></canvas>
</div>
<!-- User Growth Chart -->
<div class="bg-white rounded-lg shadow-md p-6">
<h2 class="text-xl font-semibold text-gray-900 mb-6">User Growth</h2>
<canvas id="userChart" height="300"></canvas>
</div>
</div>
<!-- Recent Activity -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
<!-- Recent Transactions -->
<div class="bg-white rounded-lg shadow-md p-6">
<div class="flex items-center justify-between mb-6">
<h2 class="text-xl font-semibold text-gray-900">Recent Transactions</h2>
<a href="admin-transactions.html" class="text-sm text-indigo-600 hover:text-indigo-500 font-medium">
View All <i data-feather="arrow-right" class="h-4 w-4 inline"></i>
</a>
</div>
<div class="space-y-4">
<!-- Transaction 1 -->
<div class="flex items-center justify-between py-3 border-b border-gray-200 table-row">
<div class="flex items-center">
<div class="h-10 w-10 rounded-full bg-green-100 flex items-center justify-center">
<i data-feather="arrow-down" class="h-5 w-5 text-green-600"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-900">BTC Deposit</p>
<p class="text-sm text-gray-500">User #1245</p>
</div>
</div>
<div class="text-right">
<p class="text-sm font-medium text-green-600">+0.025 BTC</p>
<p class="text-sm text-gray-500">$1,085.25</p>
</div>
</div>
<!-- Transaction 2 -->
<div class="flex items-center justify-between py-3 border-b border-gray-200 table-row">
<div class="flex items-center">
<div class="h-10 w-10 rounded-full bg-red-100 flex items-center justify-center">
<i data-feather="arrow-up" class="h-5 w-5 text-red-600"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-900">ETH Withdrawal</p>
<p class="text-sm text-gray-500">User #8732</p>
</div>
</div>
<div class="text-right">
<p class="text-sm font-medium text-red-600">-1.2 ETH</p>
<p class="text-sm text-gray-500">$2,814.00</p>
</div>
</div>
<!-- Transaction 3 -->
<div class="flex items-center justify-between py-3 border-b border-gray-200 table-row">
<div class="flex items-center">
<div class="h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center">
<i data-feather="repeat" class="h-5 w-5 text-blue-600"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-900">SOL Exchange</p>
<p class="text-sm text-gray-500">User #4567</p>
</div>
</div>
<div class="text-right">
<p class="text-sm font-medium text-blue-600">0.8 ETH → 15.5 SOL</p>
<p class="text-sm text-gray-500">$1,876.00</p>
</div>
</div>
<!-- Transaction 4 -->
<div class="flex items-center justify-between py-3 table-row">
<div class="flex items-center">
<div class="h-10 w-10 rounded-full bg-green-100 flex items-center justify-center">
<i data-feather="arrow-down" class="h-5 w-5 text-green-600"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-900">USDC Deposit</p>
<p class="text-sm text-gray-500">User #2341</p>
</div>
</div>
<div class="text-right">
<p class="text-sm font-medium text-green-600">+500.00 USDC</p>
<p class="text-sm text-gray-500">$500.00</p>
</div>
</div>
</div>
</div>
<!-- System Alerts -->
<div class="bg-white rounded-lg shadow-md p-6">
<h2 class="text-xl font-semibold text-gray-900 mb-6">System Alerts</h2>
<div class="space-y-4">
<!-- Alert 1 -->
<div class="p-4 bg-yellow-50 border border-yellow-200 rounded-lg">
<div class="flex">
<div class="flex-shrink-0">
<i data-feather="alert-triangle" class="h-5 w-5 text-yellow-400"></i>
</div>
<div class="ml-3">
<h3 class="text-sm font-medium text-yellow-800">High Transaction Volume</h3>
<div class="mt-2 text-sm text-yellow-700">
<p>Unusually high transaction volume detected in the last hour. Currently processing 250% more transactions than average.</p>
</div>
<div class="mt-2 text-xs text-yellow-600">
<p>2 hours ago</p>
</div>
</div>
</div>
</div>
<!-- Alert 2 -->
<div class="p-4 bg-red-50 border border-red-200 rounded-lg">
<div class="flex">
<div class="flex-shrink-0">
<i data-feather="x-circle" class="h-5 w-5 text-red-400"></i>
</div>
<div class="ml-3">
<h3 class="text-sm font-medium text-red-800">Failed Transactions</h3>
<div class="mt-2 text-sm text-red-700">
<p>12 transactions failed in the last 30 minutes due to insufficient gas fees. Consider adjusting fee recommendations.</p>
</div>
<div class="mt-2 text-xs text-red-600">
<p>45 minutes ago</p>
</div>
</div>
</div>
</div>
<!-- Alert 3 -->
<div class="p-4 bg-blue-50 border border-blue-200 rounded-lg">
<div class="flex">
<div class="flex-shrink-0">
<i data-feather="info" class="h-5 w-5 text-blue-400"></i>
</div>
<div class="ml-3">
<h3 class="text-sm font-medium text-blue-800">New Feature Deployment</h3>
<div class="mt-2 text-sm text-blue-700">
<p>Version 2.1.0 deployed successfully. Includes new multi-signature wallet feature and improved transaction processing.</p>
</div>
<div class="mt-2 text-xs text-blue-600">
<p>Yesterday</p>
</div>
</div>
</div>
</div>
<!-- Alert 4 -->
<div class="p-4 bg-green-50 border border-green-200 rounded-lg">
<div class="flex">
<div class="flex-shrink-0">
<i data-feather="check-circle" class="h-5 w-5 text-green-400"></i>
</div>
<div class="ml-3">
<h3 class="text-sm font-medium text-green-800">Security Audit Complete</h3>
<div class="mt-2 text-sm text-green-700">
<p>Quarterly security audit completed with no critical vulnerabilities found. All systems operating normally.</p>
</div>
<div class="mt-2 text-xs text-green-600">
<p>3 days ago</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="bg-gray-50 mt-12">
<div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8">
<div class="xl:grid xl:grid-cols-3 xl:gap-8">
<div class="space-y-8 xl:col-span-1">
<div class="flex items-center">
<i data-feather="zap" class="h-8 w-8 text-indigo-600"></i>
<span class="ml-2 text-xl font-bold text-gray-900">MALiPo Admin</span>
</div>
<p class="text-gray-500 text-base">
Administrative dashboard for overseeing all MALiPo platform operations.
</p>
</div>
<div class="mt-12 grid grid-cols-2 gap-8 xl:mt-0 xl:col-span-2">
<div class="md:grid md:grid-cols-2 md:gap-8">
<div>
<h3 class="text-sm font-semibold text-gray-900 tracking-wider uppercase">
Resources
</h3>
<ul class="mt-4 space-y-4">
<li>
<a href="#" class="text-base text-gray-500 hover:text-gray-900">
Documentation
</a>
</li>
<li>
<a href="#" class="text-base text-gray-500 hover:text-gray-900">
API Reference
</a>
</li>
<li>
<a href="#" class="text-base text-gray-500 hover:text-gray-900">
Guides
</a>
</li>
</ul>
</div>
<div class="mt-12 md:mt-0">
<h3 class="text-sm font-semibold text-gray-900 tracking-wider uppercase">
Company
</h3>
<ul class="mt-4 space-y-4">
<li>
<a href="#" class="text-base text-gray-500 hover:text-gray-900">
About
</a>
</li>
<li>
<a href="#" class="text-base text-gray-500 hover:text-gray-900">
Blog
</a>
</li>
<li>
<a href="#" class="text-base text-gray-500 hover:text-gray-900">
Careers
</a>
</li>
</ul>
</div>
</div>
<div class="md:grid md:grid-cols-2 md:gap-8">
<div>
<h3 class="text-sm font-semibold text-gray-900 tracking-wider uppercase">
Legal
</h3>
<ul class="mt-4 space-y-4">
<li>
<a href="#" class="text-base text-gray-500 hover:text-gray-900">
Privacy
</a>
</li>
<li>
<a href="#" class="text-base text-gray-500 hover:text-gray-900">
Terms
</a>
</li>
</ul>
</div>
<div class="mt-12 md:mt-0">
<h3 class="text-sm font-semibold text-gray-900 tracking-wider uppercase">
Support
</h3>
<ul class="mt-4 space-y-4">
<li>
<a href="#" class="text-base text-gray-500 hover:text-gray-900">
Contact
</a>
</li>
<li>
<a href="#" class="text-base text-gray-500 hover:text-gray-900">
Status
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="mt-12 border-t border-gray-200 pt-8">
<p class="text-base text-gray-400 text-center">
&copy; 2023 MALiPo. All rights reserved.
</p>
</div>
</div>
</footer>
<script>
feather.replace();
// Initialize charts
const transactionCtx = document.getElementById('transactionChart').getContext('2d');
const transactionChart = new Chart(transactionCtx, {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
datasets: [{
label: 'Transaction Volume',
data: [1200, 1900, 1500, 2200, 1800, 2500, 2100, 2800, 2400, 3100, 2700, 3400],
borderColor: '#3b82f6',
backgroundColor: 'rgba(59, 130, 246, 0.1)',
borderWidth: 2,
fill: true,
tension: 0.4
}]
},
options: {
responsive: true,
plugins: {
legend: {
display: false
}
},
scales: {
y: {
beginAtZero: true,
grid: {
drawBorder: false
}
},
x: {
grid: {
display: false
}
}
}
}
});
const userCtx = document.getElementById('userChart').getContext('2d');
const userChart = new Chart(userCtx, {
type: 'bar',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
datasets: [{
label: 'New Users',
data: [80, 120, 95, 150, 110, 180, 140, 200, 160, 220, 180, 250],
backgroundColor: '#10b981',
borderWidth: 0
}]
},
options: {
responsive: true,
plugins: {
legend: {
display: false
}
},
scales: {
y: {
beginAtZero: true,
grid: {
drawBorder: false
}
},
x: {
grid: {
display: false
}
}
}
}
});
</script>
</body>
</html>