Skip to content

Commit

Permalink
chore(gno.land): update content on pages (gnolang#1735)
Browse files Browse the repository at this point in the history
## Description

This PR updates the content on the home page of gno.land, as well as
content in some other pages that are linked on the home page. This
change was requested by @ccomben.

The PR includes:
- Updating welcome text (intro section) on homepage
- Updating text on the "About" page
- Updating the events page - moving old to the past past events section,
adding the details of GopherCon EU
- Updating the Ecosystem page
- Reordering sections on the home page
- Updating broken and missing links
- Making the home page more intuitive to navigate

Pages have their H1 removed from the `body` because the package that
renders it (p/demo/blog) will render it twice with the current version
of the package.

This one in a series of PRs looking to improve the experience of people
visiting gno.land.

**Please, let's not bikeshed on this one** - otherwise we will get
nowhere. The Portal loop is live now, which means that a change or a fix
on any of the pages is only 1 PR away if it's needed. **Also, all
changes in this PR are minor.**

To review this PR, I highly suggest running `gnodev` and looking at the
changes rendered and comparing them to the current `gno.land` pages.

Seems running make test.sync doesn't properly update golden tests - an
issue for itself.

<details><summary>Contributors' checklist...</summary>

- [x] Added new tests, or not needed, or not feasible
- [x] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [x] Updated the official documentation or not needed
- [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [x] Added references to related issues and PRs
- [x] Provided any useful hints for running manual tests
- [ ] Added new benchmarks to [generated
graphs](https://gnoland.github.io/benchmarks), if any. More info
[here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md).
</details>

---------

Co-authored-by: Morgan <[email protected]>
  • Loading branch information
leohhhn and thehowl authored Mar 6, 2024
1 parent f976e25 commit ce47828
Show file tree
Hide file tree
Showing 10 changed files with 255 additions and 218 deletions.
65 changes: 33 additions & 32 deletions examples/gno.land/r/gnoland/home/home.gno
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,21 @@ func Render(_ string) string {

// body
dom.Body.Append(introSection()...)
dom.Body.Append(ui.Jumbotron(worxDAO()))
dom.Body.Append(packageStaffPicks()...)
dom.Body.Append(ui.HR{})

dom.Body.Append(ui.Jumbotron(discoverLinks()))

dom.Body.Append(
ui.Columns{3, []ui.Element{
lastBlogposts(4),
upcomingEvents(4),
lastContributions(4),
}},
)
dom.Body.Append(ui.Jumbotron(discoverLinks()))

dom.Body.Append(ui.HR{})
dom.Body.Append(packageStaffPicks()...)
dom.Body.Append(ui.HR{})
dom.Body.Append(worxDAO()...)
dom.Body.Append(ui.HR{})
// footer
dom.Footer.Append(
ui.Columns{2, []ui.Element{
Expand Down Expand Up @@ -59,25 +62,24 @@ func lastBlogposts(limit int) ui.Element {
func lastContributions(limit int) ui.Element {
return ui.Element{
ui.H3("Latest Contributions"),
// TODO: import r/gh
// ui.Link{Text: "#1134", URL: "https://github.com/gnolang/gno/pull/1134"},
ui.Text("coming soon"),
// TODO: import r/gh to
ui.Link{Text: "View latest contributions", URL: "https://github.com/gnolang/gno/pulls"},
}
}

func upcomingEvents(limit int) ui.Element {
return ui.Element{
ui.H3("Upcoming Events"),
// TODO: import r/gnoland/events
ui.Text("coming soon"),
// TODO: replace with r/gnoland/events
ui.Text("[View upcoming events](/events)"),
}
}

func introSection() ui.Element {
return ui.Element{
ui.H3("An interpretation of the Go (Golang) programming language for advanced developers and intrepid pioneers to build succinct, composable smart contracts for social coordination."),
ui.Paragraph("If you’re concerned about information censorship and want to contribute to the #GnoWorldOrder, follow our socials to find out how."),
ui.Paragraph("Gno.land is in building mode. If you want to help lay the foundations of a fairer and freer world through innovative ideas and exceptional code, join us today."),
ui.H3("We’re building Gno.land, the first open-source smart contract system, using Gno, an interpreted and fully deterministic variation of the Go programming language for succinct and composable smart contracts."),
ui.Paragraph("With transparent and timeless code, Gno.land is the next generation of smart contract platforms, serving as the “GitHub” of the ecosystem, with realms built using fully transparent, auditable code that anyone can inspect and reuse."),
ui.Paragraph("Intuitive and easy to use, Gno.land lowers the barrier to web3 and makes censorship-resistant platforms accessible to everyone. If you want to help lay the foundations of a fairer and freer world, join us today."),
}
}

Expand Down Expand Up @@ -127,7 +129,7 @@ func quoteOfTheBlock() ui.Element {
qotb := quotes[idx]

return ui.Element{
ui.H3(ufmt.Sprintf("Quote of the ~Day~Block#%d", height)),
ui.H3(ufmt.Sprintf("Quote of the ~Day~ Block#%d", height)),
ui.Quote(qotb),
}
}
Expand All @@ -154,22 +156,22 @@ func packageStaffPicks() ui.Element {
3,
[]ui.Element{
{
ui.H4("r/gnoland"),
ui.H4("[r/gnoland](https://github.com/gnolang/gno/tree/master/examples/gno.land/r/gnoland)"),
ui.BulletList{
ui.Link{URL: "r/gnoland/blog"},
ui.Link{URL: "r/gnoland/dao"},
ui.Link{URL: "r/gnoland/faucet"},
ui.Link{URL: "r/gnoland/home"},
ui.Link{URL: "r/gnoland/pages"},
},
ui.H4("r/system"),
ui.H4("[r/system](https://github.com/gnolang/gno/tree/master/examples/gno.land/r/system)"),
ui.BulletList{
ui.Link{URL: "r/system/names"},
ui.Link{URL: "r/system/rewards"},
ui.Link{URL: "r/system/validators"},
},
}, {
ui.H4("r/demo"),
ui.H4("[r/demo](https://github.com/gnolang/gno/tree/master/examples/gno.land/r/demo)"),
ui.BulletList{
ui.Link{URL: "r/demo/boards"},
ui.Link{URL: "r/demo/users"},
Expand All @@ -184,7 +186,7 @@ func packageStaffPicks() ui.Element {
ui.Text("..."),
},
}, {
ui.H4("p/demo"),
ui.H4("[p/demo](https://github.com/gnolang/gno/tree/master/examples/gno.land/p/demo)"),
ui.BulletList{
ui.Link{URL: "p/demo/avl"},
ui.Link{URL: "p/demo/blog"},
Expand Down Expand Up @@ -213,37 +215,36 @@ func discoverLinks() ui.Element {
- [About](/about)
- [GitHub](https://github.com/gnolang)
- [Subscribe](#subscribe)
- [Tokenomics (soon)](#)
- [Blog](/blog)
- [Events](/events)
- Tokenomics (soon)
- [Partners, Fund, Grants](/partners)
- [Explore the Ecosystem](/ecosystem)
</div><!-- end column-->
<div class="column">
### Build with Gno
- [Gno dev with CLI (soon)](#)
- [Explore the Universe](/ecosystem)
- [Test in the browser (soon)](#)
- [About the Gno Language](/gnolang)
- [Docs/ Tutorials](https://github.com/gnolang)
- [Gno by example](https://gno-by-example.com/)
- [Getting started video (soon)](#)
- [Write Gno in the browser](https://play.gno.land)
- [Read about the Gno Language](/gnolang)
- [Visit the official documentation](https://docs.gno.land)
- [Gno by Example](https://gno-by-example.com/)
- [Efficient local development for Gno](https://docs.gno.land/gno-tooling/cli/gno-tooling-gnodev)
</div><!-- end column-->
<div class="column">
### Explore the universe
- [Discover demo packages](https://github.com/gnolang/gno/tree/master/examples)
- [Install Gno Key instructions](/r/demo/boards:testboard/5)
- [Testnets 3](https://test3.gno.land/)
- [Testnets 2](https://test2.gno.land/)
- [Explorer links(soon)](#)
- [Testnet Tokens (faucet)](https://test3.gno.land/faucet)
- [Gnoscan](https://gnoscan.io)
- [Portal Loop](https://docs.gno.land/concepts/portal-loop)
- Testnet 4 (upcoming)
- [Testnet 3](https://test3.gno.land/) (archive)
- [Testnet 2](https://test2.gno.land/) (archive)
- Testnet Faucet Hub (soon)
</div><!-- end column-->
</div><!-- end columns-3-->`),
Expand Down
Loading

0 comments on commit ce47828

Please sign in to comment.