aboutsummaryrefslogtreecommitdiff
path: root/src/server/Design
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-07-18 15:19:48 +0200
committerJoris Guyonvarch2015-07-18 15:19:48 +0200
commit89dd4de13896f8e37d1bf133080eb881ab42b292 (patch)
treef7d8cc5f412355524ef5b3f128aa09fce89c0afa /src/server/Design
parent0041c546869f0a7fd59a085cc75b481237b6c380 (diff)
Adding login/logout functions thanks to a client session
Diffstat (limited to 'src/server/Design')
-rw-r--r--src/server/Design/Color.hs6
-rw-r--r--src/server/Design/Global.hs14
2 files changed, 18 insertions, 2 deletions
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)