@@ -10,24 +10,27 @@ import List.Extra exposing (getAt)
10
10
view : Model -> Html Msg
11
11
view model =
12
12
div [ class " mh5" ]
13
- [ h1 [ class " tc f1 orange ma5 b" ] [ text " Studio Ghibli Horseplay" ]
14
- , createFilmListSection model
13
+ [ h1 [ class " tc f-headline gold pb4 bb b--gold bw3" ] [ text " Studio Ghibli Horseplay" ]
14
+ , p [ class " white f2 ml4 mb1" ] [ text " Studio Ghibli films" ]
15
+ , div [ class " flex" ]
16
+ [ createFilmListSection model
17
+ , filmDescription model
18
+ ]
15
19
, buildGifs model. gifUrls
16
- , filmDescription model
17
20
]
18
21
19
22
20
23
createFilmListSection : Model -> Html Msg
21
24
createFilmListSection model =
22
- aside []
25
+ aside [ class " flex w-40 " ]
23
26
[ ul [] <|
24
27
List . indexedMap createFilmItem model. allFilms
25
28
]
26
29
27
30
28
31
createFilmItem : Int -> FilmRecord -> Html Msg
29
32
createFilmItem index filmRecord =
30
- li [ class " list white f3 ma1 helvetica" , onMouseEnter ( Hover index) ] [ text filmRecord. title ]
33
+ li [ class " list white f3 ma1 helvetica pointer " , onMouseEnter ( Hover index) ] [ text filmRecord. title ]
31
34
32
35
33
36
buttonStyle : Attribute msg
@@ -54,16 +57,16 @@ filmDescription : Model -> Html Msg
54
57
filmDescription model =
55
58
case model. hoveredFilm of
56
59
Nothing ->
57
- h2 [] [ text " Choose a film, goddamnit " ]
60
+ h2 [ class " flex white w-60 helvetica " ] [ text " Hover over a film title to see the description! Click for gifs! " ]
58
61
59
62
Just int ->
60
63
let
61
64
description =
62
65
case getAt int model. allFilms of
63
66
Nothing ->
64
- " you broke it"
67
+ " You broke it. "
65
68
66
69
Just film ->
67
70
film. description
68
71
in
69
- h2 [] [ text description ]
72
+ h2 [ class " flex white w-60 helvetica " ] [ text description ]
0 commit comments