From 6eb27596a874686df1f6c999d2f97d7081d70483 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Fri, 25 Mar 2016 21:52:39 -0700 Subject: [PATCH] Clean up 1 --- stages/1/Main.elm | 8 +------- stages/1/README.md | 4 ++-- stages/1/style.css | 6 +++--- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/stages/1/Main.elm b/stages/1/Main.elm index 2ed075a..4f34c41 100644 --- a/stages/1/Main.elm +++ b/stages/1/Main.elm @@ -4,11 +4,6 @@ import Html exposing (..) import Html.Attributes exposing (..) import Html.Events exposing (..) 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 = @@ -78,13 +73,12 @@ view address model = ] -viewSearchResult : SearchResult -> Html viewSearchResult result = li [] [ span [ class "star-count" ] [ text (toString result.stars) ] -- TODO replace the following span with a link that opens in a new window! - , span [ class "result-name" ] [ text result.name ] + , text result.name ] diff --git a/stages/1/README.md b/stages/1/README.md index 7f160e4..e4a727c 100644 --- a/stages/1/README.md +++ b/stages/1/README.md @@ -4,7 +4,7 @@ Stage 1 ## Installation ```bash -$ elm package install +elm package install ``` (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 ```bash -$ elm live Main.elm --open -- --output=elm.js +elm live Main.elm --open -- --output=elm.js ``` diff --git a/stages/1/style.css b/stages/1/style.css index 8ee7f3b..5a5a285 100644 --- a/stages/1/style.css +++ b/stages/1/style.css @@ -40,15 +40,15 @@ h1 { .star-count { font-weight: bold; + margin-right: 16px; } -.result-name { +a { color: rgb(96, 181, 204); - margin-left: 16px; text-decoration: none; } -.result-name:hover{ +a:hover { text-decoration: underline; }