From 4dbcdae2b3cf702d256d3ca1ccdefc0bbad3f134 Mon Sep 17 00:00:00 2001 From: Rupin Khandelwal Date: Fri, 18 Nov 2022 15:55:46 -0300 Subject: [PATCH] fixing any layout issues reported and found --- .../templates/landing/LandingSection.tsx | 3 +++ .../landing/LandingSectionsContainer.tsx | 27 ++++++++++--------- packages/web/pages/about.tsx | 1 - 3 files changed, 18 insertions(+), 13 deletions(-) diff --git a/packages/web/components/templates/landing/LandingSection.tsx b/packages/web/components/templates/landing/LandingSection.tsx index 78164c8cf..a1df02ebf 100644 --- a/packages/web/components/templates/landing/LandingSection.tsx +++ b/packages/web/components/templates/landing/LandingSection.tsx @@ -49,6 +49,9 @@ const descriptionTextStyles = { const imageContainerStyles = { width: '50%', alignSelf: 'center', + '@mdDown': { + width: '100%', + }, } const layoutStyles = { diff --git a/packages/web/components/templates/landing/LandingSectionsContainer.tsx b/packages/web/components/templates/landing/LandingSectionsContainer.tsx index 5b4f7f5f2..262622be0 100644 --- a/packages/web/components/templates/landing/LandingSectionsContainer.tsx +++ b/packages/web/components/templates/landing/LandingSectionsContainer.tsx @@ -106,7 +106,8 @@ const callToActionStyles = { '0px 7px 8px rgba(32, 31, 29, 0.03), 0px 18px 24px rgba(32, 31, 29, 0.03)', padding: 40, marginTop: 64, - height: 330, + minheight: 330, + width: 'inherit', // '@mdDown': { // display: 'none', // }, @@ -124,7 +125,9 @@ const callToActionText = { fontSize: 64, lineHeight: '70px', textAlign: 'center', - maxWidth: 500, + padding: '20px', + + // maxWidth: 500, } // const underlineIconStyles = { @@ -154,7 +157,7 @@ export function LandingSectionsContainer({ css={{ display: 'flex', justifyContent: 'center', - margin: '40px', + // margin: '40px', '@mdDown': { margin: '0 0 10px 0', }, @@ -185,7 +188,7 @@ export function LandingSectionsContainer({ srcSet="/static/landing/landingPage-2.png" alt="landing-2" style={{ maxHeight: 400 }} - sizes="auto 50vw" + // sizes="auto 50vw" /> } // icon={ @@ -213,8 +216,8 @@ export function LandingSectionsContainer({ landing-3 } // icon={} @@ -236,7 +239,7 @@ export function LandingSectionsContainer({ srcSet="/static/landing/landingPage-4.png" alt="landing-4" style={{ maxHeight: 400, width: '100%' }} - sizes="auto 50vw" + // sizes="auto 50vw" /> } // icon={} @@ -257,7 +260,7 @@ export function LandingSectionsContainer({ srcSet="/static/landing/landingPage-5.png" alt="landing-5" style={{ maxHeight: 400 }} - sizes="auto 50vw" + // sizes="auto 50vw" /> } // icon={} @@ -279,8 +282,8 @@ export function LandingSectionsContainer({ landing-6 } // icon={} @@ -298,8 +301,8 @@ export function LandingSectionsContainer({ landing-7 } // icon={} diff --git a/packages/web/pages/about.tsx b/packages/web/pages/about.tsx index c7ec5d013..c0dd858bb 100644 --- a/packages/web/pages/about.tsx +++ b/packages/web/pages/about.tsx @@ -10,7 +10,6 @@ const mobileContainerStyles = { alignSelf: 'center', marginTop: 80, maxWidth: 960, - px: '2vw', '@md': { px: '6vw',