-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.html
More file actions
68 lines (61 loc) · 2.55 KB
/
admin.html
File metadata and controls
68 lines (61 loc) · 2.55 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
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WebManizu Admin</title>
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<header>
<h1>Admin Dashboard</h1>
<div class="social-links">
<a href="index.html">Back to Gallery</a>
<a href="#" id="logoutBtn" style="display:none;">Logout</a>
</div>
</header>
<main class="admin-container">
<!-- Login Section -->
<div id="loginSection" class="glass-panel">
<h2>Login</h2>
<form id="loginForm">
<input type="text" id="username" placeholder="Username" required>
<input type="password" id="password" placeholder="Password" required>
<button type="submit">Login</button>
</form>
<p id="loginError" style="color: #cf6679; display: none;"></p>
</div>
<!-- Dashboard Section (Hidden by default) -->
<div id="dashboardSection" style="display:none;">
<div class="glass-panel">
<h2>Upload New Photo</h2>
<form id="uploadForm">
<select id="typeSelect">
<option value="file">File Upload</option>
<option value="link">Image URL</option>
<option value="video">Video URL</option>
<option value="site">Website Link</option>
</select>
<div id="fileInputContainer">
<input type="file" id="fileInput" accept="image/*,video/*" multiple>
</div>
<div id="urlInputContainer" style="display:none;">
<input type="url" id="urlInput" placeholder="Enter URL...">
</div>
<input type="text" id="titleInput" placeholder="Title / Description">
<button type="submit">Upload</button>
</form>
<p id="uploadStatus"></p>
</div>
<div class="glass-panel">
<h3>Manage Photos</h3>
<div class="gallery-grid" id="adminGallery">
<!-- Admin view of gallery with delete buttons -->
</div>
<div class="pagination" id="adminPagination"></div>
</div>
</div>
</main>
<script src="assets/js/admin.js"></script>
</body>
</html>