From 1cfe610ce2307cde26830c2808ea6571175ac9ac Mon Sep 17 00:00:00 2001 From: Alec Swanson Date: Mon, 9 May 2022 12:47:04 -0700 Subject: [PATCH] fix: logo centering on various browser widths * CSS Grid was causing the logo to get pushed around by the dashboard screenshot * This moves it to being absolutely positioned --- src/components/LandingBanner/index.js | 53 ++++++++++++++++----------- 1 file changed, 32 insertions(+), 21 deletions(-) diff --git a/src/components/LandingBanner/index.js b/src/components/LandingBanner/index.js index fe593603..252109f8 100644 --- a/src/components/LandingBanner/index.js +++ b/src/components/LandingBanner/index.js @@ -67,7 +67,7 @@ const LandingBanner = ({ quickstart, className, location }) => { grid-column-gap: 1rem; grid-row-gap: 1rem; grid-template-areas: - 'breadcrumbs logo .' + 'breadcrumbs . .' 'title title image' 'summ summ image' 'cta . image'; @@ -99,28 +99,36 @@ const LandingBanner = ({ quickstart, className, location }) => { {quickstart.logoUrl && (
- {quickstart.title} + > + {quickstart.title} +
)}

{ grid-area: image; align-self: start; margin: 0 auto 1rem; + padding-top: 1rem; @media (max-width: ${IMAGE_DISPLAY_BREAKPOINT}) { display: none; @@ -173,7 +182,8 @@ const LandingBanner = ({ quickstart, className, location }) => { css={css` border: 28px solid #000000; border-radius: 26px; - height: 250px; + height: 251.44px; + max-width: 447px; `} /> @@ -195,7 +205,8 @@ const LandingBanner = ({ quickstart, className, location }) => { }; LandingBanner.propTypes = { - quickstarts: quickstart.isRequired, + quickstart: quickstart.isRequired, + className: PropTypes.string, location: PropTypes.object.isRequired, };