()
| 8 | import styles from "./index.module.css"; |
| 9 | |
| 10 | function HomepageHeader() { |
| 11 | const { siteConfig } = useDocusaurusContext(); |
| 12 | return ( |
| 13 | <header className={clsx("hero hero--primary", styles.heroBanner)}> |
| 14 | <div className="container"> |
| 15 | <h1 className="hero__title">{siteConfig.title}</h1> |
| 16 | <p className="hero__subtitle">{siteConfig.tagline}</p> |
| 17 | <div className={styles.buttons}> |
| 18 | <Link className="button button--secondary button--lg" to="/docs"> |
| 19 | 开始学习 |
| 20 | </Link> |
| 21 | </div> |
| 22 | </div> |
| 23 | </header> |
| 24 | ); |
| 25 | } |
| 26 | |
| 27 | export default function Home(): JSX.Element { |
| 28 | const { siteConfig } = useDocusaurusContext(); |
nothing calls this directly
no outgoing calls
no test coverage detected