File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 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";
77import HomepageFeatures from "../components/HomepageFeatures" ;
88import LogoUrl from "@site/static/img/logo.png" ;
99import UwuLogoUrl from "@site/static/img/uwulogo.png" ;
10+ import BrowserOnly from "@docusaurus/BrowserOnly" ;
1011
1112function HomepageHeader ( ) {
1213 const { siteConfig } = useDocusaurusContext ( ) ;
13- const uwu = window . location . search . includes ( "uwu" ) ;
1414
1515 return (
1616 < header className = { clsx ( "hero hero--primary" , styles . heroBanner ) } >
1717 < 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 >
2327 < p className = "hero__subtitle" > { siteConfig . tagline } </ p >
2428 < div className = { styles . buttons } >
2529 < Link
You can’t perform that action at this time.
0 commit comments