-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
51 lines (45 loc) · 1.66 KB
/
Copy pathindex.html
File metadata and controls
51 lines (45 loc) · 1.66 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>QuickNotes</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1>QuickNotes</h1>
<!-- Auth buttons -->
<div class="auth-buttons">
<button id="openAuthModal">Login / Signup</button>
<button id="logoutBtn" style="display:none;">Logout</button>
</div>
<!-- Add note -->
<div class="note-input">
<input type="text" id="noteTitle" placeholder="Title">
<textarea id="noteContent" placeholder="Write your note..."></textarea>
<button id="addNote" disabled>Add Note</button>
</div>
<!-- Notes list -->
<div id="notesList">Please log in to see your notes.</div>
</div>
<!-- Auth Modal -->
<div id="authModal" class="modal">
<div class="modal-content">
<span class="close">×</span>
<h2 id="modalTitle">Login</h2>
<form id="authForm">
<input type="email" id="emailInput" placeholder="Email" required>
<input type="password" id="passwordInput" placeholder="Password" required>
<button type="submit" id="authSubmitBtn">Login</button>
</form>
<p id="toggleAuth">Don't have an account? <a href="#" id="toggleLink">Sign Up</a></p>
</div>
</div>
<!-- Firebase CDN (compat) -->
<script src="https://www.gstatic.com/firebasejs/11.0.0/firebase-app-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/11.0.0/firebase-firestore-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/11.0.0/firebase-auth-compat.js"></script>
<script src="firebaseConfig.js"></script>
<script src="app.js"></script>
</body>
</html>