File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import Link from "@docusaurus/Link" ;
2- import { useColorMode } from "@docusaurus/theme-common" ;
32import useBaseUrl from "@docusaurus/useBaseUrl" ;
43import HomepageFeatures from "@site/src/components/HomepageFeatures" ;
54import Heading from "@theme/Heading" ;
65import Layout from "@theme/Layout" ;
6+ import ThemedImage from "@theme/ThemedImage" ;
77import { clsx } from "clsx" ;
88import type { ReactNode } from "react" ;
99
1010import styles from "./index.module.css" ;
1111
1212function HomepageHeader ( ) {
13- const { colorMode } = useColorMode ( ) ;
14- const logoSrc = colorMode === "dark" ? "/img/tagoio-official-logo-white.svg" : "/img/tagoio-official-logo.svg" ;
1513 return (
1614 < header className = { clsx ( "hero" , styles . heroBanner ) } >
1715 < div className = "container" >
1816 < div className = { styles . brandRow } >
1917 < span className = { styles . brandDoc } > Documentation</ span >
20- < img src = { useBaseUrl ( logoSrc ) } alt = "TagoIO" width = { 160 } height = { 40 } className = { styles . brandLogo } />
18+ < ThemedImage
19+ sources = { {
20+ light : useBaseUrl ( "/img/tagoio-official-logo.svg" ) ,
21+ dark : useBaseUrl ( "/img/tagoio-official-logo-white.svg" ) ,
22+ } }
23+ alt = "TagoIO"
24+ width = { 160 }
25+ height = { 40 }
26+ className = { styles . brandLogo }
27+ />
2128 </ div >
2229 < Heading as = "h1" className = "hero__title" >
2330 Easy IoT. Powerful Outcomes.
You can’t perform that action at this time.
0 commit comments