Skip to content

Commit 8428502

Browse files
authored
docs: move header section to main (typescript-eslint#7122)
* fix: move header section to main * refactor: change the header tag to div
1 parent 79b177a commit 8428502

File tree

1 file changed

+25
-20
lines changed

1 file changed

+25
-20
lines changed

packages/website/src/pages/index.tsx

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -134,28 +134,33 @@ function Home(): React.JSX.Element {
134134
const { siteConfig } = useDocusaurusContext();
135135
return (
136136
<Layout description={`${siteConfig.tagline}`}>
137-
<header className={clsx('hero hero--dark', styles.hero)}>
138-
<div className="container">
139-
<img alt="" className={styles.hero__logo} src="/img/logo.svg" />
140-
<h1 className="hero__title">{siteConfig.title}</h1>
141-
<p className="hero__subtitle">{siteConfig.tagline}</p>
142-
<div className={styles.buttons}>
143-
<Link
144-
className="button button--primary"
145-
to={useBaseUrl('getting-started')}
146-
>
147-
Get Started
148-
</Link>
149-
<Link
150-
className="button button--secondary button--outline"
151-
to={useBaseUrl('play/')}
152-
>
153-
Playground
154-
</Link>
137+
<main>
138+
<div className={clsx('hero hero--dark', styles.hero)}>
139+
<div className="container">
140+
<img
141+
alt="Hero Logo"
142+
className={styles.hero__logo}
143+
src="/img/logo.svg"
144+
/>
145+
<h1 className="hero__title">{siteConfig.title}</h1>
146+
<p className="hero__subtitle">{siteConfig.tagline}</p>
147+
<div className={styles.buttons}>
148+
<Link
149+
className="button button--primary"
150+
to={useBaseUrl('getting-started')}
151+
>
152+
Get Started
153+
</Link>
154+
<Link
155+
className="button button--secondary button--outline"
156+
to={useBaseUrl('play/')}
157+
>
158+
Playground
159+
</Link>
160+
</div>
155161
</div>
156162
</div>
157-
</header>
158-
<main>
163+
159164
{features.map((props, idx) => (
160165
<section
161166
key={idx}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy