Gallery front

This commit is contained in:
Djeex
2025-08-16 10:29:51 +02:00
parent 41450837f2
commit 1b0b228273
17 changed files with 535 additions and 9 deletions

39
src/webui/index.html Normal file
View File

@ -0,0 +1,39 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Photo WebUI</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style/style.css') }}">
</head>
<body>
<h1>Photo WebUI</h1>
<div class="toolbar">
<button onclick="refreshGallery()">🔄 Refresh Gallery</button>
<button onclick="refreshHero()">🔄 Refresh Hero</button>
<button onclick="saveChanges()">💾 Save Changes</button>
</div>
<!-- Gallery Upload Section -->
<div class="upload-section">
<h2>Gallery</h2>
<label>
Upload Image:
<input type="file" id="upload-gallery" accept=".png,.jpg,.jpeg,.webp">
</label>
<div id="gallery"></div>
</div>
<!-- Hero Upload Section -->
<div class="upload-section">
<h2>Hero</h2>
<label>
Upload Image:
<input type="file" id="upload-hero" accept=".png,.jpg,.jpeg,.webp">
</label>
<div id="hero"></div>
</div>
<script src="{{ url_for('static', filename='js/main.js') }}"></script>
<script src="{{ url_for('static', filename='js/upload.js') }}"></script>
</body>
</html>