-
Notifications
You must be signed in to change notification settings - Fork 0
/
tracker.html
96 lines (88 loc) · 3.43 KB
/
tracker.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="tracker.css">
<link rel="stylesheet" href="home.css">
<script src="tracker.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<title>MoneyMap</title>
</head>
<body>
<nav>
<div class="nav__header">
<div class="nav-left">
<a href="#" class="logo">
<img style="width: 60px;" src="logo.png" alt="Money Map Logo" class="logo_image">
</a>
<h2 class="logo" style="margin-left: -100px;">Money Map</h2>
</div>
<div class="nav_menu_btn" id="menu-btn">
<i class="ri-menu-line"></i>
</div>
</div>
<ul class="nav__links" id="nav-links">
<li><a href="index.html">HOME</a></li>
<li><a href="tracker.html">TRACKER</a></li>
<li><a href="contact.html">CONTACT</a></li>
<li><a href="login.html">LOGIN/REGISTER</a></li>
</ul>
<div class="nav__btns"></div>
</nav>
<div class="container">
<main>
<section class="dashboard">
<div class="card">
<h2>Total Income</h2>
<input type="number" min="0" id="total-income" required>
</div>
<div class="card">
<h2>Total Expense</h2>
<input type="number" min="0" id="total-expense" required>
</div>
<div class="card">
<h2>Remaining Balance</h2>
<input type="number" id="remaining-balance" readonly>
</div>
</section>
<section class="transaction-form">
<h2>Add Transaction</h2>
<form id="transaction-form">
<label for="type">Type:</label>
<select id="type" required>
<option value="income">Income</option>
<option value="expense">Expense</option>
</select>
<label for="amount">Amount:</label>
<input type="number" id="amount" required>
<label for="date">Date:</label>
<input type="date" id="date" required>
<label for="description">Description:</label>
<input type="text" id="description">
<button type="submit" id="submit">Add Transaction</button>
</form>
</section>
<section class="transaction-history">
<h2>Transaction History</h2>
<table id="transaction-table">
<thead>
<tr>
<th>Type</th>
<th>Amount</th>
<th>Date</th>
<th>Description</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</section>
<section class="charts">
<h2>Spending Overview</h2>
<canvas id="spending-chart"></canvas>
</section>
</main>
</div>
</body>
</html>