Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
enhance accessibilty and seo for hero section
Browse files Browse the repository at this point in the history
  • Loading branch information
sohaibchebah committed Aug 15, 2024
1 parent 67730bf commit a8f5b88
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/components/Hero.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
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 warning on line 2 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

Prop `className` must be placed on a new line

Check warning on line 2 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

Prop `className` must be placed on a new line

Check warning on line 2 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

Prop `className` must be placed on a new line

Check warning on line 2 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

Prop `className` must be placed on a new line

Check warning on line 2 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

Prop `className` must be placed on a new line
<div>
<h1 className="font-Lexend text-4xl md:text-5xl text-center text-lightSlate leading-tight tracking-tight">
<h1
id="hero-heading"
className="font-Lexend text-4xl md:text-5xl text-center text-lightSlate leading-tight tracking-tight"

Check failure on line 6 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

Props should be sorted alphabetically

Check failure on line 6 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

Props should be sorted alphabetically

Check failure on line 6 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

Props should be sorted alphabetically

Check failure on line 6 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

Props should be sorted alphabetically

Check failure on line 6 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

Props should be sorted alphabetically
>
{`Find `}

<span className="bg-gradient-to-r from-gradFirst via-gradMiddle to-gradLast bg-clip-text text-transparent">
<span

Check warning on line 9 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

JSX element should start in a new line

Check warning on line 9 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

JSX element should start in a new line

Check warning on line 9 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

JSX element should start in a new line

Check warning on line 9 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

JSX element should start in a new line

Check warning on line 9 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

JSX element should start in a new line
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 11 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

Props should be sorted alphabetically

Check failure on line 11 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

Props should be sorted alphabetically

Check failure on line 11 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

Props should be sorted alphabetically

Check failure on line 11 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

Props should be sorted alphabetically

Check failure on line 11 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

Props should be sorted alphabetically
>
Open-Source Repositories
</span>

<br />

Check warning on line 15 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

JSX element should start in a new line

Check warning on line 15 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

JSX element should start in a new line

Check warning on line 15 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

JSX element should start in a new line

Check warning on line 15 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

JSX element should start in a new line

Check warning on line 15 in src/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / Code standards

JSX element should start in a new line
trending today.
</h1>
</div>
</div>
</section>
);

export default Hero;

0 comments on commit a8f5b88

Please sign in to comment.