Mobile-friendly UI: hamburger nav, responsive layouts, restyle login/admin pages, fix iOS upload

This commit is contained in:
Georges Haddad
2026-04-10 16:50:15 +03:00
parent 61b9c23803
commit 7e1e0ac426
8 changed files with 391 additions and 80 deletions
+4 -4
View File
@@ -23,12 +23,12 @@
<div class="upload-card">
<form id="uploadForm" action="/upload" method="post" enctype="multipart/form-data">
<div class="drop-zone" id="dropZone">
<input type="file" name="files" id="fileInput" multiple accept=".jpg,.jpeg,.png,.webp,.pdf" class="file-input">
<label for="fileInput" class="drop-zone" id="dropZone">
<div class="drop-icon">📄</div>
<p class="drop-text">اسحب الملفات هنا أو انقر للاختيار</p>
<p class="drop-hint">JPG، PNG، PDF — يمكن رفع عدة ملفات دفعة واحدة</p>
<input type="file" name="files" id="fileInput" multiple accept=".jpg,.jpeg,.png,.webp,.pdf" class="file-input">
</div>
</label>
<div id="fileList" class="file-list hidden"></div>
@@ -77,7 +77,7 @@ const fileInput = document.getElementById('fileInput');
const fileList = document.getElementById('fileList');
const uploadActions = document.getElementById('uploadActions');
dropZone.addEventListener('click', () => fileInput.click());
// label[for] natively triggers the file input on all platforms including iOS
dropZone.addEventListener('dragover', e => {
e.preventDefault();