-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
93 lines (93 loc) · 2.72 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Monthly Bill Tracker</title>
<link rel="stylesheet" type="text/css" href="styles.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Merienda:wght@400;700&family=Delius&display=swap" rel="stylesheet">
<link rel="shortcut icon" href="images/wallet.ico" type="image/x-icon">
</head>
<body>
<header>
<div id="background-animation"></div>
</header>
<h1>Bills Payment Log</h1>
<section class="container">
<h2>Add a Bill</h2>
<form id="bill-form">
<div class="form-group">
<label for="bill-name">Bill Name:</label>
<input
type="text"
id="bill-name"
pattern="[a-zA-Z0-9\s]+"
required
>
</div>
<div class="form-group">
<label for="bill-amount">Bill Amount:</label>
<input
type="number"
id="bill-amount"
min="0.01"
step="0.01"
required
>
</div>
<div class="form-group">
<label for="bill-date">Due Date:</label>
<input type="date" id="bill-date" required>
</div>
<button type="submit" class="animated pulse">Add Bill</button>
</form>
</section>
<section class="container">
<h2>Monthly Bills</h2>
<input type="text" id="filter-input" placeholder="Search Filter">
<table id="bill-table">
<thead>
<tr>
<th>Bill Name</th>
<th>Amount</th>
<th>Due Date</th>
<th>Action</th>
</tr>
</thead>
<tbody id="bill-list">
<tr class="bill-item">
<td>Electricity Bill</td>
<td>$150</td>
<td>July 31, 2023</td>
<td>
<button class="delete-btn">Delete</button>
</td>
</tr>
<tr class="bill-item">
<td>Internet Bill</td>
<td>$80</td>
<td>August 5, 2023</td>
<td>
<button class="delete-btn">Delete</button>
</td>
</tr>
<tr class="bill-item">
<td>Water Bill</td>
<td>$50</td>
<td>July 28, 2023</td>
<td>
<button class="delete-btn">Delete</button>
</td>
</tr>
</tbody>
</table>
</section>
<section class="container">
<h2>Bills Total</h2>
<div id="bill-total">Total: $280</div>
</section>
<footer>
<p>© 2023 Mikedev23. All rights reserved.</p>
</footer>
<script src="script.js"></script>
</body>
</html>