-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
80 lines (72 loc) · 4.14 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
<!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">
<title>Money Manager | Calculate Money Online</title>
<!-- Favicon -->
<link rel="shortcut icon" href="images/Money_Bag_Emoji_large.png" type="image/x-icon">
<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<!-- Custom Style -->
<link rel="stylesheet" href="CSS/style.css">
</head>
<body class="bg-body">
<!-- Header of the page -->
<header>
<h1 class="text-center my-4 fw-bold text-white"><span class="text-warning">Money</span> Manager
💰</h1>
</header>
<!-- Main Section -->
<main class="mb-5">
<section class="container mx-auto row align-items-stretch">
<div class="main-image col-12 col-md-7">
<img class="rounded" src="images/money-calculation-copy.jpg" alt="Money With Calculator">
</div>
<div id="calculation" class="col-12 col-md-5 text-center bg-light p-1 p-md-1 mt-3 mt-md-0 rounded">
<div class="income">
<h5 class="my-4">Income</h5>
<div class="row d-flex align-items-center mx-auto justify-content-center">
<span class="col-12 col-sm-3">Income:</span>
<input class="col-6 border-0 bg-custom focus rounded " type="text" name="income" id="income-field">
</div>
</div>
<div class="expenses">
<h5 class="my-3">Expenses</h5>
<div class="row d-flex align-items-center mx-auto justify-content-center">
<span class="col-12 col-sm-3">Food:</span>
<input class="col-6 border-0 bg-custom focus rounded " type="text" name="food" id="food-field">
</div>
<div class="row d-flex align-items-center mx-auto justify-content-center mt-2">
<span class="col-12 col-sm-3">Rent:</span>
<input class="col-6 border-0 bg-custom focus rounded" type="text" name="rent" id="rent-field">
</div>
<div class="row d-flex align-items-center mx-auto justify-content-center mt-2">
<span class="col-12 col-sm-3">Clothes:</span>
<input class="col-6 border-0 bg-custom focus rounded" type="text" name="clothes" id="clothes-field">
<p id="balance-error" class="mt-1">* Please decrease your expenses.</p>
<p id="nan-error" class="mt-1">* Please enter a valid number !!</p>
</div>
<button id="calculate" class="btn text-white btn-success py-2 px-5 fw-bold my-3">Calculate</button>
<h5 class="mb-4">Total Expenses: <span id="total-expenses">00</span></h5>
</div>
<h5>Balance: <span id="balance">00</span></h5>
<div class="save d-flex align-items-center justify-content-around my-3">
<span>Save: </span>
<input class="col-6 border-0 bg-custom focus rounded text-center py-2" type="text" name="food" id="saving-field" value="0">
<span class="px-2">%</span>
<button id="save" class="btn text-white btn-success py-2 px-3 px-sm-5 fw-bold">Save</button>
</div>
<p id="saving-error" class="mt-1">* You don't have enough money to save !!</p>
<p id="saving-error-2" class="mt-1">* Please Enter a valid number !!</p>
<h5 class="mb-4">Saving Amount: <span id="saving-amount">00</span></h5>
<h5>Remaining Balance: <span id="remaining-balance">00</span></h5>
</div>
</section>
</main>
<!-- Javascript -->
<script src="JS/function.js"></script>
</body>
</html>