From 8517a0692c7bb0e563209cb2ad7a5c3bae10e77d Mon Sep 17 00:00:00 2001 From: William Lima Date: Wed, 13 Dec 2023 11:40:18 -0100 Subject: [PATCH] #139 fix PR issues filters and alignment --- .../_shared/image_header/ImageHeader.tsx | 43 +++++++++++-------- components/organization/MainOptions.tsx | 4 +- components/search/FiltersBar.tsx | 8 ++-- components/search/NewForm.tsx | 2 +- components/search/filters/FilterCarousel.tsx | 14 +++--- pages/[org]/index.tsx | 2 +- pages/search.tsx | 4 +- styles/globals.css | 13 +++++- 8 files changed, 53 insertions(+), 37 deletions(-) diff --git a/components/_shared/image_header/ImageHeader.tsx b/components/_shared/image_header/ImageHeader.tsx index c22b547..e21afc9 100644 --- a/components/_shared/image_header/ImageHeader.tsx +++ b/components/_shared/image_header/ImageHeader.tsx @@ -32,19 +32,20 @@ const ImageHeader: React.FC = ({ return ( <> -
+
-
+
{`${title}`} = ({
-
+
{/* 5rem (ml) + 5rem (body padding) = 10rem*/}
@@ -89,7 +94,7 @@ const ImageHeader: React.FC = ({

{children} @@ -97,7 +102,7 @@ const ImageHeader: React.FC = ({

-
+
= ({
{children?.length > 0 && (
-

{t('og-h-sub')}

+

+ {t('og-h-sub')} +

)} diff --git a/components/search/FiltersBar.tsx b/components/search/FiltersBar.tsx index dc0c93f..53c8cb3 100644 --- a/components/search/FiltersBar.tsx +++ b/components/search/FiltersBar.tsx @@ -284,7 +284,7 @@ export default function FiltersBar({
-
+
= ({ onSwiper={(instance) => setSwiper(instance)} breakpoints={{ 1: { + slidesPerView: 1, + slidesPerGroup: 1, + }, + 460: { slidesPerView: 2, slidesPerGroup: 2, }, - 460: { + 720: { slidesPerView: 3, slidesPerGroup: 3, }, - 720: { - slidesPerView: 5, - slidesPerGroup: 5, - }, 1200: { - slidesPerView: 5, - slidesPerGroup: 5, + slidesPerView: 4, + slidesPerGroup: 4, }, 1280: { slidesPerView: 6, diff --git a/pages/[org]/index.tsx b/pages/[org]/index.tsx index 76fb762..a8c7d96 100644 --- a/pages/[org]/index.tsx +++ b/pages/[org]/index.tsx @@ -72,7 +72,7 @@ const Organization: React.FC = ({ variables }) => { {`${t('organization')} | ${t('title')}`} -
+
= ({ variables }) => { }} />
-
+

{amount}{' '} @@ -103,7 +103,7 @@ const Search: React.FC = ({ variables }) => { />

-
+