Skip to content

Commit

Permalink
docs: add links into navbar (#1627)
Browse files Browse the repository at this point in the history
This PR aims to add following links into the docs website navbar:
`Playground`, `blog` and `Gno.Land homepage`.

I chose to avoid setting GnoLand label as `home` in order to avoid a
misunderstanding between `docs home` and `Gno.Land home`. But we can
discuss more about the label and its position here.

Close: #1527
  • Loading branch information
alexiscolin authored Feb 6, 2024
1 parent 44ee771 commit 846956f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
16 changes: 16 additions & 0 deletions misc/docusaurus/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,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: `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="github-icon">
Expand Down
9 changes: 9 additions & 0 deletions misc/docusaurus/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -332,3 +332,12 @@ a.footer__link-item > svg {
.gno-footer__copy {
font-size: 0.8em;
}

.gno-header__copy {
font-size: 1em;
}
@media (min-width: 997px) {
.gno-header__copy {
font-size: 0.8em;
}
}

0 comments on commit 846956f

Please sign in to comment.