32 lines
1.1 KiB
HTML
32 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Admin</title>
|
|
<link rel="stylesheet" href="/static/css/admin.css">
|
|
</head>
|
|
<body>
|
|
<main>
|
|
<nav>
|
|
<button class="tab-button" id="button-1" onclick="openTab(event, 1)">Image Upload</button>
|
|
<button class="tab-button" id="button-2" onclick="openTab(event, 2)">null</button>
|
|
</nav>
|
|
|
|
<div class="tab-container" id="tab-1">
|
|
<div class="container">
|
|
<h2>Add New Image</h2>
|
|
<form id="imageForm" enctype="multipart/form-data">
|
|
<label for="imageInput">Select Image:</label>
|
|
<input type="file" id="imageInput" name="image" accept="image/*" required><br>
|
|
<button type="submit" style="width: 100%;">Upload</button>
|
|
</form>
|
|
<img id="preview" class="preview" alt="Image Preview">
|
|
</div>
|
|
</div>
|
|
<div class="tab-container" id="tab-2">
|
|
|
|
</div>
|
|
</main>
|
|
<script src="/static/js/admin.js"></script>
|
|
</body>
|
|
</html> |