Clean up 1

This commit is contained in:
Richard Feldman
2016-03-25 21:52:39 -07:00
parent 5ea85442c0
commit 6eb27596a8
3 changed files with 6 additions and 12 deletions

View File

@@ -4,11 +4,6 @@ import Html exposing (..)
import Html.Attributes exposing (..) import Html.Attributes exposing (..)
import Html.Events exposing (..) import Html.Events exposing (..)
import StartApp.Simple as StartApp import StartApp.Simple as StartApp
import Task exposing (Task)
import Effects exposing (Effects)
import Json.Decode exposing (Decoder, (:=))
import Json.Encode
import Signal exposing (Address)
main = main =
@@ -78,13 +73,12 @@ view address model =
] ]
viewSearchResult : SearchResult -> Html
viewSearchResult result = viewSearchResult result =
li li
[] []
[ span [ class "star-count" ] [ text (toString result.stars) ] [ span [ class "star-count" ] [ text (toString result.stars) ]
-- TODO replace the following span with a link that opens in a new window! -- TODO replace the following span with a link that opens in a new window!
, span [ class "result-name" ] [ text result.name ] , text result.name
] ]

View File

@@ -4,7 +4,7 @@ Stage 1
## Installation ## Installation
```bash ```bash
$ elm package install elm package install
``` ```
(Answer `y` at the prompt. In rare cases a known issue can cause the download (Answer `y` at the prompt. In rare cases a known issue can cause the download
@@ -13,5 +13,5 @@ to fail; in that case, just run `elm package install` again.)
## Building ## Building
```bash ```bash
$ elm live Main.elm --open -- --output=elm.js elm live Main.elm --open -- --output=elm.js
``` ```

View File

@@ -40,15 +40,15 @@ h1 {
.star-count { .star-count {
font-weight: bold; font-weight: bold;
margin-right: 16px;
} }
.result-name { a {
color: rgb(96, 181, 204); color: rgb(96, 181, 204);
margin-left: 16px;
text-decoration: none; text-decoration: none;
} }
.result-name:hover{ a:hover {
text-decoration: underline; text-decoration: underline;
} }