-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindev.html
More file actions
289 lines (266 loc) · 12.5 KB
/
indev.html
File metadata and controls
289 lines (266 loc) · 12.5 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
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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Student Expense Tracker</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- Navigation Bar -->
<nav class="navbar" id="navbar">
<div class="nav-container">
<div class="logo-container">
<img src="logo.png" alt="Expense Tracker Logo" class="nav-logo">
<div class="logo-text">Expense Tracker</div>
</div>
<ul class="nav-menu">
<li class="nav-item">
<a href="#dashboard" class="nav-link active" data-section="dashboard">Dashboard</a>
</li>
<li class="nav-item">
<a href="#add-expense" class="nav-link" data-section="add-expense">Add Expense</a>
</li>
<li class="nav-item">
<a href="#history" class="nav-link" data-section="history">History</a>
</li>
<li class="nav-item">
<a href="#budget" class="nav-link" data-section="budget">Budget</a>
</li>
</ul>
<div class="hamburger">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</div>
</div>
</nav>
<!-- Welcome Modal -->
<div id="welcome-modal" class="modal-overlay">
<div class="modal-content glass-effect">
<h2>Welcome to Brain Battle Tracker! 🚀</h2>
<p>Let's get you set up.</p>
<form id="onboarding-form">
<div class="form-group">
<label for="user-name">What should we call you?</label>
<input type="text" id="user-name" required placeholder="Enter your name">
</div>
<div class="form-group">
<label for="user-email">Email for data backups (optional)</label>
<input type="email" id="user-email" placeholder="[email protected]">
</div>
<button type="submit" class="btn btn-primary btn-block">Get Started</button>
</form>
</div>
</div>
<!-- Main Container -->
<div class="container">
<!-- Dashboard Section -->
<section id="dashboard" class="section active">
<h1 class="section-title">Dashboard</h1>
<!-- Allowance Setting -->
<div class="allowance-card">
<label for="monthly-allowance">Set Monthly Allowance:</label>
<div class="allowance-input-group">
<span class="currency">₹</span>
<input type="number" id="monthly-allowance" placeholder="Enter amount">
<button id="set-allowance-btn" class="btn btn-primary">Set</button>
</div>
</div>
<!-- Summary Cards -->
<div class="summary-cards">
<div class="card card-allowance">
<div class="card-icon">💵</div>
<div class="card-content">
<h3>Total Allowance</h3>
<p class="amount" id="total-allowance">₹0</p>
</div>
</div>
<div class="card card-spent">
<div class="card-icon">💸</div>
<div class="card-content">
<h3>Total Spent</h3>
<p class="amount" id="total-spent">₹0</p>
</div>
</div>
<div class="card card-remaining">
<div class="card-icon">💰</div>
<div class="card-content">
<h3>Remaining</h3>
<p class="amount" id="remaining-balance">₹0</p>
</div>
</div>
</div>
<!-- Charts Section -->
<div class="charts-container">
<div class="chart-card" style="grid-column: 1 / -1;">
<h3>Expense Heatmap (Daily Intensity)</h3>
<div class="heatmap-controls">
<button id="prev-month-btn" class="btn-sm"><</button>
<span id="heatmap-month-label">December 2025</span>
<button id="next-month-btn" class="btn-sm">></button>
</div>
<div id="expense-heatmap" class="heatmap-grid">
<!-- Calendar cells generated by JS -->
</div>
</div>
<div class="chart-card">
<h3>Spending by Category</h3>
<div id="category-chart" class="category-chart"></div>
</div>
<div class="chart-card">
<h3>Category Breakdown</h3>
<div id="pie-chart" class="pie-chart"></div>
<div class="chart-legend-title">Legend:</div>
<div id="chart-legend" class="chart-legend"></div>
</div>
</div>
</section>
<!-- Add Expense Section -->
<section id="add-expense" class="section">
<h1 class="section-title">Add New Expense</h1>
<div class="form-card">
<form id="expense-form">
<div class="form-group">
<label for="expense-amount">Amount (₹)</label>
<input type="number" id="expense-amount" required placeholder="Enter amount" step="0.01">
</div>
<div class="form-group">
<label for="expense-category">Category</label>
<select id="expense-category" required>
<option value="">Select category</option>
<option value="Bills">📄 Bills</option>
<option value="Food">🍔 Food</option>
<option value="Travel">🚗 Travel</option>
<option value="Subscriptions">📱 Subscriptions</option>
<option value="Entertainment">🎮 Entertainment</option>
<option value="Others">📦 Others</option>
</select>
</div>
<div class="form-group">
<label for="expense-date">Date</label>
<input type="date" id="expense-date" required>
</div>
<div class="form-group">
<label for="expense-description">Description</label>
<textarea id="expense-description" rows="3"
placeholder="Add a note about this expense..."></textarea>
</div>
<button type="submit" class="btn btn-primary btn-block">Add Expense</button>
</form>
</div>
</section>
<!-- History Section -->
<section id="history" class="section">
<h1 class="section-title">Expense History</h1>
<div class="history-controls">
<div class="filter-group">
<label for="filter-category">Filter by Category:</label>
<select id="filter-category">
<option value="all">All Categories</option>
<option value="Bills">Bills</option>
<option value="Food">Food</option>
<option value="Travel">Travel</option>
<option value="Subscriptions">Subscriptions</option>
<option value="Entertainment">Entertainment</option>
<option value="Others">Others</option>
</select>
</div>
<div class="filter-group">
<label for="history-month-select">Month:</label>
<select id="history-month-select">
<option value="current">Current Month</option>
<!-- Archived months will be added here -->
</select>
</div>
<button id="clear-all-btn" class="btn btn-danger">Clear All Data</button>
</div>
<div id="expense-list" class="expense-list">
<!-- Expenses will be dynamically inserted here -->
</div>
</section>
<!-- Budget Section -->
<section id="budget" class="section">
<h1 class="section-title">Budget Planning</h1>
<div class="form-card">
<h3>Set Monthly Limits</h3>
<form id="budget-form">
<div class="form-group">
<label for="budget-category">Category</label>
<select id="budget-category">
<option value="Bills">📄 Bills</option>
<option value="Food">🍔 Food</option>
<option value="Travel">🚗 Travel</option>
<option value="Subscriptions">📱 Subscriptions</option>
<option value="Entertainment">🎮 Entertainment</option>
<option value="Others">📦 Others</option>
</select>
</div>
<div class="form-group">
<label for="budget-amount">Limit (₹)</label>
<input type="number" id="budget-amount" placeholder="Enter limit" required>
</div>
<button type="submit" class="btn btn-primary btn-block">Set Budget</button>
</form>
</div>
<div id="budget-list" class="budget-list">
<!-- Budget progress bars will appear here -->
</div>
</section>
<!-- Heatmap / Analysis Section (Visible on Dashboard or separate) -->
<!-- We will integrate this into the Dashboard for better visibility as requested -->
</div>
<!-- Video Section (Full Width) -->
<section id="multimedia" class="multimedia-section">
<h2 class="section-title" style="text-align: center; color: white;">Project Highlights</h2>
<div class="video-container">
<video controls autoplay loop muted playsinline style="width: 100%; height: 100%; object-fit: cover;">
<source
src="https://ak.picdn.net/shutterstock/videos/3937471447/preview/stock-footage-open-daily-planner-notebook-on-desk-neatly.mp4"
type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
<p style="text-align: center; color: #cbd5e1; margin-top: 1rem;">
<a href="https://www.shutterstock.com/video/clip-3937471447-open-daily-planner-notebook-on-desk-neatly"
target="_blank" style="color: #cbd5e1;">View Source Video</a>
</p>
</section>
<!-- Footer / Contact Us -->
<footer id="contact">
<div class="footer-content">
<div class="footer-column">
<h3>CONTACT US</h3>
<div class="contact-item">
<span>📧</span> <a href="mailto:[email protected]">[email protected]</a>
</div>
<div class="contact-item">
<span>📞</span> <a href="tel:9832589915">+91 9832589915</a>
</div>
</div>
<div class="footer-column">
<h3>QUICK LINKS</h3>
<div class="footer-links">
<div class="link-col">
<a href="#dashboard">Dashboard</a>
<a href="#add-expense">Add Expense</a>
<a href="#history">History</a>
</div>
<div class="link-col">
<a href="#budget">Budget</a>
<a href="#contact">Contact</a>
</div>
</div>
</div>
<div class="footer-column">
<h3>BRAIN BATTLE 3.0</h3>
<p>Designed for excellence in financial tracking.</p>
<p>© 2025 Brain Battle Team</p>
</div>
</div>
</footer>
<!-- Toast Notification -->
<div id="toast" class="toast"></div>
<script src="script.js"></script>
</body>
</html>