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

feat: new website v2 #818

Merged
merged 55 commits into from
Jul 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
80a2902
feat: new website v2
alexiscolin May 10, 2023
328cd77
style: add social icons
alexiscolin May 10, 2023
41e5490
fix: responsive plain CSS
alexiscolin May 12, 2023
54d22d0
Update gno.land/cmd/gnoweb/pages/EVENTS.md
alexiscolin May 16, 2023
fe26705
fix: nth columns
alexiscolin May 16, 2023
b5c816a
feat: accordion & tabs a11y components
alexiscolin May 16, 2023
08a7cf5
feat: Game of realms page
alexiscolin May 16, 2023
e39e8f7
content: gor page
alexiscolin May 17, 2023
cafcb3c
refactor: gor page to generic
alexiscolin May 17, 2023
8f485a4
style: relative units & colors vars
alexiscolin May 17, 2023
32a03f1
fix: responsive gor accordion
alexiscolin May 17, 2023
48a2fc6
style: dark theme colors
alexiscolin May 17, 2023
2343f8d
fix: background color
alexiscolin May 17, 2023
d989814
fix tests
alexiscolin May 17, 2023
702c264
fix: tests
alexiscolin May 17, 2023
74be3ca
Merge branch 'master' into feat/website-v2
alexiscolin May 17, 2023
d9e0a8f
Merge branch 'master' into feat/website-v2
alexiscolin May 18, 2023
68c0cc0
Merge branch 'master' into feat/website-v2
alexiscolin May 22, 2023
62bf09c
style: update generic el margins
alexiscolin May 22, 2023
679bab8
style: jumbotron margins
alexiscolin May 22, 2023
559eab2
feat: package template design
alexiscolin May 22, 2023
576b001
content: upcoming events
alexiscolin May 24, 2023
fc89fe4
content: gor content
alexiscolin May 31, 2023
fad4079
fix: gor completion
alexiscolin May 31, 2023
1a6379a
fix: css margin-block for markdown p elements
alexiscolin May 31, 2023
f4d867e
Merge branch 'master' into feat/website-v2
alexiscolin May 31, 2023
6c51933
Merge branch 'master' into feat/website-v2
alexiscolin Jun 1, 2023
1cdd5be
Update examples/gno.land/p/demo/blog/blog.gno
alexiscolin Jun 5, 2023
b9ed66f
Update gno.land/cmd/gnoweb/pages/HOME.md
alexiscolin Jun 5, 2023
2682563
content: anchor link + nav content
alexiscolin Jun 5, 2023
f28c4ea
Merge branch 'feat/website-v2' of https://github.com/alexiscolin/gno …
alexiscolin Jun 5, 2023
264ac3d
content: add fonts license
alexiscolin Jun 7, 2023
d6d1d8a
fix: remove gor and events pages
alexiscolin Jun 12, 2023
96202dc
Merge branch 'master' into feat/website-v2
alexiscolin Jun 12, 2023
9c82be5
fix: improve component redeability
alexiscolin Jun 12, 2023
05625a8
content: add ide and language exploration pages
alexiscolin Jun 15, 2023
8fdf89f
refactor: improve js
alexiscolin Jun 15, 2023
ba71739
style: improve css
alexiscolin Jun 15, 2023
d5c32d8
fix: div display in blogposts iteration
alexiscolin Jun 15, 2023
e34d18b
fix: fmt
alexiscolin Jun 15, 2023
5fa7f0f
content: granting program
alexiscolin Jun 15, 2023
7a8095d
fix: gno test div for no post
alexiscolin Jun 15, 2023
2a8275e
Merge branch 'master' into feat/website-v2
alexiscolin Jun 15, 2023
2feb9e8
content: add page
alexiscolin Jun 16, 2023
0be74f7
feat: meta description for SEO
alexiscolin Jun 16, 2023
972f5d9
style: footer
alexiscolin Jun 16, 2023
9bb49e4
fix: fmt
alexiscolin Jun 16, 2023
39f3068
Merge branch 'master' into feat/website-v2
alexiscolin Jun 16, 2023
4ceae8d
fix: rendered loop
alexiscolin Jun 16, 2023
0195e24
style: sync css and remove useless pages
alexiscolin Jun 29, 2023
58bb68c
style: add burger icon comment
alexiscolin Jun 29, 2023
3ced12b
Merge branch 'master' into feat/website-v2
moul Jul 4, 2023
cf000bd
Update blog.gno
moul Jul 4, 2023
efa2907
chore: cleanup images
moul Jul 4, 2023
84d5e03
chore: fixup
moul Jul 4, 2023
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
8 changes: 6 additions & 2 deletions examples/gno.land/p/demo/blog/blog.gno
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ func (b Blog) RenderHome(res *mux.ResponseWriter, req *mux.Request) {
return
}

