From f69691bc20005db13d59d7d0b534f4d6593f7be9 Mon Sep 17 00:00:00 2001 From: amgno Date: Tue, 24 Sep 2024 19:30:13 +0200 Subject: [PATCH] new swag widget --- admin.html | 95 +++++++++++++++++++++++++++++++++++++++++++++++++---- admin.js | 6 +++- projects.js | 14 +------- 3 files changed, 95 insertions(+), 20 deletions(-) diff --git a/admin.html b/admin.html index de8d7c1..56e0c09 100644 --- a/admin.html +++ b/admin.html @@ -214,6 +214,84 @@ #image-upload-area.highlight { background-color: #f0f0f0; } + + /* Add these styles to the existing @@ -247,12 +325,17 @@

Projects Management


-
-

Image Management

-
-
-

Drag and drop images here or click to select files

- +
+
+

IMG MNG

+ +
+
+
+
+

Drag and drop images here or click to select files

+ +
diff --git a/admin.js b/admin.js index d5d6513..2e7a0c5 100644 --- a/admin.js +++ b/admin.js @@ -220,7 +220,11 @@ function showImageManagement(index) { imagePreview.appendChild(imgElement); }); - document.getElementById('image-management').style.display = 'block'; + document.getElementById('image-management-widget').style.display = 'block'; +} + +function closeImageManagement() { + document.getElementById('image-management-widget').style.display = 'none'; } function deleteImage(imgIndex) { diff --git a/projects.js b/projects.js index 55c7150..ee9c727 100644 --- a/projects.js +++ b/projects.js @@ -16,7 +16,7 @@ const projects = [ "name": "limitazione", "description": "Booklet made for Typographic Design at University, a guidebook to check if a coin is fake", "ptype": "Booklet", - "tools": "AI PS IN", + "tools": "Illustrator Photoshop InDesign", "date": "1st smst 2y // 2023", "bgcolor": "#0b5394", "images": [], @@ -82,17 +82,5 @@ const projects = [ "/works/06 - Rolli di Genova/images/tote3.png" ], "bgcolor": "#590202" - }, - { - "number": "07", - "name": "New Project", - "description": "", - "ptype": "", - "tools": "", - "date": "", - "images": [], - "pdf": "", - "video": "", - "bgcolor": "" } ]; \ No newline at end of file