pages/forum/index.html
2025-04-15 15:17:17 -04:00

30 lines
746 B
HTML

<script>
if (!localStorage.getItem('loggedInUser')) {
window.location.href = "auth.html";
}
</script>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MilkNet Forum</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="auth-container">
<h1>MilkNet Forum</h1>
<!-- Forum Post Section -->
<div id="new-thread">
<textarea id="post-content" placeholder="Write your post..."></textarea>
<input type="file" id="image-upload">
<button onclick="uploadImage()">Upload</button>
<button onclick="submitPost()">Post</button>
</div>
<script src="script.js"></script>
</body>
</html>