-
-
Notifications
You must be signed in to change notification settings - Fork 148
feat: enhance accessibilty and seo for hero section #529
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
@@ -1,18 +1,24 @@ | ||||
const Hero = () => ( | ||||
<div className="flex flex-col py-24 items-center mx-2.5"> | ||||
<section | ||||
aria-labelledby="hero-heading" | ||||
className="flex flex-col py-24 items-center mx-2.5"> | ||||
Check failure on line 4 in src/components/Hero.tsx GitHub Actions / Code standards
Check failure on line 4 in src/components/Hero.tsx GitHub Actions / Code standards
Check failure on line 4 in src/components/Hero.tsx GitHub Actions / Code standards
Check failure on line 4 in src/components/Hero.tsx GitHub Actions / Code standards
Check failure on line 4 in src/components/Hero.tsx GitHub Actions / Code standards
Check failure on line 4 in src/components/Hero.tsx GitHub Actions / Code standards
|
||||
<div> | ||||
<h1 className="font-Lexend text-4xl md:text-5xl text-center text-lightSlate leading-tight tracking-tight"> | ||||
<h1 | ||||
className="font-Lexend text-4xl md:text-5xl text-center text-lightSlate leading-tight tracking-tight" | ||||
id="hero-heading" | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. refactor (blocking): not required base on comment above.
Suggested change
|
||||
> | ||||
{`Find `} | ||||
|
||||
<span className="bg-gradient-to-r from-gradFirst via-gradMiddle to-gradLast bg-clip-text text-transparent"> | ||||
<span | ||||
Check warning on line 11 in src/components/Hero.tsx GitHub Actions / Code standards
Check warning on line 11 in src/components/Hero.tsx GitHub Actions / Code standards
Check warning on line 11 in src/components/Hero.tsx GitHub Actions / Code standards
Check warning on line 11 in src/components/Hero.tsx GitHub Actions / Code standards
Check warning on line 11 in src/components/Hero.tsx GitHub Actions / Code standards
Check warning on line 11 in src/components/Hero.tsx GitHub Actions / Code standards
|
||||
className="bg-gradient-to-r from-gradFirst via-gradMiddle to-gradLast bg-clip-text text-transparent" | ||||
aria-label="Open-Source Repositories" | ||||
Check failure on line 13 in src/components/Hero.tsx GitHub Actions / Code standards
Check failure on line 13 in src/components/Hero.tsx GitHub Actions / Code standards
Check failure on line 13 in src/components/Hero.tsx GitHub Actions / Code standards
Check failure on line 13 in src/components/Hero.tsx GitHub Actions / Code standards
Check failure on line 13 in src/components/Hero.tsx GitHub Actions / Code standards
Check failure on line 13 in src/components/Hero.tsx GitHub Actions / Code standards
|
||||
> | ||||
Open-Source Repositories | ||||
</span> | ||||
|
||||
<br /> | ||||
Check warning on line 17 in src/components/Hero.tsx GitHub Actions / Code standards
Check warning on line 17 in src/components/Hero.tsx GitHub Actions / Code standards
Check warning on line 17 in src/components/Hero.tsx GitHub Actions / Code standards
Check warning on line 17 in src/components/Hero.tsx GitHub Actions / Code standards
Check warning on line 17 in src/components/Hero.tsx GitHub Actions / Code standards
Check warning on line 17 in src/components/Hero.tsx GitHub Actions / Code standards
|
||||
trending today. | ||||
</h1> | ||||
</div> | ||||
</div> | ||||
</section> | ||||
); | ||||
|
||||
export default Hero; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refactor (blocking): assistive technologies know how to pick up the header within the section, so no need for aria.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks a lot for the information 😊