File tree 1 file changed +10
-6
lines changed
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -7,19 +7,23 @@ import styles from "./index.module.css";
7
7
import HomepageFeatures from "../components/HomepageFeatures" ;
8
8
import LogoUrl from "@site/static/img/logo.png" ;
9
9
import UwuLogoUrl from "@site/static/img/uwulogo.png" ;
10
+ import BrowserOnly from "@docusaurus/BrowserOnly" ;
10
11
11
12
function HomepageHeader ( ) {
12
13
const { siteConfig } = useDocusaurusContext ( ) ;
13
- const uwu = window . location . search . includes ( "uwu" ) ;
14
14
15
15
return (
16
16
< header className = { clsx ( "hero hero--primary" , styles . heroBanner ) } >
17
17
< div className = "container" >
18
- { uwu ? (
19
- < img alt = "OC uwu logo" src = { UwuLogoUrl } />
20
- ) : (
21
- < h1 className = "hero__title" > { siteConfig . title } </ h1 >
22
- ) }
18
+ < BrowserOnly >
19
+ { ( ) =>
20
+ window . location . search . includes ( "uwu" ) ? (
21
+ < img alt = "OC uwu logo" src = { UwuLogoUrl } />
22
+ ) : (
23
+ < h1 className = "hero__title" > { siteConfig . title } </ h1 >
24
+ )
25
+ }
26
+ </ BrowserOnly >
23
27
< p className = "hero__subtitle" > { siteConfig . tagline } </ p >
24
28
< div className = { styles . buttons } >
25
29
< Link
You can’t perform that action at this time.
0 commit comments