-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexpense.html
154 lines (154 loc) · 5.81 KB
/
expense.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet">
<title>Expense Tracker App</title>
<style>
body {
background: linear-gradient(135deg, #d0a8e2 0%, #f6a4a4 100%);
color: #333;
font-family: 'Arial', sans-serif;
overflow-x: hidden;
}
.header {
background-color: rgba(200, 150, 240, 0.9);
color: white;
padding: 2rem 1rem;
text-align: center;
backdrop-filter: blur(10px);
border-radius: 0.5rem;
animation: fadeIn 2s ease-in-out;
}
.container {
backdrop-filter: blur(15px);
background: rgba(255, 255, 255, 0.3);
border-radius: 1rem;
padding: 2rem;
margin-top: -5rem;
animation: slideUp 1s ease-out;
}
.expenses-list h2 {
color: #fff;
background: rgba(200, 150, 240, 0.8);
padding: 0.5rem;
border-radius: 0.5rem;
animation: bounceIn 1s ease-in-out;
}
.footer {
display: flex;
justify-content: center;
padding: 1rem;
background: rgba(255, 255, 255, 0.6);
backdrop-filter: blur(10px);
border-radius: 0.5rem;
margin-top: 2rem;
animation: fadeInUp 1.5s ease-in-out;
}
.btn-primary {
background-color: #f6a4a4;
border-color: #f6a4a4;
transition: background-color 0.3s ease;
}
.btn-primary:hover {
background-color: #d0a8e2;
border-color: #d0a8e2;
}
.table thead th {
background: rgba(200, 150, 240, 0.8);
color: white;
}
.table tfoot td {
background: rgba(200, 150, 240, 0.1);
font-weight: bold;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideUp {
from { transform: translateY(50px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
@keyframes bounceIn {
0% { transform: scale(0); opacity: 0; }
50% { transform: scale(1.1); opacity: 1; }
100% { transform: scale(1); }
}
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
</style>
</head>
<body>
<div class="header">
<h1>Budget Boss</h1>
</div>
<div class="container my-4">
<div class="row">
<div class="col-md-6 offset-md-3">
<div class="form-group">
<label for="category-select">Category:</label>
<select class="form-control" id="category-select">
<option value="Food & Beverage">Food & Beverage</option>
<option value="Rent">Rent</option>
<option value="Transport">Daily Transport</option>
<option value="Relaxing">Relaxing</option>
<option value="Utilities">Utilities</option>
<option value="Debt Repayment">Debt Repayment</option>
<option value="Taxes">Taxes</option>
<option value="Travel/Vacation">Travel/Vacation</option>
<option value="Emergency Expenses">Emergency Expenses</option>
<option value="Business Expenses">Business Expenses</option>
<option value="Savings and Investments">Savings and Investments</option>
</select>
</div>
<div class="form-group">
<label for="amount-input">Amount:</label>
<input type="number" class="form-control" id="amount-input">
</div>
<div class="form-group">
<label for="date-input">Date:</label>
<input type="date" class="form-control" id="date-input">
</div>
<button class="btn btn-primary" id="add-btn">Add</button>
</div>
</div>
<div class="expenses-list mt-4">
<h2>List of Your Expenses</h2>
<table class="table table-bordered">
<thead class="thead-dark">
<tr>
<th>Category</th>
<th>Amount</th>
<th>Date</th>
<th>Delete</th>
</tr>
</thead>
<tbody id="expense-table-body">
<!-- Table rows here -->
</tbody>
<tfoot>
<tr>
<td>Total:</td>
<td id="total-amount"></td>
<td></td>
<td></td>
</tr>
</tfoot>
</table>
</div>
</div>
<footer class="footer">
<span>Thanks for using. Made with ❤️ by Pragya Singh</span>
</footer>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script src="script1.js"></script>
</body>
</html>