forked from hellenicdev/budget-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
43 lines (39 loc) · 1.32 KB
/
index.html
File metadata and controls
43 lines (39 loc) · 1.32 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Budget Tracker</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<!-- Authentication Card -->
<div id="auth-card">
<div class="card">
<h2 id="form-title">Login</h2>
<form id="auth-form">
<input type="text" id="username" placeholder="Username" required />
<input type="password" id="password" placeholder="Password" required />
<button type="submit">Login</button>
</form>
<div id="alert" class="alert hidden"></div>
</div>
</div>
<!-- Dashboard -->
<div id="dashboard" class="hidden">
<h2>Welcome, <span id="user-display"></span></h2>
<button onclick="logout()">Logout</button>
<div>
<h3>Transactions</h3>
<input type="number" id="transaction-amount" placeholder="Amount" />
<input type="text" id="transaction-category" placeholder="Category" />
<button id="add-transaction">Add Transaction</button>
<div id="transaction-list"></div>
</div>
<!-- Budget Chart -->
<canvas id="budgetChart"></canvas>
</div>
<script src="app.js"></script>
</body>
</html>