Skip to content
Open
17 changes: 17 additions & 0 deletions 2darray.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>

<div id="studentInfo">


</div>

<script src="js/2darray.js"></script>
</body>
</html>
12 changes: 12 additions & 0 deletions arrayFunction.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>

<script src="js/arrayFunction.js"></script>
</body>
</html>
82 changes: 82 additions & 0 deletions budget2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Budget App</title>
<!-- Font Awesome Icons -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"
/>
<!-- Google Fonts -->
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap"
rel="stylesheet"
/>
<!-- Stylesheet -->
<link rel="stylesheet" href="css/budget2.css" />
</head>
<body>
<div class="wrapper">
<div class="container">
<div class="sub-container">
<!-- Budget -->
<div class="total-amount-container">
<h3>Budget</h3>
<p class="hide error" id="budget-error">
Value cannot be empty or negative
</p>
<input
type="number"
id="total-amount"
placeholder="Enter Total Amount"
/>
<button class="submit" id="total-amount-button">Set Budget</button>
</div>

<!-- Expenditure -->
<div class="user-amount-container">
<h3>Expenses</h3>
<p class="hide error" id="product-title-error">
Values cannot be empty
</p>
<input
type="text"
class="product-title"
id="product-title"
placeholder="Enter Title of Product"
/>
<input
type="number"
id="user-amount"
placeholder="Enter Cost of Product"
/>
<button class="submit" id="check-amount">Check Amount</button>
</div>
</div>
<!-- Output -->
<div class="output-container flex-space">
<div>
<p>Total Budget</p>
<span id="amount">0</span>
</div>
<div>
<p>Expenses</p>
<span id="expenditure-value">0</span>
</div>
<div>
<p>Balance</p>
<span id="balance-amount">0</span>
</div>
</div>
</div>
<!-- List -->
<div class="list">
<h3>Expense List</h3>
<div class="list-container" id="list"></div>
</div>
</div>
<!-- Script -->
<script src="js/budget2.js"></script>
</body>
</html>
84 changes: 84 additions & 0 deletions budgetapp.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@

<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="css/budgetapp.css">
</head>

<body>
<div class="budget">
<h1>BUDGET APP</h1>
</div>

<div class="row">
<div class="col-5">
<form action="" id="button">
<p id="enter">Please Enter Your Budget</p>
<input type="text" id="bud">
<span id="error"></span>
<button type="submit" class="btn btn-outline">Calculate</button>
</form>
</div>

<div class="col-7">
<div class="row">
<div class="col-4">
<p>BUDGET</p>
<i class="fa-solid fa-money-bill-1"></i>
<p>$</p>
<span id="input">0</span>
</div>

<div class="col-4">
<p>EXPENSES</p>
<img src="img/wallet-solid (1).svg" id="img" alt="">
<p>$</p>
<span id="get"> 0 </span>
</div>
<div class="col-4">
<p>BALANCE</p>
<img src="img/sack-dollar-solid.svg" id="img" alt="">
<p>$ </p>
<span id="lance"> 0 </span>
</div>
</div>
</div>
</div>
<div class="row demo">
<div class="col-5">
<form action="" id="buton">
<p id="budget">Please Enter Your Expense</p>
<input type="text" id="expenses">
<span id="error1" class="error"></span>
<p class="amo">Please Enter Expense Amount</p>
<input type="number" id="amount">
<span id="error2" class="error"></span>
<button type="submit" class="btn btn-outline">Add Expense</button>
</form>
</div>

<div class="col-6">
<div class="parentclass"></div>
<div class="d-flex justify-content-between">
<h5>Ecpenses Title</h5>
<h5>Expense Value</h5>
<h5>Action</h5>
</div>

</div>
</div>
</div>

<script src="js/budgetapp.js"></script>
</body>

</html>
144 changes: 144 additions & 0 deletions css/budget2.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
background-color: #004761;
}
.wrapper {
width: 90%;
font-size: 16px;
max-width: 43.75em;
margin: 1em auto;
}
.container {
width: 100%;
}
.sub-container {
width: 100%;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 3em;
}
.flex {
display: flex;
align-items: center;
}
.flex-space {
display: flex;
justify-content: space-between;
align-items: center;
}
.wrapper h3 {
color: #363d55;
font-weight: 500;
margin-bottom: 0.6em;
}
.container input {
display: block;
width: 100%;
padding: 0.6em 0.3em;
border: 1px solid #d0d0d0;
border-radius: 0.3em;
color: #414a67;
outline: none;
font-weight: 400;
margin-bottom: 0.6em;
}
.container input:focus {
border-color: #587ef4;
}
.total-amount-container,
.user-amount-container {
background-color: #ffffff;
padding: 1.25em 0.9em;
border-radius: 0.3em;
box-shadow: 0 0.6em 1.2em rgba(28, 0, 80, 0.06);
}
.output-container {
background-color: #587ef4;
color: #ffffff;
border-radius: 0.3em;
box-shadow: 0 0.6em 1.2em rgba(28, 0, 80, 0.06);
margin: 2em 0;
padding: 1.2em;
}
.output-container p {
font-weight: 500;
margin-bottom: 0.6em;
}
.output-container span {
display: block;
text-align: center;
font-weight: 400;
color: #e5e5e5;
}
.submit {
font-size: 1em;
margin-top: 0.8em;
background-color: #587ef4;
border: none;
outline: none;
color: #ffffff;
padding: 0.6em 1.2em;
border-radius: 0.3em;
cursor: pointer;
}
.list {
background-color: #ffffff;
padding: 1.8em 1.2em;
box-shadow: 0 0.6em 1.2em rgba(28, 0, 80, 0.06);
border-radius: 0.6em;
}
.sublist-content {
width: 100%;
border-left: 0.3em solid #587ef4;
margin-bottom: 0.6em;
padding: 0.5em 1em;
display: grid;
grid-template-columns: 3fr 2fr 1fr 1fr;
}
.product {
font-weight: 500;
color: #363d55;
}
.amount {
color: #414a67;
margin-left: 20%;
}
.icons-container {
width: 5em;
margin: 1.2em;
align-items: center;
}
.product-title {
margin-bottom: 1em;
}
.hide {
display: none;
}
.error {
color: #ff465a;
}
.edit {
margin-left: auto;
}
.edit,
.delete {
background: transparent;
cursor: pointer;
margin-right: 1.5em;
border: none;
color: #587ef4;
}
@media screen and (max-width: 600px) {
.wrapper {
font-size: 14px;
}
.sub-container {
grid-template-columns: 1fr;
gap: 1em;
}
}
Loading