Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
backend/user_data.txt
frontend/user_data.txt
frontend/user_transaction_details/
/node_modules
/node_modules
.env
backend/finance_tracker.exe
backend/finance_tracker.exe
Binary file modified backend/finance_tracker.exe
Binary file not shown.
25 changes: 23 additions & 2 deletions frontend/public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ p {
.container {
width: 80%;
margin: auto;
padding: 20px;
padding: 10px;
}

h1,
Expand Down Expand Up @@ -217,6 +217,26 @@ button {
margin-right: 30%;
}

#visibilityIcon {
/* visibility: hidden; */
position: absolute;
/* right: 10px; */
/* top: 50%; */
transform: translateY(80%);
background-color: black;
padding: 7px;
width: 22px;
height: 22px;
border-radius: 100%;
color: white;
cursor: pointer;
}

#visibilityIcon i {
font-size: 20px;
padding: 0px;
}

#loginForm {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -310,7 +330,7 @@ li {

.navbar {
display: flex;
justify-content: space-between;
justify-content: center;
align-items: center;
margin-bottom: -2%;
margin-left: 10%;
Expand All @@ -327,6 +347,7 @@ li {
.nav-list {
display: flex;
justify-content: space-between;
width: 100%;
}

.nav-list li {
Expand Down
5 changes: 3 additions & 2 deletions frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@

<body>
<div class="container">
<h1 style="color: aliceblue; margin-top: 10%;">Financely</h1>
<h1 style="color: aliceblue;">Financely</h1>
<div id="logincontainer">
<form id="loginForm">
<h2>Login</h2>
<p id="loginheader"><i class="fa-regular fa-user"></i> Username</p>
<input id="login_input" type="text" id="username" name="username" placeholder="Enter Username" required>
<p id="loginheader"><i class="fa-solid fa-lock"></i> Password</p>
<input id="login_input" type="password" id="password" name="password" placeholder="Enter Password" required>
<input type="password" id="password" name="password" placeholder="Enter Password" required>
<span id="visibilityIcon" onclick=togglePasswordVisibility() style="position: absolute; right: 10%; top: 60%; cursor: pointer;"><i class="fa-solid fa-eye"></i></span>
<button type="submit">Login</button>
</form>
</div>
Expand Down
15 changes: 15 additions & 0 deletions frontend/public/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,21 @@ if (loginForm) {
});
}

//function to toggle the visibility of the password
function togglePasswordVisibility() {
const passwordInput = document.getElementById('password');
const visibilityIcon = document.getElementById('visibilityIcon').children[0];
if (passwordInput.type === 'password') {
passwordInput.type = 'text';
visibilityIcon.classList.add('fa-eye-slash');
visibilityIcon.classList.remove('fa-eye');
} else {
passwordInput.type = 'password';
visibilityIcon.classList.add('fa-eye');
visibilityIcon.classList.remove('fa-eye-slash');
}
}

// Function to extract username from URL
function getUsername() {
const urlParams = new URLSearchParams(window.location.search);
Expand Down
5 changes: 3 additions & 2 deletions frontend/public/register.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@

<body>
<div class="container">
<h1 style="color: aliceblue; margin-top: 10%;">Financely</h1>
<h1 style="color: aliceblue;">Financely</h1>
<div id="logincontainer">
<form id="registerForm">
<h2>Register</h2>
<p id="loginheader"><i class="fa-regular fa-user"></i> Username</p>
<input id="login_input" type="text" id="username" name="username" placeholder="Enter Username" required>
<p id="loginheader"><i class="fa-solid fa-lock"></i> Password</p>
<input id="login_input" type="password" id="password" name="password" placeholder="Enter Password" required>
<input type="password" id="password" name="password" placeholder="Enter Password" required>
<span id="visibilityIcon" onclick=togglePasswordVisibility() style="position: absolute; right: 10%; top: 60%; cursor: pointer;"><i class="fa-solid fa-eye"></i></span>
<button type="submit">Register</button>
</form>
</div>
Expand Down