Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make "we are more than... green squares" slogan accessible #164

Closed
wants to merge 18 commits into from
Closed
39 changes: 19 additions & 20 deletions components/sections/home-page/GitHubMock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,26 @@ const GitHubMock: FC<GitHubMockProps> = ({ moreHeading, topFeature }) => {
return (
<SectionWrapper pbs={100}>
<div className="flex pb-16 px-10 tablet:px-0 items-center justify-center largeTablet:pb-14">
<div>
<p className="text-textPrimary font-inter font-bold text-[2.375rem] leading-[3.625rem] largeTablet:text-5xl largeTablet:leading-[4.5rem]">
+ <p>
+ <span className="block text-textPrimary font-inter font-bold text-[2.375rem] leading-[3.625rem] largeTablet:text-5xl largeTablet:leading-[4.5rem]">
We are
</p>
<p className="font-inter font-bold pl-16 tablet:pl-20 text-[3.25rem] leading-none largeTablet:text-8xl">
<DecoratedText content="$orange-to-yellowmore" />
</p>
<p className="font-inter font-bold pl-32 tablet:pl-40 tracking-[-0.03em] text-[4.25rem] leading-none largeTablet:text-9xl">
<DecoratedText content="$orange-to-yellowthan..." />
</p>
</div>
</div>
<div className="pb-16 largeTablet:pb-52">
{isLargeTablet ? (
<Image alt="Green Squares text" src={GreenSquares} />
) : (
<Image alt="Green Squares text" src={GreenSquaresSmall} />
)}
</div>
</span>
+ <span className="block font-inter font-bold pl-16 tablet:pl-20 text-[3.25rem] leading-none + largeTablet:text-8xl">
+ <DecoratedText content="$orange-to-yellowmore" />
+ </span>
+ <span className="block font-inter font-bold pl-32 tablet:pl-40 tracking-[-0.03em] text-[4.+ 25rem] leading-none largeTablet:text-9xl">
+ <DecoratedText content="$orange-to-yellowthan..." />
+ </span>
+ <span className="sr-only">green squares</span>
+ </p>
+ </div>
+ <div className="pb-16 largeTablet:pb-52">
+ {isLargeTablet ? (
+ <Image alt="" src={GreenSquares} />
+ ) : (
+ <Image alt="" src={GreenSquaresSmall} />
+ )}
+ </div>
<div className="pb-10 largeTablet:pb-44">
<h2 className="text-center text-2xl font-bold font-inter largeTablet:text-5xl">
<DecoratedText content={moreHeading[0] || ''} />
Expand Down Expand Up @@ -87,7 +88,5 @@ const GitHubMock: FC<GitHubMockProps> = ({ moreHeading, topFeature }) => {
</div>
</div>
</SectionWrapper>
)
CBID2 marked this conversation as resolved.
Show resolved Hide resolved
CBID2 marked this conversation as resolved.
Show resolved Hide resolved
}

export default GitHubMock