MCPcopy
hub / github.com/CodecWang/opencv-python-tutorial / HomepageHeader

Function HomepageHeader

src/pages/index.tsx:10–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8import styles from "./index.module.css";
9
10function 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
27export default function Home(): JSX.Element {
28 const { siteConfig } = useDocusaurusContext();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected