From d0afc5c8aaad644b00e9f3bbbb256df99e523436 Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Wed, 7 Sep 2022 18:19:17 +0000 Subject: [PATCH] Footer and image tidy tidy --- about.php | 24 +++++++++++++++++++----- css/main.css | 13 ------------- css/scss/_footer.scss | 3 --- image.php | 23 ++++++++++++----------- ui/footer.php | 13 +------------ 5 files changed, 32 insertions(+), 44 deletions(-) diff --git a/about.php b/about.php index 3f7ce90..c7312a7 100644 --- a/about.php +++ b/about.php @@ -13,19 +13,19 @@ ?>
-

What is Fluffys Amazing Gallery?

-

Fluffys Amazing Gallery is a smol project I originally started to control the images on my main page, but quickly turned into something much bigger...

+

What is this?

+

This Gallery is a smol project I originally started to control the images on my main page, but quickly turned into something much bigger...

What Do I want this to become in the future? No clue, but I do want this to be usable by others, if its a file they download a docker image they setup on your own web server.

Will it become that any time soon? No, but. I am going to work on this untill it becomes what I want it to be!


-

Can you add "A" or "B"?

+

Can you add "A" or "B"?

No.


-

How do I use this!

+

How do I use this!

First you must obtain the invite code. If you don't have one and are interested in trying this, feel free to DM me on Telegram!

But once you're done doing that, you can start making your account at the signup page here.

From there you should be able to go and login at this fancy page here!

@@ -33,7 +33,21 @@
-

Credits!

+

Where to find me

+ + + My website! + + + + Telegram + + + + Twitter + + +

Credits!

To Carty for being super cool again and helping me get started with SQL and PHP!

To Phosphor for providing nice SVG icons.

To mrHDash...

diff --git a/css/main.css b/css/main.css index d975b66..a2d88c4 100644 --- a/css/main.css +++ b/css/main.css @@ -666,26 +666,13 @@ nav .btn { |------------------------------------------------------------- */ footer { - margin-bottom: 1rem; - padding: 0.5rem; - width: calc(100% - 1.4rem); - background-color: #151515; - color: #E8E3E3; - border-radius: 0rem; - border: 0.2rem solid #8C977D; - box-shadow: 6px 6px 2px rgba(21, 21, 21, 0.5333333333); display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-around; margin: 0 auto; - bottom: 0; width: calc(100% - 1.4rem); } -footer > * { - margin-top: 0; - margin-bottom: 0.5rem; -} footer p { margin: 0 0.5rem; text-decoration: none; diff --git a/css/scss/_footer.scss b/css/scss/_footer.scss index dac9c4a..0f8ff7e 100644 --- a/css/scss/_footer.scss +++ b/css/scss/_footer.scss @@ -4,13 +4,10 @@ |------------------------------------------------------------- */ footer { - @include defaultDecoration($page-accent); @include flexLeft(space-around); margin: 0 auto; - bottom: 0; - width: calc(100% - 1.4rem); p { diff --git a/image.php b/image.php index bec212c..7fde9df 100644 --- a/image.php +++ b/image.php @@ -88,7 +88,7 @@ |------------------------------------------------------------- */ if (isset($image['imagename'])) { - $image_path = "images/" . $image['imagename']; + $image_path = "images/".$image['imagename']; $image_alt = $image['alt']; } else { $image_path = "assets/no_image.png"; @@ -148,32 +148,33 @@

Details

Author: " . $image_author . "

"; + echo "

Author: ".$image_author."

"; // Image ID - echo "

ID: " . $image['id'] . "

"; + echo "

ID: ".$image['id']."

"; // File name + $image_pathinfo = pathinfo($image['imagename']); if (strlen($image['imagename']) > 30) { - echo "

File Name: " . substr($image['imagename'], 0, 30) . "...

"; + echo "

File Name: ".substr($image_pathinfo['filename'], 0, 30)."...

"; } else { - echo "

File Name: " . $image['imagename'] . "

"; + echo "

File Name: ".$image_pathinfo['filename']."

"; } // File extention - echo "

File Type: " . pathinfo($image['imagename'], PATHINFO_EXTENSION) . "

"; + echo "

File Type: ".pathinfo($image['imagename'], PATHINFO_EXTENSION)."

"; // Image resolution list($width, $height) = getimagesize($image_path); - echo "

Image resolution: " . $width . "x" . $height . "

"; + echo "

Image resolution: ".$width."x".$height."

"; // Image Upload date - echo "

Last updated: +0 " . $image['upload'] . "

"; + echo "

Last updated: +0 ".$image['upload']."

"; echo "
"; // Image download - echo "Download image"; + echo "Download image"; // Copy image ?> @@ -198,9 +199,9 @@ $image_tags_array = explode(" ", $image['tags']); foreach ($image_tags_array as $tag) { if ($tag == "nsfw") { - echo "

" . $tag . "

"; + echo "

".$tag."

"; } else { - echo "

" . $tag . "

"; + echo "

".$tag."

"; } } } else { diff --git a/ui/footer.php b/ui/footer.php index be8d452..0814a39 100644 --- a/ui/footer.php +++ b/ui/footer.php @@ -1,12 +1,4 @@