diff --git a/index.php b/index.php index f429958..2ad2cf6 100644 --- a/index.php +++ b/index.php @@ -25,7 +25,6 @@ require_once 'common/strings.php'; require_once 'common/account_utils.php'; require_once 'common/database.php'; -patch_lang('en_UWU'); // Starts the session // TODO: write this to use the database to work across more than one server (e.g. don't use PHP sessions) diff --git a/styles/colours.css b/styles/colours.css index b30b51f..a24dac8 100644 --- a/styles/colours.css +++ b/styles/colours.css @@ -11,7 +11,9 @@ --flax: #efdd8d; --mindaro: #f4fdaf; + --gray-0: #f8f9fa; --grey-5: #adb5bd; + --gray-9: #212529; --red-2: #ffc9c9; --red-3: #ffa8a8; @@ -19,12 +21,18 @@ --red-9: #c92a2a; --link-fg: var(--dark-slate-gray); + --non-color-link-fg: var(--gray-9); + + --hover-bg: var(--gray-1); + --error-fg: var(--red-9); } @media screen and (prefers-color-scheme: dark) { :root { --link-fg: var(--flax); + --non-color-link-fg: var(--gray-0); + --hover-bg: var(--gray-9); --error-fg: var(--red-3); } } diff --git a/styles/dashboard.css b/styles/dashboard.css new file mode 100644 index 0000000..8fc2fc7 --- /dev/null +++ b/styles/dashboard.css @@ -0,0 +1,21 @@ +ul { + list-style: none; + padding: 0; +} + +ul > li + li { + border-top: var(--grey-5) 1px solid; +} + +ul > li > a { + display: flex; + padding: 1rem; + gap: 0.25rem; + + color: var(--non-color-link-fg); + text-decoration: none; +} + +ul > li:hover { + background: var(--hover-bg); +} diff --git a/views/dashboard.php b/views/dashboard.php index fa94c52..0e61b42 100644 --- a/views/dashboard.php +++ b/views/dashboard.php @@ -1,13 +1,36 @@ - <?= get_string('page.dashboard') ?> ~> ByeCorps ID + <?= get_string('page.dashboard') ?> ~> ByeCorps ID +

+
+ +
diff --git a/views/profile.php b/views/profile.php index 0859187..79ea029 100644 --- a/views/profile.php +++ b/views/profile.php @@ -16,14 +16,17 @@ if (is_null($user)) { - -

+
+ +

+ +