@@ -54,13 +54,21 @@ main = run (startApp Main.topLevel)
5454topLevel = (component () noop viewTop)
5555#ifndef WASM
5656 { styles = [ Href " assets/style.css" ]
57+ , scripts = [ Src " https://buttons.github.io/buttons.js" ]
5758 }
5859#endif
5960 where
6061 viewTop () =
6162 div_
6263 []
63- [ h1_ [] [ " 🍜 miso-reactive 💥" ]
64+ [ h1_
65+ []
66+ [ " 🍜 miso-reactive 💥"
67+ ]
68+ , h1_
69+ []
70+ [ githubStar
71+ ]
6472 , div_
6573 [ className " container"
6674 ]
@@ -71,12 +79,25 @@ topLevel = (component () noop viewTop)
7179 ]
7280 ]
7381----------------------------------------------------------------------------
82+ githubStar :: View parent action
83+ githubStar = iframe_
84+ [ title_ " GitHub"
85+ , height_ " 30"
86+ , width_ " 170"
87+ , textProp " scrolling" " 0"
88+ , textProp " frameborder" " 0"
89+ , src_
90+ " https://ghbtns.com/github-btn.html?user=haskell-miso&repo=miso-reactive&type=star&count=true&size=large"
91+ ]
92+ []
93+
94+ ----------------------------------------------------------------------------
7495data Example
7596 = Example
76- { exampleBindings :: [ Binding ParentModel ChildModel ]
77- , exampleHeader :: MisoString
97+ { exampleBindings :: [ Binding ParentModel ChildModel ]
98+ , exampleHeader :: MisoString
7899 , exampleDescription :: MisoString
79- , exampleSource :: MisoString
100+ , exampleSource :: MisoString
80101 }
81102----------------------------------------------------------------------------
82103-- | Bidirectional binding between parent and child
0 commit comments