Spaces:
Running
Running
File size: 11,014 Bytes
e54110d | 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 | <!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MoneyMagnet Tracker</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
primary: {
500: '#6366f1',
},
secondary: {
500: '#8b5cf6',
}
}
}
}
}
</script>
</head>
<body class="bg-gray-100 dark:bg-gray-900 min-h-screen">
<custom-navbar></custom-navbar>
<main class="container mx-auto px-4 py-8">
<div class="flex flex-col md:flex-row gap-8">
<!-- Accounts Summary -->
<section class="md:w-1/3">
<div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6">
<div class="flex justify-between items-center mb-6">
<h2 class="text-xl font-bold text-gray-800 dark:text-white">Accounts</h2>
<button class="bg-primary-500 hover:bg-primary-600 text-white px-4 py-2 rounded-lg flex items-center gap-2">
<i data-feather="plus"></i>
Add Account
</button>
</div>
<div class="space-y-4">
<!-- Account Card -->
<div class="border-l-4 border-primary-500 p-4 bg-gray-50 dark:bg-gray-700 rounded-lg">
<div class="flex justify-between items-start">
<div>
<h3 class="font-semibold text-gray-800 dark:text-white">Main Account</h3>
<p class="text-sm text-gray-500 dark:text-gray-400">Personal Checking</p>
</div>
<i data-feather="more-vertical" class="text-gray-400"></i>
</div>
<div class="mt-4">
<div class="flex justify-between items-center">
<span class="text-gray-600 dark:text-gray-300">USD</span>
<span class="font-medium text-gray-800 dark:text-white">$4,250.00</span>
</div>
<div class="flex justify-between items-center mt-2">
<span class="text-gray-600 dark:text-gray-300">BTC</span>
<span class="font-medium text-green-500">0.025 BTC</span>
</div>
</div>
</div>
<!-- Add Account Card -->
<div class="border-2 border-dashed border-gray-300 dark:border-gray-600 rounded-lg p-6 flex flex-col items-center justify-center cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-700 transition">
<i data-feather="plus" class="text-gray-400 w-8 h-8"></i>
<p class="mt-2 text-gray-500 dark:text-gray-400">Add Account</p>
</div>
</div>
</div>
</section>
<!-- Transactions Section -->
<section class="md:w-2/3">
<div class="bg-white dark:bg-gray-800 rounded-lg shadow overflow-hidden">
<div class="p-6 border-b border-gray-200 dark:border-gray-700">
<div class="flex justify-between items-center mb-6">
<h2 class="text-xl font-bold text-gray-800 dark:text-white">Transactions</h2>
<button class="bg-primary-500 hover:bg-primary-600 text-white px-4 py-2 rounded-lg flex items-center gap-2">
<i data-feather="plus"></i>
Add Transaction
</button>
</div>
<!-- Filters -->
<div class="flex flex-wrap gap-4 mb-6">
<div class="relative flex-1 min-w-[200px]">
<input type="text" placeholder="Search transactions..." class="w-full pl-10 pr-4 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent">
<i data-feather="search" class="absolute left-3 top-2.5 text-gray-400"></i>
</div>
<select class="bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent">
<option>All Accounts</option>
<option>Main Account</option>
</select>
<select class="bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent">
<option>All Currencies</option>
<option>USD</option>
<option>BTC</option>
</select>
</div>
<!-- Summary Bar -->
<div class="flex overflow-x-auto gap-4 pb-2 mb-6">
<div class="flex-shrink-0 bg-gray-100 dark:bg-gray-700 px-4 py-2 rounded-lg flex items-center gap-2">
<span class="w-2 h-2 rounded-full bg-primary-500"></span>
<span class="text-sm font-medium">USD: $4,250.00</span>
</div>
<div class="flex-shrink-0 bg-gray-100 dark:bg-gray-700 px-4 py-2 rounded-lg flex items-center gap-2">
<span class="w-2 h-2 rounded-full bg-green-500"></span>
<span class="text-sm font-medium">BTC: 0.025</span>
</div>
</div>
</div>
<!-- Transactions Table -->
<div class="overflow-x-auto">
<table class="w-full">
<thead class="bg-gray-50 dark:bg-gray-700">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider">Date</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider">Description</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider">Account</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider">Amount</th>
</tr>
</thead>
<tbody class="divide-y divide-gray-200 dark:divide-gray-700">
<!-- Transaction Row -->
<tr class="hover:bg-gray-50 dark:hover:bg-gray-700">
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-400">Jun 15</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-gray-800 dark:text-white">Grocery Store #food</div>
<div class="text-xs text-gray-500 dark:text-gray-400 mt-1">
<span class="inline-block bg-gray-100 dark:bg-gray-600 rounded-full px-2 py-0.5">food</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-400">Main Account</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-red-500">-$85.23</td>
</tr>
<tr class="hover:bg-gray-50 dark:hover:bg-gray-700">
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-400">Jun 14</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-gray-800 dark:text-white">Freelance Payment</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-400">Main Account</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-green-500">+$1,200.00</td>
</tr>
<tr class="hover:bg-gray-50 dark:hover:bg-gray-700">
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-400">Jun 12</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-gray-800 dark:text-white">Bitcoin Purchase</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-400">Main Account</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-green-500">+0.01 BTC</td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
</div>
</main>
<script src="components/navbar.js"></script>
<script src="script.js"></script>
<script>feather.replace();</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html> |