Skip to content

Commit 189ddcc

Browse files
committed
Add github link
1 parent b5d7cad commit 189ddcc

File tree

3 files changed

+29
-8
lines changed

3 files changed

+29
-8
lines changed

app/Main.hs

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,21 @@ main = run (startApp Main.topLevel)
5454
topLevel = (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+
----------------------------------------------------------------------------
7495
data 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

cabal.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ allow-newer:
77
source-repository-package
88
type: git
99
location: https://github.com/dmjio/miso
10-
tag: 53199312895a9626f7bbe59a087b3fecd66692f8
10+
tag: afcdba5d77f8321d62b1b99bd669628b2e7d7524
1111

1212
flags: +template-haskell

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)