Revise part12 and part13

This commit is contained in:
Richard Feldman
2016-09-07 01:05:27 -05:00
parent b45519d0a0
commit 282906a3ec
4 changed files with 92 additions and 35 deletions

View File

@@ -193,11 +193,16 @@ viewErrorMessage errorMessage =
text ""
viewSearchResult : SearchResult -> Html Msg
viewStars : SearchResult -> Table.HtmlDetails Msg
viewStars result =
Table.HtmlDetails []
[ span [ class "star-count" ] [ text (toString result.stars) ] ]
viewSearchResult : SearchResult -> Table.HtmlDetails Msg
viewSearchResult result =
li []
[ span [ class "star-count" ] [ text (toString result.stars) ]
, a [ href ("https://github.com/" ++ result.name), target "_blank" ]
Table.HtmlDetails []
[ a [ href ("https://github.com/" ++ result.name), target "_blank" ]
[ text result.name ]
, button [ class "hide-result", onClick (DeleteById result.id) ]
[ text "X" ]

View File

@@ -145,4 +145,18 @@ css =
-- display: block;
-- color: #555;
-- }
--
-- th {
-- text-align: left;
-- cursor: pointer;
-- }
--
-- th:hover {
-- color: rgb(96, 181, 204);
-- }
--
-- th, td {
-- font-size: 18px;
-- padding-right: 20px;
-- }
]