Skip to content

Instantly share code, notes, and snippets.

@eworkflow
Created December 30, 2015 03:42

Revisions

  1. eworkflow created this gist Dec 30, 2015.
    22 changes: 22 additions & 0 deletions Hello-world.elm
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    import Html exposing (..)
    import Html.Attributes exposing (..)
    import Signal exposing (..)
    import Time exposing (every, second)
    import Date exposing (..)
    import String exposing (..)


    divStyle : List (String, String)
    divStyle =
    [ ("font-size", "5em")
    , ("text-align", "center")
    ]

    spanStyle : List (String, String)
    spanStyle =
    [ ("color", "red") ]

    main =
    Html.div
    [ Html.Attributes.style divStyle ]
    [ Html.text ("Hello, "), (Html.span [ Html.Attributes.style spanStyle ] [Html.text "World!"]) ]