From 3847ec7307b543b08afa2a3c81dd8fcb330ca200 Mon Sep 17 00:00:00 2001 From: alexiscolin Date: Fri, 2 Feb 2024 16:11:20 +0100 Subject: [PATCH 1/2] docs: add links into navbar --- misc/docusaurus/docusaurus.config.js | 18 +++++++++++++++++- misc/docusaurus/src/css/custom.css | 3 ++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/misc/docusaurus/docusaurus.config.js b/misc/docusaurus/docusaurus.config.js index 5fdbbacf98c..2082f112e95 100644 --- a/misc/docusaurus/docusaurus.config.js +++ b/misc/docusaurus/docusaurus.config.js @@ -28,7 +28,7 @@ const config = { src: "https://sa.gno.services/latest.js", async: true, defer: true, - } + }, ], presets: [ @@ -61,12 +61,28 @@ const config = { srcDark: "img/gnoland_light.svg", }, items: [ + { + position: "right", + label: "Back to Gno.Land", + to: "https://gno.land", + className: "gno-header__copy", + }, { type: "docSidebar", sidebarId: "tutorialSidebar", position: "left", label: "Docs", }, + { + position: "left", + label: "Playground", + to: "https://play.gno.land", + }, + { + position: "left", + label: "Blog", + to: "https://test3.gno.land/r/gnoland/blog", + }, { href: "https://github.com/gnolang/gno", html: ` diff --git a/misc/docusaurus/src/css/custom.css b/misc/docusaurus/src/css/custom.css index 9955c1cae78..1d4c8ccc16b 100644 --- a/misc/docusaurus/src/css/custom.css +++ b/misc/docusaurus/src/css/custom.css @@ -328,6 +328,7 @@ a.footer__link-item > svg { fill: var(--ifm-color-primary); } -.gno-footer__copy { +.gno-footer__copy, +.gno-header__copy { font-size: 0.8em; } From 40b019086d8e932cc269dd0606eed81c0731ae85 Mon Sep 17 00:00:00 2001 From: alexiscolin Date: Mon, 5 Feb 2024 16:57:08 +0100 Subject: [PATCH 2/2] fix: mobile link font-size --- misc/docusaurus/src/css/custom.css | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/misc/docusaurus/src/css/custom.css b/misc/docusaurus/src/css/custom.css index 1d4c8ccc16b..ee19b21d9df 100644 --- a/misc/docusaurus/src/css/custom.css +++ b/misc/docusaurus/src/css/custom.css @@ -328,7 +328,15 @@ a.footer__link-item > svg { fill: var(--ifm-color-primary); } -.gno-footer__copy, -.gno-header__copy { +.gno-footer__copy { font-size: 0.8em; } + +.gno-header__copy { + font-size: 1em; +} +@media (min-width: 997px) { + .gno-header__copy { + font-size: 0.8em; + } +}