From 8d90c02747fd37b52632cd81f690c30c19ac9647 Mon Sep 17 00:00:00 2001 From: Bruce B Date: Fri, 27 May 2022 01:52:49 -0700 Subject: [PATCH] fix(a11y):add main landmark to super block intro (#46168) --- .../Introduction/super-block-intro.tsx | 98 ++++++++++--------- 1 file changed, 50 insertions(+), 48 deletions(-) diff --git a/client/src/templates/Introduction/super-block-intro.tsx b/client/src/templates/Introduction/super-block-intro.tsx index 00c1dee08ab..c4fc0f6ef49 100644 --- a/client/src/templates/Introduction/super-block-intro.tsx +++ b/client/src/templates/Introduction/super-block-intro.tsx @@ -193,57 +193,59 @@ const SuperBlockIntroductionPage = (props: SuperBlockProp) => { {i18nTitle} | freeCodeCamp.org - - - - - - -

- {t(`intro:misc-text.courses`)} -

- -
- {defaultCurriculumNames.map(blockDashedName => ( - - node.challenge.block === blockDashedName - )} - superBlock={superBlock} - /> - - ))} - {superBlock !== SuperBlocks.CodingInterviewPrep && ( +
+ + + + + + +

+ {t(`intro:misc-text.courses`)} +

+ +
+ {defaultCurriculumNames.map(blockDashedName => ( + + node.challenge.block === blockDashedName + )} + superBlock={superBlock} + /> + + ))} + {superBlock !== SuperBlocks.CodingInterviewPrep && ( +
+ +
+ )} +
+ {!isSignedIn && !signInLoading && (
- + + {t('buttons.logged-out-cta-btn')}
)} -
- {!isSignedIn && !signInLoading && ( -
- - {t('buttons.logged-out-cta-btn')} -
- )} - -

- {t(`intro:misc-text.browse-other`)} -

- - - - -
+ +

+ {t(`intro:misc-text.browse-other`)} +

+ + + + + +