Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: gnoland homepage #3351

Merged
merged 3 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions examples/gno.land/r/gnoland/home/home.gno
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ func Render(_ string) string {
func lastBlogposts(limit int) ui.Element {
posts := blog.RenderLastPostsWidget(limit)
return ui.Element{
ui.H3("[Latest Blogposts](/r/gnoland/blog)"),
ui.H2("[Latest Blogposts](/r/gnoland/blog)"),
ui.Text(posts),
}
}

func lastContributions(limit int) ui.Element {
return ui.Element{
ui.H3("Latest Contributions"),
ui.H2("Latest Contributions"),
// TODO: import r/gh to
ui.Link{Text: "View latest contributions", URL: "https://github.com/gnolang/gno/pulls"},
}
Expand All @@ -86,7 +86,7 @@ func lastContributions(limit int) ui.Element {
func upcomingEvents() ui.Element {
out, _ := events.RenderEventWidget(events.MaxWidgetSize)
return ui.Element{
ui.H3("[Latest Events](/r/gnoland/events)"),
ui.H2("[Latest Events](/r/gnoland/events)"),
ui.Text(out),
}
}
Expand All @@ -95,14 +95,14 @@ func latestHOFItems(num int) ui.Element {
submissions := hof.RenderExhibWidget(num)

return ui.Element{
ui.H3("[Hall of Fame](/r/leon/hof)"),
ui.H2("[Hall of Fame](/r/leon/hof)"),
ui.Text(submissions),
}
}

func introSection() ui.Element {
return ui.Element{
ui.H3("We’re building gno.land, set to become the leading open-source smart contract platform, using Gno, an interpreted and fully deterministic variation of the Go programming language for succinct and composable smart contracts."),
ui.Text("**We’re building gno.land, set to become the leading open-source smart contract platform, 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 @@ -135,7 +135,7 @@ func worxDAO() ui.Element {
## Contributors
``*/
return ui.Element{
ui.H3("Contributions (WorxDAO & GoR)"),
ui.H2("Contributions (WorxDAO & GoR)"),
// TODO: GoR dashboard + WorxDAO topics
ui.Text(`coming soon`),
}
Expand All @@ -154,28 +154,28 @@ func quoteOfTheBlock() ui.Element {
qotb := quotes[idx]

return ui.Element{
ui.H3(ufmt.Sprintf("Quote of the ~Day~ Block#%d", height)),
ui.H2(ufmt.Sprintf("Quote of the ~Day~ Block#%d", height)),
ui.Quote(qotb),
}
}

func socialLinks() ui.Element {
return ui.Element{
ui.H3("Socials"),
ui.H2("Socials"),
ui.BulletList{
// XXX: improve UI to support a nice GO api for such links
ui.Text("Check out our [community projects](https://github.com/gnolang/awesome-gno)"),
ui.Text("![Discord](static/img/ico-discord.svg) [Discord](https://discord.gg/S8nKUqwkPn)"),
ui.Text("![Twitter](static/img/ico-twitter.svg) [Twitter](https://twitter.com/_gnoland)"),
ui.Text("![Youtube](static/img/ico-youtube.svg) [Youtube](https://www.youtube.com/@_gnoland)"),
ui.Text("![Telegram](static/img/ico-telegram.svg) [Telegram](https://t.me/gnoland)"),
ui.Text("[Discord](https://discord.gg/S8nKUqwkPn)"),
ui.Text("[Twitter](https://twitter.com/_gnoland)"),
ui.Text("[Youtube](https://www.youtube.com/@_gnoland)"),
ui.Text("[Telegram](https://t.me/gnoland)"),
},
}
}

func playgroundSection() ui.Element {
return ui.Element{
ui.H3("[Gno Playground](https://play.gno.land)"),
ui.H2("[Gno Playground](https://play.gno.land)"),
ui.Paragraph(`Gno Playground is a web application designed for building, running, testing, and interacting
with your Gno code, enhancing your understanding of the Gno language. With Gno Playground, you can share your code,
execute tests, deploy your realms and packages to gno.land, and explore a multitude of other features.`),
Expand All @@ -186,27 +186,27 @@ execute tests, deploy your realms and packages to gno.land, and explore a multit
func packageStaffPicks() ui.Element {
// XXX: make it modifiable from a DAO
return ui.Element{
ui.H3("Explore New Packages and Realms"),
ui.H2("Explore New Packages and Realms"),
ui.Columns{
3,
[]ui.Element{
{
ui.H4("[r/gnoland](https://github.com/gnolang/gno/tree/master/examples/gno.land/r/gnoland)"),
ui.H3("[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/sys](https://github.com/gnolang/gno/tree/master/examples/gno.land/r/sys)"),
ui.H3("[r/sys](https://github.com/gnolang/gno/tree/master/examples/gno.land/r/sys)"),
ui.BulletList{
ui.Link{URL: "r/sys/names"},
ui.Link{URL: "r/sys/rewards"},
ui.Link{URL: "/r/sys/validators/v2"},
},
}, {
ui.H4("[r/demo](https://github.com/gnolang/gno/tree/master/examples/gno.land/r/demo)"),
ui.H3("[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 @@ -222,7 +222,7 @@ func packageStaffPicks() ui.Element {
ui.Text("..."),
},
}, {
ui.H4("[p/demo](https://github.com/gnolang/gno/tree/master/examples/gno.land/p/demo)"),
ui.H3("[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 All @@ -247,7 +247,7 @@ func discoverLinks() ui.Element {
ui.Text(`<div class="columns-3">
<div class="column">

### Learn about gno.land
## Learn about gno.land

- [About](/about)
- [GitHub](https://github.com/gnolang)
Expand All @@ -262,7 +262,7 @@ func discoverLinks() ui.Element {

<div class="column">

### Build with Gno
## Build with Gno

- [Write Gno in the browser](https://play.gno.land)
- [Read about the Gno Language](/gnolang)
Expand All @@ -274,7 +274,7 @@ func discoverLinks() ui.Element {
</div><!-- end column-->
<div class="column">

### Explore the universe
## Explore the universe

- [Discover demo packages](https://github.com/gnolang/gno/tree/master/examples)
- [Gnoscan](https://gnoscan.io)
Expand Down
41 changes: 20 additions & 21 deletions examples/gno.land/r/gnoland/home/home_filetest.gno
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ func main() {
//
// # Welcome to gno.land
//
// ### We’re building gno.land, set to become the leading open-source smart contract platform, using Gno, an interpreted and fully deterministic variation of the Go programming language for succinct and composable smart contracts.
//
// **We’re building gno.land, set to become the leading open-source smart contract platform, using Gno, an interpreted and fully deterministic variation of the Go programming language for succinct and composable smart contracts.**
//
// 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.
//
Expand All @@ -24,7 +23,7 @@ func main() {
// <div class="columns-3">
// <div class="column">
//
// ### Learn about gno.land
// ## Learn about gno.land
//
// - [About](/about)
// - [GitHub](https://github.com/gnolang)
Expand All @@ -39,7 +38,7 @@ func main() {
//
// <div class="column">
//
// ### Build with Gno
// ## Build with Gno
//
// - [Write Gno in the browser](https://play.gno.land)
// - [Read about the Gno Language](/gnolang)
Expand All @@ -51,7 +50,7 @@ func main() {
// </div><!-- end column-->
// <div class="column">
//
// ### Explore the universe
// ## Explore the universe
//
// - [Discover demo packages](https://github.com/gnolang/gno/tree/master/examples)
// - [Gnoscan](https://gnoscan.io)
Expand All @@ -66,19 +65,19 @@ func main() {
// <div class="columns-3">
// <div class="column">
//
// ### [Latest Blogposts](/r/gnoland/blog)
// ## [Latest Blogposts](/r/gnoland/blog)
//
// No posts.
// </div><!-- /column-->
// <div class="column">
//
// ### [Latest Events](/r/gnoland/events)
// ## [Latest Events](/r/gnoland/events)
//
// No events.
// </div><!-- /column-->
// <div class="column">
//
// ### [Hall of Fame](/r/leon/hof)
// ## [Hall of Fame](/r/leon/hof)
//
//
// </div><!-- /column-->
Expand All @@ -87,7 +86,7 @@ func main() {
//
// ---
//
// ### [Gno Playground](https://play.gno.land)
// ## [Gno Playground](https://play.gno.land)
//
//
// Gno Playground is a web application designed for building, running, testing, and interacting
Expand All @@ -100,20 +99,20 @@ func main() {
//
// ---
//
// ### Explore New Packages and Realms
// ## Explore New Packages and Realms
//
// <div class="columns-3">
// <div class="column">
//
// #### [r/gnoland](https://github.com/gnolang/gno/tree/master/examples/gno.land/r/gnoland)
// ### [r/gnoland](https://github.com/gnolang/gno/tree/master/examples/gno.land/r/gnoland)
//
// - [r/gnoland/blog](r/gnoland/blog)
// - [r/gnoland/dao](r/gnoland/dao)
// - [r/gnoland/faucet](r/gnoland/faucet)
// - [r/gnoland/home](r/gnoland/home)
// - [r/gnoland/pages](r/gnoland/pages)
//
// #### [r/sys](https://github.com/gnolang/gno/tree/master/examples/gno.land/r/sys)
// ### [r/sys](https://github.com/gnolang/gno/tree/master/examples/gno.land/r/sys)
//
// - [r/sys/names](r/sys/names)
// - [r/sys/rewards](r/sys/rewards)
Expand All @@ -122,7 +121,7 @@ func main() {
// </div><!-- /column-->
// <div class="column">
//
// #### [r/demo](https://github.com/gnolang/gno/tree/master/examples/gno.land/r/demo)
// ### [r/demo](https://github.com/gnolang/gno/tree/master/examples/gno.land/r/demo)
//
// - [r/demo/boards](r/demo/boards)
// - [r/demo/users](r/demo/users)
Expand All @@ -140,7 +139,7 @@ func main() {
// </div><!-- /column-->
// <div class="column">
//
// #### [p/demo](https://github.com/gnolang/gno/tree/master/examples/gno.land/p/demo)
// ### [p/demo](https://github.com/gnolang/gno/tree/master/examples/gno.land/p/demo)
//
// - [p/demo/avl](p/demo/avl)
// - [p/demo/blog](p/demo/blog)
Expand All @@ -160,7 +159,7 @@ func main() {
//
// ---
//
// ### Contributions (WorxDAO & GoR)
// ## Contributions (WorxDAO & GoR)
//
// coming soon
//
Expand All @@ -170,18 +169,18 @@ func main() {
// <div class="columns-2">
// <div class="column">
//
// ### Socials
// ## Socials
//
// - Check out our [community projects](https://github.com/gnolang/awesome-gno)
// - ![Discord](static/img/ico-discord.svg) [Discord](https://discord.gg/S8nKUqwkPn)
// - ![Twitter](static/img/ico-twitter.svg) [Twitter](https://twitter.com/_gnoland)
// - ![Youtube](static/img/ico-youtube.svg) [Youtube](https://www.youtube.com/@_gnoland)
// - ![Telegram](static/img/ico-telegram.svg) [Telegram](https://t.me/gnoland)
// - [Discord](https://discord.gg/S8nKUqwkPn)
// - [Twitter](https://twitter.com/_gnoland)
// - [Youtube](https://www.youtube.com/@_gnoland)
// - [Telegram](https://t.me/gnoland)
//
// </div><!-- /column-->
// <div class="column">
//
// ### Quote of the ~Day~ Block#123
// ## Quote of the ~Day~ Block#123
//
// > Now, you Gno.
//
Expand Down
Loading