|
1 | | -import type {ReactNode} from 'react'; |
2 | | -import clsx from 'clsx'; |
3 | | -import Link from '@docusaurus/Link'; |
4 | | -import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; |
5 | | -import Layout from '@theme/Layout'; |
6 | | -import Heading from '@theme/Heading'; |
| 1 | +import type { ReactNode } from "react"; |
| 2 | +import clsx from "clsx"; |
| 3 | +import Link from "@docusaurus/Link"; |
| 4 | +import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; |
| 5 | +import Layout from "@theme/Layout"; |
| 6 | +import Heading from "@theme/Heading"; |
7 | 7 |
|
8 | | -import styles from './index.module.css'; |
| 8 | +import styles from "./index.module.css"; |
9 | 9 |
|
10 | 10 | function HomepageHeader() { |
11 | | - const {siteConfig} = useDocusaurusContext(); |
| 11 | + const { siteConfig } = useDocusaurusContext(); |
12 | 12 | return ( |
13 | | - <header className={clsx('hero hero--primary', styles.heroBanner)}> |
| 13 | + <header className={clsx("hero hero--primary", styles.heroBanner)}> |
14 | 14 | <div className="container"> |
15 | 15 | <Heading as="h1" className="hero__title"> |
16 | 16 | {siteConfig.title} |
17 | 17 | </Heading> |
18 | 18 | <p className="hero__subtitle">{siteConfig.tagline}</p> |
19 | | - <div className={styles.buttons}> |
20 | | - <Link |
21 | | - className="button button--secondary button--lg" |
22 | | - to="/docs/intro"> |
23 | | - Docusaurus Tutorial - 5min ⏱️ |
24 | | - </Link> |
25 | | - </div> |
26 | 19 | </div> |
27 | 20 | </header> |
28 | 21 | ); |
29 | 22 | } |
30 | 23 |
|
31 | 24 | export default function Home(): ReactNode { |
32 | | - const {siteConfig} = useDocusaurusContext(); |
| 25 | + const { siteConfig } = useDocusaurusContext(); |
33 | 26 | return ( |
34 | 27 | <Layout |
35 | 28 | title={`Hello from ${siteConfig.title}`} |
36 | | - description="Description will go into a meta tag in <head />"> |
| 29 | + description="Description will go into a meta tag in <head />" |
| 30 | + > |
37 | 31 | <HomepageHeader /> |
38 | | - <main> |
39 | | - |
40 | | - </main> |
| 32 | + <main></main> |
41 | 33 | </Layout> |
42 | 34 | ); |
43 | 35 | } |
0 commit comments