4import Yoga.React.DOM.HTML as H
6import Effect.Class.Console (log)
7import Yoga.React.DOM.Server (renderToStaticMarkup, renderToString)
8import Yoga.React.DOM.HTML.Tfoot (tfoot)
9import React.Basic (JSX)
10import Yoga.React.DOM.Internal (text)
11import Yoga.React.DOM.HTML.Blockquote (blockquote) as H
12import Node.FS.Aff (writeTextFile)
13import Effect.Aff (launchAff_)
14import Node.Encoding (Encoding(UTF8))
15import Example (mkExample)
19 exampleApp <- mkExample
21 writeTextFile UTF8 "index.html" (renderToStaticMarkup (example exampleApp))
23example :: ({} -> JSX) -> JSX
24example exampleApp = H.html {}
26 [ H.title "My Web Page"
27 , H.meta { charSet: "UTF-8" }
28 , H.meta { name: "viewport", content: "width=device-width, initial-scale=1.0" }
29 , H.link { rel: "stylesheet", href: "styles.css" }
30 , H.style {} "body { background-color: #f0f0f2; }"
31 , H.script { src: "https://cdn.tailwindcss.com" }
32 , H.body { className: "w-full" } $
33 H.div_ { id: "react-root", dangerouslySetInnerHTML: { __html: renderToString $ exampleApp {} } }
34 , H.script { src: "index.js" }
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list