From 0d9687e836c50a8ef4824bad66fd0141f5e9b5f5 Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Thu, 28 Jul 2022 22:18:14 +0100 Subject: [PATCH] testing displaying image tags --- account/account.php | 19 +++++++++++-------- css/master.css | 22 +++++++++++++++++++++- image.php | 25 +++++++++++++++++++++++-- ui/header.php | 2 +- 4 files changed, 56 insertions(+), 12 deletions(-) diff --git a/account/account.php b/account/account.php index 33c3ac8..672f38c 100644 --- a/account/account.php +++ b/account/account.php @@ -21,20 +21,23 @@ if (isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true) { echo "

O hi ".$_SESSION["username"].".

"; - // Reset password - echo "Reset Password"; - - // Logout - echo "Logout"; - // Join code if ($_SESSION["id"] == 1) { - echo "

Invite Code

"; + echo "

Invite Codes

"; $token_request = mysqli_query($conn, "SELECT * FROM tokens WHERE used = 0"); while ($token = mysqli_fetch_array($token_request)) { - echo "

".$token['code']."

"; + echo "

".$token['code']."

"; } } + + echo "

Danger ahead

"; + // Reset password + echo "

Resetting your password regularly is a good way of keeping your account safe

"; + echo "Reset Password"; + + // Logout + echo "

Don't leave! I'm with the science team!

"; + echo "Logout"; } else { echo "

You must be logged in to change your account settings!

"; echo "Login!"; diff --git a/css/master.css b/css/master.css index aff9dd1..2bb2af6 100644 --- a/css/master.css +++ b/css/master.css @@ -227,6 +227,19 @@ body { border: 0.2rem solid var(--red); } +.tags-root { + border: 0.2rem solid var(--green); +} +.tag { + margin: 0.25rem; padding: 0.5rem; + + display: block; + + border-radius: var(--rad); +} +.tag::before { + content: '#'; +} /* -=-=-= UNIVERSAL =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */ @@ -250,6 +263,14 @@ body { text-align: center; } +.space-bottom-small { + margin-bottom: 0.5rem; + margin-top: 0; +} +.space-top-small { + margin-top: 0.5rem; + margin-bottom: 0; +} .space-bottom { margin-bottom: 1rem; margin-top: 0; @@ -283,7 +304,6 @@ body { text-decoration: none; - background-color: var(--black); border: none; border-radius: var(--rad); } diff --git a/image.php b/image.php index d5a0e26..c4092a7 100644 --- a/image.php +++ b/image.php @@ -68,7 +68,7 @@

Description

".$image_alt."

"; } else { echo "

No description provided

"; @@ -108,6 +108,27 @@ ?> +
+

Tags

+
+ ".$tag."

"; + } + ?> +
+
+ "; // Edit image button - echo "Modify image content"; + echo "Modify image content"; echo ""; } ?> diff --git a/ui/header.php b/ui/header.php index 222c33e..9f316e8 100644 --- a/ui/header.php +++ b/ui/header.php @@ -10,7 +10,7 @@ if (is_dir("assets/icons/")) {