home.gno

1.02 Kb · 34 lines
 1package home
 2
 3import (
 4	"strings"
 5
 6	"gno.land/p/nt/ufmt"
 7	"gno.land/p/sunspirit/md"
 8)
 9
10func Render(path string) string {
11	var sb strings.Builder
12
13	sb.WriteString(md.H1("Sunspirit's Home") + md.LineBreak(1))
14
15	sb.WriteString(md.Paragraph(ufmt.Sprintf(
16		"Welcome to Sunspirit’s home! This is where I’ll bring %s to Gno.land, crafted with my experience and creativity.",
17		md.Italic(md.Bold("simple, useful dapps")),
18	)) + md.LineBreak(1))
19
20	sb.WriteString(md.Paragraph(ufmt.Sprintf(
21		"📚 I’ve created a Markdown rendering library at %s. Feel free to use it for your own projects!",
22		md.Link("gno.land/p/sunspirit/md", "/p/sunspirit/md"),
23	)) + md.LineBreak(1))
24
25	sb.WriteString(md.Paragraph("💬 I’d love to hear your feedback to help improve this library!") + md.LineBreak(1))
26
27	sb.WriteString(md.Paragraph(ufmt.Sprintf(
28		"🌐 You can check out a demo of this package in action at %s.",
29		md.Link("gno.land/r/sunspirit/md", "/r/sunspirit/md"),
30	)) + md.LineBreak(1))
31	sb.WriteString(md.HorizontalRule())
32
33	return sb.String()
34}