diff --git a/Flyout/flyout.css b/Flyout/flyout.css
index 3d240c2..d1eb7f8 100644
--- a/Flyout/flyout.css
+++ b/Flyout/flyout.css
@@ -49,6 +49,9 @@
margin: 0 0 0.5rem 0;
max-height: 8rem;
overflow-y: auto;
+
+ font-family: 'Secular One',
+ sans-serif;
}
.flyout-actionbox {
diff --git a/app/image/upload_image.php b/app/image/upload_image.php
index ce68bc1..c0a2551 100644
--- a/app/image/upload_image.php
+++ b/app/image/upload_image.php
@@ -32,11 +32,11 @@ if (isset($_POST['submit'])) {
$image_thumbnail->resizeImage(300,null,null,1,null);
$image_thumbnail->writeImage($thumb_dir.$image_basename);
} catch (Exception $e) {
- echo "
+ ?>
- ";
+
- ";
+
- ";
+
- ";
+
- ";
+
- ";
+
\ No newline at end of file
diff --git a/css/main.css b/css/main.css
index 50f7d00..abee157 100644
--- a/css/main.css
+++ b/css/main.css
@@ -221,6 +221,38 @@ nav .btn {
filter: blur(10px);
}
+.nsfw-warning {
+ width: 100%;
+ height: 100%;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ position: absolute;
+ z-index: 5;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ text-decoration: none;
+ font-family: "Secular One", sans-serif;
+}
+.nsfw-warning span {
+ color: #B66467;
+ text-align: center;
+ text-shadow: 0 0 2px #151515;
+}
+.nsfw-warning img {
+ margin: 0.25rem;
+ width: 2rem;
+ height: 2rem;
+}
+
+@media (max-width: 500px) {
+ .nsfw-warning span {
+ display: none;
+ }
+}
/*
|-------------------------------------------------------------
| IMAGE
diff --git a/css/scss/_body.scss b/css/scss/_body.scss
index 8b3bd3a..ee98b2e 100644
--- a/css/scss/_body.scss
+++ b/css/scss/_body.scss
@@ -98,6 +98,46 @@
.nsfw-blur {
filter: blur(10px);
}
+.nsfw-warning {
+ width: 100%;
+ height: 100%;
+
+ top: 0;
+ bottom: 0;
+ left: 0;
+ right: 0;
+
+ position: absolute;
+ z-index: 5;
+
+ display: flex; flex-direction: column;
+ justify-content: center;
+ align-items: center;
+
+ text-decoration: none;
+ font-family: $font-body;
+
+ span {
+ color: $red;
+
+ text-align: center;
+ text-shadow: 0 0 2px $black;
+ }
+ img {
+ margin: 0.25rem;
+
+ width: 2rem;
+ height: 2rem;
+ }
+}
+
+@media (max-width: 500px) {
+ .nsfw-warning {
+ span {
+ display: none;
+ }
+ }
+}
/*
|-------------------------------------------------------------
| IMAGE
diff --git a/index.php b/index.php
index 30b407d..a12aea2 100644
--- a/index.php
+++ b/index.php
@@ -109,12 +109,15 @@ include "ui/nav.php";
// Check for NSFW tag
if (str_contains($image['tags'], "nsfw")) {
$image_nsfw = "nsfw-blur";
+ $nsfw_warning = "This image contains NSFW material";
} else {
$image_nsfw = "";
+ $nsfw_warning = "";
}
// Image loading
echo "
";
+ echo $nsfw_warning;
echo "
";
echo "
";
}