From 1345f996da5b72c58e516bcf9fc8f8625028fc4f Mon Sep 17 00:00:00 2001 From: Prospector <6166773+Prospector@users.noreply.github.com> Date: Mon, 17 Jan 2022 20:49:10 -0800 Subject: [PATCH] Rework user dropdown, redo mobile navigation, improve 'home' page (#342) * Merge * Mobile Navigation + home page fixes * Remove debug line * Fix "More" menu text --- assets/images/sidebar/home.svg | 4 + assets/styles/components.scss | 2 +- assets/styles/global.scss | 5 +- layouts/default.vue | 790 ++++++++++++++++++--------------- pages/index.vue | 27 +- 5 files changed, 470 insertions(+), 358 deletions(-) create mode 100644 assets/images/sidebar/home.svg diff --git a/assets/images/sidebar/home.svg b/assets/images/sidebar/home.svg new file mode 100644 index 000000000..a6b2e3807 --- /dev/null +++ b/assets/images/sidebar/home.svg @@ -0,0 +1,4 @@ + + + + diff --git a/assets/styles/components.scss b/assets/styles/components.scss index 01d8d29e1..9cb66f847 100644 --- a/assets/styles/components.scss +++ b/assets/styles/components.scss @@ -509,7 +509,7 @@ label { -webkit-tap-highlight-color: transparent; cursor: pointer; &:focus { - outline: 0; + //outline: 0; Bad for accessibility } } diff --git a/assets/styles/global.scss b/assets/styles/global.scss index eec93e252..0f95ccf67 100644 --- a/assets/styles/global.scss +++ b/assets/styles/global.scss @@ -188,6 +188,7 @@ body { --size-rounded-tooltip: 0.25rem; --size-navbar-height: 3.5rem; + --size-mobile-navbar-height: 4rem; --spacing-card-lg: 1.5rem; --spacing-card-bg: 1rem; @@ -258,7 +259,7 @@ textarea { &:hover:not([disabled]) { background: var(--color-button-bg-hover); color: var(--color-text); - outline: none; + //outline: none; Bad for accessibility &::placeholder { color: var(--color-text); @@ -296,7 +297,7 @@ textarea { button { padding: 0.5rem 0; - outline: none; + //outline: none; Bad for accessibility color: var(--color-button-text); background-color: var(--color-button-bg); border: none; diff --git a/layouts/default.vue b/layouts/default.vue index 4588b1b7c..df9e0722c 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -4,16 +4,10 @@ - - - - - - - + @@ -47,93 +41,155 @@ {{ $user.notifications.length }} - - - - Change theme - - - - - - {{ $auth.user.username }} - - + + + + - - - - - - Profile - - - - - - Settings - - - - - - Notifications - - - - - - Create project - - - - - - Moderation - - - - - - - - Change theme - - - - - - Log out - - - - - + + + + + @{{ $auth.user.username }} + Go to my profile + + + + + + + + Create a project + + + + + + + Notifications + + + + + + Settings + + + + + + Moderation + + + + + + + Change theme + + + + + + + Log out + + + - Sign In with GitHub + + Sign in with GitHub + + + + Home + + + + Mods + + + + Modpacks + + + + {{ isMobileMenuOpen ? 'Less' : 'More' }} + + + + + + + + @{{ $auth.user.username }} + Go to my profile + + + + + Log out + + + + Create a project + + + + Settings + + + + Moderation + + + + Notifications + + + + + Change theme + + + + Sign in with GitHub + + @@ -165,7 +221,7 @@ Legal Terms Privacy - Content + Rules