aboutsummaryrefslogtreecommitdiff
path: root/src/server/View/Page.hs
blob: aa4df724c1085b8229b7c301e41d812d54156ec0 (plain)
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
{-# LANGUAGE OverloadedStrings #-}

module View.Page
  ( page
  ) where

import Data.Text.Internal.Lazy (Text)

import Text.Blaze.Html
import Text.Blaze.Html5
import Text.Blaze.Html5.Attributes
import qualified Text.Blaze.Html5 as H
import Text.Blaze.Html.Renderer.Text (renderHtml)

import Design.Global (globalDesign)

page :: Text
page =
  renderHtml . docTypeHtml $ do
    H.head $ do
      meta ! charset "UTF-8"
      H.title "Payments"
      script ! src "/javascripts/client.js" $ ""
      link ! rel "stylesheet" ! type_ "text/css" ! href "/css/reset.css"
      link ! rel "stylesheet" ! href "/css/font-awesome/css/font-awesome.min.css"
      link ! rel "stylesheet" ! type_ "text/css" ! href "/css/global.css"
      link ! rel "icon" ! type_ "image/png" ! href "/images/icon.png"
      H.style $ toHtml globalDesign
    body $
      script ! src "/javascripts/elmLauncher.js" $ ""