File tree Expand file tree Collapse file tree 3 files changed +19
-17
lines changed
Expand file tree Collapse file tree 3 files changed +19
-17
lines changed Original file line number Diff line number Diff line change 1+ import clsx from "clsx" ;
2+ import Heading from "@theme/Heading" ;
3+ import styles from "../css/index.module.css" ;
4+ import useDocusaurusContext from "@docusaurus/useDocusaurusContext" ;
5+
6+ export function HomepageHeader ( ) {
7+ const { siteConfig } = useDocusaurusContext ( ) ;
8+ return (
9+ < header className = { clsx ( "hero hero--primary" , styles . heroBanner ) } >
10+ < div className = "container" >
11+ < Heading as = "h1" className = "hero__title" >
12+ { siteConfig . title }
13+ </ Heading >
14+ < p className = "hero__subtitle" > { siteConfig . tagline } </ p >
15+ </ div >
16+ </ header >
17+ ) ;
18+ }
File renamed without changes.
Original file line number Diff line number Diff line change 11import type { ReactNode } from "react" ;
2- import clsx from "clsx" ;
32import useDocusaurusContext from "@docusaurus/useDocusaurusContext" ;
43import Layout from "@theme/Layout" ;
5- import Heading from "@theme/Heading" ;
6- import styles from "./index.module.css" ;
7-
8- function HomepageHeader ( ) {
9- const { siteConfig } = useDocusaurusContext ( ) ;
10- return (
11- < header className = { clsx ( "hero hero--primary" , styles . heroBanner ) } >
12- < div className = "container" >
13- < Heading as = "h1" className = "hero__title" >
14- { siteConfig . title }
15- </ Heading >
16- < p className = "hero__subtitle" > { siteConfig . tagline } </ p >
17- </ div >
18- </ header >
19- ) ;
20- }
4+ import { HomepageHeader } from "../components/HomepageHeader" ;
215
226export default function Home ( ) : ReactNode {
237 const { siteConfig } = useDocusaurusContext ( ) ;
You can’t perform that action at this time.
0 commit comments