diff options
author | Joris Guyonvarch | 2015-04-19 12:14:50 +0200 |
---|---|---|
committer | Joris Guyonvarch | 2015-04-19 12:15:51 +0200 |
commit | 78048fcbc81521d145b79b4b47761a8b698d7ff7 (patch) | |
tree | c6720dfaa1ccb15111a882421a18836a0c140292 /src/View/Html/Design.hs | |
parent | 389d979eb3eaa18beb8a6da9f4a03bdb6acc1722 (diff) |
Adding a design to the HTML mail + Adding waitInMinutes in the
configuration
Diffstat (limited to 'src/View/Html/Design.hs')
-rw-r--r-- | src/View/Html/Design.hs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/View/Html/Design.hs b/src/View/Html/Design.hs new file mode 100644 index 0000000..c33d991 --- /dev/null +++ b/src/View/Html/Design.hs @@ -0,0 +1,35 @@ +{-# LANGUAGE OverloadedStrings #-} + +module View.Html.Design + ( dlDesign + , ddDesign + , priceDesign + ) where + +import Data.Text.Lazy (Text) +import qualified Data.Text.Lazy as T +import Data.Monoid ((<>)) + +import Clay + +dlDesign :: Text +dlDesign = inlineRender $ do + fontWeight bold + fontSize (px 16) + +ddDesign :: Text +ddDesign = inlineRender $ do + marginLeft (px 0) + marginBottom (px 10) + color orangered + +priceDesign :: Text +priceDesign = inlineRender $ do + marginLeft (px 10) + color orangered + +inlineRender :: Css -> Text +inlineRender = + T.dropEnd 1 + . T.drop 1 + . renderWith compact [] |