moneymagnet-tracker / index.html
devlucem's picture
"FinanceFlow," is a personal finance tracker with several key features we've progressively added. I will consolidate all the functionality into a final set of files for you.
e54110d verified
Raw History Blame Contribute Delete
11 kB
<!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>