-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDoubts.html
53 lines (50 loc) · 2.05 KB
/
Doubts.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Doubt's</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>
<body>
<header>
<nav>
<a href="index.html">Home</a>
<a href="profile.html">Profile</a>
<button id="sign-out" style="display:none;">Sign Out</button>
</nav>
</header>
<main>
<section id="post-section">
<h2>Create Post</h2>
<input type="text" id="display-name" placeholder="Display Name">
<textarea id="post-content" placeholder="What's on your mind?"></textarea>
<button id="submit-post">Submit Post</button>
<div id="message" style="display:none;"></div>
</section>
<section id="post-list">
<!-- Posts will be dynamically loaded here -->
</section>
</main>
<!-- Login/Signup Modal -->
<div id="auth-modal" class="modal">
<div class="modal-content">
<span class="close">×</span>
<h2>Log In / Sign Up</h2>
<div id="auth-form">
<input type="email" id="modal-email" placeholder="Email">
<input type="password" id="modal-password" placeholder="Password">
<button id="modal-sign-in">Log In</button>
<button id="modal-sign-up">Sign Up</button>
</div>
</div>
</div>
<!-- Firebase App (the core Firebase SDK) -->
<script src="https://www.gstatic.com/firebasejs/9.22.2/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/9.22.2/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/9.22.2/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/9.22.2/firebase-analytics.js"></script>
<script type="module" src="scripts.js" defer></script>
</body>
</html>