Better UI

This commit is contained in:
Djeex
2025-08-16 16:30:56 +02:00
parent 97645b06fa
commit 73a0dd0ce6
3 changed files with 82 additions and 49 deletions

View File

@ -12,21 +12,13 @@
<div id="toast-container"></div>
<h1>Photo WebUI</h1>
<!-- Toolbar with refresh and save buttons -->
<!--
<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" multiple>
</label>
<div id="gallery"></div>
</div>
-->
<!-- Hero Upload Section -->
<div class="upload-section">
@ -37,6 +29,16 @@
</label>
<div id="hero"></div>
</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" multiple>
</label>
<div id="gallery"></div>
</div>
<!-- JS files for rendering, uploading, and actions -->
<script src="{{ url_for('static', filename='js/main.js') }}"></script>