Search Apps Documentation Source Content File Folder Download Copy Actions Download

render.gno

1.91 Kb · 62 lines
 1package home
 2
 3func Render(path string) string {
 4	switch path {
 5	case "3":
 6		return r3()
 7	case "2":
 8		return r2()
 9	default:
10		return r1()
11	}
12}
13
14const tripleBackquote = "```"
15const art = `
16                           (    )
17                          (    )
18                            )  )
19                           (  (                  /\
20                            (_)                 /  \  /\
21                    ________[_]________      /\/    \/  \
22           /\      /\        ______    \    /   /\/\  /\/\
23          /  \    //_\       \    /\    \  /\/\/    \/    \
24   /\    / /\/\  //___\       \__/  \    \/      +     '   
25  /  \  /\/    \//_____\       \ |[]|     \    .    t     .
26 /\/\/\/       //_______\       \|__|      \     p    e    
27/      \      /XXXXXXXXXX\                  \      o    l  
28        \    /_I_II  I__I_\__________________\  +    r    e
29               I_I|  I__I_____[]_|_[]_____I      .     t   
30               I_II  I__I_____[]_|_[]_____I          +    '
31               I II__I  I     XXXXXXX     I    
32            ~~~~~"   "~~~~~~~~~~~~~~~~~~~~~~~~   :*:*:*:*:*
33`
34
35func r1() string {
36	return "# greps' (gn)home" +
37		`
38You've reached the terrestrial realms of Grepsuzette on gno.land. 
39
40` + tripleBackquote + art + tripleBackquote + `
41
42I am often on my [GNO asteroid](https://greps.gnAsteroid.com) too.
43
44* Public address: g1fjh9y7ausp27dqsdq0qrcsnmgvwm6829v2au7d
45* Contributor since summer 2022 ([notable contributions](/r/grepsuzette/home:3))
46* You can try my games in GNO (they use gnoweb -html):
47  * [tic-tac-toe](https://greps.gnasteroid.com/r/grepsuzette/pr2554/v6/games/tictactoe)
48  * [minesweeper](https://greps.gnasteroid.com/r/grepsuzette/pr2554/v6/games/minesweeper)
49`
50}
51
52func r2() string {
53	return `A manual index, until there's an automated way:
54
55* [home](home/): greps' home on gno.land
56* [games](games/): series of games
57
58I'm often on my [GNO asteroid][1] too.
59
60[1]: https://greps.gnAsteroid.com
61`
62}