git.iko.soy/typeable/elm-ui
on 4ea86ab help sign in
54 lines 1.3 kB history raw
1module Tests.Basic exposing (view)
3{-| -}
5import Element as Actual
6import Html
7import Testable
8import Testable.Element as Element exposing (..)
9import Testable.Element.Background as Background
10import Testable.Element.Font as Font
11import Testable.Runner
12import Tests.Palette as Palette
15{-| -}
16main : Html.Html msg
17main =
18 Testable.Runner.show view
21{-| -}
22view : Testable.Element msg
23view =
24 row [ spacing 50, alignTop ]
25 [ el
26 [ width (px 200)
27 , height (px 200)
28 , Background.color Palette.blue
29 , Font.color Palette.white
30 ]
31 (text "Hello!")
32 , el
33 [ width (px 200)
34 , height (px 200)
35 , Background.color Palette.blue
36 , Font.color Palette.white
37 ]
38 (text "Hello!")
39 , el
40 [ width (px 200)
41 , height (px 200)
42 , Background.color (Actual.rgba 0 0 1 1)
43 , Font.color Palette.white
44 , below
45 (el
46 [ Background.color Palette.grey
47 , width (px 50)
48 , height (px 50)
49 ]
50 none
51 )
52 ]
53 (text "Hello!")
54 ]