Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

add missing alts to make SEO better. #865

Merged
merged 1 commit into from
Dec 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/components/Bg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ const StyledBg = styled.img`

interface BgProps {
url: any
alt: string
}

const Bg: React.SFC<BgProps> = ({url}) => (
const Bg = ({url, alt}: BgProps) => (
<div className="row">
<StyledBg src={url} aria-hidden="true" />
<StyledBg src={url} alt={alt}/>
</div>
)

Expand Down
2 changes: 1 addition & 1 deletion src/pages/education.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const EducationPage: React.SFC<{}> = () => (
title="We eliminate tedious workflows."
/>

<Bg url={CollegeStudents} />
<Bg url={CollegeStudents} alt="Students going to the college"/>

<PricingTable
title="Gitpod Education Pricing"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/recruiting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const RecrutingPage: React.SFC<{}> = () => (
title="We create the most convenient dev environments."
/>

<Bg url={RecruitingBG} />
<Bg url={RecruitingBG} alt="A road on Mountains with trees on either side." />

<PricingTable
title="Gitpod Recruiting Pricing"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/vendor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const VendorPage: React.SFC<{}> = () => (
title="We’ll make your developer products shine."
/>

<Bg url={VendorBG} />
<Bg url={VendorBG} alt="A large hall with paintings embeded on it's walls." />

<PricingTable
title="Gitpod Vendor Pricing"
Expand Down