-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupload.html
More file actions
86 lines (76 loc) · 3.68 KB
/
upload.html
File metadata and controls
86 lines (76 loc) · 3.68 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NoteVault</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav class="navbar">
<div class="logo">📚 NoteVault</div>
<div class="nav-links" id="nav-links">
<a href="index.html">Home</a>
<a href="upload.html">Upload Notes</a>
<a href="profile.html" id="nav-profile-link" class="btn-secondary">Hello, User</a>
</div>
<div class="nav-controls">
<button id="theme-toggle" aria-label="Toggle Dark Mode">🌙</button>
<button id="mobile-menu-btn" class="mobile-menu-btn" aria-label="Toggle Mobile Menu">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<line x1="3" y1="12" x2="21" y2="12"></line>
<line x1="3" y1="6" x2="21" y2="6"></line>
<line x1="3" y1="18" x2="21" y2="18"></line>
</svg>
</button>
</div>
</nav>
<main class="container">
<header class="page-header center-header">
<h1>Upload a New Note</h1>
<p>Share your knowledge by uploading study material.</p>
</header>
<section class="upload-section">
<form id="upload-form" class="card upload-card">
<div class="form-group">
<label for="note-title">Note Title</label>
<input type="text" id="note-title" required placeholder="e.g., Chapter 1: Introduction">
</div>
<div class="form-row">
<div class="form-group">
<label for="note-class">Class</label>
<select id="note-class" required>
<option value="" disabled selected>Select Class</option>
<!-- Classes populated dynamically -->
</select>
</div>
<div class="form-group">
<label for="note-subject">Subject</label>
<select id="note-subject" required disabled>
<option value="" disabled selected>Select Subject</option>
<!-- Subjects populated dynamically -->
</select>
</div>
</div>
<div class="form-group">
<label for="note-file" class="file-upload-label">
<div class="file-upload-zone">
<span class="upload-icon">📄</span>
<span id="file-name-display">Click to select a PDF file</span>
<input type="file" id="note-file" accept="application/pdf" required class="hidden-input">
</div>
</label>
</div>
<button type="submit" class="btn-primary w-100">Upload Note</button>
<div id="upload-status" class="status-msg hidden"></div>
</form>
</section>
</main>
<!-- Supabase -->
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
<script src="supabase.js"></script>
<script src="script.js"></script>
</body>
</html>