-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (48 loc) · 1.63 KB
/
Copy pathindex.html
File metadata and controls
59 lines (48 loc) · 1.63 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
<!DOCTYPE html>
<html>
<head>
<title>Your Todo</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav id="nev">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Contact</a></li>
<li> <button id="logoutBtn" style="display:none;">Logout</button></li>
</ul>
</nav>
<h1>Your Todo List</h1>
<!-- Auth Section -->
<div id="authSection">
<div class="auth-toggle">
<button id="showLoginBtn" class="toggle-btn active">Login</button>
<button id="showSignupBtn" class="toggle-btn">Sign Up</button>
</div>
<!-- Login Form -->
<form id="loginForm" class="auth-form">
<h2>Login</h2>
<input type="email" name="email" placeholder="Email" required><br>
<input type="password" name="password" placeholder="Password" required><br>
<button type="submit">Login</button>
</form>
<!-- Signup Form -->
<form id="signupForm" class="auth-form" style="display:none;">
<h2>Sign Up</h2>
<input type="email" name="email" placeholder="Email" required><br>
<input type="password" name="password" placeholder="Password" required><br>
<button type="submit">Sign Up</button>
</form>
</div>
<!-- Logout -->
<!-- Todo Section -->
<div id="todoSection" style="display:none;">
<input type="text" id="todoInput" placeholder="Enter todo">
<button id="addTodoBtn">Add</button>
<ul id="todoList"></ul>
</div>
<script type="module" src="./app.js"></script>
</body>
</html>