-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.html
70 lines (56 loc) · 1.98 KB
/
login.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
<!DOCTYPE html>
<html>
<head>
<title>Login Page</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<div class="container" id="container">
<div class="form-container sign-up-container">
<form action="">
<h1>Create a new account</h1>
<input type="text" name="name" placeholder="Name">
<input type="email" name="email" placeholder="Email">
<button>Sign Up</button>
</form>
</div>
<div class="form-container sign-in-container">
<form action="#">
<h1>Sign In</h1>
<input type="email" name="email" placeholder="Email">
<input type="password" name="password" placeholder="Password">
<a href="forgotpassword.html">Forgot Your Password?</a>
<button>Sign In</button>
</form>
</div>
<div class="overlay-container">
<div class="overlay">
<div class="overlay-panel overlay-left">
<h1>Are You New Here?</h1>
<p>Enter your details and start your journey in tracking your expenses</p>
<img src="assets/piggybank.png" width="200px"/>
<button class="ghost" id="signIn">Sign In</button>
</div>
<div class="overlay-panel overlay-right">
<h1>Welcome Back!</h1>
<p>Log in to your account to keep track of your personal expenses</p>
<img src="assets/expenses.png" width="200px"/>
<button class="ghost" id="signUp">Sign Up</button>
</div>
</div>
</div>
</div>
<script type="text/javascript">
const signUpButton = document.getElementById('signUp');
const signInButton = document.getElementById('signIn');
const container = document.getElementById('container');
signUpButton.addEventListener('click', () => {
container.classList.add("right-panel-active");
});
signInButton.addEventListener('click', () => {
container.classList.remove("right-panel-active");
});
</script>
</body>
</html>