From 405f7f633a77b1f0b42f88ab05baddf7029fadfc Mon Sep 17 00:00:00 2001 From: Ahmed Ihsan Tawfeeq Date: Tue, 6 Feb 2024 18:56:49 -0400 Subject: [PATCH] docs: update GitHub button --- docusaurus.config.js | 9 ++------- src/components/HomepageHeader.tsx | 32 ++++++++++++++++++++++++++++++- 2 files changed, 33 insertions(+), 8 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index be944bb..a7823f2 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -124,17 +124,12 @@ const config = { items: [ { docId: "introduction", - label: "Protocol", + label: "PROTOCOL", position: "left", type: "doc", }, { label: "SDK", position: "left", to: "/protocol/developers/sdk" }, - { label: "Smart Contracts", position: "left", to: "/protocol/technical-reference/core/balance-sheet" }, - { - href: "https://github.com/hifi-finance/hifi", - label: "GitHub", - position: "right", - }, + { label: "SMART CONTRACTS", position: "left", to: "/protocol/technical-reference/core/balance-sheet" }, ], }, prism: { diff --git a/src/components/HomepageHeader.tsx b/src/components/HomepageHeader.tsx index 41f9d2b..42ca7fd 100644 --- a/src/components/HomepageHeader.tsx +++ b/src/components/HomepageHeader.tsx @@ -14,7 +14,7 @@ const ProtocolDocsButton = () => { viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg" - style={{ transform: "translate(-0.25rem, 0.25rem)" }} + style={{ transform: "translate(-0.25rem, 0.25rem)", scale: "0.975" }} > { ); }; +const GithubButton = () => { + return ( + + + + + + + + + + + + GitHub + + ); +}; + export default function HomepageHeader() { const { siteConfig } = useDocusaurusContext(); return ( @@ -65,6 +93,8 @@ export default function HomepageHeader() { + +