Skip to content

Instantly share code, notes, and snippets.

@eworkflow
Created December 30, 2015 03:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eworkflow/f8e41fbcbe330e3418e9 to your computer and use it in GitHub Desktop.
Save eworkflow/f8e41fbcbe330e3418e9 to your computer and use it in GitHub Desktop.
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!"]) ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment