From 89dd4de13896f8e37d1bf133080eb881ab42b292 Mon Sep 17 00:00:00 2001 From: Joris Guyonvarch Date: Sat, 18 Jul 2015 15:19:48 +0200 Subject: Adding login/logout functions thanks to a client session --- src/server/Design/Color.hs | 6 ++++++ src/server/Design/Global.hs | 14 ++++++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) (limited to 'src/server/Design') diff --git a/src/server/Design/Color.hs b/src/server/Design/Color.hs index bc7fca0..dada3df 100644 --- a/src/server/Design/Color.hs +++ b/src/server/Design/Color.hs @@ -4,3 +4,9 @@ import qualified Clay.Color as C brown :: C.Color brown = C.brown + +green :: C.Color +green = C.green + +lightGrey :: C.Color +lightGrey = C.rgb 230 230 230 diff --git a/src/server/Design/Global.hs b/src/server/Design/Global.hs index 3408b22..6460220 100644 --- a/src/server/Design/Global.hs +++ b/src/server/Design/Global.hs @@ -6,6 +6,7 @@ module Design.Global import Clay +import Data.Monoid ((<>)) import Data.Text.Lazy (Text) import Design.Color as C @@ -20,10 +21,19 @@ global = do h1 ? do fontSize (px 40) textAlign (alignSide sideCenter) - margin (px 30) (px 0) (px 30) (px 0) + margin (px 30) (px 0) (px 40) (px 0) color C.brown table ? do - width (pct 50) + width (pct 100) textAlign (alignSide (sideCenter)) "border-spacing" -: "10 px" + + th ? do + color C.green + fontWeight bold + borderBottom solid (px 1) C.brown + + tr <> th ? do + fontSize (px 18) + lineHeight (px 30) -- cgit v1.2.3