Update part2
This commit is contained in:
@@ -14,7 +14,7 @@ view tags =
|
|||||||
[ div [ class "sidebar" ]
|
[ div [ class "sidebar" ]
|
||||||
[ p [] [ text "Popular Tags" ]
|
[ p [] [ text "Popular Tags" ]
|
||||||
|
|
||||||
-- TODO pass the actual tags to viewTags
|
-- TODO instead of passing [] to viewTags, pass the actual tags
|
||||||
, viewTags []
|
, 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 =
|
viewBanner =
|
||||||
div [ class "banner" ]
|
div [ class "banner" ]
|
||||||
[ div [ class "container" ]
|
[ div [ class "container" ]
|
||||||
@@ -34,20 +51,3 @@ viewBanner =
|
|||||||
|
|
||||||
viewFeed =
|
viewFeed =
|
||||||
div [ class "feed-toggle" ] [ text "(We’ll display some articles here later.)" ]
|
div [ class "feed-toggle" ] [ text "(We’ll 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 [] []
|
|
||||||
|
|||||||
Reference in New Issue
Block a user