-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
130 lines (106 loc) · 3.33 KB
/
index.html
File metadata and controls
130 lines (106 loc) · 3.33 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Budgetसाथी - Saath hai to savings hai</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" href="favicon.ico" type="image/budget-icon">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Hind:wght@700&display=swap" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body>
<header class="main-header">
<div></div> <!-- Empty left column -->
<div class="brand-wrapper">
<div class="rupee-badge">₹</div>
<div class="brand-text">
<h1 class="brand-title">
Budget<span class="saathi-highlight">साथी</span>
</h1>
<div class="brand-tagline">
Saath hai to saving hai......!!
</div>
</div>
</div>
<button id="themeToggle" class="theme-toggle">
<span id="themeIcon">🌙</span>
</button>
</header>
<div class="container">
<!-- LEFT PANEL -->
<div class="left-panel">
<h2 id="greeting">Hello 👋</h2>
<div class="card">
<h3>Set Monthly Details</h3>
<input type="text" id="nameInput" placeholder="Your Name">
<input type="number" id="incomeInput" placeholder="Monthly Income">
<input type="number" id="limitInput" placeholder="Spending Limit">
<input type="number" id="goalInput" placeholder="Savings Goal">
<button id="setIncomeBtn">Save Details</button>
</div>
<div class="card">
<h3>Add Expense</h3>
<input type="text" id="expenseDesc" placeholder="Description">
<input type="number" id="expenseAmount" placeholder="Amount">
<select id="categorySelect">
<option>Food</option>
<option>Travel</option>
<option>Study</option>
<option>Shopping</option>
<option>Other</option>
</select>
<button id="addExpenseBtn">Add Expense</button>
</div>
<div class="card progress-card">
<h3>Spending Progress</h3>
<div class="progress-container">
<div id="progressBar"></div>
</div>
</div>
<div id="warningBox"></div>
<button id="resetMonthBtn" class="danger">Reset Month</button>
<button id="exportCSV">Export CSV</button>
</div>
<!-- RIGHT PANEL -->
<div class="right-panel">
<div class="stats">
<div class="stat-card">
<h3>Balance</h3>
<p id="balanceDisplay">₹0</p>
</div>
<div class="stat-card">
<h3>Expenses</h3>
<p id="expenseDisplay">₹0</p>
</div>
<div class="stat-card">
<h3>Savings</h3>
<p id="savingsDisplay">₹0</p>
</div>
</div>
<div class="card chart-card">
<canvas id="expenseChart"></canvas>
</div>
<div class="card">
<h3>Monthly Comparison</h3>
<p id="monthlyComparison"></p>
</div>
<div class="card">
<h3>Transaction History</h3>
<table>
<thead>
<tr>
<th>Date</th>
<th>Description</th>
<th>Category</th>
<th>Amount</th>
<th>Action</th>
</tr>
</thead>
<tbody id="transactionTable"></tbody>
</table>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>