Changed file structure to align with the recommendations given by https://github.com/golang-standards/project-layout
This commit is contained in:
32
website/templates/admin.html
Normal file
32
website/templates/admin.html
Normal file
@@ -0,0 +1,32 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user