From 19e945d1cdfe62a8ff78b1378d1725c9c8576679 Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Mon, 25 Jul 2022 20:59:02 +0100 Subject: [PATCH] Fixes n shit --- account.php | 4 ++-- assets/icons/sign-in.svg | 1 + assets/icons/sign-out.svg | 1 + css/account.css | 2 +- css/edit.css | 4 ++-- css/gallery.css | 4 ++-- css/login.css | 2 +- css/master.css | 2 ++ css/signup.css | 2 +- css/upload.css | 2 +- login.php | 2 +- signup.php | 4 ++-- ui/footer.php | 18 ++++++++++-------- upload.php | 2 +- 14 files changed, 28 insertions(+), 22 deletions(-) create mode 100644 assets/icons/sign-in.svg create mode 100644 assets/icons/sign-out.svg diff --git a/account.php b/account.php index 066f950..37f9f52 100644 --- a/account.php +++ b/account.php @@ -16,8 +16,8 @@

Account settings

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

"; - echo "Logout"; + echo "

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

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

You must be logged in to change your account settings!

"; echo "Sign up!"; diff --git a/assets/icons/sign-in.svg b/assets/icons/sign-in.svg new file mode 100644 index 0000000..8371df8 --- /dev/null +++ b/assets/icons/sign-in.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/icons/sign-out.svg b/assets/icons/sign-out.svg new file mode 100644 index 0000000..e4415c5 --- /dev/null +++ b/assets/icons/sign-out.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/css/account.css b/css/account.css index 29d5685..e9563c7 100644 --- a/css/account.css +++ b/css/account.css @@ -4,7 +4,7 @@ .account-root { margin: 0 auto 2rem; padding: 0.5rem; - max-width: 621px; + max-width: 621px; width: calc(100% - 2rem); background-color: var(--bg); color: var(--fg); diff --git a/css/edit.css b/css/edit.css index fcede8f..334d671 100644 --- a/css/edit.css +++ b/css/edit.css @@ -4,11 +4,11 @@ .edit-root { margin: 0 auto 2rem; padding: 0.5rem; - max-width: 621px; + max-width: 621px; width: calc(100% - 2rem); background-color: var(--bg); color: var(--fg); - border: 0.2rem solid var(--green); + border: 0.2rem solid var(--red); outline: 0.5rem solid var(--bg); border-radius: var(--rad); diff --git a/css/gallery.css b/css/gallery.css index cdd58d4..cabb3ce 100644 --- a/css/gallery.css +++ b/css/gallery.css @@ -20,8 +20,8 @@ .gallery-item { margin: 0.5rem; padding: 0; - max-width: 232.5px; max-height: 232.5px; - height: auto; + /*max-width: 232.5px; max-height: 232.5px;*/ + height: auto; max-width: 315px; background-color: var(--bg-2); border-radius: var(--rad); diff --git a/css/login.css b/css/login.css index b783b79..6f7eb9b 100644 --- a/css/login.css +++ b/css/login.css @@ -4,7 +4,7 @@ .login-root { margin: 0 auto 2rem; padding: 0.5rem; - max-width: 621px; + max-width: 621px; width: calc(100% - 2rem); background-color: var(--bg); color: var(--fg); diff --git a/css/master.css b/css/master.css index ebf9cea..c3e4cac 100644 --- a/css/master.css +++ b/css/master.css @@ -47,6 +47,8 @@ html { background-size: cover; background-repeat: no-repeat; background-attachment: fixed; + + scroll-behavior: smooth; } body { margin: 0 auto; padding: 1rem; diff --git a/css/signup.css b/css/signup.css index 8df0670..a412804 100644 --- a/css/signup.css +++ b/css/signup.css @@ -4,7 +4,7 @@ .signup-root { margin: 0 auto 2rem; padding: 0.5rem; - max-width: 621px; + max-width: 621px; width: calc(100% - 2rem); background-color: var(--bg); color: var(--fg); diff --git a/css/upload.css b/css/upload.css index 4e487e3..cb6f32c 100644 --- a/css/upload.css +++ b/css/upload.css @@ -4,7 +4,7 @@ .upload-root { margin: 0 auto 2rem; padding: 0.5rem; - max-width: 621px; + max-width: 621px; width: calc(100% - 2rem); background-color: var(--bg); color: var(--fg); diff --git a/login.php b/login.php index f9a509c..9606b64 100644 --- a/login.php +++ b/login.php @@ -98,7 +98,7 @@
- +
- + ".$error."

"; @@ -129,7 +129,7 @@ } ?> - Got an account? Login! + Got an account? Login! diff --git a/ui/footer.php b/ui/footer.php index 142871f..8f64a21 100644 --- a/ui/footer.php +++ b/ui/footer.php @@ -1,20 +1,22 @@ diff --git a/upload.php b/upload.php index a674eae..272b296 100644 --- a/upload.php +++ b/upload.php @@ -68,8 +68,8 @@ } } else { $error = "You must be logged in to upload images"; + header("Location: https://superdupersecteteuploadtest.fluffybean.gay"); } - ?>