forked from gnolang/gno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gnoweb): template and md style (gnolang#2223)
This PR is a hotfix to markdown style. fixes: gnolang#1967 fixes: gnolang#2166 Maybe not the best way to handle it, but as we are gonna refactor gnoweb and pages are rendered as blog, what is not very clean, this is a quick fix before a better refactor. It create a `Kind` variable for rendered pages in `gnoweb`, that is used as CSS classname to wrap the body content. This is made to separate `Section` and `Page` contents: while first ones are created with a detailed architecture of sub-sections (invisible list, columns etc), the second kind is made for generic content. This separation allow to create different styles for the two kinds of structure we have on gno.land website: "page" one will have bullet lists, centered images etc by default and "section" one will be more transparent regarding the style. To achieve this, the PR creates a dedicated package for "events" instead of a blog rendered page (because this page is a `section`) and adds a default `page` CSS classname in blog content. In the future, we should use dedicated md / web components to display elements whatever the page type. --------- Co-authored-by: Morgan Bazalgette <[email protected]>
- Loading branch information
1 parent
3cc4952
commit 77071e4
Showing
11 changed files
with
414 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,203 @@ | ||
package main | ||
|
||
import "gno.land/r/gnoland/events" | ||
|
||
func main() { | ||
println(events.Render("")) | ||
} | ||
|
||
// Output: | ||
// <main class='gno-tmpl-section'> | ||
// | ||
// # Gno.land Core Team Attends Industry Events & Meetups | ||
// | ||
// | ||
// If you’re interested in building web3 with us, catch up with Gno.land in person at one of our industry events. We’re looking to connect with developers and like-minded thinkers who can contribute to the growth of our platform. | ||
// | ||
// | ||
// --- | ||
// | ||
// ## Upcoming Events | ||
// | ||
// <div class="columns-3"> | ||
// <div class="column"> | ||
// | ||
// ### Gno @ Golang Serbia | ||
// | ||
// - Join the meetup | ||
// - Belgrade, May 23, 2024 | ||
// | ||
// [Learn more](https://www.meetup.com/golang-serbia/events/300975006/) | ||
// | ||
// </div><!-- end column--> | ||
// | ||
// <div class="column"> | ||
// | ||
// ### GopherCon EU | ||
// - Come Meet Us at our Booth | ||
// - Berlin, June 17 - 20, 2024 | ||
// | ||
// [Learn More](https://gophercon.eu/) | ||
// </div><!-- end column--> | ||
// | ||
// <div class="column"> | ||
// | ||
// ### GopherCon US | ||
// - Come Meet Us at our Booth | ||
// - Chicago, July 7 - 10, 2024 | ||
// | ||
// [Learn More](https://www.gophercon.com/) | ||
// | ||
// </div><!-- end column--> | ||
// | ||
// <div class="column"> | ||
// | ||
// ### Nebular Summit | ||
// - Join our workshop | ||
// - Brussels, July 12 - 13, 2024 | ||
// | ||
// [Learn More](https://nebular.builders/) | ||
// </div><!-- end column--> | ||
// | ||
// <div class="column"> | ||
// | ||
// </div><!-- end column--> | ||
// <div class="column"> | ||
// | ||
// </div><!-- end column--> | ||
// </div><!-- end columns-3--> | ||
// | ||
// --- | ||
// | ||
// ## Past Events | ||
// | ||
// <div class="columns-3"> | ||
// <div class="column"> | ||
// | ||
// ### GopherCon US | ||
// | ||
// - **Come Meet Us at our Booth** | ||
// - San Diego, September 26 - 29, 2023 | ||
// | ||
// [Learn more](https://www.gophercon.com/) | ||
// | ||
// </div><!-- end column--> | ||
// | ||
// <div class="column"> | ||
// | ||
// ### GopherCon EU | ||
// | ||
// - **Come Meet Us at our Booth** | ||
// - Berlin, July 26 - 29, 2023 | ||
// | ||
// [Learn more](https://gophercon.eu/) | ||
// | ||
// </div><!-- end column--> | ||
// | ||
// <div class="column"> | ||
// | ||
// ### Nebular Summit Gno.land for Developers | ||
// | ||
// - Paris, July 24 - 25, 2023 | ||
// - Manfred Touron | ||
// | ||
// [Learn more](https://www.nebular.builders/) | ||
// | ||
// </div><!-- end column--> | ||
// | ||
// <div class="column"> | ||
// | ||
// ### EthCC | ||
// | ||
// - **Come Meet Us at our Booth** | ||
// - Paris, July 17 - 20, 2023 | ||
// - Manfred Touron | ||
// | ||
// [Learn more](https://www.ethcc.io/) | ||
// | ||
// </div><!-- end column--> | ||
// | ||
// <div class="column"> | ||
// | ||
// ### Eth Seoul | ||
// | ||
// - **The Evolution of Smart Contracts: A Journey into Gno.land** | ||
// - Seoul, June 3, 2023 | ||
// - Manfred Touron | ||
// | ||
// [Learn more](https://2023.ethseoul.org/) | ||
// | ||
// </div><!-- end column--> | ||
// <div class="column"> | ||
// | ||
// ### BUIDL Asia | ||
// | ||
// - **Proof of Contribution in Gno.land** | ||
// - Seoul, June 6, 2023 | ||
// - Manfred Touron | ||
// | ||
// [Learn more](https://www.buidl.asia/) | ||
// | ||
// </div><!-- end column--> | ||
// <div class="column"> | ||
// | ||
// ### Game Developer Conference | ||
// | ||
// - **Side Event: Web3 Gaming Apps Powered by Gno** | ||
// - San Francisco, Mach 23, 2023 | ||
// - Jae Kwon | ||
// | ||
// [Watch the talk](https://www.youtube.com/watch?v=IJ0xel8lr4c) | ||
// | ||
// </div><!-- end column--> | ||
// <div class="column"> | ||
// | ||
// ### EthDenver | ||
// | ||
// - **Side Event: Discover Gno.land** | ||
// - Denver, Feb 24 - Mar 5, 2023 | ||
// - Jae Kwon | ||
// | ||
// [Watch the talk](https://www.youtube.com/watch?v=IJ0xel8lr4c) | ||
// | ||
// </div><!-- end column--> | ||
// <div class="column"> | ||
// | ||
// ### Istanbul Blockchain Week | ||
// | ||
// - Istanbul, Nov 14 - 17, 2022 | ||
// - Manfred Touron | ||
// | ||
// [Watch the talk](https://www.youtube.com/watch?v=JX0gdWT0Cg4) | ||
// | ||
// </div><!-- end column--> | ||
// <div class="column"> | ||
// | ||
// ### Web Summit Buckle Up and Build with Cosmos | ||
// | ||
// - Lisbon, Nov 1 - 4, 2022 | ||
// - Manfred Touron | ||
// | ||
// </div><!-- end column--> | ||
// <div class="column"> | ||
// | ||
// ### Cosmoverse | ||
// | ||
// - Medallin, Sept 26 - 28, 2022 | ||
// - Manfred Touron | ||
// | ||
// [Watch the talk](https://www.youtube.com/watch?v=6s1zG7hgxMk) | ||
// | ||
// </div><!-- end column--> | ||
// <div class="column"> | ||
// | ||
// ### Berlin Blockchain Week Buckle Up and Build with Cosmos | ||
// | ||
// - Berlin, Sept 11 - 18, 2022 | ||
// | ||
// [Watch the talk](https://www.youtube.com/watch?v=hCLErPgnavI) | ||
// | ||
// </div><!-- end column--> | ||
// </div><!-- end columns-3--> | ||
// | ||
// </main> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module gno.land/r/gnoland/events | ||
|
||
require gno.land/p/demo/ui v0.0.0-latest |
Oops, something went wrong.