@@ -14,9 +14,12 @@ view model =
14
14
, p [ class " white f2 ml4 mb1" ] [ text " Studio Ghibli films" ]
15
15
, div [ class " flex" ]
16
16
[ createFilmListSection model
17
- , filmDescription model
17
+ , div
18
+ [ class " w-60" ]
19
+ [ buildGifs model. gifUrls
20
+ , filmDescription model
21
+ ]
18
22
]
19
- , buildGifs model. gifUrls
20
23
]
21
24
22
25
@@ -49,24 +52,24 @@ buttonStyle =
49
52
50
53
gifStyle : Attribute msg
51
54
gifStyle =
52
- class " grow ma2 br2 h4 flex align-center"
55
+ class " grow br2 h4 flex align-center"
53
56
54
57
55
58
createGif : ( GifLink , GifSrc ) -> Html Msg
56
59
createGif ( gifLink, gifSrc ) =
57
- a [ href gifLink ] [ img [ src gifSrc, alt " a gif" , gifStyle ] [] ]
60
+ a [ class " mr2 ml0 " , href gifLink ] [ img [ src gifSrc, alt " a gif" , gifStyle ] [] ]
58
61
59
62
60
63
buildGifs : List ( GifLink , GifSrc ) -> Html Msg
61
64
buildGifs gifUrls =
62
- section [ class " bg-pink pa2 " ] <| List . map createGif gifUrls
65
+ section [ class " bg-pink flex " ] <| List . map createGif gifUrls
63
66
64
67
65
68
filmDescription : Model -> Html Msg
66
69
filmDescription model =
67
70
case model. hoveredFilm of
68
71
Nothing ->
69
- h2 [ class " flex white w-60 helvetica i fw2 lh-copy mr5" ] [ text " Hover over a film title to see the description! Click for gifs!" ]
72
+ h2 [ class " white helvetica i fw2 lh-copy mr5" ] [ text " Hover over a film title to see the description! Click for gifs!" ]
70
73
71
74
Just int ->
72
75
let
@@ -78,4 +81,4 @@ filmDescription model =
78
81
Just film ->
79
82
film. description
80
83
in
81
- h2 [ class " flex white w-60 helvetica i fw2 lh-copy mr5" ] [ text description ]
84
+ h2 [ class " white helvetica i fw2 lh-copy mr5" ] [ text description ]
0 commit comments