From b70d960719ce528956d175c987dfcc2c1da231d2 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Fri, 25 Mar 2016 22:27:00 -0700 Subject: [PATCH] Make stuff work better. --- stages/1/Main.elm | 16 ++++++++++++++-- stages/1/style.css | 1 + stages/2/style.css | 1 + stages/3/style.css | 1 + stages/4/style.css | 1 + stages/5/style.css | 1 + stages/6/style.css | 1 + stages/7/style.css | 1 + stages/8/style.css | 1 + stages/9/style.css | 1 + 10 files changed, 23 insertions(+), 2 deletions(-) diff --git a/stages/1/Main.elm b/stages/1/Main.elm index d0399f9..dbeb859 100644 --- a/stages/1/Main.elm +++ b/stages/1/Main.elm @@ -3,6 +3,7 @@ module Main (..) where import Html exposing (..) import Html.Attributes exposing (..) import StartApp.Simple as StartApp +import Signal exposing (Address) main = @@ -63,7 +64,7 @@ initialModel = view : Address Action -> Model -> Html -view model = +view address model = div [ class "content" ] [ header @@ -82,6 +83,17 @@ viewSearchResult result = li [] [ span [ class "star-count" ] [ text (toString result.stars) ] - -- TODO replace the following with a link that opens in a new window! + -- TODO replace the following with a link to the appropriate GitHub repo. , text result.name ] + + +type alias Action = + { actionType : String + , payload : Int + } + + +update : Action -> Model -> Model +update action model = + model diff --git a/stages/1/style.css b/stages/1/style.css index 5a5a285..64c74d7 100644 --- a/stages/1/style.css +++ b/stages/1/style.css @@ -9,6 +9,7 @@ header { position: relative; padding: 6px 12px; + height: 36px; background-color: rgb(96, 181, 204); } diff --git a/stages/2/style.css b/stages/2/style.css index 5a5a285..64c74d7 100644 --- a/stages/2/style.css +++ b/stages/2/style.css @@ -9,6 +9,7 @@ header { position: relative; padding: 6px 12px; + height: 36px; background-color: rgb(96, 181, 204); } diff --git a/stages/3/style.css b/stages/3/style.css index 5a5a285..64c74d7 100644 --- a/stages/3/style.css +++ b/stages/3/style.css @@ -9,6 +9,7 @@ header { position: relative; padding: 6px 12px; + height: 36px; background-color: rgb(96, 181, 204); } diff --git a/stages/4/style.css b/stages/4/style.css index 5a5a285..64c74d7 100644 --- a/stages/4/style.css +++ b/stages/4/style.css @@ -9,6 +9,7 @@ header { position: relative; padding: 6px 12px; + height: 36px; background-color: rgb(96, 181, 204); } diff --git a/stages/5/style.css b/stages/5/style.css index 5a5a285..64c74d7 100644 --- a/stages/5/style.css +++ b/stages/5/style.css @@ -9,6 +9,7 @@ header { position: relative; padding: 6px 12px; + height: 36px; background-color: rgb(96, 181, 204); } diff --git a/stages/6/style.css b/stages/6/style.css index 5a5a285..64c74d7 100644 --- a/stages/6/style.css +++ b/stages/6/style.css @@ -9,6 +9,7 @@ header { position: relative; padding: 6px 12px; + height: 36px; background-color: rgb(96, 181, 204); } diff --git a/stages/7/style.css b/stages/7/style.css index 5a5a285..64c74d7 100644 --- a/stages/7/style.css +++ b/stages/7/style.css @@ -9,6 +9,7 @@ header { position: relative; padding: 6px 12px; + height: 36px; background-color: rgb(96, 181, 204); } diff --git a/stages/8/style.css b/stages/8/style.css index 5a5a285..64c74d7 100644 --- a/stages/8/style.css +++ b/stages/8/style.css @@ -9,6 +9,7 @@ header { position: relative; padding: 6px 12px; + height: 36px; background-color: rgb(96, 181, 204); } diff --git a/stages/9/style.css b/stages/9/style.css index 5a5a285..64c74d7 100644 --- a/stages/9/style.css +++ b/stages/9/style.css @@ -9,6 +9,7 @@ header { position: relative; padding: 6px 12px; + height: 36px; background-color: rgb(96, 181, 204); }