From e2f60f601d4559fbda5d7fff2786955164a0ab66 Mon Sep 17 00:00:00 2001 From: HagerDakroury Date: Wed, 15 May 2024 18:15:59 +0300 Subject: [PATCH] refactor: refactor containment Co-authored-by: Mattia Simonato --- .../ui/src/components/Atoms/Container.css | 6 +- .../src/components/Molecules/Breadcrumbs.tsx | 76 +++--- .../ui/src/components/Organisms/Footer.tsx | 8 +- .../ui/src/components/Organisms/Header.tsx | 256 +++++++++--------- .../Organisms/PageContent/BlockCta.tsx | 35 ++- .../Organisms/PageContent/BlockForm.tsx | 38 +-- .../PageContent/BlockHorizontalSeparator.tsx | 8 +- .../Organisms/PageContent/BlockMarkup.tsx | 114 ++++---- .../Organisms/PageContent/BlockMedia.tsx | 18 +- .../Organisms/PageContent/BlockQuote.tsx | 82 +++--- .../src/components/Organisms/PageDisplay.tsx | 104 ++++--- .../ui/src/components/Organisms/PageHero.tsx | 10 +- 12 files changed, 396 insertions(+), 359 deletions(-) diff --git a/packages/ui/src/components/Atoms/Container.css b/packages/ui/src/components/Atoms/Container.css index b30f83468..566f31114 100644 --- a/packages/ui/src/components/Atoms/Container.css +++ b/packages/ui/src/components/Atoms/Container.css @@ -1,13 +1,13 @@ .container-page { - @apply max-w-full px-[1.25rem] md:px-[3.75rem]; + @apply max-w-full px-[1.25rem] md:px-[3.75rem] lg:px-[5rem]; } .container-content { - @apply mx-auto max-w-3xl; + @apply mx-auto max-w-7xl; } .container-text { - @apply max-w-[40.75rem] xl:ml-[11rem] lg:ml-[7rem]; + @apply max-w-3xl mx-auto; } .nested-container .container-page { diff --git a/packages/ui/src/components/Molecules/Breadcrumbs.tsx b/packages/ui/src/components/Molecules/Breadcrumbs.tsx index 27232e13b..431291137 100644 --- a/packages/ui/src/components/Molecules/Breadcrumbs.tsx +++ b/packages/ui/src/components/Molecules/Breadcrumbs.tsx @@ -6,7 +6,7 @@ import React from 'react'; import { isTruthy } from '../../utils/isTruthy'; import { useBreadcrumbs } from '../Routes/Menu'; -export function BreadCrumbs({ className }: { className?: string }) { +export function BreadCrumbs() { const breadcrumbs = useBreadcrumbs(); if (!breadcrumbs.length) { @@ -14,41 +14,43 @@ export function BreadCrumbs({ className }: { className?: string }) { } return ( - +
+ +
); } diff --git a/packages/ui/src/components/Organisms/Footer.tsx b/packages/ui/src/components/Organisms/Footer.tsx index c41d751be..73dc34bdf 100644 --- a/packages/ui/src/components/Organisms/Footer.tsx +++ b/packages/ui/src/components/Organisms/Footer.tsx @@ -21,11 +21,13 @@ export function Footer() { return (