From c25f3e695bbfb731caba15ecec3863a837ad8fc1 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Sat, 25 Jun 2016 07:54:46 -0700 Subject: [PATCH] Extract elmHubHeader --- part1/Main.elm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/part1/Main.elm b/part1/Main.elm index 1511f7b..a059cea 100644 --- a/part1/Main.elm +++ b/part1/Main.elm @@ -13,12 +13,16 @@ model = } +elmHubHeader = + header [] + [ -- TODO add the equivalent of

ElmHub

right before this + span [ class "tagline" ] [ text "“Like GitHub, but for Elm things.”" ] + ] + + view model = div [ class "content" ] - [ header [] - [ -- TODO add the equivalent of

ElmHub

right before this - span [ class "tagline" ] [ text "“Like GitHub, but for Elm things.”" ] - ] + [ elmHubHeader , ul [ class "results" ] [ li [] [ span [ class "star-count" ] [{- TODO display the number of stars -}]