File size: 3,774 Bytes
1503282
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Veggie Ledger | Home</title>
    <link rel="stylesheet" href="style.css">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script>
      tailwind.config = {
        theme: {
          extend: {
            colors: {
              primary: '#4CAF50',
              secondary: '#8BC34A',
            }
          }
        }
      }
    </script>
</head>
<body class="bg-gray-50">
    <custom-navbar></custom-navbar>
    
    <main class="container mx-auto px-4 py-8">
        <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
            <!-- Balance Card -->
            <div class="bg-white rounded-lg shadow-md p-6">
                <div class="flex items-center justify-between mb-4">
                    <h2 class="text-xl font-semibold text-gray-800">Current Balance</h2>
                    <i data-feather="dollar-sign" class="text-primary"></i>
                </div>
                <p class="text-3xl font-bold text-primary" id="current-balance">₹0.00</p>
            </div>

            <!-- Recent Transactions -->
            <div class="bg-white rounded-lg shadow-md p-6 md:col-span-2">
                <div class="flex items-center justify-between mb-4">
                    <h2 class="text-xl font-semibold text-gray-800">Recent Transactions</h2>
                    <a href="/transactions.html" class="text-primary hover:underline">View All</a>
                </div>
                <div id="recent-transactions" class="space-y-4">
                    <!-- Transactions will be loaded here -->
                </div>
            </div>

            <!-- Quick Actions -->
            <div class="bg-white rounded-lg shadow-md p-6">
                <h2 class="text-xl font-semibold text-gray-800 mb-4">Quick Actions</h2>
                <div class="space-y-3">
                    <a href="/add-transaction.html" class="block w-full bg-primary hover:bg-primary-dark text-white py-2 px-4 rounded-md text-center transition duration-200">
                        <i data-feather="plus" class="inline mr-2"></i> Add Transaction
                    </a>
                    <a href="/reports.html" class="block w-full bg-secondary hover:bg-secondary-dark text-white py-2 px-4 rounded-md text-center transition duration-200">
                        <i data-feather="bar-chart-2" class="inline mr-2"></i> View Reports
                    </a>
                </div>
            </div>

            <!-- Family Members -->
            <div class="bg-white rounded-lg shadow-md p-6 md:col-span-2">
                <div class="flex items-center justify-between mb-4">
                    <h2 class="text-xl font-semibold text-gray-800">Family Members</h2>
                    <a href="/family.html" class="text-primary hover:underline">Manage</a>
                </div>
                <div class="grid grid-cols-2 md:grid-cols-4 gap-4" id="family-members">
                    <!-- Family members will be loaded here -->
                </div>
            </div>
        </div>
    </main>

    <custom-footer></custom-footer>

    <script src="components/navbar.js"></script>
    <script src="components/footer.js"></script>
    <script src="script.js"></script>
    <script>
        feather.replace();
        // Initial data load
        document.addEventListener('DOMContentLoaded', function() {
            loadInitialData();
        });
    </script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>