Use a let-expression in part2
This commit is contained in:
@@ -13,29 +13,29 @@ initialModel =
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
elmHubHeader =
|
|
||||||
header []
|
|
||||||
[ h1 [] [ text "ElmHub" ]
|
|
||||||
, span [ class "tagline" ] [ text "Like GitHub, but for Elm things." ]
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
view model =
|
view model =
|
||||||
div [ class "content" ]
|
let
|
||||||
[ text "TODO put the contents of elmHubHeader here instead of this text!"
|
elmHubHeader =
|
||||||
, ul [ class "results" ]
|
header []
|
||||||
[ li []
|
[ h1 [] [ text "ElmHub" ]
|
||||||
[ span [ class "star-count" ]
|
, span [ class "tagline" ] [ text "Like GitHub, but for Elm things." ]
|
||||||
[-- TODO display the number of stars here.
|
]
|
||||||
--
|
in
|
||||||
-- HINT: You'll need some parentheses to do this!
|
div [ class "content" ]
|
||||||
|
[ text "TODO put the contents of elmHubHeader here instead of this text!"
|
||||||
|
, ul [ class "results" ]
|
||||||
|
[ li []
|
||||||
|
[ span [ class "star-count" ]
|
||||||
|
[-- TODO display the number of stars here.
|
||||||
|
--
|
||||||
|
-- HINT: You'll need some parentheses to do this!
|
||||||
|
]
|
||||||
|
-- TODO use the model to put a link here that points to
|
||||||
|
-- https://github.com/TheSeamau5/elm-checkerboardgrid-tutorial
|
||||||
|
-- by prepending the "https://github.com/" part.
|
||||||
]
|
]
|
||||||
-- TODO use the model to put a link here that points to
|
|
||||||
-- https://github.com/TheSeamau5/elm-checkerboardgrid-tutorial
|
|
||||||
-- by prepending the "https://github.com/" part.
|
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
main =
|
main =
|
||||||
|
|||||||
Reference in New Issue
Block a user