Add landing page for kjol, documentation
This commit is contained in:
@@ -13,6 +13,20 @@ func Measure(*vdom.Ref) Rect { return Rect{} }
|
||||
func Viewport() Size { return Size{} }
|
||||
func CSSVarPx(string) float64 { return 0 }
|
||||
|
||||
// Now is 0 on the server: there is no page load to measure from. A component that
|
||||
// reports a timing therefore SSRs an empty reading and fills it in once the client has
|
||||
// taken over — which is the honest answer, since the number IS a property of the client.
|
||||
func Now() float64 { return 0 }
|
||||
|
||||
// The theme is a property of the BROWSER — the OS setting and a localStorage choice,
|
||||
// neither of which the server can see. So the server always renders the light theme, and
|
||||
// the document's boot script (webui.ThemeBootScript) applies the dark class before the
|
||||
// first paint. Nothing here can help with that, and pretending otherwise would just move
|
||||
// the flash somewhere harder to find.
|
||||
func PrefersDark() bool { return false }
|
||||
func OnMediaChange(string, func(bool)) Unsub { return func() {} }
|
||||
func SetRootClass(string, bool) {}
|
||||
|
||||
func RAF(func()) int { return 0 }
|
||||
func CancelRAF(int) {}
|
||||
func AfterRender(func()) {}
|
||||
|
||||
Reference in New Issue
Block a user