99 < div class ="container ">
1010 < h1 > QuickNotes</ h1 >
1111
12- <!-- Auth Buttons -->
12+ <!-- Auth buttons -->
1313 < div class ="auth-buttons ">
14- < button id ="loginBtn "> Login</ button >
15- < button id ="logoutBtn "> Logout</ button >
14+ < button id ="openAuthModal "> Login / Signup </ button >
15+ < button id ="logoutBtn " style =" display:none; " > Logout</ button >
1616 </ div >
1717
18- <!-- Add Note -->
18+ <!-- Add note -->
1919 < div class ="note-input ">
2020 < input type ="text " id ="noteTitle " placeholder ="Title ">
2121 < textarea id ="noteContent " placeholder ="Write your note... "> </ textarea >
@@ -26,12 +26,25 @@ <h1>QuickNotes</h1>
2626 < div id ="notesList "> Please log in to see your notes.</ div >
2727 </ div >
2828
29- <!-- Firebase CDN (compat version) -->
29+ <!-- Auth Modal -->
30+ < div id ="authModal " class ="modal ">
31+ < div class ="modal-content ">
32+ < span class ="close "> ×</ span >
33+ < h2 id ="modalTitle "> Login</ h2 >
34+ < form id ="authForm ">
35+ < input type ="email " id ="emailInput " placeholder ="Email " required >
36+ < input type ="password " id ="passwordInput " placeholder ="Password " required >
37+ < button type ="submit " id ="authSubmitBtn "> Login</ button >
38+ </ form >
39+ < p id ="toggleAuth "> Don't have an account? < a href ="# " id ="toggleLink "> Sign Up</ a > </ p >
40+ </ div >
41+ </ div >
42+
43+ <!-- Firebase CDN (compat) -->
3044 < script src ="https://www.gstatic.com/firebasejs/11.0.0/firebase-app-compat.js "> </ script >
3145 < script src ="https://www.gstatic.com/firebasejs/11.0.0/firebase-firestore-compat.js "> </ script >
3246 < script src ="https://www.gstatic.com/firebasejs/11.0.0/firebase-auth-compat.js "> </ script >
3347
34- <!-- Config + App -->
3548 < script src ="firebaseConfig.js "> </ script >
3649 < script src ="app.js "> </ script >
3750</ body >
0 commit comments