-
Notifications
You must be signed in to change notification settings - Fork 1
/
temp
45 lines (37 loc) · 1.49 KB
/
temp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
room.view.
-- case room.active of
-- Room.Model.Top -> --, List.map (\wall -> Css.additionalWallStyles wall room.active room.size.height ) room.walls
-- Top.content room.active
-- _ ->
-- div [][]
-- case room.active of
-- Room.Model.Top -> --,
-- Top.content room.active
-- _ ->
-- div [][]
-- (List.map (\wall -> Css.additionalWallStyles wall room.active room.size.height) room.walls) |> Attributes.map
-- let
-- styles =
-- Css.additionalRoomStyles room
-- style_ =
-- List.concat styles
-- _ = Debug.log "style" style_
-- in
-- style [("","")]
-- , Css.additionalWallStyles room
-- , Attributes.map Attributes.style (List.concat (Css.additionalRoomStyles room))
buildWalls : Room -> Html msg
buildWalls room =
div
([ classList
[ ( "wall", True )
, ( "top", room.active == Room.Model.Top )
, ( "right", room.active == Room.Model.Right )
, ( "floor", room.active == Room.Model.Bottom )
, ( "left", room.active == Room.Model.Left )
, ( "center", room.active == Room.Model.Center )
]
]
++ Css.additionalRoomStyles room
)
[]