From 4eab2fea733de8f188455a9a79f88d41d229b41f Mon Sep 17 00:00:00 2001 From: TheCatLady <52870424+TheCatLady@users.noreply.github.com> Date: Wed, 23 Jun 2021 03:38:07 -0400 Subject: [PATCH] refactor(ui): tweak styling of sidebar & user profile quota display (#1823) * refactor(ui): tweak styling of sidebar & user profile quota display * refactor(ui): adjust sidebar gradient to match theme color Co-authored-by: sct --- src/components/Layout/Sidebar/index.tsx | 14 +++++++------- src/components/Layout/index.tsx | 1 + src/components/UserProfile/index.tsx | 12 ++++++------ src/styles/globals.css | 2 +- 4 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/components/Layout/Sidebar/index.tsx b/src/components/Layout/Sidebar/index.tsx index bc6da8722e..183838a486 100644 --- a/src/components/Layout/Sidebar/index.tsx +++ b/src/components/Layout/Sidebar/index.tsx @@ -139,13 +139,13 @@ const Sidebar: React.FC = ({ open, setClosed }) => { }} role="button" tabIndex={0} - className={`flex items-center px-2 py-2 text-base leading-6 font-medium rounded-md text-white focus:outline-none focus:bg-gray-700 transition ease-in-out duration-150 + className={`flex items-center px-2 py-2 text-base leading-6 font-medium rounded-md text-white focus:outline-none transition ease-in-out duration-150 ${ router.pathname.match( sidebarLink.activeRegExp ) - ? 'bg-gradient-to-br from-indigo-600 to-purple-600' - : '' + ? 'bg-gradient-to-br from-indigo-600 to-purple-600 hover:from-indigo-500 hover:to-purple-500' + : 'hover:bg-gray-700 focus:bg-gray-700' } `} > @@ -174,7 +174,7 @@ const Sidebar: React.FC = ({ open, setClosed }) => { -
+
@@ -198,13 +198,13 @@ const Sidebar: React.FC = ({ open, setClosed }) => { as={sidebarLink.as} > diff --git a/src/components/Layout/index.tsx b/src/components/Layout/index.tsx index ecf9566a10..ba6cabf15e 100644 --- a/src/components/Layout/index.tsx +++ b/src/components/Layout/index.tsx @@ -46,6 +46,7 @@ const Layout: React.FC = ({ children }) => { return (
+
diff --git a/src/components/UserProfile/index.tsx b/src/components/UserProfile/index.tsx index 378006e344..80131ae49d 100644 --- a/src/components/UserProfile/index.tsx +++ b/src/components/UserProfile/index.tsx @@ -99,7 +99,7 @@ const UserProfile: React.FC = () => {
-
+
{intl.formatMessage(messages.totalrequests)}
@@ -115,11 +115,11 @@ const UserProfile: React.FC = () => { } sm:p-6`} >
- {quota.tv.limit + {quota.movie.limit ? intl.formatMessage(messages.pastdays, { type: intl.formatMessage(messages.movierequests), days: quota?.movie.days, @@ -159,7 +159,7 @@ const UserProfile: React.FC = () => {
) : ( - + {intl.formatMessage(messages.unlimited)} )} @@ -174,7 +174,7 @@ const UserProfile: React.FC = () => { } sm:p-6`} >
@@ -218,7 +218,7 @@ const UserProfile: React.FC = () => {
) : ( - + {intl.formatMessage(messages.unlimited)} )} diff --git a/src/styles/globals.css b/src/styles/globals.css index 0671d385a1..e7829896cf 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -22,7 +22,7 @@ body { @apply border-r border-gray-700; padding-top: env(safe-area-inset-top); padding-left: env(safe-area-inset-left); - background: linear-gradient(180deg, #232a36 0%, #131928 100%); + background: linear-gradient(180deg, rgba(31, 41, 55, 1) 0%, #131928 100%); } .slideover {