Fixes n shit

This commit is contained in:
Michał 2022-07-25 20:59:02 +01:00
parent a9ba8669a6
commit 19e945d1cd
14 changed files with 28 additions and 22 deletions

View file

@ -16,8 +16,8 @@
<h2>Account settings</h2> <h2>Account settings</h2>
<?php <?php
if (isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true) { if (isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true) {
echo "<p>Oh hi ".$_SESSION["username"].".</p>"; echo "<p>O hi ".$_SESSION["username"].".</p>";
echo "<a class='btn alert-default space-top' href='https://superdupersecteteuploadtest.fluffybean.gay/logout.php'><img class='svg' src='assets/icons/user-circle.svg'>Logout</a>"; echo "<a class='btn alert-default space-top' href='https://superdupersecteteuploadtest.fluffybean.gay/logout.php'><img class='svg' src='assets/icons/sign-out.svg'>Logout</a>";
} else { } else {
echo "<p class='space-bottom-large'>You must be logged in to change your account settings!</p>"; echo "<p class='space-bottom-large'>You must be logged in to change your account settings!</p>";
echo "<a class='btn alert-high space-top-large' href='https://superdupersecteteuploadtest.fluffybean.gay/signup.php'>Sign up!</a>"; echo "<a class='btn alert-high space-top-large' href='https://superdupersecteteuploadtest.fluffybean.gay/signup.php'>Sign up!</a>";

1
assets/icons/sign-in.svg Normal file
View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="192" height="192" fill="#e8e3e3" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"></rect><polyline points="94 170 136 128 94 86" fill="none" stroke="#e8e3e3" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></polyline><line x1="24" y1="128" x2="136" y2="128" fill="none" stroke="#e8e3e3" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></line><path d="M136,40h56a8,8,0,0,1,8,8V208a8,8,0,0,1-8,8H136" fill="none" stroke="#e8e3e3" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path></svg>

After

Width:  |  Height:  |  Size: 603 B

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="192" height="192" fill="#e8e3e3" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"></rect><polyline points="174 86 216 128 174 170" fill="none" stroke="#e8e3e3" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></polyline><line x1="104" y1="128" x2="216" y2="128" fill="none" stroke="#e8e3e3" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></line><path d="M104,216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8h56" fill="none" stroke="#e8e3e3" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path></svg>

After

Width:  |  Height:  |  Size: 605 B

View file

@ -4,7 +4,7 @@
.account-root { .account-root {
margin: 0 auto 2rem; padding: 0.5rem; margin: 0 auto 2rem; padding: 0.5rem;
max-width: 621px; max-width: 621px; width: calc(100% - 2rem);
background-color: var(--bg); color: var(--fg); background-color: var(--bg); color: var(--fg);

View file

@ -4,11 +4,11 @@
.edit-root { .edit-root {
margin: 0 auto 2rem; padding: 0.5rem; margin: 0 auto 2rem; padding: 0.5rem;
max-width: 621px; max-width: 621px; width: calc(100% - 2rem);
background-color: var(--bg); color: var(--fg); 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); outline: 0.5rem solid var(--bg);
border-radius: var(--rad); border-radius: var(--rad);

View file

@ -20,8 +20,8 @@
.gallery-item { .gallery-item {
margin: 0.5rem; padding: 0; margin: 0.5rem; padding: 0;
max-width: 232.5px; max-height: 232.5px; /*max-width: 232.5px; max-height: 232.5px;*/
height: auto; height: auto; max-width: 315px;
background-color: var(--bg-2); background-color: var(--bg-2);
border-radius: var(--rad); border-radius: var(--rad);

View file

@ -4,7 +4,7 @@
.login-root { .login-root {
margin: 0 auto 2rem; padding: 0.5rem; margin: 0 auto 2rem; padding: 0.5rem;
max-width: 621px; max-width: 621px; width: calc(100% - 2rem);
background-color: var(--bg); color: var(--fg); background-color: var(--bg); color: var(--fg);

View file

@ -47,6 +47,8 @@ html {
background-size: cover; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
background-attachment: fixed; background-attachment: fixed;
scroll-behavior: smooth;
} }
body { body {
margin: 0 auto; padding: 1rem; margin: 0 auto; padding: 1rem;

View file

@ -4,7 +4,7 @@
.signup-root { .signup-root {
margin: 0 auto 2rem; padding: 0.5rem; margin: 0 auto 2rem; padding: 0.5rem;
max-width: 621px; max-width: 621px; width: calc(100% - 2rem);
background-color: var(--bg); color: var(--fg); background-color: var(--bg); color: var(--fg);

View file

@ -4,7 +4,7 @@
.upload-root { .upload-root {
margin: 0 auto 2rem; padding: 0.5rem; margin: 0 auto 2rem; padding: 0.5rem;
max-width: 621px; max-width: 621px; width: calc(100% - 2rem);
background-color: var(--bg); color: var(--fg); background-color: var(--bg); color: var(--fg);

View file

@ -98,7 +98,7 @@
<form class="flex-down between" method="POST" action="login.php" enctype="multipart/form-data"> <form class="flex-down between" method="POST" action="login.php" enctype="multipart/form-data">
<input class="btn alert-default space-bottom" type="text" name="username" placeholder="Username"> <input class="btn alert-default space-bottom" type="text" name="username" placeholder="Username">
<input class="btn alert-default space-bottom-large" type="password" name="password" placeholder="Password"> <input class="btn alert-default space-bottom-large" type="password" name="password" placeholder="Password">
<button class="btn alert-high" type="submit" name="login"><img class="svg" src="assets/icons/user-circle.svg">Login</button> <button class="btn alert-high" type="submit" name="login"><img class="svg" src="assets/icons/sign-in.svg">Login</button>
</form> </form>
<?php <?php
if (isset($error)) { if (isset($error)) {

View file

@ -119,7 +119,7 @@
<input class="btn alert-default space-bottom" type="password" name="password" placeholder="Password"> <input class="btn alert-default space-bottom" type="password" name="password" placeholder="Password">
<input class="btn alert-default space-bottom-large" type="password" name="confirm_password" placeholder="Re-enter Password"> <input class="btn alert-default space-bottom-large" type="password" name="confirm_password" placeholder="Re-enter Password">
<input class="btn alert-default space-bottom-large" type="text" name="invite_code" placeholder="Invite Code"> <input class="btn alert-default space-bottom-large" type="text" name="invite_code" placeholder="Invite Code">
<button class="btn alert-high" type="submit" name="signup">Sign Up</button> <button class="btn alert-high" type="submit" name="signup"><img class="svg" src="assets/icons/sign-in.svg">Sign Up</button>
<?php <?php
if (isset($error)) { if (isset($error)) {
echo "<p class='alert alert-low space-top'>".$error."</p>"; echo "<p class='alert alert-low space-top'>".$error."</p>";
@ -129,7 +129,7 @@
} }
?> ?>
</form> </form>
<a class='btn alert-default space-top-large' href='https://superdupersecteteuploadtest.fluffybean.gay/login.php'>Got an account? Login!</a> <a class='btn alert-default space-top-large' href='https://superdupersecteteuploadtest.fluffybean.gay/login.php'><img class="svg" src="assets/icons/sign-in.svg">Got an account? Login!</a>
</div> </div>
<?php include("ui/footer.php"); ?> <?php include("ui/footer.php"); ?>

View file

@ -1,20 +1,22 @@
<footer class="footer-root flex-left around"> <footer class="footer-root flex-left around">
<div class="footer-child center flex-down"> <div class="footer-child center flex-down">
<h3>Contact me</h3> <h3>Contact me</h3>
<p>Telegram</p> <a href="https://t.me/Fluffy_Bean">Telegram</a>
<p>Twitter</p> <a href="https://twitter.com/fluffybeanUwU">Twitter</a>
<p>Discord</p> <a href="https://discord.com/users/317376266066067459">Discord</a>
<a href="https://github.com/Fluffy-Bean">GitHub</a>
</div> </div>
<!--<div class="footer-child center flex-down"> <div class="footer-child center flex-down">
<h3>Information</h3> <h3>Information</h3>
<p>How to use</p> <p>About</p>
<p>Wiki</p> <p>Usage Information</p>
<p>Guides</p> <p>Guides</p>
</div>--> </div>
<div class="footer-child center flex-down"> <div class="footer-child center flex-down">
<h3>Other</h3> <h3>Other</h3>
<p>AAAAAAAA</p> <p>AAAAAAAA</p>
<p>*Internal screaming*</p> <p>*Internal screaming*</p>
<p>(s)pain</p> <a href="https://gay.fluffybean.gay">My website!</a>
<a href="#">Go back up!</a>
</div> </div>
</footer> </footer>

View file

@ -68,8 +68,8 @@
} }
} else { } else {
$error = "You must be logged in to upload images"; $error = "You must be logged in to upload images";
header("Location: https://superdupersecteteuploadtest.fluffybean.gay");
} }
?> ?>
<div class="upload-root"> <div class="upload-root">