Update part2

This commit is contained in:
Richard Feldman
2018-05-05 05:54:25 -04:00
parent 4944d215c3
commit 79d3acd696

View File

@@ -14,7 +14,7 @@ view tags =
[ div [ class "sidebar" ]
[ p [] [ text "Popular Tags" ]
-- TODO pass the actual tags to viewTags
-- TODO instead of passing [] to viewTags, pass the actual tags
, viewTags []
]
]
@@ -23,6 +23,23 @@ view tags =
]
viewTags tags =
let
renderedTags =
-- TODO use `List.map` and `viewTag` to render the tags
[]
in
div [ class "tag-list" ] renderedTags
viewTag tagName =
{- TODO render something like this:
<button class="tag-pill tag-default">tag name goes here</button>
-}
button [] []
viewBanner =
div [ class "banner" ]
[ div [ class "container" ]
@@ -34,20 +51,3 @@ viewBanner =
viewFeed =
div [ class "feed-toggle" ] [ text "(Well display some articles here later.)" ]
viewTags tags =
let
renderedTags =
-- TODO use List.map to render the tags
[]
in
div [ class "tag-list" ] renderedTags
viewTag tagName =
{- TODO render something like this:
<button class="tag-pill tag-default">tag name goes here</button>
-}
button [] []