res.Write("<div class='columns-3'>")
b.Posts.Iterate("", "", func(key string, value interface{}) bool {
post := value.(*Post)
res.Write(post.RenderListItem())
return false
})
res.Write("</div>")

// FIXME: tag list/cloud.
}
Expand Down Expand Up @@ -212,12 +214,14 @@ func (p *Post) RenderListItem() string {
if p == nil {
return "error: no such post\n"
}
output := ""
output += ufmt.Sprintf("## [&#9656; %s](%s)\n", p.Title, p.URL())
output := "<div>\n\n"
output += ufmt.Sprintf("## [%s](%s)\n", p.Title, p.URL())
output += ufmt.Sprintf("**[Learn More](%s)**\n", p.URL())
// output += p.Summary() + "\n\n"
// output += p.RenderTagList() + "\n\n"
// output += formatAuthorAndDate(p.Author, p.CreatedAt) + "\n"
output += "\n"
output += "</div>"
return output
}

Expand Down
19 changes: 16 additions & 3 deletions examples/gno.land/r/gnoland/blog/gnoblog_test.gno
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,17 @@ No posts.
expected := `
# Gnoland's Blog

## [&#9656; title1](/r/gnoland/blog:p/slug1)
<div class='columns-3'><div>

## [&#9656; title2](/r/gnoland/blog:p/slug2)
## [title1](/r/gnoland/blog:p/slug1)
**[Learn More](/r/gnoland/blog:p/slug1)**

</div><div>

## [title2](/r/gnoland/blog:p/slug2)
**[Learn More](/r/gnoland/blog:p/slug2)**

</div></div>
`
assertMDEquals(t, got, expected)
}
Expand Down Expand Up @@ -62,7 +70,12 @@ by g1u7y667z64x2h7vc6fmpcprgey4ck233jaww9zq on 2009-02-13 11:31pm UTC
expected = `
# [Gnoland's Blog](/r/gnoland/blog:) / t / tag2

## [&#9656; title1](/r/gnoland/blog:p/slug1)
<div>

## [title1](/r/gnoland/blog:p/slug1)
**[Learn More](/r/gnoland/blog:p/slug1)**

</div>
`
assertMDEquals(t, got, expected)
}
Expand Down
8 changes: 6 additions & 2 deletions gno.land/cmd/gnoweb/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ func handlerHome(app gotuna.App) http.Handler {

return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
app.NewTemplatingEngine().
Set("Title", "Gno.land Smart Contract Platform Using Gnolang (Gno)").
Set("Description", "Gno.land is the only smart contract platform using the Gnolang (Gno) programming language, an interpretation of the widely-used Golang (Go).").
Set("HomeContent", string(homeContent)).
Render(w, r, "home.html", "funcs.html")
})
Expand All @@ -111,7 +113,8 @@ func handlerAbout(app gotuna.App) http.Handler {

return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
app.NewTemplatingEngine().
Set("Title", "About").
Set("Title", "Gno.land Is A Platform To Write Smart Contracts In Gnolang (Gno)").
Set("Description", "On Gno.land, developers write smart contracts and other blockchain apps using Gnolang (Gno) without learning a language that’s exclusive to a single ecosystem.").
Set("MainContent", string(mainContent)).
Render(w, r, "generic.html", "funcs.html")
})
Expand All @@ -124,7 +127,8 @@ func handlerGor(app gotuna.App) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
app.NewTemplatingEngine().
Set("MainContent", string(mainContent)).
Set("Title", "About").
Set("Title", "Game of Realms Content For The Best Contributors ").
Set("Description", "Game of Realms is the first high-stakes competition held in two phases to find the best contributors to the Gno.land platform with a 133,700 ATOM prize pool.").
Render(w, r, "generic.html", "funcs.html")
})
}
Expand Down
2 changes: 1 addition & 1 deletion gno.land/cmd/gnoweb/pages/GOR.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Start building the foundation for tomorrow through key smart contracts and other

You can start participating in the co-creation of the Game of Realms now by adding your contributions on the dedicated [GitHub page](https://github.com/gnolang/gno/issues/357) to help us formulate the challenges. We want to release the final challenges from your contributions.

## Register Now
## Register Now

<!-- mailchimp -->
<div id="mc_embed_signup">
Expand Down
Loading