Use a let-expression in part2
This commit is contained in:
@@ -13,14 +13,14 @@ initialModel =
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
elmHubHeader =
|
view model =
|
||||||
|
let
|
||||||
|
elmHubHeader =
|
||||||
header []
|
header []
|
||||||
[ h1 [] [ text "ElmHub" ]
|
[ h1 [] [ text "ElmHub" ]
|
||||||
, span [ class "tagline" ] [ text "Like GitHub, but for Elm things." ]
|
, span [ class "tagline" ] [ text "Like GitHub, but for Elm things." ]
|
||||||
]
|
]
|
||||||
|
in
|
||||||
|
|
||||||
view model =
|
|
||||||
div [ class "content" ]
|
div [ class "content" ]
|
||||||
[ text "TODO put the contents of elmHubHeader here instead of this text!"
|
[ text "TODO put the contents of elmHubHeader here instead of this text!"
|
||||||
, ul [ class "results" ]
|
, ul [ class "results" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user