From 13705c18863344c38459950e886997cb2c37ee95 Mon Sep 17 00:00:00 2001 From: Toddeh Alexander - MacAir Date: Tue, 30 Apr 2024 14:22:43 -0700 Subject: [PATCH] green upload button on valid upload --- backend/php/css/styles.css | 52 +++++++++----------------------------- backend/php/index.php | 16 +++--------- 2 files changed, 15 insertions(+), 53 deletions(-) diff --git a/backend/php/css/styles.css b/backend/php/css/styles.css index b13aa1b..10fb7e5 100644 --- a/backend/php/css/styles.css +++ b/backend/php/css/styles.css @@ -1,3 +1,4 @@ + /* Common Styles */ nav { background-color: #333; @@ -81,43 +82,6 @@ body { cursor: pointer; } -#upload-button { - background-color: #ccc; - color: white; - padding: 10px 20px; - border: none; - border-radius: 4px; - font-size: 16px; - cursor: default; -} - -#upload-button:enabled { - background-color: #4CAF50; - cursor: pointer; -} - -/* Upload Page Styles */ -#upload-container { - padding: 20px; - text-align: center; - width: 400px; - background-color: white; - box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); - transition: all 0.3s ease-in-out; -} - -#upload-container h2 { - margin-bottom: 20px; -} - -.file-label { - font-size: 16px; -} - -.file-input { - margin-top: 10px; -} - .upload-button { margin-top: 20px; background-color: #ccc; @@ -129,7 +93,15 @@ body { cursor: default; } -.upload-button:disabled { - background-color: #ccc; - cursor: default; +.upload-button.enabled { + background-color: #4CAF50; + cursor: pointer; } + +.file-label { + font-size: 16px; +} + +.file-input { + margin-top: 10px; +} \ No newline at end of file diff --git a/backend/php/index.php b/backend/php/index.php index c88dfb2..c8b35ff 100755 --- a/backend/php/index.php +++ b/backend/php/index.php @@ -1,5 +1,4 @@ query($sql) === TRUE) { - // Redirect the user to the gallery.php page header("Location: gallery.php"); exit(); } else { @@ -46,17 +44,6 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && !empty($_FILES['image']['tmp_name']) Upload Image - -
-

Drag and Drop Images

-

PNG | JPEG | GIF files only

or click to select a file

-
- -
-
-
- -