Make stuff work better.

This commit is contained in:
Richard Feldman
2016-03-25 22:27:00 -07:00
parent 817f897944
commit b70d960719
10 changed files with 23 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ module Main (..) where
import Html exposing (..) import Html exposing (..)
import Html.Attributes exposing (..) import Html.Attributes exposing (..)
import StartApp.Simple as StartApp import StartApp.Simple as StartApp
import Signal exposing (Address)
main = main =
@@ -63,7 +64,7 @@ initialModel =
view : Address Action -> Model -> Html view : Address Action -> Model -> Html
view model = view address model =
div div
[ class "content" ] [ class "content" ]
[ header [ header
@@ -82,6 +83,17 @@ viewSearchResult result =
li li
[] []
[ span [ class "star-count" ] [ text (toString result.stars) ] [ 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 , text result.name
] ]
type alias Action =
{ actionType : String
, payload : Int
}
update : Action -> Model -> Model
update action model =
model

View File

@@ -9,6 +9,7 @@
header { header {
position: relative; position: relative;
padding: 6px 12px; padding: 6px 12px;
height: 36px;
background-color: rgb(96, 181, 204); background-color: rgb(96, 181, 204);
} }

View File

@@ -9,6 +9,7 @@
header { header {
position: relative; position: relative;
padding: 6px 12px; padding: 6px 12px;
height: 36px;
background-color: rgb(96, 181, 204); background-color: rgb(96, 181, 204);
} }

View File

@@ -9,6 +9,7 @@
header { header {
position: relative; position: relative;
padding: 6px 12px; padding: 6px 12px;
height: 36px;
background-color: rgb(96, 181, 204); background-color: rgb(96, 181, 204);
} }

View File

@@ -9,6 +9,7 @@
header { header {
position: relative; position: relative;
padding: 6px 12px; padding: 6px 12px;
height: 36px;
background-color: rgb(96, 181, 204); background-color: rgb(96, 181, 204);
} }

View File

@@ -9,6 +9,7 @@
header { header {
position: relative; position: relative;
padding: 6px 12px; padding: 6px 12px;
height: 36px;
background-color: rgb(96, 181, 204); background-color: rgb(96, 181, 204);
} }

View File

@@ -9,6 +9,7 @@
header { header {
position: relative; position: relative;
padding: 6px 12px; padding: 6px 12px;
height: 36px;
background-color: rgb(96, 181, 204); background-color: rgb(96, 181, 204);
} }

View File

@@ -9,6 +9,7 @@
header { header {
position: relative; position: relative;
padding: 6px 12px; padding: 6px 12px;
height: 36px;
background-color: rgb(96, 181, 204); background-color: rgb(96, 181, 204);
} }

View File

@@ -9,6 +9,7 @@
header { header {
position: relative; position: relative;
padding: 6px 12px; padding: 6px 12px;
height: 36px;
background-color: rgb(96, 181, 204); background-color: rgb(96, 181, 204);
} }

View File

@@ -9,6 +9,7 @@
header { header {
position: relative; position: relative;
padding: 6px 12px; padding: 6px 12px;
height: 36px;
background-color: rgb(96, 181, 204); background-color: rgb(96, 181, 204);
} }