diff --git a/account.php b/account.php
index 4d72e7e..e3efe7d 100644
--- a/account.php
+++ b/account.php
@@ -16,13 +16,72 @@
$user_info = new Account();
$diff = new Diff();
+
+ $profile_info = $user_info->get_user_info($conn, $_SESSION['id']);
?>
is_loggedin()) {
?>
+
-
Settings
+
Account Settings
Reset Password
diff --git a/app/account/account.php b/app/account/account.php
index 62260cd..b426306 100644
--- a/app/account/account.php
+++ b/app/account/account.php
@@ -758,4 +758,72 @@ if (isset($_POST['account_delete_submit'])) {
+
+
+
+
+
+
+
+
+
+ * {
+ margin-top: 0;
+ margin-bottom: 0.5rem;
+}
+.profile-settings h1,
+.profile-settings h2,
+.profile-settings h3,
+.profile-settings h4,
+.profile-settings h5 {
+ font-family: "Lexend Deca", sans-serif;
+ text-rendering: optimizeLegibility;
+}
+.profile-settings p,
+.profile-settings a,
+.profile-settings button,
+.profile-settings input {
+ font-family: "Secular One", sans-serif;
+ text-rendering: optimizeLegibility;
+}
+
+.pfp-upload {
+ margin-bottom: 0;
+ display: flex;
+ flex-direction: row;
+}
+.pfp-upload > img {
+ margin-left: 1rem;
+ width: 7.25rem;
+ height: 7.25rem;
+ -o-object-fit: cover;
+ object-fit: cover;
+ border-radius: calc(0.3rem - (0.5rem + 3px));
+ background-color: #121212;
+}
+
.account-root {
margin-bottom: 1rem;
padding: 0.5rem 0.5rem 0 0.5rem;
diff --git a/css/main.scss b/css/main.scss
index abd85d3..bf58976 100644
--- a/css/main.scss
+++ b/css/main.scss
@@ -131,7 +131,7 @@ form {
width: 100%;
box-sizing: content-box;
- >* {
+ & > * {
margin-bottom: 0.5rem;
}
}
diff --git a/css/scss/_body.scss b/css/scss/_body.scss
index 0197549..5f81035 100644
--- a/css/scss/_body.scss
+++ b/css/scss/_body.scss
@@ -214,9 +214,9 @@
}
button {
- width: 1.75rem; height: 1.75rem;
-
padding: 0;
+
+ width: 2rem; height: 2rem;
position: absolute;
top: 1.25rem;
@@ -288,9 +288,7 @@
}
.preview-button {
- width: 1.5rem;
-
- padding: 0;
+ width: 2rem; height: 2rem;
position: absolute;
bottom: 0.5rem;
@@ -299,22 +297,14 @@
display: block;
box-sizing: border-box;
- font-size: 14px;
- font-weight: 500;
- font-family: $font-body;
-
- text-decoration: none;
-
border: none;
- border-radius: calc($rad - 0.5rem);
+ border-radius: $rad;
transition: outline 0.1s cubic-bezier(.19, 1, .22, 1);
background-color: $black;
- opacity: 0.8;
-
- box-shadow: $shadow;
+ z-index: +2;
img {
width: 1.5rem;
@@ -497,6 +487,30 @@
| ACCOUNT
|-------------------------------------------------------------
*/
+.profile-settings {
+ @include defaultDecoration($page-accent);
+ @include defaultFont();
+}
+.pfp-upload {
+ margin-bottom: 0;
+
+ display: flex;
+ flex-direction: row;
+
+ & > img {
+ margin-left: 1rem;
+
+ width: 7.25rem;
+ height: 7.25rem;
+
+ object-fit: cover;
+
+ border-radius: calc($rad - (0.5rem + 3px));
+
+ background-color: $black;
+ }
+}
+
.account-root {
@include defaultDecoration($page-accent);
@include defaultFont();
diff --git a/profile.php b/profile.php
index 5e5def9..1b728e2 100644
--- a/profile.php
+++ b/profile.php
@@ -32,8 +32,12 @@
";
+ } else {
+ echo "

";
+ }
?>
-
is_admin($conn, $user['id'])) echo "
Admin
"; ?>