diff --git a/i18n/en/code.json b/i18n/en/code.json index 430a2cf..7e2bcbd 100644 --- a/i18n/en/code.json +++ b/i18n/en/code.json @@ -1,6 +1,6 @@ { "Theme.Navbar.go-to-hub-flow": { - "message": "Go to Community" + "message": "Go to Hub" }, "Theme.Navbar.use-in-chat": { "message": "Use in Chat" diff --git a/src/theme/Navbar/index.tsx b/src/theme/Navbar/index.tsx index f045105..31ca33f 100644 --- a/src/theme/Navbar/index.tsx +++ b/src/theme/Navbar/index.tsx @@ -12,6 +12,7 @@ import { useNavbarMobileSidebar } from "@docusaurus/theme-common/internal"; import NavbarMobileSidebar from "@theme/Navbar/MobileSidebar"; import { translate } from "@docusaurus/Translate"; import BrowserOnly from "@docusaurus/BrowserOnly"; +import LinkBtn from "@site/src/components/Button/LinkBtn"; const isSignedIn = () => { const cookies = document.cookie.split(";").map(cookie => cookie.trim()); @@ -147,30 +148,36 @@ const Navbar: React.FC = memo(() => { {leftItems.map((item, i) => ( ))} - - } - > - {() => { - return ( +
+ + - ); - }} - + } + > + {() => { + return ( + + ); + }} + +
{rightItems.map((item, i) => ( diff --git a/src/theme/Navbar/styles.module.scss b/src/theme/Navbar/styles.module.scss index f4b39c1..e3c1950 100644 --- a/src/theme/Navbar/styles.module.scss +++ b/src/theme/Navbar/styles.module.scss @@ -15,6 +15,28 @@ cursor: pointer; } +.gotoHubButton { + background: inherit; + border: 1px solid #3d444d; + border-radius: 4px; + padding: 4px 4px; + font-weight: 500; + font-size: 14px; + cursor: pointer; + + margin: 0 !important; + + &:hover { + color: #7d7fe9 !important; + border-color: #7d7fe9; + } +} + +.actions { + display: flex; + align-items: center; +} + .brand { display: flex; align-items: center;