forked from Aryansabasana/bringcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
822 lines (779 loc) · 23.2 KB
/
index.html
File metadata and controls
822 lines (779 loc) · 23.2 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ExpenseEase - Manage Your Expenses</title>
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap" rel="stylesheet" />
<style>
/* Reset & Base Styles */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Montserrat', sans-serif;
line-height: 1.6;
background-color: #f0f4f8;
color: #333;
}
/* Container */
.container {
width: 90%;
max-width: 1200px;
margin: 0 auto;
}
/* Header */
.header {
background-color: #4CAF50;
padding: 20px 0;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header .header-container {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 1.8em;
font-weight: 700;
color: #fff;
letter-spacing: 2px;
text-decoration: none;
}
nav ul {
list-style: none;
display: flex;
gap: 20px;
}
nav ul li a {
color: #fff;
text-decoration: none;
font-weight: 600;
transition: color 0.3s;
padding: 5px 10px;
border-radius: 4px;
}
nav ul li a:hover {
color: #ffd700;
background-color: rgba(255,255,255,0.1);
}
nav ul li a.active {
background-color: rgba(255,255,255,0.2);
}
/* Hero Section */
.hero {
background: linear-gradient(135deg, #81ecec, #74b9ff);
padding: 100px 20px;
text-align: center;
color: #fff;
}
.hero h2 {
font-size: 2.8em;
margin-bottom: 20px;
font-weight: 700;
}
.hero p {
font-size: 1.3em;
margin-bottom: 40px;
max-width: 700px;
margin-left: auto;
margin-right: auto;
}
.btn-primary {
background-color: #fff;
color: #4CAF50;
padding: 15px 30px;
border: none;
border-radius: 30px;
font-size: 1.1em;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s, transform 0.3s;
text-decoration: none;
display: inline-block;
}
.btn-primary:hover {
background-color: #ffd700;
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
/* Features */
.features {
padding: 80px 20px;
background-color: #fff;
}
.section-title {
text-align: center;
margin-bottom: 50px;
}
.section-title h2 {
font-size: 2.2em;
color: #4CAF50;
margin-bottom: 15px;
}
.section-title p {
color: #666;
font-size: 1.1em;
max-width: 600px;
margin: 0 auto;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 30px;
}
.feature-card {
background-color: #f8f8f8;
padding: 40px 30px;
border-radius: 15px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
transition: transform 0.3s, box-shadow 0.3s;
text-align: center;
}
.feature-card:hover {
transform: translateY(-10px);
box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}
.feature-icon {
font-size: 3em;
margin-bottom: 20px;
color: #4CAF50;
}
.feature-card h3 {
margin-top: 0;
color: #4CAF50;
margin-bottom: 15px;
font-size: 1.4em;
}
.feature-card p {
color: #666;
line-height: 1.7;
}
/* How It Works */
.how-it-works {
padding: 80px 20px;
background-color: #f0f4f8;
}
.steps {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
gap: 20px;
margin-top: 50px;
}
.step {
flex: 1;
min-width: 250px;
text-align: center;
padding: 30px 20px;
background: white;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.step-number {
display: inline-block;
width: 50px;
height: 50px;
background: #4CAF50;
color: white;
border-radius: 50%;
line-height: 50px;
font-size: 1.5em;
font-weight: 700;
margin-bottom: 20px;
}
.step h3 {
margin-bottom: 15px;
color: #4CAF50;
}
/* Testimonials */
.testimonials {
padding: 80px 20px;
background-color: #fff;
}
.testimonial-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
margin-top: 50px;
}
.testimonial-card {
background: #f8f8f8;
padding: 30px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.testimonial-text {
font-style: italic;
margin-bottom: 20px;
color: #555;
line-height: 1.7;
}
.testimonial-author {
display: flex;
align-items: center;
}
.author-avatar {
width: 50px;
height: 50px;
border-radius: 50%;
background: #4CAF50;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: 700;
margin-right: 15px;
}
.author-info h4 {
margin-bottom: 5px;
color: #4CAF50;
}
.author-info p {
color: #777;
font-size: 0.9em;
}
/* CTA Section */
.cta {
padding: 80px 20px;
background: linear-gradient(135deg, #4CAF50, #45a049);
color: white;
text-align: center;
}
.cta h2 {
font-size: 2.2em;
margin-bottom: 20px;
}
.cta p {
font-size: 1.2em;
margin-bottom: 30px;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.btn-secondary {
background-color: #fff;
color: #4CAF50;
padding: 15px 30px;
border: none;
border-radius: 30px;
font-size: 1.1em;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s, transform 0.3s;
text-decoration: none;
display: inline-block;
}
.btn-secondary:hover {
background-color: #ffd700;
transform: translateY(-3px);
}
/* Footer */
.footer {
background-color: #2d3436;
padding: 50px 20px 30px;
color: #fff;
}
.footer-content {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 40px;
margin-bottom: 30px;
}
.footer-column {
flex: 1;
min-width: 200px;
}
.footer-column h3 {
margin-bottom: 20px;
color: #4CAF50;
font-size: 1.3em;
}
.footer-column ul {
list-style: none;
}
.footer-column ul li {
margin-bottom: 10px;
}
.footer-column ul li a {
color: #ddd;
text-decoration: none;
transition: color 0.3s;
}
.footer-column ul li a:hover {
color: #4CAF50;
}
.social-icons {
display: flex;
gap: 15px;
margin-top: 20px;
}
.social-icons a {
display: inline-block;
width: 40px;
height: 40px;
background: rgba(255,255,255,0.1);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.3s;
}
.social-icons a:hover {
background: #4CAF50;
}
.footer-bottom {
text-align: center;
padding-top: 30px;
border-top: 1px solid rgba(255,255,255,0.1);
color: #aaa;
}
/* Modal Styles */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.6);
justify-content: center;
align-items: center;
}
.modal-content {
background-color: #fff;
padding: 30px;
border-radius: 10px;
max-width: 400px;
width: 90%;
position: relative;
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.close-btn {
position: absolute;
top: 10px;
right: 15px;
font-size: 1.5em;
cursor: pointer;
color: #555;
}
.form-group {
margin-bottom: 15px;
}
label {
display: block;
margin-bottom: 5px;
font-weight: 600;
color: #555;
}
input, select {
width: 100%;
padding: 12px 15px;
border: 1px solid #ddd;
border-radius: 8px;
font-size: 1em;
font-family: 'Montserrat', sans-serif;
}
/* Responsive adjustments */
@media(max-width: 768px){
.header .header-container {
flex-direction: column;
gap: 15px;
}
nav ul {
flex-direction: column;
gap: 10px;
text-align: center;
}
.hero h2 {
font-size: 2.2em;
}
.hero p {
font-size: 1.1em;
}
.steps {
flex-direction: column;
}
.footer-content {
flex-direction: column;
}
}
</style>
</head>
<body>
<!-- Header with Navigation -->
<header class="header">
<div class="container header-container">
<a href="index.html" class="logo">ExpenseEase</a>
<nav>
<ul class="nav-links">
<li><a href="index.html" class="active">Home</a></li>
<li><a href="expenses.html">Expenses</a></li>
<li><a href="reports.html">Reports</a></li>
<li><a href="#" id="openLogin">Login</a></li>
<li><a href="#" id="logoutBtn" style="display:none;">Logout</a></li>
</ul>
</nav>
</div>
</header>
<!-- Hero Section -->
<section class="hero">
<div class="container hero-content">
<h2>Streamline Your Expense Management</h2>
<p>Track, analyze, and manage expenses with ease. ExpenseEase helps organizations of all sizes simplify expense reporting and approval workflows.</p>
<a href="#" class="btn-primary" id="getStartedBtn">Get Started Now</a>
</div>
</section>
<!-- Features -->
<section class="features">
<div class="container">
<div class="section-title">
<h2>Why Choose ExpenseEase?</h2>
<p>Our platform offers everything you need to manage expenses efficiently</p>
</div>
<div class="features-grid">
<div class="feature-card">
<div class="feature-icon">📊</div>
<h3>Easy Expense Tracking</h3>
<p>Quickly add expenses and view your spending history in a clean, intuitive interface designed for efficiency.</p>
</div>
<div class="feature-card">
<div class="feature-icon">⚡</div>
<h3>Fast Approvals</h3>
<p>Streamline your approval workflow with automated notifications and real-time status updates for all expense requests.</p>
</div>
<div class="feature-card">
<div class="feature-icon">📈</div>
<h3>Insightful Reports</h3>
<p>Get detailed reports and analytics to understand spending patterns and make informed financial decisions.</p>
</div>
<div class="feature-card">
<div class="feature-icon">🔒</div>
<h3>Secure & Reliable</h3>
<p>Your financial data is protected with enterprise-grade security measures and regular backups.</p>
</div>
<div class="feature-card">
<div class="feature-icon">👥</div>
<h3>Role-Based Access</h3>
<p>Different access levels for employees, managers, and admins ensure appropriate permissions and security.</p>
</div>
<div class="feature-card">
<div class="feature-icon">📱</div>
<h3>Mobile Friendly</h3>
<p>Access ExpenseEase from any device with our responsive design that works perfectly on desktop and mobile.</p>
</div>
</div>
</div>
</section>
<!-- How It Works -->
<section class="how-it-works">
<div class="container">
<div class="section-title">
<h2>How ExpenseEase Works</h2>
<p>Simple steps to manage your expenses effectively</p>
</div>
<div class="steps">
<div class="step">
<div class="step-number">1</div>
<h3>Submit Expenses</h3>
<p>Employees easily submit expense requests with all necessary details and receipts.</p>
</div>
<div class="step">
<div class="step-number">2</div>
<h3>Manager Review</h3>
<p>Managers review and approve or decline requests with optional notes for employees.</p>
</div>
<div class="step">
<div class="step-number">3</div>
<h3>Track Status</h3>
<p>Employees can track the status of their requests in real-time throughout the approval process.</p>
</div>
<div class="step">
<div class="step-number">4</div>
<h3>Generate Reports</h3>
<p>Admins and managers generate comprehensive reports for analysis and accounting.</p>
</div>
</div>
</div>
</section>
<!-- Testimonials -->
<section class="testimonials">
<div class="container">
<div class="section-title">
<h2>What Our Users Say</h2>
<p>Discover how ExpenseEase has transformed expense management for organizations</p>
</div>
<div class="testimonial-grid">
<div class="testimonial-card">
<div class="testimonial-text">
"ExpenseEase has cut our expense processing time by 70%. The intuitive interface makes it easy for our team to submit expenses, and managers love the streamlined approval process."
</div>
<div class="testimonial-author">
<div class="author-avatar">SJ</div>
<div class="author-info">
<h4>Sarah Johnson</h4>
<p>Finance Manager, TechSolutions Inc.</p>
</div>
</div>
</div>
<div class="testimonial-card">
<div class="testimonial-text">
"As an employee, I love how simple it is to submit expense requests. I can track the status in real-time, and the mobile-friendly design means I can do it all from my phone."
</div>
<div class="testimonial-author">
<div class="author-avatar">MR</div>
<div class="author-info">
<h4>Michael Rodriguez</h4>
<p>Sales Executive, Global Connect</p>
</div>
</div>
</div>
<div class="testimonial-card">
<div class="testimonial-text">
"The reporting features in ExpenseEase have given us incredible insights into our spending patterns. We've identified areas for cost savings that we never would have noticed before."
</div>
<div class="testimonial-author">
<div class="author-avatar">AK</div>
<div class="author-info">
<h4>Amanda Kim</h4>
<p>Operations Director, InnovateCo</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- CTA Section -->
<section class="cta">
<div class="container">
<h2>Ready to Simplify Your Expense Management?</h2>
<p>Join thousands of organizations that use ExpenseEase to streamline their expense reporting and approval processes.</p>
<a href="#" class="btn-secondary" id="signupCta">Create Your Account Today</a>
</div>
</section>
<!-- Footer -->
<footer class="footer">
<div class="container">
<div class="footer-content">
<div class="footer-column">
<h3>ExpenseEase</h3>
<p>Streamlining expense management for organizations of all sizes with our intuitive, secure platform.</p>
<div class="social-icons">
<a href="#" aria-label="Facebook">f</a>
<a href="#" aria-label="Twitter">t</a>
<a href="#" aria-label="LinkedIn">in</a>
<a href="#" aria-label="Instagram">ig</a>
</div>
</div>
<div class="footer-column">
<h3>Quick Links</h3>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="expenses.html">Expenses</a></li>
<li><a href="reports.html">Reports</a></li>
<li><a href="login.html">Login</a></li>
<li><a href="signup.html">Sign Up</a></li>
</ul>
</div>
<div class="footer-column">
<h3>Features</h3>
<ul>
<li><a href="#">Expense Tracking</a></li>
<li><a href="#">Approval Workflows</a></li>
<li><a href="#">Reporting & Analytics</a></li>
<li><a href="#">Role-Based Access</a></li>
<li><a href="#">Mobile Access</a></li>
</ul>
</div>
<div class="footer-column">
<h3>Contact Us</h3>
<ul>
<li>Email: support@expenseease.com</li>
<li>Phone: (555) 123-4567</li>
<li>Address: 123 Business Ave, Suite 100</li>
<li>City: San Francisco, CA 94105</li>
</ul>
</div>
</div>
<div class="footer-bottom">
<p>© 2025 ExpenseEase. All rights reserved.</p>
</div>
</div>
</footer>
<!-- Login Modal -->
<div id="loginModal" class="modal">
<div class="modal-content">
<span class="close-btn" id="closeLogin">×</span>
<h3 style="margin-bottom:20px;">Login to ExpenseEase</h3>
<form id="loginForm">
<div class="form-group">
<input type="text" id="loginUsername" placeholder="Username" required />
</div>
<div class="form-group">
<input type="password" id="loginPassword" placeholder="Password" required />
</div>
<button type="submit" class="btn-primary" style="width:100%; margin-top:10px;">Login</button>
</form>
<p style="margin-top:15px; text-align:center;">Don't have an account? <a href="#" id="switchToSignup">Sign Up</a></p>
</div>
</div>
<!-- Signup Modal -->
<div id="signupModal" class="modal">
<div class="modal-content">
<span class="close-btn" id="closeSignup">×</span>
<h3 style="margin-bottom:20px;">Sign Up for ExpenseEase</h3>
<form id="signupForm">
<div class="form-group">
<input type="text" id="signupUsername" placeholder="Username" required />
</div>
<div class="form-group">
<input type="password" id="signupPassword" placeholder="Password" required />
</div>
<div class="form-group">
<select id="signupRole" required>
<option value="">Select Role</option>
<option value="employee">Employee</option>
<option value="manager">Manager</option>
<option value="admin">Admin</option>
</select>
</div>
<button type="submit" class="btn-primary" style="width:100%; margin-top:10px;">Sign Up</button>
</form>
</div>
</div>
<!-- Scripts -->
<script>
// Elements
const loginModal = document.getElementById('loginModal');
const signupModal = document.getElementById('signupModal');
const openLoginBtn = document.getElementById('openLogin');
const closeLoginBtn = document.getElementById('closeLogin');
const closeSignupBtn = document.getElementById('closeSignup');
const switchToSignupLink = document.getElementById('switchToSignup');
const logoutBtn = document.getElementById('logoutBtn');
const getStartedBtn = document.getElementById('getStartedBtn');
const signupCta = document.getElementById('signupCta');
// Initialize data storage if not exists
if (!localStorage.getItem('users')) {
// Create demo users
const demoUsers = [
{ id: 'emp1', username: 'employee', password: 'password', role: 'employee', name: 'John Employee' },
{ id: 'mgr1', username: 'manager', password: 'password', role: 'manager', name: 'Sarah Manager' },
{ id: 'adm1', username: 'admin', password: 'password', role: 'admin', name: 'Admin User' }
];
localStorage.setItem('users', JSON.stringify(demoUsers));
}
// Check login status on page load
window.onload = () => {
const user = JSON.parse(localStorage.getItem('loggedInUser'));
if (user) {
// User is logged in
document.querySelector('#openLogin').style.display = 'none';
logoutBtn.style.display = 'block';
logoutBtn.textContent = `Logout (${user.username})`;
}
};
// Show login modal
document.getElementById('openLogin').addEventListener('click', () => {
loginModal.style.display = 'flex';
});
// Close login modal
document.getElementById('closeLogin').addEventListener('click', () => {
loginModal.style.display = 'none';
});
// Close signup modal
document.getElementById('closeSignup').addEventListener('click', () => {
signupModal.style.display = 'none';
});
// Switch to signup
document.getElementById('switchToSignup').addEventListener('click', (e) => {
e.preventDefault();
loginModal.style.display = 'none';
signupModal.style.display = 'flex';
});
// Get Started button
getStartedBtn.addEventListener('click', (e) => {
e.preventDefault();
loginModal.style.display = 'flex';
});
// Signup CTA button
signupCta.addEventListener('click', (e) => {
e.preventDefault();
signupModal.style.display = 'flex';
});
// Close modals on outside click
window.onclick = (e) => {
if (e.target === loginModal) loginModal.style.display = 'none';
if (e.target === signupModal) signupModal.style.display = 'none';
};
// Sign Up
document.getElementById('signupForm').addEventListener('submit', (e) => {
e.preventDefault();
const username = document.getElementById('signupUsername').value.trim();
const password = document.getElementById('signupPassword').value.trim();
const role = document.getElementById('signupRole').value;
if (!username || !password || !role) {
alert('Please fill all fields.');
return;
}
const users = JSON.parse(localStorage.getItem('users')) || [];
if (users.some(u => u.username === username)) {
alert('Username already exists.');
return;
}
// Generate a simple ID for the user
const id = 'user' + Date.now();
const name = username.charAt(0).toUpperCase() + username.slice(1);
users.push({ id, username, password, role, name });
localStorage.setItem('users', JSON.stringify(users));
alert('Signup successful! Please login.');
signupModal.style.display = 'none';
loginModal.style.display = 'flex';
});
// Login
document.getElementById('loginForm').addEventListener('submit', (e) => {
e.preventDefault();
const username = document.getElementById('loginUsername').value.trim();
const password = document.getElementById('loginPassword').value.trim();
const users = JSON.parse(localStorage.getItem('users')) || [];
const user = users.find(u => u.username === username && u.password === password);
if (user) {
localStorage.setItem('loggedInUser', JSON.stringify(user));
alert(`Welcome, ${user.username}!`);
// Update UI
document.querySelector('#openLogin').style.display = 'none';
logoutBtn.style.display = 'block';
logoutBtn.textContent = `Logout (${user.username})`;
// Close modal
loginModal.style.display = 'none';
// Redirect based on role
if (user.role === 'admin') {
window.location.href = 'admin_dashboard.html';
} else if (user.role === 'manager') {
window.location.href = 'manager_dashboard.html';
} else {
window.location.href = 'employee_dashboard.html';
}
} else {
alert('Invalid credentials.');
}
});
// Logout
if (logoutBtn) {
logoutBtn.addEventListener('click', () => {
localStorage.removeItem('loggedInUser');
alert('Logged out successfully.');
logoutBtn.style.display = 'none';
document.querySelector('#openLogin').style.display = 'block';
window.location.href = 'index.html';
});
}
</script>
</body>
</html>