From 44a3469b9b974f188019ba4c37d2966452171371 Mon Sep 17 00:00:00 2001 From: Sudeep MP Date: Thu, 26 Sep 2024 16:14:34 +0100 Subject: [PATCH] =?UTF-8?q?style:=20enhance=20FAQ=20container=20styling=20?= =?UTF-8?q?and=20adjust=20layout=20for=20customer=20s=E2=80=A6=20(#5999)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * style: enhance FAQ container styling and adjust layout for customer stories fixed the button casing faq layout shift issue due to parent flex centered * style: add dark theme support to WorkspaceLocked styles * refactor: moved inline styles to class --- .../WorkspaceLocked.styles.scss | 29 +++++++++++++++++++ .../pages/WorkspaceLocked/WorkspaceLocked.tsx | 28 +++++++++++++----- 2 files changed, 50 insertions(+), 7 deletions(-) diff --git a/frontend/src/pages/WorkspaceLocked/WorkspaceLocked.styles.scss b/frontend/src/pages/WorkspaceLocked/WorkspaceLocked.styles.scss index 131601bfb0..d2317c8c68 100644 --- a/frontend/src/pages/WorkspaceLocked/WorkspaceLocked.styles.scss +++ b/frontend/src/pages/WorkspaceLocked/WorkspaceLocked.styles.scss @@ -1,4 +1,5 @@ $light-theme: 'lightMode'; +$dark-theme: 'darkMode'; @keyframes gradientFlow { 0% { @@ -147,6 +148,34 @@ $light-theme: 'lightMode'; animation: gradientFlow 24s ease infinite; margin-bottom: 18px; } + + &__faq-container { + width: 100%; + + .ant-collapse, + .ant-collapse-item, + .ant-collapse-content-active { + .#{$dark-theme} & { + border-color: var(--bg-slate-400); + } + } + } + + &__customer-stories { + &__left-container, + &__right-container { + display: flex; + flex-direction: column; + } + + &__left-container { + align-items: flex-end; + } + + &__right-container { + align-items: flex-start; + } + } } .contact-us { diff --git a/frontend/src/pages/WorkspaceLocked/WorkspaceLocked.tsx b/frontend/src/pages/WorkspaceLocked/WorkspaceLocked.tsx index 84d977ae81..052d8dcbc5 100644 --- a/frontend/src/pages/WorkspaceLocked/WorkspaceLocked.tsx +++ b/frontend/src/pages/WorkspaceLocked/WorkspaceLocked.tsx @@ -187,8 +187,18 @@ export default function WorkspaceBlocked(): JSX.Element { children: ( {/* #FIXME: please suggest if there is any better way to loop in different columns to get the masonry layout */} - {renderCustomerStories((index) => index % 2 === 0)} - {renderCustomerStories((index) => index % 2 !== 0)} + + {renderCustomerStories((index) => index % 2 === 0)} + + + {renderCustomerStories((index) => index % 2 !== 0)} + {isAdmin && ( @@ -218,8 +228,12 @@ export default function WorkspaceBlocked(): JSX.Element { label: t('faqs'), children: ( - - + + {isAdmin && ( @@ -340,9 +354,9 @@ export default function WorkspaceBlocked(): JSX.Element { )} - +
- +
)}