-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
574f4e7
commit 8792a25
Showing
2 changed files
with
22 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// https://docusaurus.io/docs/3.4.0/swizzling#wrapper-your-site-with-root | ||
|
||
import BrowserOnly from "@docusaurus/BrowserOnly"; | ||
import React from "react"; | ||
import ChatComponent from "./ChatPAAL"; | ||
|
||
// Default implementation, that you can customize | ||
export default function Root({ children }) { | ||
return ( | ||
<> | ||
{children} | ||
<BrowserOnly>{() => <ChatComponent />}</BrowserOnly> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,18 @@ | ||
import React from "react"; | ||
import ThemedImage from "@theme/ThemedImage"; | ||
import useBaseUrl from "@docusaurus/useBaseUrl"; | ||
// import ChainGPT from '@site/src/theme/ChainGPT'; | ||
import BrowserOnly from "@docusaurus/BrowserOnly"; | ||
import ChatComponent from '@site/src/theme/ChatPAAL'; | ||
|
||
/** | ||
* Reference: https://docusaurus.io/docs/markdown-features/assets#themed-images | ||
*/ | ||
export default function Logo(): JSX.Element { | ||
return ( | ||
<> | ||
<ThemedImage | ||
alt="aelf" | ||
sources={{ | ||
light: useBaseUrl("/img/Logo.aelf.svg"), | ||
dark: useBaseUrl("/img/Logo.aelf.white.svg"), | ||
}} | ||
/> | ||
<BrowserOnly> | ||
{() => ( | ||
<div> | ||
{/*{!window.location.host.includes("aelf.com") ? <ChainGPT /> : null}*/} | ||
{!window.location.host.includes("aelf.com") ? <ChatComponent /> : null} | ||
</div> | ||
)} | ||
</BrowserOnly> | ||
</> | ||
<ThemedImage | ||
alt="aelf" | ||
sources={{ | ||
light: useBaseUrl("/img/Logo.aelf.svg"), | ||
dark: useBaseUrl("/img/Logo.aelf.white.svg"), | ||
}} | ||
/> | ||
); | ||
} |