Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

v0 state

Back to all declarations

defaultAccent

untyped string

Value

"#D9A441"

defaultBg

untyped string

Value

"#14161C"

defaultFg

untyped string

Value

"#F4EFE6"

DefaultLayout

untyped string

DefaultLayout is what renders when no layout slot is set. content/layout.md starts as a copy of it; push that slot to depart from it.

Value

":header:\n\n<gno-columns>\n![Clockwork](https://avatars.githubusercontent.com/u/6826762?s=400)\n<gno-columns-sep />\n:intro:\n\n:links:\n</gno-columns>\n\n## Now\n\n:now:\n\n## Previously\n\n:previously:\n\n## Stack\n\n:stack:\n\n## Before the rabbit hole\n\n:before:\n\n## Numbers\n"...

clockwork

type

Value

v0.clockwork

Instance

func() home.Theme

Instance returns the theme object, for a caller that would rather register it explicitly than rely on this realm's init having done it.

Open
OID
0cb7b1…ee84:6
Instance details

Inspect func

card

func(name string, tagline string, meta string) string

card draws the header: name, tagline and a meta line on a rounded panel, with a gear on the right. Text is clipped, not wrapped, so keep the tagline to one line.

Open
OID
0cb7b1…ee84:12
card details

Inspect func

image

func(alt string, svg string) string

image wraps an SVG document as a markdown image with a data: URI. gnoweb rejects every data: image except image/svg+xml, and gno.land's CSP allows data: in img-src, so this is the one way to draw without hosting anything.

Open
OID
0cb7b1…ee84:13
image details

Inspect func

color

func(key string, fallback string) string

color returns the style knob when it is a well-formed #RRGGBB, else the default. Knobs are admin-written, but a value is still pasted into markup, so the shape is checked rather than trusted.

Open
OID
0cb7b1…ee84:14
color details

Inspect func

isHexColor

func(s string) bool
Open
OID
0cb7b1…ee84:15
isHexColor details

Inspect func

esc

func(s string) string

esc escapes text for an SVG element body or attribute.

Open
OID
0cb7b1…ee84:16
esc details

Inspect func
defaultAccent : untyped string ="#D9A441"
defaultBg : untyped string ="#14161C"
defaultFg : untyped string ="#F4EFE6"
DefaultLayout : untyped string =":header:\n\n<gno-columns>\n![Clockwork](https://avatars.githubusercontent.com/u/6826762?s=400)\n<gno-columns-sep />\n:intro:\n\n:links:\n</gno-columns>\n\n## Now\n\n:now:\n\n## Previously\n\n:previously:\n\n## Stack\n\n:stack:\n\n## Before the rabbit hole\n\n:before:\n\n## Numbers\n"...
clockwork : type =v0.clockwork
instance : *v0.clockwork Inspect
Instance : func() home.Theme Inspect
init.7 : func() Inspect
header : func() string Inspect
divider : func() string Inspect
card : func(name string, tagline string, meta string) string Inspect
image : func(alt string, svg string) string Inspect
color : func(key string, fallback string) string Inspect
isHexColor : func(s string) bool Inspect
esc : func(s string) string Inspect