Skip to content

Commit

Permalink
Major Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
parthpetkar committed Jun 30, 2024
1 parent d4e11fd commit f95b6ae
Show file tree
Hide file tree
Showing 15 changed files with 277 additions and 237 deletions.
6 changes: 3 additions & 3 deletions Backend/login.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
$(document).ready(async () => {
$('#loginbutton').click(async () => {
$('#loginButton').click(async () => {
var username = $('#username').val().trim();
var password = $('#password').val().trim();
console.log(username, password);
try {
// const customerData = saveCustomerData();
console.log("press")
await window.electron.send('login', { username, password });
window.electron.receive('loginResponse', (response) => {
if (response.success) {
alert(`${response.message}`);
window.electron.send('load-main-content');
}
else {
alert(`Invalid Credentials Error: ${response.message}`);
Expand Down
1 change: 0 additions & 1 deletion Backend/milestonepage.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ $(document).ready(async () => {
function openInvoiceDetails(invoice, milestone) {
const invoiceDetailsCard = $('#invoiceDetailsCard');
const cardBody = invoiceDetailsCard.find('.card-body');
console.log(invoice);
cardBody.html(`
<p><strong>Invoice Number:</strong> ${invoice.invoice_number}</p>
<p><strong>Invoice Date:</strong> ${invoice.invoice_date}</p>
Expand Down
109 changes: 89 additions & 20 deletions CSS/login.css
Original file line number Diff line number Diff line change
@@ -1,48 +1,117 @@
/* login.css */

/* Styles for login page */
@keyframes gradient {
0% {
background-position: 0% 50%;
}

50% {
background-position: 100% 50%;
}

100% {
background-position: 0% 50%;
}
}
.login-container {
width: 400px;
margin: 100px auto;
padding: 20px;
border: 1px solid #ccc;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 300px;
padding: 40px;
background: rgba(0, 0, 0, 0.75);
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
text-align: center;
animation: slideIn 1s ease-out forwards;
}

.login-container h1 {
margin-bottom: 20px;
@keyframes slideIn {
from {
transform: translate(-50%, -150%);
opacity: 0;
}

to {
transform: translate(-50%, -50%);
opacity: 1;
}
}

h1 {
margin: 0 0 20px;
color: #fff;
font-size: 24px;
animation: fadeIn 2s ease forwards;
}

@keyframes fadeIn {
from {
opacity: 0;
}

to {
opacity: 1;
}
}

.login-container .form-group {
.form-group {
margin-bottom: 15px;
text-align: left;
animation: zoomIn 1s ease forwards;
}

.login-container label {
@keyframes zoomIn {
from {
transform: scale(0);
opacity: 0;
}

to {
transform: scale(1);
opacity: 1;
}
}

.form-group label {
display: block;
margin-bottom: 5px;
color: #fff;
text-align: left;
}

.login-container input {
width: 90%;
.form-group input {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ccc;
border: none;
border-radius: 5px;
box-sizing: border-box;
outline: none;
font-size: 14px;
}

.login-container .button {
.button {
width: 100%;
padding: 10px;
background-color: #28a745;
background-color: #007bff;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
margin-top: 10px;
transition: background-color 0.3s;
}

.button:hover {
background-color: #0056b3;
}

.login-container .button:hover {
background-color: #218838;
.button:focus {
outline: none;
}

.error {
margin-top: 10px;
color: #ff4c4c;
display: none;
}
Binary file removed invoice-templates/Dollar.xls
Binary file not shown.
Binary file removed invoice-templates/Extra Large.xls
Binary file not shown.
Binary file removed invoice-templates/Masshoor.xls
Binary file not shown.
Binary file removed invoice-templates/Proforma.xls
Binary file not shown.
Binary file removed invoice-templates/Regular 2.xls
Binary file not shown.
Binary file removed invoice-templates/Regular.xls
Binary file not shown.
Loading

0 comments on commit f95b6ae

Please sign in to comment.