From b075f58269852a69b4991b59c8260b76a7d1f104 Mon Sep 17 00:00:00 2001 From: ani-kalpachka Date: Sat, 16 Mar 2024 19:14:53 +0200 Subject: [PATCH] Update Partners page styles --- .../admin/partners/Partners.styled.tsx | 2 +- .../admin/partners/PartnersContent.tsx | 52 ++++++++++++------- 2 files changed, 34 insertions(+), 20 deletions(-) diff --git a/src/components/admin/partners/Partners.styled.tsx b/src/components/admin/partners/Partners.styled.tsx index ac98e5e30..7e8be3b35 100644 --- a/src/components/admin/partners/Partners.styled.tsx +++ b/src/components/admin/partners/Partners.styled.tsx @@ -8,7 +8,7 @@ import theme from '../../../common/theme' export const SectionTitle = styled(Typography)(() => ({ fontSize: theme.typography.pxToRem(24), textAlign: 'center', - paddingBottom: theme.spacing(11.5), + paddingBottom: theme.spacing(5), })) export const StyledGrid = styled(Grid)(() => ({ diff --git a/src/components/admin/partners/PartnersContent.tsx b/src/components/admin/partners/PartnersContent.tsx index ba284bdab..1125f8db8 100644 --- a/src/components/admin/partners/PartnersContent.tsx +++ b/src/components/admin/partners/PartnersContent.tsx @@ -7,6 +7,7 @@ import useMobile from '../../../common/hooks/useMobile' import { organizations, partners, mainPartners } from './helpers/partnersData' import { SectionTitle, StyledGrid } from './Partners.styled' import PartnersSlider from './PartnersSlider' +import theme from 'common/theme' const PartnersContent = () => { const LOGO_WIDTH = 181 @@ -18,9 +19,9 @@ const PartnersContent = () => { return ( <> - + {partners.map((partner) => ( - + {t(partner.title)} { {t(el.title)} - {el.items.map((partner, index) => ( - 0 && mobile ? 4 : 0}> - - logo - - - ))} + + {el.items.map((partner, index) => ( + 0 && mobile ? 4 : 0}> + + logo + + + ))} + ))}