File size: 11,147 Bytes
f5f2bc2 | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CryptoFlow Analytics Dashboard</title>
<link rel="stylesheet" href="style.css">
<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/vanta@latest/dist/vanta.net.min.js"></script>
</head>
<body class="bg-gray-50">
<custom-navbar></custom-navbar>
<main class="container mx-auto px-4 py-8">
<!-- Dashboard Header -->
<div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-8">
<div>
<h1 class="text-3xl font-bold text-gray-800">Transaction Analytics</h1>
<p class="text-gray-600 mt-2">Visualizing crypto transaction data across networks</p>
</div>
<div class="mt-4 md:mt-0 flex space-x-2">
<div class="relative">
<select class="time-period-select appearance-none bg-white border border-gray-300 rounded-lg px-4 py-2 pr-8 focus:outline-none focus:ring-2 focus:ring-blue-500">
<option>Last 30 Days</option>
<option>Last 60 Days</option>
<option>Last 90 Days</option>
<option>All Time</option>
</select>
<i data-feather="chevron-down" class="absolute right-3 top-2.5 text-gray-500"></i>
</div>
<button class="export-btn bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center">
<i data-feather="download" class="mr-2 w-4 h-4"></i> Export
</button>
</div>
</div>
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-8">
<div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">Total Transactions</p>
<h3 class="text-2xl font-bold mt-1">142</h3>
</div>
<div class="p-3 rounded-full bg-blue-50 text-blue-600">
<i data-feather="credit-card"></i>
</div>
</div>
<p class="text-green-500 text-sm mt-2 flex items-center">
<i data-feather="trending-up" class="mr-1 w-4 h-4"></i> 12.5% from last period
</p>
</div>
<div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">Total Volume</p>
<h3 class="text-2xl font-bold mt-1">$1,204.87</h3>
</div>
<div class="p-3 rounded-full bg-purple-50 text-purple-600">
<i data-feather="dollar-sign"></i>
</div>
</div>
<p class="text-green-500 text-sm mt-2 flex items-center">
<i data-feather="trending-up" class="mr-1 w-4 h-4"></i> 8.3% from last period
</p>
</div>
<div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">Avg. Transaction</p>
<h3 class="text-2xl font-bold mt-1">$8.49</h3>
</div>
<div class="p-3 rounded-full bg-green-50 text-green-600">
<i data-feather="activity"></i>
</div>
</div>
<p class="text-red-500 text-sm mt-2 flex items-center">
<i data-feather="trending-down" class="mr-1 w-4 h-4"></i> 2.1% from last period
</p>
</div>
<div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">Success Rate</p>
<h3 class="text-2xl font-bold mt-1">100%</h3>
</div>
<div class="p-3 rounded-full bg-yellow-50 text-yellow-600">
<i data-feather="check-circle"></i>
</div>
</div>
<p class="text-green-500 text-sm mt-2 flex items-center">
<i data-feather="trending-up" class="mr-1 w-4 h-4"></i> 1.2% from last period
</p>
</div>
</div>
<!-- Main Charts -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
<!-- Volume by Network -->
<div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold">Volume by Network</h2>
<div class="relative">
<select class="asset-select appearance-none bg-white border border-gray-300 rounded-lg px-3 py-1 pr-6 text-sm focus:outline-none focus:ring-1 focus:ring-blue-500">
<option>USDC</option>
<option>ETH</option>
<option>MATIC</option>
</select>
<i data-feather="chevron-down" class="absolute right-2 top-1.5 text-gray-500 w-3 h-3"></i>
</div>
</div>
<div class="h-64">
<canvas id="networkChart"></canvas>
</div>
</div>
<!-- Transactions Over Time -->
<div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold">Transactions Over Time</h2>
<div class="flex space-x-1">
<button class="px-2 py-1 text-xs bg-gray-100 rounded">Day</button>
<button class="px-2 py-1 text-xs bg-blue-600 text-white rounded">Week</button>
<button class="px-2 py-1 text-xs bg-gray-100 rounded">Month</button>
</div>
</div>
<div class="h-64">
<canvas id="timelineChart"></canvas>
</div>
</div>
</div>
<!-- Transaction Table -->
<div class="bg-white rounded-xl shadow-sm border border-gray-100 overflow-hidden mb-8">
<div class="p-4 border-b border-gray-200 flex justify-between items-center">
<h2 class="text-lg font-semibold">Recent Transactions</h2>
<div class="flex items-center space-x-2">
<div class="relative">
<i data-feather="search" class="absolute left-3 top-2 text-gray-400"></i>
<input type="text" placeholder="Search transactions..." class="pl-10 pr-4 py-1.5 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-1 focus:ring-blue-500">
</div>
<button class="filter-btn p-1.5 rounded-lg border border-gray-300 hover:bg-gray-50">
<i data-feather="filter" class="w-4 h-4 text-gray-500"></i>
</button>
</div>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Network</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Asset</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200" id="transactionTableBody">
<!-- Transactions will be populated by JavaScript -->
</tbody>
</table>
</div>
<div class="px-6 py-4 border-t border-gray-200 flex items-center justify-between">
<div class="text-sm text-gray-500">
Showing <span class="font-medium">1</span> to <span class="font-medium">10</span> of <span class="font-medium">142</span> transactions
</div>
<div class="flex space-x-2">
<button class="pagination-btn px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">
Previous
</button>
<button class="pagination-btn px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-white bg-blue-600 hover:bg-blue-700">
1
</button>
<button class="pagination-btn px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">
2
</button>
<button class="pagination-btn px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">
Next
</button>
</div>
</div>
</div>
</main>
<custom-footer></custom-footer>
<!-- Scripts -->
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="script.js"></script>
<script>
feather.replace();
// Vanta.js background effect
VANTA.NET({
el: "body",
color: 0x3b82f6,
backgroundColor: 0xf9fafb,
points: 12,
maxDistance: 20,
spacing: 15
});
</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html> |